2020-08-11 08:43:21 -05:00
|
|
|
error: avoid using `collect()` when not needed
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/crashes/ice-5872.rs:4:39
|
2020-08-11 08:43:21 -05:00
|
|
|
|
|
|
|
|
LL | let _ = vec![1, 2, 3].into_iter().collect::<Vec<_>>().is_empty();
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace with: `next().is_none()`
|
|
|
|
|
|
|
|
|
= note: `-D clippy::needless-collect` implied by `-D warnings`
|
2023-08-01 07:02:21 -05:00
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::needless_collect)]`
|
2020-08-11 08:43:21 -05:00
|
|
|
|
2023-11-21 11:08:42 -06:00
|
|
|
error: aborting due to 1 previous error
|
2020-08-11 08:43:21 -05:00
|
|
|
|