about summary refs log tree commit diff
path: root/src/libsyntax/parse/parser.rs
diff options
context:
space:
mode:
authorTim Chevalier <chevalier@alum.wellesley.edu>2012-10-05 16:17:10 -0700
committerTim Chevalier <chevalier@alum.wellesley.edu>2012-10-05 16:57:37 -0700
commit45345bda6ab439599838bbf3df0c524d86c8da2a (patch)
tree9d5da45478bac05949458685f221e4f24bad94a9 /src/libsyntax/parse/parser.rs
parent04497ea7b9b9598faa7456e7de1304e9118d2bb0 (diff)
downloadrust-45345bda6ab439599838bbf3df0c524d86c8da2a.tar.gz
rust-45345bda6ab439599838bbf3df0c524d86c8da2a.zip
Remove uses of mutable ref mode.
It's still in the compiler right now, but warned about
Diffstat (limited to 'src/libsyntax/parse/parser.rs')
-rw-r--r--src/libsyntax/parse/parser.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs
index 1a87d7fed69..bc0beec5b36 100644
--- a/src/libsyntax/parse/parser.rs
+++ b/src/libsyntax/parse/parser.rs
@@ -1276,7 +1276,8 @@ impl parser {
 
         return match self.token {
           token::LPAREN | token::LBRACE | token::LBRACKET => {
-            let ket = token::flip_delimiter(self.token);
+              // tjc: ??????
+            let ket = token::flip_delimiter(copy self.token);
             tt_delim(vec::append(
                 ~[parse_tt_tok(self, true)],
                 vec::append(
@@ -1297,7 +1298,8 @@ impl parser {
         return match self.token {
           token::LBRACE | token::LPAREN | token::LBRACKET => {
             self.parse_matcher_subseq(name_idx, copy self.token,
-                                      token::flip_delimiter(self.token))
+                                      // tjc: not sure why we need a copy
+                                      token::flip_delimiter(copy self.token))
           }
           _ => self.fatal(~"expected open delimiter")
         }