05bb560de2
This allows the normal std panic hook to print a backtrace if `RUST_BACKTRACE=1` and `-Z miri-disable-isolation` are set
10 lines
312 B
Rust
10 lines
312 B
Rust
// rustc-env: RUST_BACKTRACE=1
|
|
// compile-flags: -Zmiri-disable-isolation
|
|
// normalize-stderr-test ".*/(rust|checkout)/library/" -> "RUSTLIB/"
|
|
// normalize-stderr-test "RUSTLIB/(.*):\d+:\d+ "-> "RUSTLIB/$1:LL:COL "
|
|
// normalize-stderr-test "::<.*>" -> ""
|
|
|
|
fn main() {
|
|
std::panic!("panicking from libstd");
|
|
}
|