Inhibit unused_mut variables if unused_variables is also triggered #97074
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Given the following code:
(Playground.)
The current output is:
It's obvious that an unused variable does not need to be declared mutable, and the extra warning puts more cognitive burden on the reader to figure out what's relevant.
Found this on 1.60.0, but also still happens on nightly.
The text was updated successfully, but these errors were encountered: