Get rid of the >>> operator and make >> logical or arithmetic depending on the signedness. Closes #2417.
This commit is contained in:
parent
8d7f3bd1ca
commit
15cef374b9
14 changed files with 49 additions and 79 deletions
|
@ -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));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue