Skip to content

Commit d96dfc9

Browse files
committed
syntax: Fix wrong span on ObsoleteEmptyImpl
1 parent 24d46a0 commit d96dfc9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libsyntax/parse/parser.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3853,7 +3853,7 @@ impl Parser {
38533853

38543854
let mut meths = ~[];
38553855
if self.eat(&token::SEMI) {
3856-
self.obsolete(*self.span, ObsoleteEmptyImpl);
3856+
self.obsolete(*self.last_span, ObsoleteEmptyImpl);
38573857
} else {
38583858
self.expect(&token::LBRACE);
38593859
while !self.eat(&token::RBRACE) {

0 commit comments

Comments
 (0)