Skip to content

[get_first]: lint on non-primitive slices #11609

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

Merged
merged 2 commits into from
Oct 16, 2023

Conversation

y21
Copy link
Member

@y21 y21 commented Oct 4, 2023

Fixes #11594

I left the issue open for a couple days before making the PR to see if anyone has something to say, but it looks like there aren't any objections to removing this check that prevented linting on non-primitive slices, so here's the PR now.
There's a couple of instances in clippy itself where we now emit the lint. The actual relevant change is in the first commit and fixing the .get(0) instances in clippy itself is in the 2nd commit.

changelog: [get_first]: lint on non-primitive slices

@rustbot
Copy link
Collaborator

rustbot commented Oct 4, 2023

r? @giraffate

(rustbot has picked a reviewer for you, use r? to override)

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label Oct 4, 2023
@giraffate
Copy link
Contributor

@bors r+

Thanks!

@bors
Copy link
Contributor

bors commented Oct 15, 2023

📌 Commit e6f29f1 has been approved by giraffate

It is now in the queue for this repository.

@bors
Copy link
Contributor

bors commented Oct 15, 2023

⌛ Testing commit e6f29f1 with merge ef95be5...

@bors
Copy link
Contributor

bors commented Oct 16, 2023

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

@bors bors merged commit ef95be5 into rust-lang:master Oct 16, 2023
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.

get_first doesn't lint on slices of non-primitive types
5 participants