Skip to content

Commit 12c4a19

Browse files
committed
remove unused constant error variants
1 parent 855fb61 commit 12c4a19

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

src/librustc_const_eval/eval.rs

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -377,13 +377,6 @@ pub enum ErrKind {
377377
NotOn(ConstVal),
378378
CallOn(ConstVal),
379379

380-
NegateWithOverflow(i64),
381-
AddiWithOverflow(i64, i64),
382-
SubiWithOverflow(i64, i64),
383-
MuliWithOverflow(i64, i64),
384-
AdduWithOverflow(u64, u64),
385-
SubuWithOverflow(u64, u64),
386-
MuluWithOverflow(u64, u64),
387380
DivideByZero,
388381
DivideWithOverflow,
389382
ModuloByZero,
@@ -439,13 +432,6 @@ impl ConstEvalErr {
439432
NotOn(ref const_val) => format!("not on {}", const_val.description()).into_cow(),
440433
CallOn(ref const_val) => format!("call on {}", const_val.description()).into_cow(),
441434

442-
NegateWithOverflow(..) => "attempted to negate with overflow".into_cow(),
443-
AddiWithOverflow(..) => "attempted to add with overflow".into_cow(),
444-
SubiWithOverflow(..) => "attempted to sub with overflow".into_cow(),
445-
MuliWithOverflow(..) => "attempted to mul with overflow".into_cow(),
446-
AdduWithOverflow(..) => "attempted to add with overflow".into_cow(),
447-
SubuWithOverflow(..) => "attempted to sub with overflow".into_cow(),
448-
MuluWithOverflow(..) => "attempted to mul with overflow".into_cow(),
449435
DivideByZero => "attempted to divide by zero".into_cow(),
450436
DivideWithOverflow => "attempted to divide with overflow".into_cow(),
451437
ModuloByZero => "attempted remainder with a divisor of zero".into_cow(),

0 commit comments

Comments
 (0)