Use more precise span when reporting semicolon hint
When reporting "consider removing this semicolon" hint message, the offending semicolon may come from macro call site instead of macro itself. Using the more appropriate span makes the hint more helpful. Closes #13428.
This commit is contained in:
parent
ce2bab68d6
commit
cc5be28b32
5 changed files with 54 additions and 18 deletions
|
@ -686,7 +686,7 @@ mod test {
|
|||
}),
|
||||
span: sp(17,18)},
|
||||
ast::DUMMY_NODE_ID),
|
||||
span: sp(17,18)}),
|
||||
span: sp(17,19)}),
|
||||
expr: None,
|
||||
id: ast::DUMMY_NODE_ID,
|
||||
rules: ast::DefaultBlock, // no idea
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue