diff options
| author | Tim Chevalier <chevalier@alum.wellesley.edu> | 2012-10-23 11:28:20 -0700 |
|---|---|---|
| committer | Tim Chevalier <chevalier@alum.wellesley.edu> | 2012-10-23 12:10:19 -0700 |
| commit | 087cbb55d06d833033e463b9c3a4237c04264319 (patch) | |
| tree | 3f7f21846979bbd2a3d19930e58aee3699d97c21 /src/libsyntax/parse/classify.rs | |
| parent | 48c8d1fecd55098e87cdb9c027c2675a22df370f (diff) | |
| download | rust-087cbb55d06d833033e463b9c3a4237c04264319.tar.gz rust-087cbb55d06d833033e463b9c3a4237c04264319.zip | |
Remove <- operator from the compiler
Yield an obsolete syntax error on things like "let foo <- bar;" and "foo <- bar;" r=brson Progress on #3466
Diffstat (limited to 'src/libsyntax/parse/classify.rs')
| -rw-r--r-- | src/libsyntax/parse/classify.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/libsyntax/parse/classify.rs b/src/libsyntax/parse/classify.rs index 4838c91f856..ff3abb5379e 100644 --- a/src/libsyntax/parse/classify.rs +++ b/src/libsyntax/parse/classify.rs @@ -43,7 +43,6 @@ fn need_parens(expr: @ast::expr, outer_prec: uint) -> bool { ast::expr_cast(_, _) => parse::prec::as_prec < outer_prec, // This may be too conservative in some cases ast::expr_assign(_, _) => true, - ast::expr_move(_, _) => true, ast::expr_swap(_, _) => true, ast::expr_assign_op(_, _, _) => true, ast::expr_ret(_) => true, @@ -61,8 +60,7 @@ fn ends_in_lit_int(ex: @ast::expr) -> bool { _ => false }, ast::expr_binary(_, _, sub) | ast::expr_unary(_, sub) | - ast::expr_move(_, sub) | ast::expr_copy(sub) | - ast::expr_assign(_, sub) | + ast::expr_copy(sub) | ast::expr_assign(_, sub) | ast::expr_assign_op(_, _, sub) | ast::expr_swap(_, sub) | ast::expr_log(_, _, sub) | ast::expr_assert(sub) => { ends_in_lit_int(sub) |
