Skip to content

Commit 0d80de0

Browse files
committed
Update last_span in replace_token
1 parent 1835667 commit 0d80de0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/libsyntax/parse/parser.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -770,6 +770,7 @@ impl Parser {
770770
next: token::Token,
771771
lo: BytePos,
772772
hi: BytePos) {
773+
self.last_span = mk_sp(self.span.lo, lo);
773774
self.token = next;
774775
self.span = mk_sp(lo, hi);
775776
}

0 commit comments

Comments
 (0)