Rename hir::Node::Local into hir::Node::LetStmt

This commit is contained in:
Guillaume Gomez 2024-03-22 18:06:20 +01:00
parent d318bf1009
commit e0d3439226
43 changed files with 78 additions and 77 deletions

View file

@ -800,7 +800,7 @@ impl<'cx, 'tcx> MirBorrowckCtxt<'cx, 'tcx> {
for (_, node) in tcx.hir().parent_iter(expr.hir_id) {
let e = match node {
hir::Node::Expr(e) => e,
hir::Node::Local(hir::LetStmt { els: Some(els), .. }) => {
hir::Node::LetStmt(hir::LetStmt { els: Some(els), .. }) => {
let mut finder = BreakFinder { found_breaks: vec![], found_continues: vec![] };
finder.visit_block(els);
if !finder.found_breaks.is_empty() {