Auto merge of #59990 - bjorn3:nicer_compiletest_errors, r=alexcrichton

Use resume_unwind instead of panic!() for nicer compiletest errors

cc https://github.com/rust-lang/rust/pull/58783#issuecomment-477287606
This commit is contained in:
bors 2019-04-16 02:34:16 +00:00
commit 7cb933a616

View file

@ -3466,7 +3466,9 @@ impl ProcRes {
\n",
self.status, self.cmdline, self.stdout, self.stderr
);
panic!();
// Use resume_unwind instead of panic!() to prevent a panic message + backtrace from
// compiletest, which is unnecessary noise.
std::panic::resume_unwind(Box::new(()));
}
}