diff options
| author | Eduard Burtescu <edy.burt@gmail.com> | 2016-05-26 20:19:12 +0300 |
|---|---|---|
| committer | Eduard Burtescu <edy.burt@gmail.com> | 2016-06-05 14:41:04 +0300 |
| commit | b6ce2aa4eacdbad3e98b17d3a66daea3cc7f2880 (patch) | |
| tree | f877e753a23d2e7f86be70e60380e7d61dd69768 /src | |
| parent | d8dddbf2014f92cadfbf14e75a71c345a9e12498 (diff) | |
| download | rust-b6ce2aa4eacdbad3e98b17d3a66daea3cc7f2880.tar.gz rust-b6ce2aa4eacdbad3e98b17d3a66daea3cc7f2880.zip | |
rustc_const_eval: remove unused arithmetic ErrKind variants.
Diffstat (limited to 'src')
| -rw-r--r-- | src/librustc_const_eval/eval.rs | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/librustc_const_eval/eval.rs b/src/librustc_const_eval/eval.rs index 5613b121119..a61318c47a4 100644 --- a/src/librustc_const_eval/eval.rs +++ b/src/librustc_const_eval/eval.rs @@ -380,12 +380,6 @@ pub enum ErrKind { NotOn(ConstVal), CallOn(ConstVal), - DivideByZero, - DivideWithOverflow, - ModuloByZero, - ModuloWithOverflow, - ShiftLeftWithOverflow, - ShiftRightWithOverflow, MissingStructField, NonConstPath, UnimplementedConstVal(&'static str), @@ -436,12 +430,6 @@ impl ConstEvalErr { NotOn(ref const_val) => format!("not on {}", const_val.description()).into_cow(), CallOn(ref const_val) => format!("call on {}", const_val.description()).into_cow(), - DivideByZero => "attempted to divide by zero".into_cow(), - DivideWithOverflow => "attempted to divide with overflow".into_cow(), - ModuloByZero => "attempted remainder with a divisor of zero".into_cow(), - ModuloWithOverflow => "attempted remainder with overflow".into_cow(), - ShiftLeftWithOverflow => "attempted left shift with overflow".into_cow(), - ShiftRightWithOverflow => "attempted right shift with overflow".into_cow(), MissingStructField => "nonexistent struct field".into_cow(), NonConstPath => "non-constant path in constant expression".into_cow(), UnimplementedConstVal(what) => |
