unused_assignments warning: false negative for dead stores in struct fields #49256
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-lints
Area: Lints (warnings about flaws in source code) such as unused_mut.
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
L-unused_assignments
Lint: unused_assignments
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
code like this causes a proper warning
=>
however if a is a struct field, I get no warning at all.
playground: https://play.rust-lang.org/?gist=c904ff202754b2691e2968977620fd7a&version=nightly
I ran into bugs in my code that could have been prevented by warning about this :(
The text was updated successfully, but these errors were encountered: