]> git.lizzy.rs Git - rust.git/commit
Use more precise span when reporting semicolon hint
authorEdward Wang <edward.yu.wang@gmail.com>
Wed, 9 Apr 2014 20:42:25 +0000 (04:42 +0800)
committerEdward Wang <edward.yu.wang@gmail.com>
Fri, 18 Apr 2014 14:01:11 +0000 (22:01 +0800)
commitcc5be28b322498f9c7c802cfa825e9f95363243d
tree8d3407c594bafa58711ae8caf143b7e6b1b11d30
parentce2bab68d69ee04e17c0165dbdb7b583d5a7c991
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.
src/librustc/middle/liveness.rs
src/libsyntax/codemap.rs
src/libsyntax/parse/mod.rs
src/libsyntax/parse/parser.rs
src/test/compile-fail/issue-13428.rs [new file with mode: 0644]