]> git.lizzy.rs Git - rust.git/commitdiff
Remove another unused error variant
authorOliver Schneider <github35764891676564198441@oli-obk.de>
Tue, 5 Jun 2018 17:06:29 +0000 (19:06 +0200)
committerOliver Schneider <github35764891676564198441@oli-obk.de>
Tue, 5 Jun 2018 18:49:47 +0000 (20:49 +0200)
src/librustc/ich/impls_ty.rs
src/librustc/middle/const_val.rs
src/librustc/ty/structural_impls.rs

index fe19196fe06ff336c3cd4ec0d77326b744b671fd..5e67065d1c13fcbf1656b29f3c2c54c596f55ac8 100644 (file)
@@ -524,7 +524,6 @@ fn hash_stable<W: StableHasherResult>(&self,
         mem::discriminant(self).hash_stable(hcx, hasher);
 
         match *self {
-            NonConstPath |
             TypeckError |
             CouldNotResolve |
             CheckMatchError => {
index 3abe405d598468782b6ec44527293f4c1ae1f5a5..88275b3c18cc1172f83fd736a02c362d129e52f3 100644 (file)
@@ -39,7 +39,6 @@ pub struct ConstEvalErr<'tcx> {
 #[derive(Clone, Debug, RustcEncodable, RustcDecodable)]
 pub enum ErrKind<'tcx> {
 
-    NonConstPath,
     CouldNotResolve,
     TypeckError,
     CheckMatchError,
@@ -82,7 +81,6 @@ macro_rules! simple {
         }
 
         match *self.kind {
-            NonConstPath        => simple!("non-constant path in constant expression"),
             CouldNotResolve => simple!("could not resolve"),
             TypeckError => simple!("type-checking failed"),
             CheckMatchError => simple!("match-checking failed"),
index 2055f11f9f8af1750e38332174de12ef7501e451..79a6311185076a0b5366661722871d48ba463b25 100644 (file)
@@ -594,7 +594,6 @@ fn lift_to_tcx<'b, 'gcx>(&self, tcx: TyCtxt<'b, 'gcx, 'tcx>) -> Option<Self::Lif
         use middle::const_val::ErrKind::*;
 
         Some(match *self {
-            NonConstPath => NonConstPath,
             CouldNotResolve => CouldNotResolve,
             TypeckError => TypeckError,
             CheckMatchError => CheckMatchError,