Skip to content

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.
flip1995 pushed a commit to flip1995/rust that referenced this pull request Aug 22, 2025
…rust-lang#15508)

Basically continuing the work in
rust-lang/rust-clippy#6680

Honestly I think the lint could also be run on (trait) impl items, but I
didn't implement that because of the feature freeze. If that is deemed
okay to add in this PR though, I could happily do so.

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.

1 participant