about summary refs log tree commit diff
diff options
context:
space:
mode:
authorSeo Sanghyeon <sanxiyn@gmail.com>2016-05-12 13:42:57 +0900
committerSeo Sanghyeon <sanxiyn@gmail.com>2016-05-12 13:42:57 +0900
commita7902b12e8045c1781c71e171f715344c38b6c01 (patch)
tree37f1fceb4844701bd094a7fa50fa222760b16494
parent22ac88f1a47a82195a49fbff3cf24a2c395d7a81 (diff)
downloadrust-a7902b12e8045c1781c71e171f715344c38b6c01.tar.gz
rust-a7902b12e8045c1781c71e171f715344c38b6c01.zip
Tighten span for E0063
-rw-r--r--src/librustc_typeck/check/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_typeck/check/mod.rs b/src/librustc_typeck/check/mod.rs
index f428023da9b..1afc6e1e33e 100644
--- a/src/librustc_typeck/check/mod.rs
+++ b/src/librustc_typeck/check/mod.rs
@@ -3299,7 +3299,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);