Fix tuple struct field spans

This commit is contained in:
Esteban Küber 2018-05-09 16:26:18 -07:00
parent e5f80f2a4f
commit 85f57389bf
8 changed files with 23 additions and 23 deletions

View file

@ -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,