Skip to content

Fix explicit_counter_loop FP when the counter is only modified inside the else block of let...else binding.#17023

Open
relaxcn wants to merge 1 commit into
rust-lang:masterfrom
relaxcn:explicit_counter_loop
Open

Fix explicit_counter_loop FP when the counter is only modified inside the else block of let...else binding.#17023
relaxcn wants to merge 1 commit into
rust-lang:masterfrom
relaxcn:explicit_counter_loop

Conversation

@relaxcn
Copy link
Copy Markdown
Contributor

@relaxcn relaxcn commented May 16, 2026

Fixes: #17014

changelog: [explicit_counter_loop]: Fix FP when the counter is only modified inside the else block of let...else binding.

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label May 16, 2026
@rustbot
Copy link
Copy Markdown
Collaborator

rustbot commented May 16, 2026

r? @Jarcho

rustbot has assigned @Jarcho.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

Why was this reviewer chosen?

The reviewer was selected based on:

  • Owners of files modified in this PR: 7 candidates
  • 7 candidates expanded to 7 candidates
  • Random selection from Jarcho, llogiq, samueltardieu

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.

Lint explicit_counter_loop incorrectly triggers when incrementing in let ... else ...

3 participants