-
Notifications
You must be signed in to change notification settings - Fork 1.7k
explicit_counter_loop false positive #3308
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
JoshMcguigan
added a commit
to JoshMcguigan/rust-clippy
that referenced
this issue
Oct 13, 2018
Thanks for the report. I believe PR #3310 resolves this issue. |
oli-obk
added a commit
that referenced
this issue
Oct 13, 2018
explicit_counter_loop fix #3308 false positive
flip1995
pushed a commit
to flip1995/rust-clippy
that referenced
this issue
May 5, 2020
Changes: ```` fix for rustc master mem_forget: fix syntax error in code sample explicit_counter_loop fix rust-lang#3308 false positive new_ret_no_self test remove tool lints cfg flag Added new_ret_no_self exception to clippy to pass dogfood tests Removed new_ret_no_self tests from method.rs new_ret_no_self correctly lint impl return Removed unused variables new_ret_no_self fix false positive for impl trait return with associated type self new_ret_no_self corrected panic and added test stderr new_ret_no_self added positive test cases Fix some more `stutter` warnings unused unit lint Install Windows SDK 10.0 on travis cmp_owned refactor cmp_owned correct error message if rhs is deref Add a comment reminding to update README if the default changes Specify which categories are enabled by default Only run markdown linter on linux Move Travis Windows build to allowed failures Add Travis windows build Fix `doc_markdown` lints Fix `stutter` lints Fix `similar_names` warnings cmp_owned current suggestion for multiple deref cmp_owned add test for multiple dereference Corrected single-character string constant used as pattern found in dogfood test Fixes 3289, cmp_owned wording and false positive ````
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The
explicit_counter_loop
lint wrongly detects that I'm using a variable as a loop counter. The code snippet is below.And Clippy suggests "fixing" it in a way that will clearly change its function:
The text was updated successfully, but these errors were encountered: