11error: this match could be written as a `let` statement
2- --> tests/ui/match_single_binding.rs:33 :5
2+ --> tests/ui/match_single_binding.rs:34 :5
33 |
44LL | / match (a, b, c) {
55LL | | (x, y, z) => {
1919 |
2020
2121error: this match could be written as a `let` statement
22- --> tests/ui/match_single_binding.rs:39 :5
22+ --> tests/ui/match_single_binding.rs:40 :5
2323 |
2424LL | / match (a, b, c) {
2525LL | | (x, y, z) => println!("{} {} {}", x, y, z),
@@ -33,15 +33,15 @@ LL + println!("{} {} {}", x, y, z);
3333 |
3434
3535error: this match could be replaced by its body itself
36- --> tests/ui/match_single_binding.rs:56 :5
36+ --> tests/ui/match_single_binding.rs:57 :5
3737 |
3838LL | / match a {
3939LL | | _ => println!("whatever"),
4040LL | | }
4141 | |_____^ help: consider using the match body instead: `println!("whatever");`
4242
4343error: this match could be replaced by its body itself
44- --> tests/ui/match_single_binding.rs:60 :5
44+ --> tests/ui/match_single_binding.rs:61 :5
4545 |
4646LL | / match a {
4747LL | | _ => {
6060 |
6161
6262error: this match could be replaced by its body itself
63- --> tests/ui/match_single_binding.rs:67 :5
63+ --> tests/ui/match_single_binding.rs:68 :5
6464 |
6565LL | / match a {
6666LL | | _ => {
8282 |
8383
8484error: this match could be written as a `let` statement
85- --> tests/ui/match_single_binding.rs:77 :5
85+ --> tests/ui/match_single_binding.rs:78 :5
8686 |
8787LL | / match p {
8888LL | | Point { x, y } => println!("Coords: ({}, {})", x, y),
@@ -96,7 +96,7 @@ LL + println!("Coords: ({}, {})", x, y);
9696 |
9797
9898error: this match could be written as a `let` statement
99- --> tests/ui/match_single_binding.rs:81 :5
99+ --> tests/ui/match_single_binding.rs:82 :5
100100 |
101101LL | / match p {
102102LL | | Point { x: x1, y: y1 } => println!("Coords: ({}, {})", x1, y1),
@@ -110,7 +110,7 @@ LL + println!("Coords: ({}, {})", x1, y1);
110110 |
111111
112112error: this match could be written as a `let` statement
113- --> tests/ui/match_single_binding.rs:86 :5
113+ --> tests/ui/match_single_binding.rs:87 :5
114114 |
115115LL | / match x {
116116LL | | ref r => println!("Got a reference to {}", r),
@@ -124,7 +124,7 @@ LL + println!("Got a reference to {}", r);
124124 |
125125
126126error: this match could be written as a `let` statement
127- --> tests/ui/match_single_binding.rs:91 :5
127+ --> tests/ui/match_single_binding.rs:92 :5
128128 |
129129LL | / match x {
130130LL | | ref mut mr => println!("Got a mutable reference to {}", mr),
@@ -138,7 +138,7 @@ LL + println!("Got a mutable reference to {}", mr);
138138 |
139139
140140error: this match could be written as a `let` statement
141- --> tests/ui/match_single_binding.rs:95 :5
141+ --> tests/ui/match_single_binding.rs:96 :5
142142 |
143143LL | / let product = match coords() {
144144LL | | Point { x, y } => x * y,
@@ -152,7 +152,7 @@ LL + let product = x * y;
152152 |
153153
154154error: this match could be written as a `let` statement
155- --> tests/ui/match_single_binding.rs:103 :18
155+ --> tests/ui/match_single_binding.rs:104 :18
156156 |
157157LL | .map(|i| match i.unwrap() {
158158 | __________________^
@@ -169,7 +169,7 @@ LL ~ })
169169 |
170170
171171error: this match could be replaced by its body itself
172- --> tests/ui/match_single_binding.rs:129 :5
172+ --> tests/ui/match_single_binding.rs:130 :5
173173 |
174174LL | / match x {
175175LL | | // =>
@@ -178,7 +178,7 @@ LL | | }
178178 | |_____^ help: consider using the match body instead: `println!("Not an array index start")`
179179
180180error: this assignment could be simplified
181- --> tests/ui/match_single_binding.rs:138 :5
181+ --> tests/ui/match_single_binding.rs:139 :5
182182 |
183183LL | / val = match val.split_at(idx) {
184184LL | | (pre, suf) => {
@@ -198,7 +198,7 @@ LL ~ };
198198 |
199199
200200error: this match could be replaced by its scrutinee and body
201- --> tests/ui/match_single_binding.rs:151 :16
201+ --> tests/ui/match_single_binding.rs:152 :16
202202 |
203203LL | let _ = || match side_effects() {
204204 | ________________^
@@ -215,7 +215,7 @@ LL ~ };
215215 |
216216
217217error: this match could be written as a `let` statement
218- --> tests/ui/match_single_binding.rs:157 :5
218+ --> tests/ui/match_single_binding.rs:158 :5
219219 |
220220LL | / match r {
221221LL | | x => match x {
@@ -240,15 +240,15 @@ LL ~ };
240240 |
241241
242242error: this match could be replaced by its body itself
243- --> tests/ui/match_single_binding.rs:170 :5
243+ --> tests/ui/match_single_binding.rs:171 :5
244244 |
245245LL | / match 1 {
246246LL | | _ => (),
247247LL | | }
248248 | |_____^ help: consider using the match body instead: `();`
249249
250250error: this match could be replaced by its body itself
251- --> tests/ui/match_single_binding.rs:174 :13
251+ --> tests/ui/match_single_binding.rs:175 :13
252252 |
253253LL | let a = match 1 {
254254 | _____________^
@@ -257,15 +257,15 @@ LL | | };
257257 | |_____^ help: consider using the match body instead: `()`
258258
259259error: this match could be replaced by its body itself
260- --> tests/ui/match_single_binding.rs:178 :5
260+ --> tests/ui/match_single_binding.rs:179 :5
261261 |
262262LL | / match 1 {
263263LL | | _ => side_effects(),
264264LL | | }
265265 | |_____^ help: consider using the match body instead: `side_effects();`
266266
267267error: this match could be replaced by its body itself
268- --> tests/ui/match_single_binding.rs:182 :13
268+ --> tests/ui/match_single_binding.rs:183 :13
269269 |
270270LL | let b = match 1 {
271271 | _____________^
@@ -274,15 +274,15 @@ LL | | };
274274 | |_____^ help: consider using the match body instead: `side_effects()`
275275
276276error: this match could be replaced by its body itself
277- --> tests/ui/match_single_binding.rs:186 :5
277+ --> tests/ui/match_single_binding.rs:187 :5
278278 |
279279LL | / match 1 {
280280LL | | _ => println!("1"),
281281LL | | }
282282 | |_____^ help: consider using the match body instead: `println!("1");`
283283
284284error: this match could be replaced by its body itself
285- --> tests/ui/match_single_binding.rs:190 :13
285+ --> tests/ui/match_single_binding.rs:191 :13
286286 |
287287LL | let c = match 1 {
288288 | _____________^
@@ -291,23 +291,23 @@ LL | | };
291291 | |_____^ help: consider using the match body instead: `println!("1")`
292292
293293error: this match could be replaced by its body itself
294- --> tests/ui/match_single_binding.rs:195 :9
294+ --> tests/ui/match_single_binding.rs:196 :9
295295 |
296296LL | / match 1 {
297297LL | | _ => (),
298298LL | | },
299299 | |_________^ help: consider using the match body instead: `()`
300300
301301error: this match could be replaced by its body itself
302- --> tests/ui/match_single_binding.rs:198 :9
302+ --> tests/ui/match_single_binding.rs:199 :9
303303 |
304304LL | / match 1 {
305305LL | | _ => side_effects(),
306306LL | | },
307307 | |_________^ help: consider using the match body instead: `side_effects()`
308308
309309error: this match could be replaced by its body itself
310- --> tests/ui/match_single_binding.rs:201 :9
310+ --> tests/ui/match_single_binding.rs:202 :9
311311 |
312312LL | / match 1 {
313313LL | | _ => println!("1"),
0 commit comments