mirror of
https://github.com/rust-lang/rust-clippy
synced 2025-03-02 14:27:19 +00:00
Fix ICE in `loops` module changelog: Fix ICE related to `needless_collect` when a call to `iter()` was not present. I went for restoring the old suggestion of `next().is_some()` over `get(0).is_some()` given that `iter()` is not necessarily present (could be e.g. `into_iter()` or `iter_mut()`) and that the old suggestion could change semantics, e.g. a call to `filter()` could be present between `iter()` and the collect part. Fixes #5872 |
||
---|---|---|
.. | ||
src | ||
Cargo.toml | ||
README.md |