field_reassign_with_default could be false positive #6312
Labels
C-bug
Category: Clippy is not doing the correct thing
good-first-issue
These issues are a good way to get started with Clippy
I-suggestion-causes-error
Issue: The suggestions provided by this Lint cause an ICE/error when applied
I tried this code:
I expected to see this happen:
Clippy reports ok as
FileNode
implementsDrop
manuallyInstead, this happened:
Clippy complains about
field assignment outside of initializer for an instance created with Default::default()
. If refactoring the codes as the suggestion clippy provides,rustc
just throws the error:Meta
cargo clippy -V
: clippy 0.0.212 (1773f60 2020-11-08)rustc -Vv
:The text was updated successfully, but these errors were encountered: