rust-lang / rust-clippy

A bunch of lints to catch common mistakes and improve your Rust code. Book: https://doc.rust-lang.org/clippy/
https://rust-lang.github.io/rust-clippy/
Other
10.89k stars 1.46k forks source link

Improve documentation of `needless_range_loop` #12699

Closed tatounee closed 3 weeks ago

tatounee commented 3 weeks ago

fixes #6930

Add a note telling the user that the suggestions might remove (maybe expected) iterations in for loop.

changelog: [needless_range_loop]: Improve documentation

rustbot commented 3 weeks ago

Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @blyxyas (or someone else) some time within the next two weeks.

Please see the contribution instructions for more information. Namely, in order to ensure the minimum review times lag, PR authors and assigned reviewers should ensure that the review label (S-waiting-on-review and S-waiting-on-author) stays updated, invoking these commands when appropriate: