Skip to content

Conversation

@Aadi11z
Copy link

@Aadi11z Aadi11z commented Dec 13, 2025

Fix Applied:

  • Updating lint to use Slicing before iteration
  • Adding note about panic behaviour
  • Updating the '.stderr' files related to needless_range_loop

changelog: [needless_range_loop]: preserve panic behaviour in iterator suggestions; update .stderr tests

fixes #16003

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label Dec 13, 2025
@rustbot
Copy link
Collaborator

rustbot commented Dec 13, 2025

r? @dswij

rustbot has assigned @dswij.
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

@rustbot

This comment has been minimized.

@Aadi11z Aadi11z force-pushed the fix-needless-range-loop-panic branch from e8a8f89 to 716214d Compare December 13, 2025 09:25
@github-actions
Copy link

Lintcheck changes for a3f3f9c

Lint Added Removed Changed
clippy::needless_range_loop 0 0 4

This comment will be updated if you push new changes

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.

needless_range_loop suggestion removes panics

3 participants