auto merge of #13435 : edwardw/rust/span, r=brson

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:
bors 2014-04-21 18:41:35 -07:00
commit 960bf8ce66
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