rustc: Implement unary move. Closes #917.

This commit is contained in:
Patrick Walton 2012-07-31 17:31:24 -07:00
parent c4bb8f8aaf
commit c88933d714
15 changed files with 48 additions and 24 deletions

View file

@ -1100,6 +1100,7 @@ fn print_expr(s: ps, &&expr: @ast::expr) {
print_block(s, blk);
}
ast::expr_copy(e) { word_space(s, ~"copy"); print_expr(s, e); }
ast::expr_unary_move(e) { word_space(s, ~"move"); print_expr(s, e); }
ast::expr_move(lhs, rhs) {
print_expr(s, lhs);
space(s.s);