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

change applicability type to MaybeIncorrect in explicit_counter_loop #9149

Merged
merged 2 commits into from
Jul 12, 2022

Conversation

kyoto7250
Copy link
Contributor

close #9013

This PR changes applicability type to MaybeIncorrect, because the suggestion is not MachineApplicable.

changelog: change applicability type to MaybeIncorrect in explicit_counter_loop

@rust-highfive
Copy link

r? @Jarcho

(rust-highfive has picked a reviewer for you, use r? to override)

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label Jul 11, 2022
applicability,
|diag| {
diag.span_suggestion(
expr.span.with_hi(arg.span.hi()),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be done once before the span_lint call.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I commited 134d0de

@kyoto7250 kyoto7250 marked this pull request as ready for review July 12, 2022 02:51
@kyoto7250 kyoto7250 requested a review from Jarcho July 12, 2022 02:58
@Jarcho
Copy link
Contributor

Jarcho commented Jul 12, 2022

Thank you.

@bors r+

@bors
Copy link
Collaborator

bors commented Jul 12, 2022

📌 Commit 134d0de has been approved by Jarcho

It is now in the queue for this repository.

@bors
Copy link
Collaborator

bors commented Jul 12, 2022

⌛ Testing commit 134d0de with merge eabad8e...

@bors
Copy link
Collaborator

bors commented Jul 12, 2022

☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test
Approved by: Jarcho
Pushing eabad8e to master...

@bors bors merged commit eabad8e into rust-lang:master Jul 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in 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.

Incorrect fix for variable being used as a loop counter
4 participants