diff --git a/src/librustc/ich/impls_const_math.rs b/src/librustc/ich/impls_const_math.rs index 494fa49b53de..3c1205a67843 100644 --- a/src/librustc/ich/impls_const_math.rs +++ b/src/librustc/ich/impls_const_math.rs @@ -31,7 +31,4 @@ impl_stable_hash_for!(enum ::rustc_const_math::Op { Shr, Shl, Neg, - BitAnd, - BitOr, - BitXor }); diff --git a/src/librustc_const_math/err.rs b/src/librustc_const_math/err.rs index 94a51c23a5ea..552932993ecf 100644 --- a/src/librustc_const_math/err.rs +++ b/src/librustc_const_math/err.rs @@ -26,9 +26,6 @@ pub enum Op { Shr, Shl, Neg, - BitAnd, - BitOr, - BitXor, } impl ConstMathErr { @@ -43,7 +40,6 @@ impl ConstMathErr { Overflow(Neg) => "attempt to negate with overflow", Overflow(Shr) => "attempt to shift right with overflow", Overflow(Shl) => "attempt to shift left with overflow", - Overflow(_) => unreachable!(), DivisionByZero => "attempt to divide by zero", RemainderByZero => "attempt to calculate the remainder with a divisor of zero", }