Skip to content

Commit

Permalink
Ignore && and + before argument names.
Browse files Browse the repository at this point in the history
Issue #1008
  • Loading branch information
marijnh committed Oct 6, 2011
1 parent 39b468e commit 6a42705
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/comp/syntax/parse/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 6a42705

Please sign in to comment.