Update last_span in replace_token

This commit is contained in:
Nick Cameron 2014-03-12 12:20:18 -07:00
parent 18356675e5
commit 0d80de0dfa

View File

@ -770,6 +770,7 @@ impl Parser {
next: token::Token,
lo: BytePos,
hi: BytePos) {
self.last_span = mk_sp(self.span.lo, lo);
self.token = next;
self.span = mk_sp(lo, hi);
}