@@ -132,7 +132,7 @@ LL + 1 => {},
132132 |
133133
134134error: redundant guard
135- --> tests/ui/redundant_guards.rs:174 :28
135+ --> tests/ui/redundant_guards.rs:186 :28
136136 |
137137LL | Some(ref x) if x == &1 => {},
138138 | ^^^^^^^
@@ -144,7 +144,7 @@ LL + Some(1) => {},
144144 |
145145
146146error: redundant guard
147- --> tests/ui/redundant_guards.rs:175 :28
147+ --> tests/ui/redundant_guards.rs:187 :28
148148 |
149149LL | Some(ref x) if &1 == x => {},
150150 | ^^^^^^^
@@ -156,7 +156,7 @@ LL + Some(1) => {},
156156 |
157157
158158error: redundant guard
159- --> tests/ui/redundant_guards.rs:176 :28
159+ --> tests/ui/redundant_guards.rs:188 :28
160160 |
161161LL | Some(ref x) if let &2 = x => {},
162162 | ^^^^^^^^^^
@@ -168,7 +168,7 @@ LL + Some(2) => {},
168168 |
169169
170170error: redundant guard
171- --> tests/ui/redundant_guards.rs:177 :28
171+ --> tests/ui/redundant_guards.rs:189 :28
172172 |
173173LL | Some(ref x) if matches!(x, &3) => {},
174174 | ^^^^^^^^^^^^^^^
@@ -180,7 +180,7 @@ LL + Some(3) => {},
180180 |
181181
182182error: redundant guard
183- --> tests/ui/redundant_guards.rs:197 :32
183+ --> tests/ui/redundant_guards.rs:209 :32
184184 |
185185LL | B { ref c, .. } if c == &1 => {},
186186 | ^^^^^^^
@@ -192,7 +192,7 @@ LL + B { c: 1, .. } => {},
192192 |
193193
194194error: redundant guard
195- --> tests/ui/redundant_guards.rs:198 :32
195+ --> tests/ui/redundant_guards.rs:210 :32
196196 |
197197LL | B { ref c, .. } if &1 == c => {},
198198 | ^^^^^^^
@@ -204,7 +204,7 @@ LL + B { c: 1, .. } => {},
204204 |
205205
206206error: redundant guard
207- --> tests/ui/redundant_guards.rs:199 :32
207+ --> tests/ui/redundant_guards.rs:211 :32
208208 |
209209LL | B { ref c, .. } if let &1 = c => {},
210210 | ^^^^^^^^^^
@@ -216,7 +216,7 @@ LL + B { c: 1, .. } => {},
216216 |
217217
218218error: redundant guard
219- --> tests/ui/redundant_guards.rs:200 :32
219+ --> tests/ui/redundant_guards.rs:212 :32
220220 |
221221LL | B { ref c, .. } if matches!(c, &1) => {},
222222 | ^^^^^^^^^^^^^^^
@@ -228,7 +228,7 @@ LL + B { c: 1, .. } => {},
228228 |
229229
230230error: redundant guard
231- --> tests/ui/redundant_guards.rs:210 :26
231+ --> tests/ui/redundant_guards.rs:222 :26
232232 |
233233LL | Some(Some(x)) if x.is_empty() => {},
234234 | ^^^^^^^^^^^^
@@ -240,7 +240,7 @@ LL + Some(Some("")) => {},
240240 |
241241
242242error: redundant guard
243- --> tests/ui/redundant_guards.rs:221 :26
243+ --> tests/ui/redundant_guards.rs:233 :26
244244 |
245245LL | Some(Some(x)) if x.is_empty() => {},
246246 | ^^^^^^^^^^^^
@@ -252,7 +252,7 @@ LL + Some(Some([])) => {},
252252 |
253253
254254error: redundant guard
255- --> tests/ui/redundant_guards.rs:226 :26
255+ --> tests/ui/redundant_guards.rs:238 :26
256256 |
257257LL | Some(Some(x)) if x.is_empty() => {},
258258 | ^^^^^^^^^^^^
@@ -264,7 +264,7 @@ LL + Some(Some([])) => {},
264264 |
265265
266266error: redundant guard
267- --> tests/ui/redundant_guards.rs:237 :26
267+ --> tests/ui/redundant_guards.rs:249 :26
268268 |
269269LL | Some(Some(x)) if x.starts_with(&[]) => {},
270270 | ^^^^^^^^^^^^^^^^^^
@@ -276,7 +276,7 @@ LL + Some(Some([..])) => {},
276276 |
277277
278278error: redundant guard
279- --> tests/ui/redundant_guards.rs:242 :26
279+ --> tests/ui/redundant_guards.rs:254 :26
280280 |
281281LL | Some(Some(x)) if x.starts_with(&[1]) => {},
282282 | ^^^^^^^^^^^^^^^^^^^
@@ -288,7 +288,7 @@ LL + Some(Some([1, ..])) => {},
288288 |
289289
290290error: redundant guard
291- --> tests/ui/redundant_guards.rs:247 :26
291+ --> tests/ui/redundant_guards.rs:259 :26
292292 |
293293LL | Some(Some(x)) if x.starts_with(&[1, 2]) => {},
294294 | ^^^^^^^^^^^^^^^^^^^^^^
@@ -300,7 +300,7 @@ LL + Some(Some([1, 2, ..])) => {},
300300 |
301301
302302error: redundant guard
303- --> tests/ui/redundant_guards.rs:252 :26
303+ --> tests/ui/redundant_guards.rs:264 :26
304304 |
305305LL | Some(Some(x)) if x.ends_with(&[1, 2]) => {},
306306 | ^^^^^^^^^^^^^^^^^^^^
@@ -312,7 +312,7 @@ LL + Some(Some([.., 1, 2])) => {},
312312 |
313313
314314error: redundant guard
315- --> tests/ui/redundant_guards.rs:274 :18
315+ --> tests/ui/redundant_guards.rs:286 :18
316316 |
317317LL | y if y.is_empty() => {},
318318 | ^^^^^^^^^^^^
@@ -324,7 +324,7 @@ LL + "" => {},
324324 |
325325
326326error: redundant guard
327- --> tests/ui/redundant_guards.rs:293 :22
327+ --> tests/ui/redundant_guards.rs:305 :22
328328 |
329329LL | y if y.is_empty() => {},
330330 | ^^^^^^^^^^^^
0 commit comments