]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/backtrace.rs
Rollup merge of #98640 - cuviper:stable-rust-analyzer, r=Mark-Simulacrum
[rust.git] / src / test / ui / backtrace.rs
index 05ccfcb5060cb9226c2127c565128164c57fbac3..e2ac43fffc9efdeb830c0c33c1047dec0b0b3c8f 100644 (file)
@@ -44,6 +44,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)