Skip to content

Commit 7cb933a

Browse files
committed
Auto merge of #59990 - bjorn3:nicer_compiletest_errors, r=alexcrichton
Use resume_unwind instead of panic!() for nicer compiletest errors cc #58783 (comment)
2 parents 2975a3c + dc08f55 commit 7cb933a

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
@@ -3466,7 +3466,9 @@ impl ProcRes {
34663466
\n",
34673467
self.status, self.cmdline, self.stdout, self.stderr
34683468
);
3469-
panic!();
3469+
// Use resume_unwind instead of panic!() to prevent a panic message + backtrace from
3470+
// compiletest, which is unnecessary noise.
3471+
std::panic::resume_unwind(Box::new(()));
34703472
}
34713473
}
34723474

0 commit comments

Comments
 (0)