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:
Edward Wang 2014-04-10 04:42:25 +08:00
parent ce2bab68d6
commit cc5be28b32
5 changed files with 54 additions and 18 deletions

View file

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