Skip to content

Commit 5950496

Browse files
committed
Remove another unused error variant
1 parent 848080d commit 5950496

File tree

3 files changed

+0
-4
lines changed

3 files changed

+0
-4
lines changed

src/librustc/ich/impls_ty.rs

-1
Original file line numberDiff line numberDiff line change
@@ -524,7 +524,6 @@ for ::middle::const_val::ErrKind<'gcx> {
524524
mem::discriminant(self).hash_stable(hcx, hasher);
525525

526526
match *self {
527-
NonConstPath |
528527
TypeckError |
529528
CouldNotResolve |
530529
CheckMatchError => {

src/librustc/middle/const_val.rs

-2
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ pub struct ConstEvalErr<'tcx> {
3939
#[derive(Clone, Debug, RustcEncodable, RustcDecodable)]
4040
pub enum ErrKind<'tcx> {
4141

42-
NonConstPath,
4342
CouldNotResolve,
4443
TypeckError,
4544
CheckMatchError,
@@ -82,7 +81,6 @@ impl<'a, 'gcx, 'tcx> ConstEvalErr<'tcx> {
8281
}
8382

8483
match *self.kind {
85-
NonConstPath => simple!("non-constant path in constant expression"),
8684
CouldNotResolve => simple!("could not resolve"),
8785
TypeckError => simple!("type-checking failed"),
8886
CheckMatchError => simple!("match-checking failed"),

src/librustc/ty/structural_impls.rs

-1
Original file line numberDiff line numberDiff line change
@@ -594,7 +594,6 @@ impl<'a, 'tcx> Lift<'tcx> for const_val::ErrKind<'a> {
594594
use middle::const_val::ErrKind::*;
595595

596596
Some(match *self {
597-
NonConstPath => NonConstPath,
598597
CouldNotResolve => CouldNotResolve,
599598
TypeckError => TypeckError,
600599
CheckMatchError => CheckMatchError,

0 commit comments

Comments
 (0)