1
Fork 0

Get rid of the >>> operator and make >> logical or arithmetic depending on the signedness. Closes #2417.

This commit is contained in:
Michael Sullivan 2012-05-22 14:59:15 -07:00
parent 8d7f3bd1ca
commit 15cef374b9
14 changed files with 49 additions and 79 deletions

View file

@ -1119,9 +1119,8 @@ fn parse_assign_expr(p: parser) -> @expr {
token::CARET { aop = bitxor; }
token::AND { aop = bitand; }
token::OR { aop = bitor; }
token::LSL { aop = lsl; }
token::LSR { aop = lsr; }
token::ASR { aop = asr; }
token::SHL { aop = shl; }
token::SHR { aop = shr; }
}
p.get_id(); // see ast_util::op_expr_callee_id
ret mk_expr(p, lo, rhs.span.hi, expr_assign_op(aop, lhs, rhs));