From 6a4270523e785c4976dd46f82e3a90375cac746d Mon Sep 17 00:00:00 2001 From: Marijn Haverbeke <marijnh@gmail.com> Date: Thu, 6 Oct 2011 10:16:52 +0200 Subject: [PATCH] Ignore && and + before argument names. Issue #1008 --- src/comp/syntax/parse/parser.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/comp/syntax/parse/parser.rs b/src/comp/syntax/parse/parser.rs index 5e9d49d833c..53c3aa01bf0 100644 --- a/src/comp/syntax/parse/parser.rs +++ b/src/comp/syntax/parse/parser.rs @@ -591,7 +591,13 @@ fn parse_arg_mode(p: parser) -> ast::mode { ret ast::by_mut_ref; } else if eat(p, token::BINOP(token::MINUS)) { ret ast::by_move; - } else { ret ast::by_ref; } + } else { + // FIXME Temporarily ignore these, to make it possible to implement + // them without breaking the stage0 build. + eat(p, token::ANDAND); + eat(p, token::BINOP(token::PLUS)); + ret ast::by_ref; + } } fn parse_arg(p: parser) -> ast::arg {