We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d1d8d99 commit a9366aaCopy full SHA for a9366aa
src/librustc/ich/impls_const_math.rs
@@ -31,7 +31,4 @@ impl_stable_hash_for!(enum ::rustc_const_math::Op {
31
Shr,
32
Shl,
33
Neg,
34
- BitAnd,
35
- BitOr,
36
- BitXor
37
});
src/librustc_const_math/err.rs
@@ -26,9 +26,6 @@ pub enum Op {
26
27
28
29
30
- BitXor,
}
impl ConstMathErr {
@@ -43,7 +40,6 @@ impl ConstMathErr {
43
40
Overflow(Neg) => "attempt to negate with overflow",
44
41
Overflow(Shr) => "attempt to shift right with overflow",
45
42
Overflow(Shl) => "attempt to shift left with overflow",
46
- Overflow(_) => unreachable!(),
47
DivisionByZero => "attempt to divide by zero",
48
RemainderByZero => "attempt to calculate the remainder with a divisor of zero",
49
0 commit comments