diff options
| author | Eduard Burtescu <edy.burt@gmail.com> | 2014-03-27 16:40:35 +0200 |
|---|---|---|
| committer | Eduard Burtescu <edy.burt@gmail.com> | 2014-03-28 18:28:04 +0200 |
| commit | 8f226e56946d20acfdf8c0c48c57fd7ba3571157 (patch) | |
| tree | 5ea6dfba381234511302124eff5c6aafa038449f /src/libsyntax/parse/parser.rs | |
| parent | 7cf4d8bc446177204e9e12b1efb199a5dbc956b5 (diff) | |
| download | rust-8f226e56946d20acfdf8c0c48c57fd7ba3571157.tar.gz rust-8f226e56946d20acfdf8c0c48c57fd7ba3571157.zip | |
De-@ TokenTree.
Diffstat (limited to 'src/libsyntax/parse/parser.rs')
| -rw-r--r-- | src/libsyntax/parse/parser.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index 8038baebdcf..3618978d5c6 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -80,6 +80,7 @@ use owned_slice::OwnedSlice; use collections::HashSet; use std::kinds::marker; use std::mem::replace; +use std::rc::Rc; use std::vec; #[allow(non_camel_case_types)] @@ -2101,7 +2102,7 @@ impl<'a> Parser<'a> { let seq = match seq { Spanned { node, .. } => node, }; - TTSeq(mk_sp(sp.lo, p.span.hi), @seq, s, z) + TTSeq(mk_sp(sp.lo, p.span.hi), Rc::new(seq), s, z) } else { TTNonterminal(sp, p.parse_ident()) } @@ -2144,7 +2145,7 @@ impl<'a> Parser<'a> { result.push(parse_any_tt_tok(self)); self.open_braces.pop().unwrap(); - TTDelim(@result) + TTDelim(Rc::new(result)) } _ => parse_non_delim_tt_tok(self) } |
