Fix tuple struct field spans
This commit is contained in:
parent
e5f80f2a4f
commit
85f57389bf
8 changed files with 23 additions and 23 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue