let hir_id = cx.tcx.hir.node_to_hir_id(stmt.node.id());
let opt_dxn_ext = cx.region_scope_tree.opt_destruction_scope(hir_id.local_id);
match stmt.node {
- hir::StmtExpr(ref expr, _) |
- hir::StmtSemi(ref expr, _) => {
+ hir::StmtKind::Expr(ref expr, _) |
+ hir::StmtKind::Semi(ref expr, _) => {
result.push(StmtRef::Mirror(Box::new(Stmt {
kind: StmtKind::Expr {
scope: region::Scope::Node(hir_id.local_id),
opt_destruction_scope: opt_dxn_ext,
})))
}
- hir::StmtDecl(ref decl, _) => {
+ hir::StmtKind::Decl(ref decl, _) => {
match decl.node {
hir::DeclItem(..) => {
// ignore for purposes of the MIR