Rollup merge of #33517 - sanxiyn:tight-span, r=nagisa

Tighten span for E0063
This commit is contained in:
Manish Goregaokar 2016-05-15 20:13:40 +05:30
commit 0e5f385b96

View File

@ -3313,7 +3313,7 @@ impl<'a, 'gcx, 'tcx> FnCtxt<'a, 'gcx, 'tcx> {
let expr_ty = self.instantiate_type(def.def_id(), path);
self.write_ty(expr.id, expr_ty);
self.check_expr_struct_fields(expr_ty, expr.span, variant, fields,
self.check_expr_struct_fields(expr_ty, path.span, variant, fields,
base_expr.is_none());
if let &Some(ref base_expr) = base_expr {
self.check_expr_has_type(base_expr, expr_ty);