diff options
| author | Tim Chevalier <chevalier@alum.wellesley.edu> | 2012-10-05 16:10:08 -0700 |
|---|---|---|
| committer | Tim Chevalier <chevalier@alum.wellesley.edu> | 2012-10-05 16:10:08 -0700 |
| commit | f8bc0d25455d7bfb299cd0e7693ee575f5dbce21 (patch) | |
| tree | 80c1bde3c3f3b0cf47993dfe769418cc2ac55323 /src/libsyntax/parse/parser.rs | |
| parent | ca49fd402af8e7bf613c43e996274b5a017958d2 (diff) | |
| download | rust-f8bc0d25455d7bfb299cd0e7693ee575f5dbce21.tar.gz rust-f8bc0d25455d7bfb299cd0e7693ee575f5dbce21.zip | |
Revert "wip"
This reverts commit ca49fd402af8e7bf613c43e996274b5a017958d2.
Diffstat (limited to 'src/libsyntax/parse/parser.rs')
| -rw-r--r-- | src/libsyntax/parse/parser.rs | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index 79f7d72d2a5..1a87d7fed69 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -26,7 +26,7 @@ use ast::{_mod, add, alt_check, alt_exhaustive, arg, arm, attribute, bind_by_ref, bind_by_implicit_ref, bind_by_value, bind_by_move, bitand, bitor, bitxor, blk, blk_check_mode, bound_const, bound_copy, bound_send, bound_trait, bound_owned, box, by_copy, - by_move, by_ref, by_val, capture_clause, + by_move, by_mutbl_ref, by_ref, by_val, capture_clause, capture_item, cdir_dir_mod, cdir_src_mod, cdir_view_item, class_immutable, class_mutable, crate, crate_cfg, crate_directive, decl, decl_item, decl_local, @@ -571,7 +571,7 @@ impl parser { fn parse_arg_mode() -> mode { if self.eat(token::BINOP(token::AND)) { self.warn(~"Obsolete syntax has no effect"); - expl(by_val) + expl(by_mutbl_ref) } else if self.eat(token::BINOP(token::MINUS)) { expl(by_move) } else if self.eat(token::ANDAND) { @@ -1276,8 +1276,7 @@ impl parser { return match self.token { token::LPAREN | token::LBRACE | token::LBRACKET => { - // tjc: ?????? - let ket = token::flip_delimiter(copy self.token); + let ket = token::flip_delimiter(self.token); tt_delim(vec::append( ~[parse_tt_tok(self, true)], vec::append( @@ -1298,8 +1297,7 @@ impl parser { return match self.token { token::LBRACE | token::LPAREN | token::LBRACKET => { self.parse_matcher_subseq(name_idx, copy self.token, - // tjc: not sure why we need a copy - token::flip_delimiter(copy self.token)) + token::flip_delimiter(self.token)) } _ => self.fatal(~"expected open delimiter") } |
