derive_partial_eq_without_eq
will trigger for third party crate derives
#9320
Labels
C-bug
Category: Clippy is not doing the correct thing
I-false-positive
Issue: The lint was triggered on code it shouldn't have
L-nursery
Lint: Currently in the nursery group
T-macros
Type: Issues with macros and macro expansion
Summary
derive_partial_eq_without_eq
seems to trigger for proc macro derives from third party crates which addsPartialEq
but notEq
, which while a user can theoretically add an implementation for / deriveEq
as well, it could cause breakage when the crate author updates and adds the missing implementation / derive as wellReproducer
I tried this code:
#[derive(third_party::Trait, Debug)]
I expected to see this happen: No lint error
Instead, this happened: A lint error for
derive_partial_eq_without_eq
Version
Additional Labels
No response
The text was updated successfully, but these errors were encountered: