]> git.lizzy.rs Git - rust.git/blob - src/tools/miri/tests/fail/panic/bad_unwind.stderr
Auto merge of #101969 - reez12g:issue-101306, r=reez12g
[rust.git] / src / tools / miri / tests / fail / panic / bad_unwind.stderr
1 thread 'main' panicked at 'explicit panic', $DIR/bad_unwind.rs:LL:CC
2 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
3 error: Undefined Behavior: unwinding past a stack frame that does not allow unwinding
4   --> $DIR/bad_unwind.rs:LL:CC
5    |
6 LL |     std::panic::catch_unwind(|| unwind()).unwrap_err();
7    |                                 ^^^^^^^^ unwinding past a stack frame that does not allow unwinding
8    |
9    = help: this indicates a bug in the program: it performed an invalid operation, and caused Undefined Behavior
10    = help: see https://doc.rust-lang.org/nightly/reference/behavior-considered-undefined.html for further information
11    = note: BACKTRACE:
12    = note: inside closure at $DIR/bad_unwind.rs:LL:CC
13    = note: inside `std::panicking::r#try::do_call::<[closure@$DIR/bad_unwind.rs:LL:CC], ()>` at RUSTLIB/std/src/panicking.rs:LL:CC
14    = note: inside `std::panicking::r#try::<(), [closure@$DIR/bad_unwind.rs:LL:CC]>` at RUSTLIB/std/src/panicking.rs:LL:CC
15    = note: inside `std::panic::catch_unwind::<[closure@$DIR/bad_unwind.rs:LL:CC], ()>` at RUSTLIB/std/src/panic.rs:LL:CC
16 note: inside `main` at $DIR/bad_unwind.rs:LL:CC
17   --> $DIR/bad_unwind.rs:LL:CC
18    |
19 LL |     std::panic::catch_unwind(|| unwind()).unwrap_err();
20    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
21
22 note: some details are omitted, run with `MIRIFLAGS=-Zmiri-backtrace=full` for a verbose backtrace
23
24 error: aborting due to previous error
25