mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 16:54:01 +00:00
Fix backtrace UI test when panic=abort is used
This commit is contained in:
parent
00ce47209d
commit
50a46b92f6
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user