Skip to content

missing_trait_methods shouldn't consider hidden methods #9934

@c410-f3r

Description

@c410-f3r

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions