Skip to content

Commit

Permalink
Rollup merge of rust-lang#33517 - sanxiyn:tight-span, r=nagisa
Browse files Browse the repository at this point in the history
Tighten span for E0063
  • Loading branch information
eddyb committed May 13, 2016
2 parents 82fd37c + a7902b1 commit 5637db9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustc_typeck/check/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3305,7 +3305,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);
Expand Down

0 comments on commit 5637db9

Please sign in to comment.