From c7806271e18d58d27790fd0fcec5e97336b9245b Mon Sep 17 00:00:00 2001 From: bjorn3 Date: Tue, 16 Apr 2019 19:15:11 +0200 Subject: [PATCH] Use resume_unwind instead of panic!() for nicer errors --- src/runtest.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/runtest.rs b/src/runtest.rs index 447f7d9..6c5aa40 100644 --- a/src/runtest.rs +++ b/src/runtest.rs @@ -2629,7 +2629,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(())); } }