1
1
error: redundant guard
2
- --> tests/ui/redundant_guards.rs:22 :14
2
+ --> tests/ui/redundant_guards.rs:21 :14
3
3
|
4
4
LL | x if x == 0.0 => todo!(),
5
5
| ^^^^^^^^
@@ -13,7 +13,7 @@ LL + 0.0 => todo!(),
13
13
|
14
14
15
15
error: redundant guard
16
- --> tests/ui/redundant_guards.rs:29 :14
16
+ --> tests/ui/redundant_guards.rs:28 :14
17
17
|
18
18
LL | x if x == FloatWrapper(0.0) => todo!(),
19
19
| ^^^^^^^^^^^^^^^^^^^^^^
@@ -25,7 +25,7 @@ LL + FloatWrapper(0.0) => todo!(),
25
25
|
26
26
27
27
error: redundant guard
28
- --> tests/ui/redundant_guards.rs:45 :20
28
+ --> tests/ui/redundant_guards.rs:44 :20
29
29
|
30
30
LL | C(x, y) if let 1 = y => ..,
31
31
| ^^^^^^^^^
@@ -37,7 +37,7 @@ LL + C(x, 1) => ..,
37
37
|
38
38
39
39
error: redundant guard
40
- --> tests/ui/redundant_guards.rs:52 :20
40
+ --> tests/ui/redundant_guards.rs:51 :20
41
41
|
42
42
LL | Some(x) if matches!(x, Some(1) if true) => ..,
43
43
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -49,7 +49,7 @@ LL + Some(Some(1)) if true => ..,
49
49
|
50
50
51
51
error: redundant guard
52
- --> tests/ui/redundant_guards.rs:54 :20
52
+ --> tests/ui/redundant_guards.rs:53 :20
53
53
|
54
54
LL | Some(x) if matches!(x, Some(1)) => {
55
55
| ^^^^^^^^^^^^^^^^^^^^
@@ -61,7 +61,7 @@ LL + Some(Some(1)) => {
61
61
|
62
62
63
63
error: redundant guard
64
- --> tests/ui/redundant_guards.rs:59 :20
64
+ --> tests/ui/redundant_guards.rs:58 :20
65
65
|
66
66
LL | Some(x) if let Some(1) = x => ..,
67
67
| ^^^^^^^^^^^^^^^
@@ -73,7 +73,7 @@ LL + Some(Some(1)) => ..,
73
73
|
74
74
75
75
error: redundant guard
76
- --> tests/ui/redundant_guards.rs:61 :20
76
+ --> tests/ui/redundant_guards.rs:60 :20
77
77
|
78
78
LL | Some(x) if x == Some(2) => ..,
79
79
| ^^^^^^^^^^^^
@@ -85,7 +85,7 @@ LL + Some(Some(2)) => ..,
85
85
|
86
86
87
87
error: redundant guard
88
- --> tests/ui/redundant_guards.rs:63 :20
88
+ --> tests/ui/redundant_guards.rs:62 :20
89
89
|
90
90
LL | Some(x) if Some(2) == x => ..,
91
91
| ^^^^^^^^^^^^
@@ -97,7 +97,7 @@ LL + Some(Some(2)) => ..,
97
97
|
98
98
99
99
error: redundant guard
100
- --> tests/ui/redundant_guards.rs:89 :20
100
+ --> tests/ui/redundant_guards.rs:88 :20
101
101
|
102
102
LL | B { e } if matches!(e, Some(A(2))) => ..,
103
103
| ^^^^^^^^^^^^^^^^^^^^^^^
@@ -109,7 +109,7 @@ LL + B { e: Some(A(2)) } => ..,
109
109
|
110
110
111
111
error: redundant guard
112
- --> tests/ui/redundant_guards.rs:127 :20
112
+ --> tests/ui/redundant_guards.rs:126 :20
113
113
|
114
114
LL | E::A(y) if y == "not from an or pattern" => {},
115
115
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -121,7 +121,7 @@ LL + E::A("not from an or pattern") => {},
121
121
|
122
122
123
123
error: redundant guard
124
- --> tests/ui/redundant_guards.rs:135 :14
124
+ --> tests/ui/redundant_guards.rs:134 :14
125
125
|
126
126
LL | x if matches!(x, Some(0)) => ..,
127
127
| ^^^^^^^^^^^^^^^^^^^^
@@ -133,7 +133,7 @@ LL + Some(0) => ..,
133
133
|
134
134
135
135
error: redundant guard
136
- --> tests/ui/redundant_guards.rs:143 :14
136
+ --> tests/ui/redundant_guards.rs:142 :14
137
137
|
138
138
LL | i if i == -1 => {},
139
139
| ^^^^^^^
@@ -145,7 +145,7 @@ LL + -1 => {},
145
145
|
146
146
147
147
error: redundant guard
148
- --> tests/ui/redundant_guards.rs:145 :14
148
+ --> tests/ui/redundant_guards.rs:144 :14
149
149
|
150
150
LL | i if i == 1 => {},
151
151
| ^^^^^^
@@ -157,7 +157,7 @@ LL + 1 => {},
157
157
|
158
158
159
159
error: redundant guard
160
- --> tests/ui/redundant_guards.rs:208 :28
160
+ --> tests/ui/redundant_guards.rs:207 :28
161
161
|
162
162
LL | Some(ref x) if x == &1 => {},
163
163
| ^^^^^^^
@@ -169,7 +169,7 @@ LL + Some(1) => {},
169
169
|
170
170
171
171
error: redundant guard
172
- --> tests/ui/redundant_guards.rs:210 :28
172
+ --> tests/ui/redundant_guards.rs:209 :28
173
173
|
174
174
LL | Some(ref x) if &1 == x => {},
175
175
| ^^^^^^^
@@ -181,7 +181,7 @@ LL + Some(1) => {},
181
181
|
182
182
183
183
error: redundant guard
184
- --> tests/ui/redundant_guards.rs:212 :28
184
+ --> tests/ui/redundant_guards.rs:211 :28
185
185
|
186
186
LL | Some(ref x) if let &2 = x => {},
187
187
| ^^^^^^^^^^
@@ -193,7 +193,7 @@ LL + Some(2) => {},
193
193
|
194
194
195
195
error: redundant guard
196
- --> tests/ui/redundant_guards.rs:214 :28
196
+ --> tests/ui/redundant_guards.rs:213 :28
197
197
|
198
198
LL | Some(ref x) if matches!(x, &3) => {},
199
199
| ^^^^^^^^^^^^^^^
@@ -205,7 +205,7 @@ LL + Some(3) => {},
205
205
|
206
206
207
207
error: redundant guard
208
- --> tests/ui/redundant_guards.rs:235 :32
208
+ --> tests/ui/redundant_guards.rs:234 :32
209
209
|
210
210
LL | B { ref c, .. } if c == &1 => {},
211
211
| ^^^^^^^
@@ -217,7 +217,7 @@ LL + B { c: 1, .. } => {},
217
217
|
218
218
219
219
error: redundant guard
220
- --> tests/ui/redundant_guards.rs:237 :32
220
+ --> tests/ui/redundant_guards.rs:236 :32
221
221
|
222
222
LL | B { ref c, .. } if &1 == c => {},
223
223
| ^^^^^^^
@@ -229,7 +229,7 @@ LL + B { c: 1, .. } => {},
229
229
|
230
230
231
231
error: redundant guard
232
- --> tests/ui/redundant_guards.rs:239 :32
232
+ --> tests/ui/redundant_guards.rs:238 :32
233
233
|
234
234
LL | B { ref c, .. } if let &1 = c => {},
235
235
| ^^^^^^^^^^
@@ -241,7 +241,7 @@ LL + B { c: 1, .. } => {},
241
241
|
242
242
243
243
error: redundant guard
244
- --> tests/ui/redundant_guards.rs:241 :32
244
+ --> tests/ui/redundant_guards.rs:240 :32
245
245
|
246
246
LL | B { ref c, .. } if matches!(c, &1) => {},
247
247
| ^^^^^^^^^^^^^^^
@@ -253,7 +253,7 @@ LL + B { c: 1, .. } => {},
253
253
|
254
254
255
255
error: redundant guard
256
- --> tests/ui/redundant_guards.rs:252 :26
256
+ --> tests/ui/redundant_guards.rs:251 :26
257
257
|
258
258
LL | Some(Some(x)) if x.is_empty() => {},
259
259
| ^^^^^^^^^^^^
@@ -265,7 +265,7 @@ LL + Some(Some("")) => {},
265
265
|
266
266
267
267
error: redundant guard
268
- --> tests/ui/redundant_guards.rs:264 :26
268
+ --> tests/ui/redundant_guards.rs:263 :26
269
269
|
270
270
LL | Some(Some(x)) if x.is_empty() => {},
271
271
| ^^^^^^^^^^^^
@@ -277,7 +277,7 @@ LL + Some(Some([])) => {},
277
277
|
278
278
279
279
error: redundant guard
280
- --> tests/ui/redundant_guards.rs:270 :26
280
+ --> tests/ui/redundant_guards.rs:269 :26
281
281
|
282
282
LL | Some(Some(x)) if x.is_empty() => {},
283
283
| ^^^^^^^^^^^^
@@ -289,7 +289,7 @@ LL + Some(Some([])) => {},
289
289
|
290
290
291
291
error: redundant guard
292
- --> tests/ui/redundant_guards.rs:282 :26
292
+ --> tests/ui/redundant_guards.rs:281 :26
293
293
|
294
294
LL | Some(Some(x)) if x.starts_with(&[]) => {},
295
295
| ^^^^^^^^^^^^^^^^^^
@@ -301,7 +301,7 @@ LL + Some(Some([..])) => {},
301
301
|
302
302
303
303
error: redundant guard
304
- --> tests/ui/redundant_guards.rs:288 :26
304
+ --> tests/ui/redundant_guards.rs:287 :26
305
305
|
306
306
LL | Some(Some(x)) if x.starts_with(&[1]) => {},
307
307
| ^^^^^^^^^^^^^^^^^^^
@@ -313,7 +313,7 @@ LL + Some(Some([1, ..])) => {},
313
313
|
314
314
315
315
error: redundant guard
316
- --> tests/ui/redundant_guards.rs:294 :26
316
+ --> tests/ui/redundant_guards.rs:293 :26
317
317
|
318
318
LL | Some(Some(x)) if x.starts_with(&[1, 2]) => {},
319
319
| ^^^^^^^^^^^^^^^^^^^^^^
@@ -325,7 +325,7 @@ LL + Some(Some([1, 2, ..])) => {},
325
325
|
326
326
327
327
error: redundant guard
328
- --> tests/ui/redundant_guards.rs:300 :26
328
+ --> tests/ui/redundant_guards.rs:299 :26
329
329
|
330
330
LL | Some(Some(x)) if x.ends_with(&[1, 2]) => {},
331
331
| ^^^^^^^^^^^^^^^^^^^^
@@ -337,7 +337,7 @@ LL + Some(Some([.., 1, 2])) => {},
337
337
|
338
338
339
339
error: redundant guard
340
- --> tests/ui/redundant_guards.rs:323 :18
340
+ --> tests/ui/redundant_guards.rs:322 :18
341
341
|
342
342
LL | y if y.is_empty() => {},
343
343
| ^^^^^^^^^^^^
@@ -349,7 +349,7 @@ LL + "" => {},
349
349
|
350
350
351
351
error: redundant guard
352
- --> tests/ui/redundant_guards.rs:342 :22
352
+ --> tests/ui/redundant_guards.rs:341 :22
353
353
|
354
354
LL | y if y.is_empty() => {},
355
355
| ^^^^^^^^^^^^
0 commit comments