Skip to content

Commit

Permalink
Use resume_unwind instead of panic!() for nicer compiletest errors
Browse files Browse the repository at this point in the history
  • Loading branch information
bjorn3 committed Apr 15, 2019
1 parent 9a612b2 commit dc08f55
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/tools/compiletest/src/runtest.rs
Expand Up @@ -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(()));
}
}

Expand Down

0 comments on commit dc08f55

Please sign in to comment.