@@ -283,22 +283,76 @@ LL | let _ = v.iter().find(|fp| test_u32_2(*fp.field)).is_none();
283
283
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `!v.iter().any(|fp| test_u32_2(*fp.field))`
284
284
285
285
error: called `is_none()` after searching an `Iterator` with `find`
286
- --> $DIR/search_is_some_fixable_none.rs:235:9
286
+ --> $DIR/search_is_some_fixable_none.rs:235:17
287
+ |
288
+ LL | let _ = v.iter().find(|x| **x == 42).is_none();
289
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `!v.iter().any(|x| *x == 42)`
290
+
291
+ error: called `is_none()` after searching an `Iterator` with `find`
292
+ --> $DIR/search_is_some_fixable_none.rs:236:17
293
+ |
294
+ LL | Foo.bar(v.iter().find(|x| **x == 42).is_none());
295
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `!v.iter().any(|x| *x == 42)`
296
+
297
+ error: called `is_none()` after searching an `Iterator` with `find`
298
+ --> $DIR/search_is_some_fixable_none.rs:241:9
287
299
|
288
300
LL | v.iter().find(|x| **x == 42).is_none().then(computations);
289
301
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `(!v.iter().any(|x| *x == 42))`
290
302
291
303
error: called `is_none()` after searching an `Iterator` with `find`
292
- --> $DIR/search_is_some_fixable_none.rs:240 :9
304
+ --> $DIR/search_is_some_fixable_none.rs:246 :9
293
305
|
294
306
LL | v.iter().find(|x| **x == 42).is_none().then_some(0);
295
307
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `(!v.iter().any(|x| *x == 42))`
296
308
297
- error: called `is_none()` after searching an `Iterator` with `find`
298
- --> $DIR/search_is_some_fixable_none.rs:242 :17
309
+ error: called `is_none()` after calling `find()` on a string
310
+ --> $DIR/search_is_some_fixable_none.rs:251 :17
299
311
|
300
- LL | Foo.bar(v.iter().find(|x| **x == 42).is_none());
301
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `!v.iter().any(|x| *x == 42)`
312
+ LL | let _ = s.find("world").is_none();
313
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `!s.contains("world")`
314
+
315
+ error: called `is_none()` after calling `find()` on a string
316
+ --> $DIR/search_is_some_fixable_none.rs:252:17
317
+ |
318
+ LL | Foo.bar(s.find("world").is_none());
319
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `!s.contains("world")`
320
+
321
+ error: called `is_none()` after calling `find()` on a string
322
+ --> $DIR/search_is_some_fixable_none.rs:254:17
323
+ |
324
+ LL | let _ = s.find("world").is_none();
325
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `!s.contains("world")`
326
+
327
+ error: called `is_none()` after calling `find()` on a string
328
+ --> $DIR/search_is_some_fixable_none.rs:255:17
329
+ |
330
+ LL | Foo.bar(s.find("world").is_none());
331
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `!s.contains("world")`
332
+
333
+ error: called `is_none()` after calling `find()` on a string
334
+ --> $DIR/search_is_some_fixable_none.rs:260:17
335
+ |
336
+ LL | let _ = s.find("world").is_none().then(computations);
337
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `(!s.contains("world"))`
338
+
339
+ error: called `is_none()` after calling `find()` on a string
340
+ --> $DIR/search_is_some_fixable_none.rs:262:17
341
+ |
342
+ LL | let _ = s.find("world").is_none().then(computations);
343
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `(!s.contains("world"))`
344
+
345
+ error: called `is_none()` after calling `find()` on a string
346
+ --> $DIR/search_is_some_fixable_none.rs:267:17
347
+ |
348
+ LL | let _ = s.find("world").is_none().then_some(0);
349
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `(!s.contains("world"))`
350
+
351
+ error: called `is_none()` after calling `find()` on a string
352
+ --> $DIR/search_is_some_fixable_none.rs:269:17
353
+ |
354
+ LL | let _ = s.find("world").is_none().then_some(0);
355
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `(!s.contains("world"))`
302
356
303
- error: aborting due to 46 previous errors
357
+ error: aborting due to 55 previous errors
304
358
0 commit comments