Stop warning against unrelated labels.

This commit is contained in:
Camille GILLOT 2022-05-01 13:07:57 +02:00
parent 84e19930e3
commit be40b58895
14 changed files with 42 additions and 428 deletions

View file

@ -3151,7 +3151,6 @@ impl<'a: 'ast, 'b, 'ast> LateResolutionVisitor<'a, 'b, 'ast> {
diagnostics::signal_label_shadowing(self.r.session, orig_ident, label.ident)
}
if rib.kind.is_label_barrier() {
rib.bindings.insert(ident, id);
break;
}
}