about summary refs log tree commit diff
diff options
context:
space:
mode:
authorOliver Schneider <git-spam-no-reply9815368754983@oli-obk.de>2018-04-24 15:35:58 +0200
committerOliver Schneider <git-no-reply-9879165716479413131@oli-obk.de>2018-04-30 18:18:33 +0200
commita9366aa874a29467014c2eef96234455509aa438 (patch)
tree3b83bff3c0af999636f78baf859eab4d3048ed71
parentd1d8d999ba577ae03576403aa9124204dd630f63 (diff)
downloadrust-a9366aa874a29467014c2eef96234455509aa438.tar.gz
rust-a9366aa874a29467014c2eef96234455509aa438.zip
Remove unused const math ops
-rw-r--r--src/librustc/ich/impls_const_math.rs3
-rw-r--r--src/librustc_const_math/err.rs4
2 files changed, 0 insertions, 7 deletions
diff --git a/src/librustc/ich/impls_const_math.rs b/src/librustc/ich/impls_const_math.rs
index 494fa49b53d..3c1205a6784 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 94a51c23a5e..552932993ec 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",
         }