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 false positive in explicit_counter_loop lint #4803

Merged
merged 1 commit into from
Nov 11, 2019
Merged

Fix false positive in explicit_counter_loop lint #4803

merged 1 commit into from
Nov 11, 2019

Conversation

tomprogrammer
Copy link

@tomprogrammer tomprogrammer commented Nov 11, 2019

When the counter was used in a closure after the loop the lint didn't detect the
usage of the counter correctly.

changelog: Fix false positive in explicit_counter_loop

Fixes #4732

When the counter was used in a closure after the loop the lint didn't detect the
usage of the counter correctly.
@phansch
Copy link
Member

phansch commented Nov 11, 2019

@bors r+ thanks!

@bors
Copy link
Collaborator

bors commented Nov 11, 2019

📌 Commit c88afce has been approved by phansch

@bors
Copy link
Collaborator

bors commented Nov 11, 2019

⌛ Testing commit c88afce with merge 92e41c3...

bors added a commit that referenced this pull request Nov 11, 2019
Fix false positive in explicit_counter_loop lint

When the counter was used in a closure after the loop the lint didn't detect the
usage of the counter correctly.

Fixes #4732
@bors
Copy link
Collaborator

bors commented Nov 11, 2019

💔 Test failed - status-appveyor

@phansch
Copy link
Member

phansch commented Nov 11, 2019

@bors retry (added the changelog to the PR body)

@bors
Copy link
Collaborator

bors commented Nov 11, 2019

⌛ Testing commit c88afce with merge 8b9193b...

bors added a commit that referenced this pull request Nov 11, 2019
Fix false positive in explicit_counter_loop lint

When the counter was used in a closure after the loop the lint didn't detect the
usage of the counter correctly.

Fix false positive in `explicit_counter_loop`

Fixes #4732
@bors
Copy link
Collaborator

bors commented Nov 11, 2019

💔 Test failed - status-appveyor

@phansch
Copy link
Member

phansch commented Nov 11, 2019

@bors retry

@bors
Copy link
Collaborator

bors commented Nov 11, 2019

⌛ Testing commit c88afce with merge 609bc74...

bors added a commit that referenced this pull request Nov 11, 2019
Fix false positive in explicit_counter_loop lint

When the counter was used in a closure after the loop the lint didn't detect the
usage of the counter correctly.

Fix false positive in `explicit_counter_loop`

Fixes #4732
@bors
Copy link
Collaborator

bors commented Nov 11, 2019

💔 Test failed - checks-travis

@phansch
Copy link
Member

phansch commented Nov 11, 2019

@bors retry

@bors
Copy link
Collaborator

bors commented Nov 11, 2019

⌛ Testing commit c88afce with merge 2646b10...

bors added a commit that referenced this pull request Nov 11, 2019
Fix false positive in explicit_counter_loop lint

When the counter was used in a closure after the loop the lint didn't detect the
usage of the counter correctly.

changelog: Fix false positive in `explicit_counter_loop`

Fixes #4732
@bors
Copy link
Collaborator

bors commented Nov 11, 2019

☀️ Test successful - checks-travis, status-appveyor
Approved by: phansch
Pushing 2646b10 to master...

@bors bors merged commit c88afce into rust-lang:master Nov 11, 2019
@tomprogrammer tomprogrammer deleted the issue-4732 branch November 12, 2019 09:00
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.

False positive explicit_counter_loop when the counter is used in a closure after the loop
3 participants