mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-16 00:43:50 +00:00
Rollup merge of #98491 - antoyo:fix/ui-test-backtrace-panic-abort, r=Dylan-DPC
Fix backtrace UI test when panic=abort is used The function `contains_verbose_expected` is only used when the panic strategy is not abort, so it caused a warning when it was abort, which made the UI test failed on stderr comparison.
This commit is contained in:
commit
b1d66d810d
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user