unused_labels lint does not ignore '_label #66382
Labels
A-lints
Area: Lints (warnings about flaws in source code) such as unused_mut.
C-bug
Category: This is a bug.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
This code
yields this message
I think this is not intended behavior: labels beginning with
_
should be ignored by this lint, just as identifiers beginning with_
are ignored by similar lints in other contexts.Right now I think this blocks Issue #66325, since we wouldn't want to start warn-by-default until it is fixed.
The text was updated successfully, but these errors were encountered: