Skip to content

Check type when struct is matched against enum-like pattern #5046

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 1 commit into from

Conversation

sanxiyn
Copy link
Member

@sanxiyn sanxiyn commented Feb 20, 2013

Previously check always succeeded because struct type was derived from the matched expression, not the matched pattern.

Fix #4849.

Previously check always succeeded because struct type was derived from
the matched expression, not the matched pattern.
bors added a commit that referenced this pull request Feb 21, 2013
Previously check always succeeded because struct type was derived from the matched expression, not the matched pattern.

Fix #4849.
@bors bors closed this Feb 21, 2013
bors added a commit to rust-lang-ci/rust that referenced this pull request May 2, 2020
…p1995

Keep the ordering in `nonminimal_bool` lint

I believe it shouldn't cause any regression but feel free to let me know if you have a doubtful example.
Also, splits up `booleans` ui test.

Fixes rust-lang#5045

changelog: none
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.

3 participants