Skip to content

Commit 01b7a6a

Browse files
committed
Auto merge of rust-lang#108689 - compiler-errors:normalization-error-smaller, r=lcnr
Remove `NormalizationError::ConstantKind` No longer in use by `TryNormalizeAfterErasingRegionsFolder` (as of rust-lang#102355 / e8150fa it seems). It's making `LayoutError`, etc. kinda large -- that was noticed by `@zoxc.`
2 parents 0fbfc3e + a43b554 commit 01b7a6a

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)