about summary refs log tree commit diff
path: root/src/libsyntax/parse/parser.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2013-11-27 08:07:56 -0800
committerbors <bors@rust-lang.org>2013-11-27 08:07:56 -0800
commita6fc577ab580d09f05bb9b545b6a6511cfcb0a8f (patch)
tree3ce249e3a8f43ef93d15d297484b14160a1f5052 /src/libsyntax/parse/parser.rs
parent23674be0b1ff920773520c7fec96c3a4b2068b21 (diff)
parentf09b7b0ecd7fc03c9d433632f89b3267f16cd4f8 (diff)
downloadrust-a6fc577ab580d09f05bb9b545b6a6511cfcb0a8f.tar.gz
rust-a6fc577ab580d09f05bb9b545b6a6511cfcb0a8f.zip
auto merge of #10693 : eddyb/rust/freeze-ast, r=thestinger
It's truly immutable now, which will allow us to remove some cloning in the parser and box parts of the AST in `Rc<T>` (if desired).
Diffstat (limited to 'src/libsyntax/parse/parser.rs')
-rw-r--r--src/libsyntax/parse/parser.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs
index b9a7ec33ee4..fab0de4179e 100644
--- a/src/libsyntax/parse/parser.rs
+++ b/src/libsyntax/parse/parser.rs
@@ -2112,7 +2112,7 @@ impl Parser {
                     };
                     tt_seq(
                         mk_sp(sp.lo, p.span.hi),
-                        @mut seq,
+                        @seq,
                         s,
                         z
                     )
@@ -2157,7 +2157,7 @@ impl Parser {
                 result.push(parse_any_tt_tok(self));
                 self.open_braces.pop();
 
-                tt_delim(@mut result)
+                tt_delim(@result)
             }
             _ => parse_non_delim_tt_tok(self)
         }