Remove unused const math ops

This commit is contained in:
Oliver Schneider 2018-04-24 15:35:58 +02:00 committed by Oliver Schneider
parent d1d8d999ba
commit a9366aa874
No known key found for this signature in database
GPG key ID: 1D5CB4FC597C3004
2 changed files with 0 additions and 7 deletions

View file

@ -31,7 +31,4 @@ impl_stable_hash_for!(enum ::rustc_const_math::Op {
Shr,
Shl,
Neg,
BitAnd,
BitOr,
BitXor
});

View file

@ -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",
}