diff options
| author | Scott McMurray <scottmcm@users.noreply.github.com> | 2023-03-05 20:19:41 -0800 |
|---|---|---|
| committer | Scott McMurray <scottmcm@users.noreply.github.com> | 2024-03-23 23:23:41 -0700 |
| commit | 3da115a93b782796e3d267266b4241e5258f1fef (patch) | |
| tree | d96ec402b98579b285d21945727fcb35eb51a6f8 /compiler/rustc_ty_utils/src | |
| parent | 744c664ba2e6440024457d5ec0d3600b3e0c0144 (diff) | |
Add+Use `mir::BinOp::Cmp`
Diffstat (limited to 'compiler/rustc_ty_utils/src')
| -rw-r--r-- | compiler/rustc_ty_utils/src/consts.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_ty_utils/src/consts.rs b/compiler/rustc_ty_utils/src/consts.rs index 2a2e53a81ed..acbcc3918b2 100644 --- a/compiler/rustc_ty_utils/src/consts.rs +++ b/compiler/rustc_ty_utils/src/consts.rs @@ -82,7 +82,7 @@ fn check_binop(op: mir::BinOp) -> bool { match op { Add | AddUnchecked | Sub | SubUnchecked | Mul | MulUnchecked | Div | Rem | BitXor | BitAnd | BitOr | Shl | ShlUnchecked | Shr | ShrUnchecked | Eq | Lt | Le | Ne | Ge - | Gt => true, + | Gt | Cmp => true, Offset => false, } } |
