Skip to content

Commit c780627

Browse files
bjorn3phansch
authored andcommitted
Use resume_unwind instead of panic!() for nicer errors
1 parent dfd512e commit c780627

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
@@ -2629,7 +2629,9 @@ impl ProcRes {
26292629
\n",
26302630
self.status, self.cmdline, self.stdout,
26312631
self.stderr);
2632-
panic!();
2632+
// Use resume_unwind instead of panic!() to prevent a panic message + backtrace from
2633+
// compiletest, which is unnecessary noise.
2634+
std::panic::resume_unwind(Box::new(()));
26332635
}
26342636
}
26352637

0 commit comments

Comments
 (0)