Skip to content

Commit 5637db9

Browse files
committed
Rollup merge of rust-lang#33517 - sanxiyn:tight-span, r=nagisa
Tighten span for E0063
2 parents 82fd37c + a7902b1 commit 5637db9

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
@@ -3305,7 +3305,7 @@ impl<'a, 'gcx, 'tcx> FnCtxt<'a, 'gcx, 'tcx> {
33053305
let expr_ty = self.instantiate_type(def.def_id(), path);
33063306
self.write_ty(expr.id, expr_ty);
33073307

3308-
self.check_expr_struct_fields(expr_ty, expr.span, variant, fields,
3308+
self.check_expr_struct_fields(expr_ty, path.span, variant, fields,
33093309
base_expr.is_none());
33103310
if let &Some(ref base_expr) = base_expr {
33113311
self.check_expr_has_type(base_expr, expr_ty);

0 commit comments

Comments
 (0)