From 825a7cc65c4b21fd4f1b8f3b9ad204594de1e8c2 Mon Sep 17 00:00:00 2001 From: Ellen Date: Mon, 1 Aug 2022 15:42:38 +0100 Subject: make `PlaceholderConst` not store the type of the const --- compiler/rustc_trait_selection/src/traits/project.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'compiler/rustc_trait_selection/src') diff --git a/compiler/rustc_trait_selection/src/traits/project.rs b/compiler/rustc_trait_selection/src/traits/project.rs index 9de4d3a646c..c4b7c2ea638 100644 --- a/compiler/rustc_trait_selection/src/traits/project.rs +++ b/compiler/rustc_trait_selection/src/traits/project.rs @@ -746,7 +746,7 @@ impl<'tcx> TypeFolder<'tcx> for BoundVarReplacer<'_, 'tcx> { let universe = self.universe_for(debruijn); let p = ty::PlaceholderConst { universe, - name: ty::BoundConst { var: bound_const, ty: ct.ty() }, + name: bound_const, }; self.mapped_consts.insert(p, bound_const); self.infcx -- cgit 1.4.1-3-g733a5