Skip to content

Conversation

@samueltardieu
Copy link
Member

@samueltardieu samueltardieu commented Dec 20, 2025

Fixes #16270


changelog: [needless_collect]: do not attempt to suggest nth when argument is not a usize

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

rustbot commented Dec 20, 2025

r? @llogiq

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

@llogiq llogiq added this pull request to the merge queue Dec 20, 2025
Merged via the queue into rust-lang:master with commit 4181ff5 Dec 20, 2025
15 of 17 checks passed
@rustbot rustbot removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label Dec 20, 2025
@samueltardieu samueltardieu deleted the issues/16270 branch December 20, 2025 14:22
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.

needless_collect turns collect::<Vec<_>>()[..] into nth(..).unwrap() turning our slice-cast into an failed indexing attempt

3 participants