Skip to content

Commit dc08f55

Browse files
committed
Use resume_unwind instead of panic!() for nicer compiletest errors
1 parent 9a612b2 commit dc08f55

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/tools/compiletest/src/runtest.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -3422,7 +3422,9 @@ impl ProcRes {
34223422
\n",
34233423
self.status, self.cmdline, self.stdout, self.stderr
34243424
);
3425-
panic!();
3425+
// Use resume_unwind instead of panic!() to prevent a panic message + backtrace from
3426+
// compiletest, which is unnecessary noise.
3427+
std::panic::resume_unwind(Box::new(()));
34263428
}
34273429
}
34283430

0 commit comments

Comments
 (0)