about summary refs log tree commit diff
path: root/src/libsyntax/parse
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2018-05-10 11:35:34 -0500
committerGitHub <noreply@github.com>2018-05-10 11:35:34 -0500
commit1f1c65de4a8a9a10822012c065174bd24409e15a (patch)
tree35736637c19eed73cb76d85c90ff5041dfe4d6a8 /src/libsyntax/parse
parentc798cbbb2cd5a0300954cdcb08f2daa0817898ff (diff)
parent85f57389bf42c3a3ab648f4662580c84d9bfdd4d (diff)
downloadrust-1f1c65de4a8a9a10822012c065174bd24409e15a.tar.gz
rust-1f1c65de4a8a9a10822012c065174bd24409e15a.zip
Rollup merge of #50590 - estebank:off-by-one, r=nikomatsakis
Fix tuple struct field spans

Fix #50578. Will have a merge conflict with #50536.
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,