field_reassign_with_default triggers in custom derives #6545
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
T-macros
Type: Issues with macros and macro expansion
Lint name:
field_reassign_with_default
I tried this code:
Click to show
cargo expand
outputI expected to see this happen:
No lint violations in generated code annotated with
#[automatically_derived]
.Instead, this happened:
Meta
cargo clippy -V
: clippy 0.0.212 (e1884a8e 2020-12-29)rustc -Vv
:The text was updated successfully, but these errors were encountered: