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
sanxiyn committed May 14, 2016
2 parents 13d0d6a + a7902b1 commit f28138d
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 @@ -3312,7 +3312,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 f28138d

Please sign in to comment.