From 287f163136b2527504162012b94d346f5523eac9 Mon Sep 17 00:00:00 2001 From: Niko Matsakis Date: Thu, 21 Jun 2012 09:41:33 -0700 Subject: Issue #2657: track mutability of bindings, also prevent move from bindings --- src/libsyntax/parse/lexer.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libsyntax/parse') diff --git a/src/libsyntax/parse/lexer.rs b/src/libsyntax/parse/lexer.rs index 14cb8b41473..bbf5330c18a 100644 --- a/src/libsyntax/parse/lexer.rs +++ b/src/libsyntax/parse/lexer.rs @@ -154,7 +154,7 @@ fn tt_next_token(&&r: tt_reader) -> {tok: token::token, sp: span} { ret ret_val; } tt_frame_up(option::some(tt_f)) { - r.cur <- tt_f; + r.cur = tt_f; /* the above `if` would need to be a `while` if we didn't know that the last thing in a `tt_delim` is always a `tt_flat` */ r.cur.idx += 1u; -- cgit 1.4.1-3-g733a5