Skip to content

Commit f310e6c

Browse files
committed
Bless ui test.
1 parent 1c121fb commit f310e6c

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

tests/ui/mir/lint/storage-live.rs

+1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ fn multiple_storage() {
2121
{
2222
StorageLive(a);
2323
StorageLive(a);
24+
//~^ ERROR broken MIR
2425
Return()
2526
}
2627
}

tests/ui/mir/lint/storage-live.stderr

+3-7
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,10 @@ error: internal compiler error: broken MIR in Item(DefId(0:8 ~ storage_live[HASH
55
LL | 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`
159
error: the compiler unexpectedly panicked. this is a bug.
1610

1711
query 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
1814
end of query stack

0 commit comments

Comments
 (0)