Skip to content

Commit a43b554

Browse files
Remove NormalizationError::ConstantKind
1 parent 31f858d commit a43b554

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

compiler/rustc_middle/src/ty/normalize_erasing_regions.rs

-3
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
//! `normalize_generic_arg_after_erasing_regions` query for each type
88
//! or constant found within. (This underlying query is what is cached.)
99
10-
use crate::mir;
1110
use crate::traits::query::NoSolution;
1211
use crate::ty::fold::{FallibleTypeFolder, TypeFoldable, TypeFolder};
1312
use crate::ty::{self, EarlyBinder, SubstsRef, Ty, TyCtxt, TypeVisitableExt};
@@ -16,15 +15,13 @@ use crate::ty::{self, EarlyBinder, SubstsRef, Ty, TyCtxt, TypeVisitableExt};
1615
pub enum NormalizationError<'tcx> {
1716
Type(Ty<'tcx>),
1817
Const(ty::Const<'tcx>),
19-
ConstantKind(mir::ConstantKind<'tcx>),
2018
}
2119

2220
impl<'tcx> NormalizationError<'tcx> {
2321
pub fn get_type_for_failure(&self) -> String {
2422
match self {
2523
NormalizationError::Type(t) => format!("{}", t),
2624
NormalizationError::Const(c) => format!("{}", c),
27-
NormalizationError::ConstantKind(ck) => format!("{}", ck),
2825
}
2926
}
3027
}

0 commit comments

Comments
 (0)