diff options
| author | bjorn3 <bjorn3@users.noreply.github.com> | 2019-03-23 11:37:15 +0100 |
|---|---|---|
| committer | bjorn3 <bjorn3@users.noreply.github.com> | 2019-04-15 18:03:30 +0200 |
| commit | dc08f5519ff05a562f3ab5eda9b9b8fbc0cecfff (patch) | |
| tree | 7f63636fd8362c0b72addc662bbf51ba1eab7128 | |
| parent | 9a612b2348212d84fa0b839a4c18e4a13fafaf05 (diff) | |
| download | rust-dc08f5519ff05a562f3ab5eda9b9b8fbc0cecfff.tar.gz rust-dc08f5519ff05a562f3ab5eda9b9b8fbc0cecfff.zip | |
Use resume_unwind instead of panic!() for nicer compiletest errors
| -rw-r--r-- | src/tools/compiletest/src/runtest.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/tools/compiletest/src/runtest.rs b/src/tools/compiletest/src/runtest.rs index 2021dd513aa..05f47afe330 100644 --- a/src/tools/compiletest/src/runtest.rs +++ b/src/tools/compiletest/src/runtest.rs @@ -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(())); } } |
