Skip to content

Commit 0e5f385

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

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

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

0 commit comments

Comments
 (0)