Remove unused const math ops
This commit is contained in:
parent
d1d8d999ba
commit
a9366aa874
2 changed files with 0 additions and 7 deletions
|
|
@ -31,7 +31,4 @@ impl_stable_hash_for!(enum ::rustc_const_math::Op {
|
|||
Shr,
|
||||
Shl,
|
||||
Neg,
|
||||
BitAnd,
|
||||
BitOr,
|
||||
BitXor
|
||||
});
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue