Use resume_unwind instead of panic!() for nicer compiletest errors
This commit is contained in:
parent
9a612b2348
commit
dc08f5519f
1 changed files with 3 additions and 1 deletions
|
|
@ -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(()));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue