@@ -26,7 +26,7 @@ fn new(_1: Result<T, E>) -> Result<T, E> {
26
26
bb0 : {
27
27
StorageLive(_2); // scope 0 at $DIR/try_identity_e2e.rs:+2:15 : +7:10
28
28
_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
30
30
}
31
31
32
32
bb1 : {
@@ -35,19 +35,23 @@ fn new(_1: Result<T, E>) -> Result<T, E> {
35
35
((_2 as Break).0 : E) = move _5; // scope 2 at $DIR/try_identity_e2e.rs:+5:27: +5:48
36
36
discriminant(_2) = 1; // scope 2 at $DIR/try_identity_e2e.rs:+5:27 : +5:48
37
37
_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
39
39
}
40
40
41
41
bb2 : {
42
+ unreachable; // scope 0 at $DIR/try_identity_e2e.rs:+3:19 : +3:20
43
+ }
44
+
45
+ bb3 : {
42
46
_4 = move ((_1 as Ok).0 : T); // scope 0 at $DIR/try_identity_e2e.rs:+4:20: +4:21
43
47
Deinit(_2); // scope 1 at $DIR/try_identity_e2e.rs:+4:26 : +4:50
44
48
((_2 as Continue).0 : T) = move _4; // scope 1 at $DIR/try_identity_e2e.rs:+4:26: +4:50
45
49
discriminant(_2) = 0; // scope 1 at $DIR/try_identity_e2e.rs:+4:26 : +4:50
46
50
_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
48
52
}
49
53
50
- bb3 : {
54
+ bb4 : {
51
55
_8 = move ((_2 as Break).0 : E); // scope 0 at $DIR/try_identity_e2e.rs:+9:32: +9:33
52
56
Deinit(_0); // scope 4 at $DIR/try_identity_e2e.rs:+9:45 : +9:51
53
57
((_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> {
56
60
return; // scope 0 at $DIR/try_identity_e2e.rs:+12:2 : +12:2
57
61
}
58
62
59
- bb4 : {
63
+ bb5 : {
60
64
unreachable; // scope 0 at $DIR/try_identity_e2e.rs:+2:15 : +7:10
61
65
}
62
66
63
- bb5 : {
67
+ bb6 : {
64
68
_7 = move ((_2 as Continue).0 : T); // scope 0 at $DIR/try_identity_e2e.rs:+8:35: +8:36
65
69
Deinit(_0); // scope 0 at $DIR/try_identity_e2e.rs:+1:5 : +11:6
66
70
((_0 as Ok).0 : T) = move _7; // scope 0 at $DIR/try_identity_e2e.rs:+1:5: +11:6
0 commit comments