fn visit_expr(&mut self, expr: &'tcx hir::Expr) {
match expr.node {
hir::ExprBreak(destination, _) | hir::ExprContinue(destination) => if let Some(label) = destination.label {
- self.labels.remove(&label.name.as_str());
+ self.labels.remove(&label.ident.as_str());
},
hir::ExprLoop(_, Some(label), _) | hir::ExprWhile(_, _, Some(label)) => {
- self.labels.insert(label.name.as_str(), expr.span);
+ self.labels.insert(label.ident.as_str(), expr.span);
},
_ => (),
}