File tree Expand file tree Collapse file tree 2 files changed +4
-7
lines changed Expand file tree Collapse file tree 2 files changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ fn multiple_storage() {
2121 {
2222 StorageLive ( a) ;
2323 StorageLive ( a) ;
24+ //~^ ERROR broken MIR
2425 Return ( )
2526 }
2627 }
Original file line number Diff line number Diff line change @@ -5,14 +5,10 @@ error: internal compiler error: broken MIR in Item(DefId(0:8 ~ storage_live[HASH
55LL | StorageLive(a);
66 | ^^^^^^^^^^^^^^
77 |
8- note: delayed at compiler/rustc_mir_transform/src/lint.rs:LL:CC - disabled backtrace
9- --> $DIR/storage-live.rs:23:13
10- |
11- LL | StorageLive(a);
12- | ^^^^^^^^^^^^^^
13-
14- aborting due to `-Z treat-err-as-bug=1`
8+ = aborting due to `-Z treat-err-as-bug=1`
159error: the compiler unexpectedly panicked. this is a bug.
1610
1711query stack during panic:
12+ #0 [mir_built] building MIR for `multiple_storage`
13+ #1 [has_ffi_unwind_calls] checking if `multiple_storage` contains FFI-unwind calls
1814end of query stack
You can’t perform that action at this time.
0 commit comments