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

Fix bad while_let_on_iterator suggestion. #3672

Merged
merged 1 commit into from Jan 19, 2019
Merged

Fix bad while_let_on_iterator suggestion. #3672

merged 1 commit into from Jan 19, 2019

Conversation

ghost
Copy link

@ghost ghost commented Jan 19, 2019

Don't suggest a for loop if the iterator is used inside the while loop.

Closes #3670

Don't suggest a `for` loop if the iterator is used inside the `while` loop.

Closes #3670
@ghost
Copy link
Author

ghost commented Jan 19, 2019

The build is failing due to rustc changes.
I'll retry after #3671 is merged.

@oli-obk
Copy link
Contributor

oli-obk commented Jan 19, 2019

@bors r+

Thanks, this has been a problem since forever!

@bors
Copy link
Contributor

bors commented Jan 19, 2019

📌 Commit a773276 has been approved by oli-obk

bors added a commit that referenced this pull request Jan 19, 2019
Fix bad `while_let_on_iterator` suggestion.

Don't suggest a `for` loop if the iterator is used inside the `while` loop.

Closes #3670
@bors
Copy link
Contributor

bors commented Jan 19, 2019

⌛ Testing commit a773276 with merge 751d82e...

@bors
Copy link
Contributor

bors commented Jan 19, 2019

☀️ Test successful - checks-travis, status-appveyor
Approved by: oli-obk
Pushing 751d82e to master...

@bors bors merged commit a773276 into rust-lang:master Jan 19, 2019
@ghost ghost mentioned this pull request Feb 5, 2019
@ghost ghost deleted the fix-3670 branch May 11, 2019 08:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants