used_underscore_binding is triggered for fields without underscore #13058
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
Summary
When running
cargo clippy
with the linked code (https://github.com/Bytekeeper/bevy_particle_systems/tree/bevy_14 - sorry for referencing the whole branch but this is just part of a PR for a project not owned by me)I get a lot of
used_underscore_binding
warnings. The error message is quite funny as it prints out the definition, which has no underscores at all.Lint Name
used_underscore_binding
Reproducer
Sorry - this is from a PR for another project, so here goes.
I tried this code:
https://github.com/abnormalbrain/bevy_particle_systems/pull/72/files
I expected to see this happen:
used_underscore_binding not triggered for fields without underscore.
As you can see, there is no
_texture
here.Instead, this happened:
used_underscore_binding triggered for fields without underscore.
Version
The text was updated successfully, but these errors were encountered: