Skip to content

Commit

Permalink
Merge pull request #176 from phansch/resume_unwind
Browse files Browse the repository at this point in the history
Use resume_unwind instead of panic!() for nicer errors
  • Loading branch information
Munksgaard authored Sep 12, 2019
2 parents 0d7c167 + c780627 commit 7d78980
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/runtest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2659,7 +2659,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 7d78980

Please sign in to comment.