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

This commit is contained in:
bjorn3 2019-03-23 11:37:15 +01:00
parent 9a612b2348
commit dc08f5519f

View file

@ -3422,7 +3422,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(()));
}
}