syntax: Fix wrong span on ObsoleteEmptyImpl
This commit is contained in:
parent
24d46a0f45
commit
d96dfc9a59
1 changed files with 1 additions and 1 deletions
|
@ -3853,7 +3853,7 @@ impl Parser {
|
||||||
|
|
||||||
let mut meths = ~[];
|
let mut meths = ~[];
|
||||||
if self.eat(&token::SEMI) {
|
if self.eat(&token::SEMI) {
|
||||||
self.obsolete(*self.span, ObsoleteEmptyImpl);
|
self.obsolete(*self.last_span, ObsoleteEmptyImpl);
|
||||||
} else {
|
} else {
|
||||||
self.expect(&token::LBRACE);
|
self.expect(&token::LBRACE);
|
||||||
while !self.eat(&token::RBRACE) {
|
while !self.eat(&token::RBRACE) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue