- 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;
+ if let hir::StmtKind::Local(ref local) = stmt.kind;
+ if let hir::PatKind::Binding(mode, canonical_id, ident, None) = local.pat.kind;
+ if let hir::StmtKind::Expr(ref if_) = expr.kind;
+ if let Some((ref cond, ref then, ref else_)) = higher::if_block(&if_);