-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
False positive in derive_hash_xor_eq with multiple Eq
implementations
#2025
Comments
Can you create a minimal repro that we can use as a test case? Preferably without extra crates. |
https://play.rust-lang.org/?gist=18cdb2fd3b4b23e2d1d4d17c93537839&version=stable
|
There also seems to be a false positive here in |
Now it seems that
|
This has already been fixed. |
In optional, I have both the standard derived
Eq
andHash
, plus one extraEq
impls on references for improved ergonomics. However, this additionalEq' impl triggers the
derive_hash_xor_eq` lint. So perhaps the lint should look for existing derived implementations to avoid this false positive.The text was updated successfully, but these errors were encountered: