Skip to content

False positive for derive_hash_xor_eq #4658

Closed
@c410-f3r

Description

@c410-f3r

derive_hash_xor_eq is triggered for custom traits that are named Hash.

Bad

#[derive(PartialEq)]
struct Foo;

trait Hash {}

impl Hash for Foo {}

Ok

#[derive(PartialEq)]
struct Foo;

trait Hash {}

impl self::Hash for Foo {}

Metadata

Metadata

Assignees

Labels

C-bugCategory: Clippy is not doing the correct thing

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions