Skip to content

Commit f28138d

Browse files
committed
Rollup merge of rust-lang#33517 - sanxiyn:tight-span, r=nagisa
Tighten span for E0063
2 parents 13d0d6a + a7902b1 commit f28138d

File tree

1 file changed

+1
-1
lines changed
  • src/librustc_typeck/check

1 file changed

+1
-1
lines changed

src/librustc_typeck/check/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -3312,7 +3312,7 @@ impl<'a, 'gcx, 'tcx> FnCtxt<'a, 'gcx, 'tcx> {
33123312
let expr_ty = self.instantiate_type(def.def_id(), path);
33133313
self.write_ty(expr.id, expr_ty);
33143314

3315-
self.check_expr_struct_fields(expr_ty, expr.span, variant, fields,
3315+
self.check_expr_struct_fields(expr_ty, path.span, variant, fields,
33163316
base_expr.is_none());
33173317
if let &Some(ref base_expr) = base_expr {
33183318
self.check_expr_has_type(base_expr, expr_ty);

0 commit comments

Comments
 (0)