提交 500cd256 编写于 作者: S Scott Olson

Add missing boolean binops.

上级 2db3597b
......@@ -71,7 +71,11 @@ fn unrelated_ptr_ops(bin_op: mir::BinOp) -> EvalResult<PrimVal> {
Le => l <= r,
Gt => l > r,
Ge => l >= r,
_ => panic!("invalid binary operation on booleans: {:?}", bin_op),
BitOr => l | r,
BitXor => l ^ r,
BitAnd => l & r,
Add | Sub | Mul | Div | Rem | Shl | Shr =>
panic!("invalid binary operation on booleans: {:?}", bin_op),
})
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册