Closed
Description
The warning about shadowed label names can't be turned off. Seems like it ought to have some name and be under the "future incompatible" lint group.
EDIT (ehuss):
Example:
// Doesn't matter where these are defined, as long as they are in the same function.
'a: loop { break 'a; }
'a: loop { break 'a; } // warning: loop name `'a` shadows a label name that is already in scope
Warning added in #24162, see also #21633 and https://internals.rust-lang.org/t/psa-rejecting-duplicate-loop-labels/1833.