Rollup merge of #37577 - nnethercote:shrink-Expr-slightly, r=eddyb

Shrink `hir::Expr` slightly

r? @eddyb
This commit is contained in:
Alex Crichton 2016-11-04 16:49:31 -07:00
commit 07cf4b418f
3 changed files with 5 additions and 5 deletions

View file

@ -314,7 +314,7 @@ pub fn const_expr_to_pat<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>,
},
}))
.collect::<Result<_, _>>()?;
PatKind::Struct(path.clone(), field_pats, false)
PatKind::Struct((**path).clone(), field_pats, false)
}
hir::ExprArray(ref exprs) => {