]> git.lizzy.rs Git - rust.git/commitdiff
Remove unused const math ops
authorOliver Schneider <git-spam-no-reply9815368754983@oli-obk.de>
Tue, 24 Apr 2018 13:35:58 +0000 (15:35 +0200)
committerOliver Schneider <git-no-reply-9879165716479413131@oli-obk.de>
Mon, 30 Apr 2018 16:18:33 +0000 (18:18 +0200)
src/librustc/ich/impls_const_math.rs
src/librustc_const_math/err.rs

index 494fa49b53de9032ee945c2095000918378f4b1d..3c1205a67843d84ed8de03b68d26a9192d174ace 100644 (file)
@@ -31,7 +31,4 @@
     Shr,
     Shl,
     Neg,
-    BitAnd,
-    BitOr,
-    BitXor
 });
index 94a51c23a5ea63f44ed248e04c25b000e27d48ad..552932993ecf866f62899caab26a69f94fee521f 100644 (file)
@@ -26,9 +26,6 @@ pub enum Op {
     Shr,
     Shl,
     Neg,
-    BitAnd,
-    BitOr,
-    BitXor,
 }
 
 impl ConstMathErr {
@@ -43,7 +40,6 @@ pub fn description(&self) -> &'static str {
             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",
         }