fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

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