Skip to content

Commit 015d4b6

Browse files
lcnrcuviper
authored andcommitted
update mir-opt tests
(cherry picked from commit 92267c9)
1 parent f267d5b commit 015d4b6

8 files changed

+21
-21
lines changed

tests/mir-opt/building/match_false_edges.full_tested_match.built.after.mir

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ fn full_tested_match() -> () {
5151
bb5: {
5252
StorageLive(_6);
5353
_6 = &((_2 as Some).0: i32);
54-
_4 = &shallow _2;
54+
_4 = &fake _2;
5555
StorageLive(_7);
5656
_7 = guard() -> [return: bb6, unwind: bb12];
5757
}

tests/mir-opt/building/match_false_edges.full_tested_match2.built.after.mir

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ fn full_tested_match2() -> () {
5757
bb5: {
5858
StorageLive(_6);
5959
_6 = &((_2 as Some).0: i32);
60-
_4 = &shallow _2;
60+
_4 = &fake _2;
6161
StorageLive(_7);
6262
_7 = guard() -> [return: bb6, unwind: bb12];
6363
}

tests/mir-opt/building/match_false_edges.main.built.after.mir

+2-2
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ fn main() -> () {
7878
bb8: {
7979
StorageLive(_7);
8080
_7 = &((_2 as Some).0: i32);
81-
_5 = &shallow _2;
81+
_5 = &fake _2;
8282
StorageLive(_8);
8383
_8 = guard() -> [return: bb9, unwind: bb20];
8484
}
@@ -120,7 +120,7 @@ fn main() -> () {
120120
bb14: {
121121
StorageLive(_11);
122122
_11 = &((_2 as Some).0: i32);
123-
_5 = &shallow _2;
123+
_5 = &fake _2;
124124
StorageLive(_12);
125125
StorageLive(_13);
126126
_13 = (*_11);

tests/mir-opt/match_arm_scopes.complicated_match.panic-abort.SimplifyCfg-initial.after-ElaborateDrops.after.diff

+4-4
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@
8080
_6 = &(_2.1: bool);
8181
StorageLive(_8);
8282
_8 = &(_2.2: std::string::String);
83-
- _3 = &shallow (_2.0: bool);
84-
- _4 = &shallow (_2.1: bool);
83+
- _3 = &fake (_2.0: bool);
84+
- _4 = &fake (_2.1: bool);
8585
StorageLive(_9);
8686
StorageLive(_10);
8787
_10 = _1;
@@ -137,8 +137,8 @@
137137
_6 = &(_2.0: bool);
138138
StorageLive(_8);
139139
_8 = &(_2.2: std::string::String);
140-
- _3 = &shallow (_2.0: bool);
141-
- _4 = &shallow (_2.1: bool);
140+
- _3 = &fake (_2.0: bool);
141+
- _4 = &fake (_2.1: bool);
142142
StorageLive(_12);
143143
StorageLive(_13);
144144
_13 = _1;

tests/mir-opt/match_arm_scopes.complicated_match.panic-unwind.SimplifyCfg-initial.after-ElaborateDrops.after.diff

+4-4
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@
8080
_6 = &(_2.1: bool);
8181
StorageLive(_8);
8282
_8 = &(_2.2: std::string::String);
83-
- _3 = &shallow (_2.0: bool);
84-
- _4 = &shallow (_2.1: bool);
83+
- _3 = &fake (_2.0: bool);
84+
- _4 = &fake (_2.1: bool);
8585
StorageLive(_9);
8686
StorageLive(_10);
8787
_10 = _1;
@@ -137,8 +137,8 @@
137137
_6 = &(_2.0: bool);
138138
StorageLive(_8);
139139
_8 = &(_2.2: std::string::String);
140-
- _3 = &shallow (_2.0: bool);
141-
- _4 = &shallow (_2.1: bool);
140+
- _3 = &fake (_2.0: bool);
141+
- _4 = &fake (_2.1: bool);
142142
StorageLive(_12);
143143
StorageLive(_13);
144144
_13 = _1;

tests/mir-opt/match_test.main.SimplifyCfg-initial.after.mir

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ fn main() -> () {
6868
}
6969

7070
bb9: {
71-
_8 = &shallow _1;
71+
_8 = &fake _1;
7272
StorageLive(_9);
7373
_9 = _2;
7474
switchInt(move _9) -> [0: bb11, otherwise: bb10];

tests/mir-opt/remove_fake_borrows.match_guard.CleanupPostBorrowck.panic-abort.diff

+4-4
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@
3434
}
3535

3636
bb4: {
37-
- _4 = &shallow _1;
38-
- _5 = &shallow (*((_1 as Some).0: &&i32));
39-
- _6 = &shallow ((_1 as Some).0: &&i32);
40-
- _7 = &shallow (*(*((_1 as Some).0: &&i32)));
37+
- _4 = &fake _1;
38+
- _5 = &fake (*((_1 as Some).0: &&i32));
39+
- _6 = &fake ((_1 as Some).0: &&i32);
40+
- _7 = &fake (*(*((_1 as Some).0: &&i32)));
4141
+ nop;
4242
+ nop;
4343
+ nop;

tests/mir-opt/remove_fake_borrows.match_guard.CleanupPostBorrowck.panic-unwind.diff

+4-4
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@
3434
}
3535

3636
bb4: {
37-
- _4 = &shallow _1;
38-
- _5 = &shallow (*((_1 as Some).0: &&i32));
39-
- _6 = &shallow ((_1 as Some).0: &&i32);
40-
- _7 = &shallow (*(*((_1 as Some).0: &&i32)));
37+
- _4 = &fake _1;
38+
- _5 = &fake (*((_1 as Some).0: &&i32));
39+
- _6 = &fake ((_1 as Some).0: &&i32);
40+
- _7 = &fake (*(*((_1 as Some).0: &&i32)));
4141
+ nop;
4242
+ nop;
4343
+ nop;

0 commit comments

Comments
 (0)