Skip to content

Fix bug in match checking #9747

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

Closed
wants to merge 3 commits into from
Closed

Fix bug in match checking #9747

wants to merge 3 commits into from

Conversation

dim-an
Copy link
Contributor

@dim-an dim-an commented Oct 7, 2013

When specializeing struct-like enum patterns, compare struct fields to
pattern fields, not pattern fields to pattern fields.

Closes #8351.

@alexcrichton
Copy link
Member

This looks good to me, thanks! Just a small comment to get the tests passing, and then I believe this is ready to go.

dim-an added 2 commits October 7, 2013 22:28
When `specialize`ing struct-like enum patterns, compare struct fields to
pattern fields, not pattern fields to pattern fields.

Closes #8351.
@dim-an
Copy link
Contributor Author

dim-an commented Oct 7, 2013

fixed

bors added a commit that referenced this pull request Oct 8, 2013
When `specialize`ing struct-like enum patterns, compare struct fields to
pattern fields, not pattern fields to pattern fields.

Closes #8351.
@bors bors closed this Oct 8, 2013
flip1995 pushed a commit to flip1995/rust that referenced this pull request Nov 21, 2022
[`option_if_let_else`] do not lint if any arm has guard

fix rust-lang/rust-clippy#9742

changelog: [`option_if_let_else`] do not lint if any arm has guard
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.

ICE while checking match with struct-like patterns
3 participants