diff options
| author | Felix S. Klock II <pnkfelix@pnkfx.org> | 2015-02-03 02:34:39 +0100 |
|---|---|---|
| committer | Felix S. Klock II <pnkfelix@pnkfx.org> | 2015-02-07 13:19:30 +0100 |
| commit | c0a874472a863058ac39654626bf62c2d953b27b (patch) | |
| tree | 9b768b6f18840de1003c77860b8ca43bc0a33a79 | |
| parent | a08504bb35f5cb36b702750ba105063d1e2972ff (diff) | |
| download | rust-c0a874472a863058ac39654626bf62c2d953b27b.tar.gz rust-c0a874472a863058ac39654626bf62c2d953b27b.zip | |
Fix libsyntax so we can bootstrap even with move out of array restriction.
| -rw-r--r-- | src/libsyntax/ast.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsyntax/ast.rs b/src/libsyntax/ast.rs index 7e1bf7a2230..71259ff5d9a 100644 --- a/src/libsyntax/ast.rs +++ b/src/libsyntax/ast.rs @@ -924,13 +924,13 @@ impl TokenTree { let v = [TtToken(sp, token::Dollar), TtToken(sp, token::Ident(token::str_to_ident(var.as_str()), token::Plain))]; - v[index] + v[index].clone() } (&TtToken(sp, token::MatchNt(name, kind, name_st, kind_st)), _) => { let v = [TtToken(sp, token::SubstNt(name, name_st)), TtToken(sp, token::Colon), TtToken(sp, token::Ident(kind, kind_st))]; - v[index] + v[index].clone() } (&TtSequence(_, ref seq), _) => { seq.tts[index].clone() |
