提交 6a427052 编写于 作者: M Marijn Haverbeke

Ignore && and + before argument names.

Issue #1008
上级 39b468e1
......@@ -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 {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册