diff --git a/src/librustc/hir/lowering.rs b/src/librustc/hir/lowering.rs index 105a9e099b1a4..e1fec898e41e4 100644 --- a/src/librustc/hir/lowering.rs +++ b/src/librustc/hir/lowering.rs @@ -1233,7 +1233,7 @@ impl<'a> LoweringContext<'a> { hir::ExprInlineAsm(P(hir_asm), outputs, inputs) } ExprKind::Struct(ref path, ref fields, ref maybe_expr) => { - hir::ExprStruct(self.lower_path(path), + hir::ExprStruct(P(self.lower_path(path)), fields.iter().map(|x| self.lower_field(x)).collect(), maybe_expr.as_ref().map(|x| self.lower_expr(x))) } @@ -1737,7 +1737,7 @@ impl<'a> LoweringContext<'a> { e: Option
>,
attrs: ThinVec >),
+ ExprStruct(P >),
/// An array literal constructed from one repeated element.
///
diff --git a/src/librustc_const_eval/eval.rs b/src/librustc_const_eval/eval.rs
index d2de62590432a..57a5400ecadf8 100644
--- a/src/librustc_const_eval/eval.rs
+++ b/src/librustc_const_eval/eval.rs
@@ -314,7 +314,7 @@ pub fn const_expr_to_pat<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>,
},
}))
.collect::