- if let hir::StmtDecl(ref decl, _) = stmt.node;
- if let hir::DeclLocal(ref decl) = decl.node;
- if let hir::PatKind::Binding(mode, canonical_id, ref name, None) = decl.pat.node;
- if let hir::StmtExpr(ref if_, _) = expr.node;
- if let hir::ExprIf(ref cond, ref then, ref else_) = if_.node;
+ if let hir::StmtKind::Local(ref local) = stmt.node;
+ if let hir::PatKind::Binding(mode, canonical_id, ident, None) = local.pat.node;
+ if let hir::StmtKind::Expr(ref if_) = expr.node;
+ if let hir::ExprKind::If(ref cond, ref then, ref else_) = if_.node;