From 50a46b92f6b09e5cab6e8b4f4683cf8518102115 Mon Sep 17 00:00:00 2001 From: Antoni Boucher Date: Sat, 25 Jun 2022 11:48:26 -0400 Subject: [PATCH] Fix backtrace UI test when panic=abort is used --- src/test/ui/backtrace.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/test/ui/backtrace.rs b/src/test/ui/backtrace.rs index c2d9e222b84a4..01b276d67ed87 100644 --- a/src/test/ui/backtrace.rs +++ b/src/test/ui/backtrace.rs @@ -43,6 +43,7 @@ fn expected(fn_name: &str) -> String { format!(" backtrace::{}", fn_name) } +#[cfg(not(panic = "abort"))] fn contains_verbose_expected(s: &str, fn_name: &str) -> bool { // HACK(eddyb) work around the fact that verbosely demangled stack traces // (from `RUST_BACKTRACE=full`, or, as is the case here, panic-in-panic)