-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
False positive in used_underscore_binding on _next
in a for-loop
#1846
Comments
Interesting. They must've changed how a for loop is represented. |
Ah, looks like rust-lang/rust#42634. |
This would have been fixed by rust-lang/rust#39766, but unfortunately I can't really tell why that PR was bad and thus delayed... |
…ielb1 change binding name of for loop lowering to appease clippy With the latest change to for loop lowering (rust-lang#42634), a `_next` binding was introduced. Unfortunately, this [disturbs](https://github.com/Manishearth/rust-clippy/issues/1846) clippy's `used_underscore_binding` lint. This commit just renames the binding to `__next` so clippy will be happy. It should have no other effect.
Fixed by rust-lang/rust#42871 in rustc 1.20.0-nightly (f590a44 2017-06-27). Thanks! |
I'm fixing the for loop repr problems... All our |
The text was updated successfully, but these errors were encountered: