about summary refs log tree commit diff
path: root/src/libsyntax/parse
diff options
context:
space:
mode:
authorEsteban Küber <esteban@kuber.com.ar>2018-05-09 16:26:18 -0700
committerEsteban Küber <esteban@kuber.com.ar>2018-05-10 09:15:47 -0700
commit85f57389bf42c3a3ab648f4662580c84d9bfdd4d (patch)
treeb70ed68dfc4066e87d6c3ac2e2c1ccc7f5733688 /src/libsyntax/parse
parente5f80f2a4f016bf724a1cfb580619d71c8fd39ec (diff)
downloadrust-85f57389bf42c3a3ab648f4662580c84d9bfdd4d.tar.gz
rust-85f57389bf42c3a3ab648f4662580c84d9bfdd4d.zip
Fix tuple struct field spans
Diffstat (limited to 'src/libsyntax/parse')
-rw-r--r--src/libsyntax/parse/parser.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs
index bf4a68679df..49b30c6f460 100644
--- a/src/libsyntax/parse/parser.rs
+++ b/src/libsyntax/parse/parser.rs
@@ -5741,7 +5741,7 @@ impl<'a> Parser<'a> {
                 let vis = p.parse_visibility(true)?;
                 let ty = p.parse_ty()?;
                 Ok(StructField {
-                    span: lo.to(p.span),
+                    span: lo.to(ty.span),
                     vis,
                     ident: None,
                     id: ast::DUMMY_NODE_ID,