diff options
| author | Niko Matsakis <niko@alum.mit.edu> | 2012-06-21 09:41:33 -0700 |
|---|---|---|
| committer | Niko Matsakis <niko@alum.mit.edu> | 2012-06-21 09:45:01 -0700 |
| commit | 287f163136b2527504162012b94d346f5523eac9 (patch) | |
| tree | 00e4cfe24778a081444c417f5a7bb95d6035f3d5 /src/libsyntax/parse | |
| parent | c3d384b18f71c50c587c485d48b61977866901bf (diff) | |
| download | rust-287f163136b2527504162012b94d346f5523eac9.tar.gz rust-287f163136b2527504162012b94d346f5523eac9.zip | |
Issue #2657: track mutability of bindings, also prevent move from bindings
Diffstat (limited to 'src/libsyntax/parse')
| -rw-r--r-- | src/libsyntax/parse/lexer.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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; |
