You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Incorrect warning about label shadowing itself #25343
main.rs:3:17: 4:10 warning: label name `'label` shadows a label name that is already in scope
main.rs:3 'label: loop {
main.rs:4 }
main.rs:3:17: 4:10 note: shadowed label `'label` declared here
main.rs:3 'label: loop {
main.rs:4 }
Obviously a label can't shadow itself, so there shouldn't be a warning. The issue doesn't occur outside of a closure.
Activity
mitchmindtree commentedon May 24, 2015
I just came across this one myself, just thought I'd +1
Auto merge of #27093 - Manishearth:closure-label-shadow, r=pnkfelix
middle: reset loop labels while visiting closure
Rollup merge of rust-lang#33345 - birkenfeld:issue-31754, r=pnkfelix
Rollup merge of rust-lang#33345 - birkenfeld:issue-31754, r=pnkfelix
Rollup merge of rust-lang#33345 - birkenfeld:issue-31754, r=pnkfelix