From 0d80de0dfa313e9009a02d2996c936f77b68f86b Mon Sep 17 00:00:00 2001 From: Nick Cameron Date: Wed, 12 Mar 2014 12:20:18 -0700 Subject: [PATCH] Update last_span in replace_token --- src/libsyntax/parse/parser.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index 7760ca89eb271..44cc48083a93e 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -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); }