1
- // MIR for `full_tested_match` after PromoteTemps
1
+ // MIR for `full_tested_match` after built
2
2
3
3
fn full_tested_match() -> () {
4
4
let mut _0 : (); // return place in scope 0 at $DIR/match_false_edges.rs:+0:28: +0:28
@@ -12,7 +12,6 @@ fn full_tested_match() -> () {
12
12
let mut _8 : i32; // in scope 0 at $DIR/match_false_edges.rs:+2:35: +2:36
13
13
let _9 : i32; // in scope 0 at $DIR/match_false_edges.rs:+3:14: +3:15
14
14
let mut _10 : i32; // in scope 0 at $DIR/match_false_edges.rs:+3:24: +3:25
15
- let mut _11 : &std::option::Option<i32>; // in scope 0 at $DIR/match_false_edges.rs:+2:14: +2:15
16
15
scope 1 {
17
16
}
18
17
scope 2 {
@@ -34,15 +33,15 @@ fn full_tested_match() -> () {
34
33
35
34
bb1 : {
36
35
_1 = (const 3_i32, const 3_i32); // scope 0 at $DIR/match_false_edges.rs:+4:17 : +4:23
37
- goto -> bb10 ; // scope 0 at $DIR/match_false_edges.rs:+4:17 : +4:23
36
+ goto -> bb11 ; // scope 0 at $DIR/match_false_edges.rs:+4:17 : +4:23
38
37
}
39
38
40
39
bb2 : {
41
40
falseEdge -> [real : bb5, imaginary: bb3]; // scope 0 at $DIR/match_false_edges.rs:+2:9: +2:16
42
41
}
43
42
44
43
bb3 : {
45
- falseEdge -> [real : bb9 , imaginary: bb1]; // scope 0 at $DIR/match_false_edges.rs:+3:9: +3:16
44
+ falseEdge -> [real : bb10 , imaginary: bb1]; // scope 0 at $DIR/match_false_edges.rs:+3:9: +3:16
46
45
}
47
46
48
47
bb4 : {
@@ -51,14 +50,10 @@ fn full_tested_match() -> () {
51
50
52
51
bb5 : {
53
52
StorageLive(_6); // scope 0 at $DIR/match_false_edges.rs:+2:14 : +2:15
54
- _11 = const _; // scope 0 at $DIR/match_false_edges.rs:+2:14 : +2:15
55
- // mir::Constant
56
- // + span : $DIR/match_false_edges.rs:14:14: 14:15
57
- // + literal : Const { ty: &Option<i32>, val: Unevaluated(full_tested_match, [], Some(promoted[0])) }
58
- _6 = &(((*_11) as Some).0 : i32); // scope 0 at $DIR/match_false_edges.rs:+2:14: +2:15
53
+ _6 = &((_2 as Some).0 : i32); // scope 0 at $DIR/match_false_edges.rs:+2:14: +2:15
59
54
_4 = &shallow _2; // scope 0 at $DIR/match_false_edges.rs:+1:19 : +1:27
60
55
StorageLive(_7); // scope 0 at $DIR/match_false_edges.rs:+2:20 : +2:27
61
- _7 = guard() -> [return : bb6, unwind: bb11 ]; // scope 0 at $DIR/match_false_edges.rs:+2:20: +2:27
56
+ _7 = guard() -> [return : bb6, unwind: bb12 ]; // scope 0 at $DIR/match_false_edges.rs:+2:20: +2:27
62
57
// mir::Constant
63
58
// + span : $DIR/match_false_edges.rs:14:20: 14:25
64
59
// + literal : Const { ty: fn() -> bool {guard}, val: Value(<ZST>) }
@@ -80,34 +75,38 @@ fn full_tested_match() -> () {
80
75
StorageDead(_8); // scope 2 at $DIR/match_false_edges.rs:+2:36 : +2:37
81
76
StorageDead(_5); // scope 0 at $DIR/match_false_edges.rs:+2:36 : +2:37
82
77
StorageDead(_6); // scope 0 at $DIR/match_false_edges.rs:+2:36 : +2:37
83
- goto -> bb10 ; // scope 0 at $DIR/match_false_edges.rs:+2:36 : +2:37
78
+ goto -> bb11 ; // scope 0 at $DIR/match_false_edges.rs:+2:36 : +2:37
84
79
}
85
80
86
81
bb8 : {
82
+ goto -> bb9; // scope 0 at $DIR/match_false_edges.rs:+2:20 : +2:27
83
+ }
84
+
85
+ bb9 : {
87
86
StorageDead(_7); // scope 0 at $DIR/match_false_edges.rs:+2:26 : +2:27
88
87
StorageDead(_6); // scope 0 at $DIR/match_false_edges.rs:+2:36 : +2:37
89
88
goto -> bb3; // scope 0 at $DIR/match_false_edges.rs:+2:20 : +2:27
90
89
}
91
90
92
- bb9 : {
91
+ bb10 : {
93
92
StorageLive(_9); // scope 0 at $DIR/match_false_edges.rs:+3:14 : +3:15
94
93
_9 = ((_2 as Some).0 : i32); // scope 0 at $DIR/match_false_edges.rs:+3:14: +3:15
95
94
StorageLive(_10); // scope 3 at $DIR/match_false_edges.rs:+3:24 : +3:25
96
95
_10 = _9; // scope 3 at $DIR/match_false_edges.rs:+3:24 : +3:25
97
96
_1 = (const 2_i32, move _10); // scope 3 at $DIR/match_false_edges.rs:+3:20 : +3:26
98
97
StorageDead(_10); // scope 3 at $DIR/match_false_edges.rs:+3:25 : +3:26
99
98
StorageDead(_9); // scope 0 at $DIR/match_false_edges.rs:+3:25 : +3:26
100
- goto -> bb10 ; // scope 0 at $DIR/match_false_edges.rs:+3:25 : +3:26
99
+ goto -> bb11 ; // scope 0 at $DIR/match_false_edges.rs:+3:25 : +3:26
101
100
}
102
101
103
- bb10 : {
102
+ bb11 : {
104
103
StorageDead(_2); // scope 0 at $DIR/match_false_edges.rs:+5:6 : +5:7
105
104
StorageDead(_1); // scope 0 at $DIR/match_false_edges.rs:+5:6 : +5:7
106
105
_0 = const (); // scope 0 at $DIR/match_false_edges.rs:+0:28 : +6:2
107
106
return; // scope 0 at $DIR/match_false_edges.rs:+6:2 : +6:2
108
107
}
109
108
110
- bb11 (cleanup) : {
109
+ bb12 (cleanup) : {
111
110
resume; // scope 0 at $DIR/match_false_edges.rs:+0:1 : +6:2
112
111
}
113
112
}
0 commit comments