1
Fork 0

Insert plumbing for move that behaves just like assign.

This commit is contained in:
Michael Sullivan 2011-05-27 17:38:52 -07:00 committed by Graydon Hoare
parent 43342e9a66
commit 5e7bba3d23
9 changed files with 81 additions and 0 deletions

View file

@ -1251,6 +1251,12 @@ fn parse_assign_expr(&parser p) -> @ast::expr {
ret @spanned(lo, rhs.span.hi,
ast::expr_assign_op(aop, lhs, rhs, p.get_ann()));
}
case (token::LARROW) {
p.bump();
auto rhs = parse_expr(p);
ret @spanned(lo, rhs.span.hi,
ast::expr_move(lhs, rhs, p.get_ann()));
}
case (token::SEND) {
p.bump();
auto rhs = parse_expr(p);