Skip to content
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

change binding name of for loop lowering to appease clippy #42871

Merged
merged 1 commit into from
Jun 27, 2017

Conversation

llogiq
Copy link
Contributor

@llogiq llogiq commented Jun 24, 2017

With the latest change to for loop lowering (#42634), a _next binding was introduced.
Unfortunately, this disturbs 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.

With the latest change to for loop lowering, a `_next` binding was introduced.
Unfortunately, this disturbs 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.
@rust-highfive
Copy link
Contributor

r? @arielb1

(rust_highfive has picked a reviewer for you, use r? to override)

@Mark-Simulacrum Mark-Simulacrum added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jun 24, 2017
@llogiq
Copy link
Contributor Author

llogiq commented Jun 25, 2017

Note that the right way to solve this would be #39766 but progress on that appears to have stalled, so this would be a simple and effective stop-gap measure.

@arielb1
Copy link
Contributor

arielb1 commented Jun 26, 2017

@bors r+

@bors
Copy link
Collaborator

bors commented Jun 26, 2017

📌 Commit ebe71fd has been approved by arielb1

@arielb1
Copy link
Contributor

arielb1 commented Jun 26, 2017

@bors rollup

frewsxcv added a commit to frewsxcv/rust that referenced this pull request 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.
bors added a commit that referenced this pull request Jun 27, 2017
Rollup of 5 pull requests

- Successful merges: #42519, #42871, #42874, #42905, #42917
- Failed merges:
@bors bors merged commit ebe71fd into rust-lang:master Jun 27, 2017
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants