11error: redundant guard
2- --> tests/ui/redundant_guards.rs:22 :14
2+ --> tests/ui/redundant_guards.rs:21 :14
33 |
44LL | x if x == 0.0 => todo!(),
55 | ^^^^^^^^
@@ -13,7 +13,7 @@ LL + 0.0 => todo!(),
1313 |
1414
1515error: redundant guard
16- --> tests/ui/redundant_guards.rs:29 :14
16+ --> tests/ui/redundant_guards.rs:28 :14
1717 |
1818LL | x if x == FloatWrapper(0.0) => todo!(),
1919 | ^^^^^^^^^^^^^^^^^^^^^^
@@ -25,7 +25,7 @@ LL + FloatWrapper(0.0) => todo!(),
2525 |
2626
2727error: redundant guard
28- --> tests/ui/redundant_guards.rs:45 :20
28+ --> tests/ui/redundant_guards.rs:44 :20
2929 |
3030LL | C(x, y) if let 1 = y => ..,
3131 | ^^^^^^^^^
@@ -37,7 +37,7 @@ LL + C(x, 1) => ..,
3737 |
3838
3939error: redundant guard
40- --> tests/ui/redundant_guards.rs:52 :20
40+ --> tests/ui/redundant_guards.rs:51 :20
4141 |
4242LL | Some(x) if matches!(x, Some(1) if true) => ..,
4343 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -49,7 +49,7 @@ LL + Some(Some(1)) if true => ..,
4949 |
5050
5151error: redundant guard
52- --> tests/ui/redundant_guards.rs:54 :20
52+ --> tests/ui/redundant_guards.rs:53 :20
5353 |
5454LL | Some(x) if matches!(x, Some(1)) => {
5555 | ^^^^^^^^^^^^^^^^^^^^
@@ -61,7 +61,7 @@ LL + Some(Some(1)) => {
6161 |
6262
6363error: redundant guard
64- --> tests/ui/redundant_guards.rs:59 :20
64+ --> tests/ui/redundant_guards.rs:58 :20
6565 |
6666LL | Some(x) if let Some(1) = x => ..,
6767 | ^^^^^^^^^^^^^^^
@@ -73,7 +73,7 @@ LL + Some(Some(1)) => ..,
7373 |
7474
7575error: redundant guard
76- --> tests/ui/redundant_guards.rs:61 :20
76+ --> tests/ui/redundant_guards.rs:60 :20
7777 |
7878LL | Some(x) if x == Some(2) => ..,
7979 | ^^^^^^^^^^^^
@@ -85,7 +85,7 @@ LL + Some(Some(2)) => ..,
8585 |
8686
8787error: redundant guard
88- --> tests/ui/redundant_guards.rs:63 :20
88+ --> tests/ui/redundant_guards.rs:62 :20
8989 |
9090LL | Some(x) if Some(2) == x => ..,
9191 | ^^^^^^^^^^^^
@@ -97,7 +97,7 @@ LL + Some(Some(2)) => ..,
9797 |
9898
9999error: redundant guard
100- --> tests/ui/redundant_guards.rs:89 :20
100+ --> tests/ui/redundant_guards.rs:88 :20
101101 |
102102LL | B { e } if matches!(e, Some(A(2))) => ..,
103103 | ^^^^^^^^^^^^^^^^^^^^^^^
@@ -109,7 +109,7 @@ LL + B { e: Some(A(2)) } => ..,
109109 |
110110
111111error: redundant guard
112- --> tests/ui/redundant_guards.rs:127 :20
112+ --> tests/ui/redundant_guards.rs:126 :20
113113 |
114114LL | E::A(y) if y == "not from an or pattern" => {},
115115 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -121,7 +121,7 @@ LL + E::A("not from an or pattern") => {},
121121 |
122122
123123error: redundant guard
124- --> tests/ui/redundant_guards.rs:135 :14
124+ --> tests/ui/redundant_guards.rs:134 :14
125125 |
126126LL | x if matches!(x, Some(0)) => ..,
127127 | ^^^^^^^^^^^^^^^^^^^^
@@ -133,7 +133,7 @@ LL + Some(0) => ..,
133133 |
134134
135135error: redundant guard
136- --> tests/ui/redundant_guards.rs:143 :14
136+ --> tests/ui/redundant_guards.rs:142 :14
137137 |
138138LL | i if i == -1 => {},
139139 | ^^^^^^^
@@ -145,7 +145,7 @@ LL + -1 => {},
145145 |
146146
147147error: redundant guard
148- --> tests/ui/redundant_guards.rs:145 :14
148+ --> tests/ui/redundant_guards.rs:144 :14
149149 |
150150LL | i if i == 1 => {},
151151 | ^^^^^^
@@ -157,7 +157,7 @@ LL + 1 => {},
157157 |
158158
159159error: redundant guard
160- --> tests/ui/redundant_guards.rs:208 :28
160+ --> tests/ui/redundant_guards.rs:207 :28
161161 |
162162LL | Some(ref x) if x == &1 => {},
163163 | ^^^^^^^
@@ -169,7 +169,7 @@ LL + Some(1) => {},
169169 |
170170
171171error: redundant guard
172- --> tests/ui/redundant_guards.rs:210 :28
172+ --> tests/ui/redundant_guards.rs:209 :28
173173 |
174174LL | Some(ref x) if &1 == x => {},
175175 | ^^^^^^^
@@ -181,7 +181,7 @@ LL + Some(1) => {},
181181 |
182182
183183error: redundant guard
184- --> tests/ui/redundant_guards.rs:212 :28
184+ --> tests/ui/redundant_guards.rs:211 :28
185185 |
186186LL | Some(ref x) if let &2 = x => {},
187187 | ^^^^^^^^^^
@@ -193,7 +193,7 @@ LL + Some(2) => {},
193193 |
194194
195195error: redundant guard
196- --> tests/ui/redundant_guards.rs:214 :28
196+ --> tests/ui/redundant_guards.rs:213 :28
197197 |
198198LL | Some(ref x) if matches!(x, &3) => {},
199199 | ^^^^^^^^^^^^^^^
@@ -205,7 +205,7 @@ LL + Some(3) => {},
205205 |
206206
207207error: redundant guard
208- --> tests/ui/redundant_guards.rs:235 :32
208+ --> tests/ui/redundant_guards.rs:234 :32
209209 |
210210LL | B { ref c, .. } if c == &1 => {},
211211 | ^^^^^^^
@@ -217,7 +217,7 @@ LL + B { c: 1, .. } => {},
217217 |
218218
219219error: redundant guard
220- --> tests/ui/redundant_guards.rs:237 :32
220+ --> tests/ui/redundant_guards.rs:236 :32
221221 |
222222LL | B { ref c, .. } if &1 == c => {},
223223 | ^^^^^^^
@@ -229,7 +229,7 @@ LL + B { c: 1, .. } => {},
229229 |
230230
231231error: redundant guard
232- --> tests/ui/redundant_guards.rs:239 :32
232+ --> tests/ui/redundant_guards.rs:238 :32
233233 |
234234LL | B { ref c, .. } if let &1 = c => {},
235235 | ^^^^^^^^^^
@@ -241,7 +241,7 @@ LL + B { c: 1, .. } => {},
241241 |
242242
243243error: redundant guard
244- --> tests/ui/redundant_guards.rs:241 :32
244+ --> tests/ui/redundant_guards.rs:240 :32
245245 |
246246LL | B { ref c, .. } if matches!(c, &1) => {},
247247 | ^^^^^^^^^^^^^^^
@@ -253,7 +253,7 @@ LL + B { c: 1, .. } => {},
253253 |
254254
255255error: redundant guard
256- --> tests/ui/redundant_guards.rs:252 :26
256+ --> tests/ui/redundant_guards.rs:251 :26
257257 |
258258LL | Some(Some(x)) if x.is_empty() => {},
259259 | ^^^^^^^^^^^^
@@ -265,7 +265,7 @@ LL + Some(Some("")) => {},
265265 |
266266
267267error: redundant guard
268- --> tests/ui/redundant_guards.rs:264 :26
268+ --> tests/ui/redundant_guards.rs:263 :26
269269 |
270270LL | Some(Some(x)) if x.is_empty() => {},
271271 | ^^^^^^^^^^^^
@@ -277,7 +277,7 @@ LL + Some(Some([])) => {},
277277 |
278278
279279error: redundant guard
280- --> tests/ui/redundant_guards.rs:270 :26
280+ --> tests/ui/redundant_guards.rs:269 :26
281281 |
282282LL | Some(Some(x)) if x.is_empty() => {},
283283 | ^^^^^^^^^^^^
@@ -289,7 +289,7 @@ LL + Some(Some([])) => {},
289289 |
290290
291291error: redundant guard
292- --> tests/ui/redundant_guards.rs:282 :26
292+ --> tests/ui/redundant_guards.rs:281 :26
293293 |
294294LL | Some(Some(x)) if x.starts_with(&[]) => {},
295295 | ^^^^^^^^^^^^^^^^^^
@@ -301,7 +301,7 @@ LL + Some(Some([..])) => {},
301301 |
302302
303303error: redundant guard
304- --> tests/ui/redundant_guards.rs:288 :26
304+ --> tests/ui/redundant_guards.rs:287 :26
305305 |
306306LL | Some(Some(x)) if x.starts_with(&[1]) => {},
307307 | ^^^^^^^^^^^^^^^^^^^
@@ -313,7 +313,7 @@ LL + Some(Some([1, ..])) => {},
313313 |
314314
315315error: redundant guard
316- --> tests/ui/redundant_guards.rs:294 :26
316+ --> tests/ui/redundant_guards.rs:293 :26
317317 |
318318LL | Some(Some(x)) if x.starts_with(&[1, 2]) => {},
319319 | ^^^^^^^^^^^^^^^^^^^^^^
@@ -325,7 +325,7 @@ LL + Some(Some([1, 2, ..])) => {},
325325 |
326326
327327error: redundant guard
328- --> tests/ui/redundant_guards.rs:300 :26
328+ --> tests/ui/redundant_guards.rs:299 :26
329329 |
330330LL | Some(Some(x)) if x.ends_with(&[1, 2]) => {},
331331 | ^^^^^^^^^^^^^^^^^^^^
@@ -337,7 +337,7 @@ LL + Some(Some([.., 1, 2])) => {},
337337 |
338338
339339error: redundant guard
340- --> tests/ui/redundant_guards.rs:323 :18
340+ --> tests/ui/redundant_guards.rs:322 :18
341341 |
342342LL | y if y.is_empty() => {},
343343 | ^^^^^^^^^^^^
@@ -349,7 +349,7 @@ LL + "" => {},
349349 |
350350
351351error: redundant guard
352- --> tests/ui/redundant_guards.rs:342 :22
352+ --> tests/ui/redundant_guards.rs:341 :22
353353 |
354354LL | y if y.is_empty() => {},
355355 | ^^^^^^^^^^^^
0 commit comments