shadow_unrelated false positives for variable named val
#7588
Labels
C-bug
Category: Clippy is not doing the correct thing
val
#7588
When I name a variable
val
, next fn call with?
producesshadow_unrelated
warning.If I rename the variable, the warning disappears. Both on stable and nightly.
Reproducible with
cargo clippy
on this repo: https://github.com/romand/shadowed_valI tried this code:
I expected to see this happen: no warnings
Instead, this happened:
Meta
cargo clippy -V
: clippy 0.1.53 (53cb7b0 2021-06-17)rustc -Vv
:The text was updated successfully, but these errors were encountered: