-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
False positive in used_underscore_binding on _next
in a for-loop
#1846
Labels
C-bug
Category: Clippy is not doing the correct thing
I-false-positive
Issue: The lint was triggered on code it shouldn't have
Comments
This was referenced Jun 23, 2017
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... |
frewsxcv
referenced
this issue
in frewsxcv/rust
Jun 27, 2017
…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 |
Merged
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
Labels
C-bug
Category: Clippy is not doing the correct thing
I-false-positive
Issue: The lint was triggered on code it shouldn't have
The text was updated successfully, but these errors were encountered: