syntax: Fix wrong span on ObsoleteEmptyImpl

This commit is contained in:
klutzy 2013-09-26 22:24:27 +09:00
parent 24d46a0f45
commit d96dfc9a59

View File

@ -3853,7 +3853,7 @@ impl Parser {
let mut meths = ~[];
if self.eat(&token::SEMI) {
self.obsolete(*self.span, ObsoleteEmptyImpl);
self.obsolete(*self.last_span, ObsoleteEmptyImpl);
} else {
self.expect(&token::LBRACE);
while !self.eat(&token::RBRACE) {