syntax: Fix wrong span on ObsoleteEmptyImpl
This commit is contained in:
parent
24d46a0f45
commit
d96dfc9a59
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user