Skip to content

Commit a9366aa

Browse files
committed
Remove unused const math ops
1 parent d1d8d99 commit a9366aa

File tree

2 files changed

+0
-7
lines changed

2 files changed

+0
-7
lines changed

src/librustc/ich/impls_const_math.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,4 @@ impl_stable_hash_for!(enum ::rustc_const_math::Op {
3131
Shr,
3232
Shl,
3333
Neg,
34-
BitAnd,
35-
BitOr,
36-
BitXor
3734
});

src/librustc_const_math/err.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,6 @@ pub enum Op {
2626
Shr,
2727
Shl,
2828
Neg,
29-
BitAnd,
30-
BitOr,
31-
BitXor,
3229
}
3330

3431
impl ConstMathErr {
@@ -43,7 +40,6 @@ impl ConstMathErr {
4340
Overflow(Neg) => "attempt to negate with overflow",
4441
Overflow(Shr) => "attempt to shift right with overflow",
4542
Overflow(Shl) => "attempt to shift left with overflow",
46-
Overflow(_) => unreachable!(),
4743
DivisionByZero => "attempt to divide by zero",
4844
RemainderByZero => "attempt to calculate the remainder with a divisor of zero",
4945
}

0 commit comments

Comments
 (0)