@@ -20,17 +20,17 @@ fn guard2(_:i32) -> bool {
20
20
21
21
fn full_tested_match ( ) {
22
22
let _ = match Some ( 42 ) {
23
- Some ( x) if guard ( ) => 1 + x ,
24
- Some ( y) => 2 + y ,
25
- None => 3 ,
23
+ Some ( x) if guard ( ) => ( 1 , x ) ,
24
+ Some ( y) => ( 2 , y ) ,
25
+ None => ( 3 , 3 ) ,
26
26
} ;
27
27
}
28
28
29
29
fn full_tested_match2 ( ) {
30
30
let _ = match Some ( 42 ) {
31
- Some ( x) if guard ( ) => 1 + x ,
32
- None => 3 ,
33
- Some ( y) => 2 + y ,
31
+ Some ( x) if guard ( ) => ( 1 , x ) ,
32
+ None => ( 3 , 3 ) ,
33
+ Some ( y) => ( 2 , y ) ,
34
34
} ;
35
35
}
36
36
@@ -55,12 +55,12 @@ fn main() {
55
55
// bb1: { // arm1
56
56
// StorageLive(_7);
57
57
// _7 = _3;
58
- // _1 = Add (const 1i32, _7);
59
- // ...
58
+ // _1 = (const 1i32, _7);
59
+ // StorageDead(_7);
60
60
// goto -> bb11;
61
61
// }
62
62
// bb2: { // binding3(empty) and arm3
63
- // _1 = const 3i32;
63
+ // _1 = ( const 3i32, const 3i32) ;
64
64
// goto -> bb11;
65
65
// }
66
66
// bb3: {
@@ -92,7 +92,7 @@ fn main() {
92
92
// _4 = ((_2 as Some).0: i32);
93
93
// StorageLive(_8);
94
94
// _8 = _4;
95
- // _1 = Add (const 2i32, _8);
95
+ // _1 = (const 2i32, _8);
96
96
// StorageDead(_8);
97
97
// goto -> bb11;
98
98
// }
@@ -102,7 +102,7 @@ fn main() {
102
102
// }
103
103
// END rustc.node17.SimplifyBranches-initial.before.mir
104
104
//
105
- // START rustc.node40 .SimplifyBranches-initial.before.mir
105
+ // START rustc.node42 .SimplifyBranches-initial.before.mir
106
106
// bb0: {
107
107
// ...
108
108
// _2 = std::option::Option<i32>::Some(const 42i32,);
@@ -112,12 +112,12 @@ fn main() {
112
112
// bb1: { // arm1
113
113
// StorageLive(_7);
114
114
// _7 = _3;
115
- // _1 = Add (const 1i32, _7);
116
- // ...
115
+ // _1 = (const 1i32, _7);
116
+ // StorageDead(_7);
117
117
// goto -> bb11;
118
118
// }
119
119
// bb2: { // binding3(empty) and arm3
120
- // _1 = const 3i32;
120
+ // _1 = ( const 3i32, const 3i32) ;
121
121
// goto -> bb11;
122
122
// }
123
123
// bb3: {
@@ -149,17 +149,17 @@ fn main() {
149
149
// _4 = ((_2 as Some).0: i32);
150
150
// StorageLive(_8);
151
151
// _8 = _4;
152
- // _1 = Add (const 2i32, _8);
152
+ // _1 = (const 2i32, _8);
153
153
// StorageDead(_8);
154
154
// goto -> bb11;
155
155
// }
156
156
// bb11: {
157
157
// ...
158
158
// return;
159
159
// }
160
- // END rustc.node40 .SimplifyBranches-initial.before.mir
160
+ // END rustc.node42 .SimplifyBranches-initial.before.mir
161
161
//
162
- // START rustc.node63 .SimplifyBranches-initial.before.mir
162
+ // START rustc.node67 .SimplifyBranches-initial.before.mir
163
163
// bb0: {
164
164
// ...
165
165
// _2 = std::option::Option<i32>::Some(const 1i32,);
@@ -233,4 +233,4 @@ fn main() {
233
233
// ...
234
234
// return;
235
235
// }
236
- // END rustc.node63 .SimplifyBranches-initial.before.mir
236
+ // END rustc.node67 .SimplifyBranches-initial.before.mir
0 commit comments