Skip to content

Commit 7d78980

Browse files
authored
Merge pull request #176 from phansch/resume_unwind
Use resume_unwind instead of panic!() for nicer errors
2 parents 0d7c167 + c780627 commit 7d78980

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/runtest.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2659,7 +2659,9 @@ impl ProcRes {
26592659
\n",
26602660
self.status, self.cmdline, self.stdout,
26612661
self.stderr);
2662-
panic!();
2662+
// Use resume_unwind instead of panic!() to prevent a panic message + backtrace from
2663+
// compiletest, which is unnecessary noise.
2664+
std::panic::resume_unwind(Box::new(()));
26632665
}
26642666
}
26652667

0 commit comments

Comments
 (0)