unused_mut warning gives bad suggestion in a macro #60643
Labels
A-lints
Area: Lints (warnings about flaws in source code) such as unused_mut.
A-NLL
Area: Non-lexical lifetimes (NLL)
C-bug
Category: This is a bug.
D-incorrect
Diagnostics: A diagnostic that is giving misleading or incorrect information.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
The following gives a suggestion to remove the
mut
which will cause the code to fail to compile.This causes
cargo fix
to fail.(Sorry if this is a dupe, I went hunting but couldn't find any issues that were the same.)
The text was updated successfully, but these errors were encountered: