Skip to content

Commit 6f6dd88

Browse files
committed
test: update tests
1 parent 5658040 commit 6f6dd88

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/ui/search_is_some_fixable_none.stderr

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -286,19 +286,19 @@ error: called `is_none()` after searching an `Iterator` with `find`
286286
--> $DIR/search_is_some_fixable_none.rs:235:9
287287
|
288288
LL | v.iter().find(|x| **x == 42).is_none().then(computations);
289-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `!_.any()` instead: `(!v.iter().any(|x| *x == 42))`
289+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `(!v.iter().any(|x| *x == 42))`
290290

291291
error: called `is_none()` after searching an `Iterator` with `find`
292292
--> $DIR/search_is_some_fixable_none.rs:240:9
293293
|
294294
LL | v.iter().find(|x| **x == 42).is_none().then_some(0);
295-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `!_.any()` instead: `(!v.iter().any(|x| *x == 42))`
295+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `(!v.iter().any(|x| *x == 42))`
296296

297297
error: called `is_none()` after searching an `Iterator` with `find`
298298
--> $DIR/search_is_some_fixable_none.rs:242:17
299299
|
300300
LL | Foo.bar(v.iter().find(|x| **x == 42).is_none());
301-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `!_.any()` instead: `!v.iter().any(|x| *x == 42)`
301+
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `!v.iter().any(|x| *x == 42)`
302302

303303
error: aborting due to 46 previous errors
304304

0 commit comments

Comments
 (0)