diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2018-05-10 11:35:34 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-05-10 11:35:34 -0500 |
| commit | 1f1c65de4a8a9a10822012c065174bd24409e15a (patch) | |
| tree | 35736637c19eed73cb76d85c90ff5041dfe4d6a8 /src/libsyntax/parse | |
| parent | c798cbbb2cd5a0300954cdcb08f2daa0817898ff (diff) | |
| parent | 85f57389bf42c3a3ab648f4662580c84d9bfdd4d (diff) | |
| download | rust-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.rs | 2 |
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, |
