Skip to content
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

single_match: fix checking of explicitly matched enums #11441

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Jarcho
Copy link
Contributor

@Jarcho Jarcho commented Sep 1, 2023

fixes #11365

This approach has false-negatives, but fixing them will require a significant amount of additional state tracking. The comment in add_and_pats has the explanation.

changelog: single_match: correct checking if the match explicitly matches all of an enum's variants.

@rustbot
Copy link
Collaborator

rustbot commented Sep 1, 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 Sep 1, 2023
@Jarcho Jarcho force-pushed the issue_11365 branch 2 times, most recently from ce1b80f to f475b85 Compare September 1, 2023 02:32
@bors
Copy link
Collaborator

bors commented Sep 25, 2023

☔ The latest upstream changes (presumably #11563) made this pull request unmergeable. Please resolve the merge conflicts.

@Jarcho
Copy link
Contributor Author

Jarcho commented Feb 14, 2024

r? clippy

@rustbot rustbot assigned dswij and unassigned giraffate Feb 14, 2024
@bors
Copy link
Collaborator

bors commented Feb 17, 2024

☔ The latest upstream changes (presumably #12198) made this pull request unmergeable. Please resolve the merge conflicts.

@xFrednet
Copy link
Member

Hey @dswij , this is a ping from triage. Can you give this PR a review? It's totally fine if you don't have the time right now, you can reassign the PR to a random team member using r? clippy.

@rustbot ready

@dswij
Copy link
Member

dswij commented Mar 31, 2024

I won't be back until Wednesday. If anyone have the capacity, feel free to review this :)

r? clippy

@rustbot rustbot assigned blyxyas and unassigned dswij Mar 31, 2024
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.

single_match incorrectly lints on exhaustive matches inside of Option/Result
7 participants