mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-08 09:38:26 +03:00
86eaeaadd9
When suggesting to replace an iterator method by `.all()` or `.any()`, make the suggestion at most `MaybeIncorrect` instead of `MachineApplicable` and warn about the fact that semantics may change because those two methods are short-circuiting. Fixes rust-lang/rust-clippy#3351 ---- changelog: [`unnecessary_fold`]: warn about possible semantics change when suggesting the use of a short-circuiting operator