diff options
| author | Ellen <supbscripter@gmail.com> | 2022-08-01 15:42:38 +0100 |
|---|---|---|
| committer | Ellen <supbscripter@gmail.com> | 2022-08-01 15:42:38 +0100 |
| commit | 825a7cc65c4b21fd4f1b8f3b9ad204594de1e8c2 (patch) | |
| tree | cecde661d63e82a93e92a2729f7d861b466f0683 /compiler/rustc_trait_selection/src/traits | |
| parent | 1f5d8d49eb6111931091f700d07518cd2b80bc18 (diff) | |
| download | rust-825a7cc65c4b21fd4f1b8f3b9ad204594de1e8c2.tar.gz rust-825a7cc65c4b21fd4f1b8f3b9ad204594de1e8c2.zip | |
make `PlaceholderConst` not store the type of the const
Diffstat (limited to 'compiler/rustc_trait_selection/src/traits')
| -rw-r--r-- | compiler/rustc_trait_selection/src/traits/project.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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 |
