We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d9f29fa commit 4e4de3fCopy full SHA for 4e4de3f
src/num.rs
@@ -110,7 +110,7 @@ pub(crate) fn codegen_int_binop<'tcx>(
110
in_lhs: CValue<'tcx>,
111
in_rhs: CValue<'tcx>,
112
) -> CValue<'tcx> {
113
- if bin_op != BinOp::Shl && bin_op != BinOp::Shr {
+ if !matches!(bin_op, BinOp::Shl | BinOp::ShlUnchecked | BinOp::Shr | BinOp::ShrUnchecked) {
114
assert_eq!(
115
in_lhs.layout().ty,
116
in_rhs.layout().ty,
0 commit comments