Skip to content
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

cmp: Use default methods in trait Eq, require only Eq::eq #7799

Closed
wants to merge 1 commit into from
Closed

cmp: Use default methods in trait Eq, require only Eq::eq #7799

wants to merge 1 commit into from

Conversation

bluss
Copy link
Member

@bluss bluss commented Jul 15, 2013

Let Eq::ne be implemented to the inverse of eq by default.

bors added a commit that referenced this pull request Jul 15, 2013
Let Eq::ne be implemented to the inverse of eq by default.
@huonw
Copy link
Member

huonw commented Jul 15, 2013

Linking this to #7771, since Eq is a perfect instance where we could have both methods being implemented in terms of each other as default methods (like Haskell), but can say that at least one must be implemented.

@bluss
Copy link
Member Author

bluss commented Jul 15, 2013

thanks

@bors bors closed this Jul 15, 2013
flip1995 pushed a commit to flip1995/rust that referenced this pull request May 5, 2022
Add `cargo dev rename_lint`

fixes rust-lang#7799

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