-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Lint reversed ordering in partial ord impl #14945
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
Lint reversed ordering in partial ord impl #14945
Conversation
rustbot has assigned @samueltardieu. Use |
_.cmp(self)
pattern_.cmp(self)
pattern
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good to me. You'll have to reformat the commit message though, so that the initial line is no longer than the traditional git convention, here you'll see that git log
shows you a truncated version that overflows into the longer commit message. Also, there is a typo in the message. And please squash the commits.
97a14ca
to
53babd6
Compare
I've squashed the commits and fix the message. 53babd6 |
_.cmp(self)
pattern53babd6
to
551870d
Compare
changelog: [non_canonical_partial_ord_impl] lint reversed ordering Co-authored-by: Samuel Tardieu <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, thanks!
Thank you for the review! |
Fixes #14574
Lint reversed ordering in partial ord impl
changelog: [
non_canonical_partial_ord_impl
] lint reversed ordering