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_infer/src/infer/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'compiler/rustc_infer/src/infer/mod.rs') diff --git a/compiler/rustc_infer/src/infer/mod.rs b/compiler/rustc_infer/src/infer/mod.rs index 6d5f4993d8d..34c22b9fcd2 100644 --- a/compiler/rustc_infer/src/infer/mod.rs +++ b/compiler/rustc_infer/src/infer/mod.rs @@ -2069,7 +2069,7 @@ fn replace_param_and_infer_substs_with_placeholder<'tcx>( ty, kind: ty::ConstKind::Placeholder(ty::PlaceholderConst { universe: ty::UniverseIndex::ROOT, - name: ty::BoundConst { ty, var: ty::BoundVar::from_usize(idx) }, + name: ty::BoundVar::from_usize(idx), }), }) .into() -- cgit 1.4.1-3-g733a5