Skip to content

Improve non-exhaustive pattern witnesses for structs with multiple fields #15508

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 Jul 8, 2014
Merged

Improve non-exhaustive pattern witnesses for structs with multiple fields #15508

merged 1 commit into from Jul 8, 2014

Conversation

ghost
Copy link

@ghost ghost commented Jul 7, 2014

No description provided.

bors added a commit that referenced this pull request Jul 8, 2014
@bors bors closed this Jul 8, 2014
@bors bors merged commit 947942e into rust-lang:master Jul 8, 2014
@ghost ghost deleted the struct-pattern-witness branch July 13, 2014 22:07
bors added a commit to rust-lang-ci/rust that referenced this pull request Dec 11, 2023
…eykril

Check if lhs is also a binexpr and use its rhs in flip binexpr assist

Closes rust-lang#15508

From the original PR, flip binexpr assist is not meant to preserve equivalence, so I went with the simplest solution here.

I can add some extra checks to keep equivalence, but I think they should go in different specific assists (eg. flip arith op / flip logic op / etc), otherwise this one will get out of hand pretty quickly.
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.

1 participant