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

missing_trait_methods shouldn't consider hidden methods #9934

Closed
c410-f3r opened this issue Nov 23, 2022 · 1 comment
Closed

missing_trait_methods shouldn't consider hidden methods #9934

c410-f3r opened this issue Nov 23, 2022 · 1 comment

Comments

@c410-f3r
Copy link
Contributor

c410-f3r commented Nov 23, 2022

There are some hidden built-in methods not intended for public usage.

#![deny(clippy::missing_trait_methods)]

struct Foo;

impl Eq for Foo {}

impl PartialEq for Foo {
  fn eq(&self, _: &Self) -> bool {
    true
  }
}
error: missing trait method provided by default: `assert_receiver_is_total_eq`
 --> src/lib.rs:5:1
  |
5 | impl Eq for Foo {}
  | ^^^^^^^^^^^^^^^
  |

cc @Alexendoo #9661

@c410-f3r
Copy link
Contributor Author

c410-f3r commented Jan 5, 2023

Closing due to the lack of activity.

@c410-f3r c410-f3r closed this as completed Jan 5, 2023
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

No branches or pull requests

1 participant