@@ -132,7 +132,7 @@ LL + 1 => {},
132
132
|
133
133
134
134
error: redundant guard
135
- --> tests/ui/redundant_guards.rs:174 :28
135
+ --> tests/ui/redundant_guards.rs:186 :28
136
136
|
137
137
LL | Some(ref x) if x == &1 => {},
138
138
| ^^^^^^^
@@ -144,7 +144,7 @@ LL + Some(1) => {},
144
144
|
145
145
146
146
error: redundant guard
147
- --> tests/ui/redundant_guards.rs:175 :28
147
+ --> tests/ui/redundant_guards.rs:187 :28
148
148
|
149
149
LL | Some(ref x) if &1 == x => {},
150
150
| ^^^^^^^
@@ -156,7 +156,7 @@ LL + Some(1) => {},
156
156
|
157
157
158
158
error: redundant guard
159
- --> tests/ui/redundant_guards.rs:176 :28
159
+ --> tests/ui/redundant_guards.rs:188 :28
160
160
|
161
161
LL | Some(ref x) if let &2 = x => {},
162
162
| ^^^^^^^^^^
@@ -168,7 +168,7 @@ LL + Some(2) => {},
168
168
|
169
169
170
170
error: redundant guard
171
- --> tests/ui/redundant_guards.rs:177 :28
171
+ --> tests/ui/redundant_guards.rs:189 :28
172
172
|
173
173
LL | Some(ref x) if matches!(x, &3) => {},
174
174
| ^^^^^^^^^^^^^^^
@@ -180,7 +180,7 @@ LL + Some(3) => {},
180
180
|
181
181
182
182
error: redundant guard
183
- --> tests/ui/redundant_guards.rs:197 :32
183
+ --> tests/ui/redundant_guards.rs:209 :32
184
184
|
185
185
LL | B { ref c, .. } if c == &1 => {},
186
186
| ^^^^^^^
@@ -192,7 +192,7 @@ LL + B { c: 1, .. } => {},
192
192
|
193
193
194
194
error: redundant guard
195
- --> tests/ui/redundant_guards.rs:198 :32
195
+ --> tests/ui/redundant_guards.rs:210 :32
196
196
|
197
197
LL | B { ref c, .. } if &1 == c => {},
198
198
| ^^^^^^^
@@ -204,7 +204,7 @@ LL + B { c: 1, .. } => {},
204
204
|
205
205
206
206
error: redundant guard
207
- --> tests/ui/redundant_guards.rs:199 :32
207
+ --> tests/ui/redundant_guards.rs:211 :32
208
208
|
209
209
LL | B { ref c, .. } if let &1 = c => {},
210
210
| ^^^^^^^^^^
@@ -216,7 +216,7 @@ LL + B { c: 1, .. } => {},
216
216
|
217
217
218
218
error: redundant guard
219
- --> tests/ui/redundant_guards.rs:200 :32
219
+ --> tests/ui/redundant_guards.rs:212 :32
220
220
|
221
221
LL | B { ref c, .. } if matches!(c, &1) => {},
222
222
| ^^^^^^^^^^^^^^^
@@ -228,7 +228,7 @@ LL + B { c: 1, .. } => {},
228
228
|
229
229
230
230
error: redundant guard
231
- --> tests/ui/redundant_guards.rs:210 :26
231
+ --> tests/ui/redundant_guards.rs:222 :26
232
232
|
233
233
LL | Some(Some(x)) if x.is_empty() => {},
234
234
| ^^^^^^^^^^^^
@@ -240,7 +240,7 @@ LL + Some(Some("")) => {},
240
240
|
241
241
242
242
error: redundant guard
243
- --> tests/ui/redundant_guards.rs:221 :26
243
+ --> tests/ui/redundant_guards.rs:233 :26
244
244
|
245
245
LL | Some(Some(x)) if x.is_empty() => {},
246
246
| ^^^^^^^^^^^^
@@ -252,7 +252,7 @@ LL + Some(Some([])) => {},
252
252
|
253
253
254
254
error: redundant guard
255
- --> tests/ui/redundant_guards.rs:226 :26
255
+ --> tests/ui/redundant_guards.rs:238 :26
256
256
|
257
257
LL | Some(Some(x)) if x.is_empty() => {},
258
258
| ^^^^^^^^^^^^
@@ -264,7 +264,7 @@ LL + Some(Some([])) => {},
264
264
|
265
265
266
266
error: redundant guard
267
- --> tests/ui/redundant_guards.rs:237 :26
267
+ --> tests/ui/redundant_guards.rs:249 :26
268
268
|
269
269
LL | Some(Some(x)) if x.starts_with(&[]) => {},
270
270
| ^^^^^^^^^^^^^^^^^^
@@ -276,7 +276,7 @@ LL + Some(Some([..])) => {},
276
276
|
277
277
278
278
error: redundant guard
279
- --> tests/ui/redundant_guards.rs:242 :26
279
+ --> tests/ui/redundant_guards.rs:254 :26
280
280
|
281
281
LL | Some(Some(x)) if x.starts_with(&[1]) => {},
282
282
| ^^^^^^^^^^^^^^^^^^^
@@ -288,7 +288,7 @@ LL + Some(Some([1, ..])) => {},
288
288
|
289
289
290
290
error: redundant guard
291
- --> tests/ui/redundant_guards.rs:247 :26
291
+ --> tests/ui/redundant_guards.rs:259 :26
292
292
|
293
293
LL | Some(Some(x)) if x.starts_with(&[1, 2]) => {},
294
294
| ^^^^^^^^^^^^^^^^^^^^^^
@@ -300,7 +300,7 @@ LL + Some(Some([1, 2, ..])) => {},
300
300
|
301
301
302
302
error: redundant guard
303
- --> tests/ui/redundant_guards.rs:252 :26
303
+ --> tests/ui/redundant_guards.rs:264 :26
304
304
|
305
305
LL | Some(Some(x)) if x.ends_with(&[1, 2]) => {},
306
306
| ^^^^^^^^^^^^^^^^^^^^
@@ -312,7 +312,7 @@ LL + Some(Some([.., 1, 2])) => {},
312
312
|
313
313
314
314
error: redundant guard
315
- --> tests/ui/redundant_guards.rs:274 :18
315
+ --> tests/ui/redundant_guards.rs:286 :18
316
316
|
317
317
LL | y if y.is_empty() => {},
318
318
| ^^^^^^^^^^^^
@@ -324,7 +324,7 @@ LL + "" => {},
324
324
|
325
325
326
326
error: redundant guard
327
- --> tests/ui/redundant_guards.rs:293 :22
327
+ --> tests/ui/redundant_guards.rs:305 :22
328
328
|
329
329
LL | y if y.is_empty() => {},
330
330
| ^^^^^^^^^^^^
0 commit comments