Skip to content

fix: map_entry: don't emit lint before checks have been performed #14568

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 1 commit into from
Apr 9, 2025

Conversation

meithecatte
Copy link
Contributor

@meithecatte meithecatte commented Apr 9, 2025

Fixes #14449, introduced in #14314

changelog: [map_entry]: fix a false positive where the lint would trigger without any insert calls present

@rustbot
Copy link
Collaborator

rustbot commented Apr 9, 2025

r? @Alexendoo

rustbot has assigned @Alexendoo.
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 rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label Apr 9, 2025
@samueltardieu samueltardieu added the beta-nominated Nominated for backporting to the compiler in the beta channel. label Apr 9, 2025
@samueltardieu
Copy link
Contributor

@Alexendoo I've beta-nominated it, it would be best for the bug not to reach stable.

@Alexendoo Alexendoo added this pull request to the merge queue Apr 9, 2025
Merged via the queue into rust-lang:master with commit 1cfc95c Apr 9, 2025
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
beta-nominated Nominated for backporting to the compiler in the beta channel. 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.

clippy:: map_entry incorrectly warned on code with a contains_key and no insert
4 participants