Skip to content

False positive in derive_hash_xor_eq with multiple Eq implementations #2025

Open
@llogiq

Description

@llogiq

In optional, I have both the standard derived Eq and Hash, plus one extra Eq impls on references for improved ergonomics. However, this additional Eq' impl triggers the derive_hash_xor_eq` lint. So perhaps the lint should look for existing derived implementations to avoid this false positive.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: Clippy is not doing the correct thingI-false-positiveIssue: The lint was triggered on code it shouldn't have

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions