Skip to content

Commit af5e7de

Browse files
committed
Bless ui test.
1 parent bc602ce commit af5e7de

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

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

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

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

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
error: internal compiler error: broken MIR in Item(DefId(0:8 ~ storage_live[HASH]::multiple_storage)) (after pass CheckPackedRef) at bb0[1]:
2-
StorageLive(_1) which already has storage here
1+
error: broken MIR in Item(DefId(0:8 ~ storage_live[HASH]::multiple_storage)) (after pass CheckPackedRef) at bb0[1]:
2+
StorageLive(_1) which already has storage here
33
--> $DIR/storage-live.rs:22:13
44
|
55
LL | StorageLive(a);
66
| ^^^^^^^^^^^^^^
7-
8-
aborting due to `-Z treat-err-as-bug=1`
7+
|
8+
= aborting due to `-Z treat-err-as-bug=1`
99
error: the compiler unexpectedly panicked. this is a bug.
1010

1111
query stack during panic:

0 commit comments

Comments
 (0)