Skip to content

Commit b9e06f1

Browse files
committed
bless
1 parent de67239 commit b9e06f1

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

tests/mir-opt/try_identity_e2e.new.PreCodegen.after.mir

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ fn new(_1: Result<T, E>) -> Result<T, E> {
2626
bb0: {
2727
StorageLive(_2); // scope 0 at $DIR/try_identity_e2e.rs:+2:15: +7:10
2828
_3 = discriminant(_1); // scope 0 at $DIR/try_identity_e2e.rs:+3:19: +3:20
29-
switchInt(move _3) -> [0: bb2, 1: bb1, otherwise: bb4]; // scope 0 at $DIR/try_identity_e2e.rs:+3:13: +3:20
29+
switchInt(move _3) -> [0: bb3, 1: bb1, otherwise: bb2]; // scope 0 at $DIR/try_identity_e2e.rs:+3:13: +3:20
3030
}
3131

3232
bb1: {
@@ -35,19 +35,23 @@ fn new(_1: Result<T, E>) -> Result<T, E> {
3535
((_2 as Break).0: E) = move _5; // scope 2 at $DIR/try_identity_e2e.rs:+5:27: +5:48
3636
discriminant(_2) = 1; // scope 2 at $DIR/try_identity_e2e.rs:+5:27: +5:48
3737
_6 = discriminant(_2); // scope 0 at $DIR/try_identity_e2e.rs:+2:15: +7:10
38-
switchInt(move _6) -> [0: bb5, 1: bb3, otherwise: bb4]; // scope 0 at $DIR/try_identity_e2e.rs:+2:9: +7:10
38+
switchInt(move _6) -> [0: bb6, 1: bb4, otherwise: bb5]; // scope 0 at $DIR/try_identity_e2e.rs:+2:9: +7:10
3939
}
4040

4141
bb2: {
42+
unreachable; // scope 0 at $DIR/try_identity_e2e.rs:+3:19: +3:20
43+
}
44+
45+
bb3: {
4246
_4 = move ((_1 as Ok).0: T); // scope 0 at $DIR/try_identity_e2e.rs:+4:20: +4:21
4347
Deinit(_2); // scope 1 at $DIR/try_identity_e2e.rs:+4:26: +4:50
4448
((_2 as Continue).0: T) = move _4; // scope 1 at $DIR/try_identity_e2e.rs:+4:26: +4:50
4549
discriminant(_2) = 0; // scope 1 at $DIR/try_identity_e2e.rs:+4:26: +4:50
4650
_6 = discriminant(_2); // scope 0 at $DIR/try_identity_e2e.rs:+2:15: +7:10
47-
switchInt(move _6) -> [0: bb5, 1: bb3, otherwise: bb4]; // scope 0 at $DIR/try_identity_e2e.rs:+2:9: +7:10
51+
switchInt(move _6) -> [0: bb6, 1: bb4, otherwise: bb5]; // scope 0 at $DIR/try_identity_e2e.rs:+2:9: +7:10
4852
}
4953

50-
bb3: {
54+
bb4: {
5155
_8 = move ((_2 as Break).0: E); // scope 0 at $DIR/try_identity_e2e.rs:+9:32: +9:33
5256
Deinit(_0); // scope 4 at $DIR/try_identity_e2e.rs:+9:45: +9:51
5357
((_0 as Err).0: E) = move _8; // scope 4 at $DIR/try_identity_e2e.rs:+9:45: +9:51
@@ -56,11 +60,11 @@ fn new(_1: Result<T, E>) -> Result<T, E> {
5660
return; // scope 0 at $DIR/try_identity_e2e.rs:+12:2: +12:2
5761
}
5862

59-
bb4: {
63+
bb5: {
6064
unreachable; // scope 0 at $DIR/try_identity_e2e.rs:+2:15: +7:10
6165
}
6266

63-
bb5: {
67+
bb6: {
6468
_7 = move ((_2 as Continue).0: T); // scope 0 at $DIR/try_identity_e2e.rs:+8:35: +8:36
6569
Deinit(_0); // scope 0 at $DIR/try_identity_e2e.rs:+1:5: +11:6
6670
((_0 as Ok).0: T) = move _7; // scope 0 at $DIR/try_identity_e2e.rs:+1:5: +11:6

0 commit comments

Comments
 (0)