Don't advise cloning when using relational operators #110500
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
D-papercut
Diagnostics: An error or lint that needs small tweaks.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Code
Current output
Desired output
Rationale and extra context
when using relational operators a clone is not necessary, and just dereferencing is more performant (for large types, obviously not in this case) and more readable.
Other cases
No response
Anything else?
No response
@rustbot modify labels +D-papercut
The text was updated successfully, but these errors were encountered: