diff options
| author | Michael Goulet <michael@errs.io> | 2023-01-17 03:27:48 +0000 | 
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2023-01-30 22:18:20 +0000 | 
| commit | 0e98a162c86cbc4a1bad86d63a0eb72739bb99f3 (patch) | |
| tree | 4fb662f1a106caee115b900e56c85319eb6c2beb /compiler/rustc_trait_selection/src/traits/project.rs | |
| parent | a322848c6b0e037c1f0209387558ecb6ab763714 (diff) | |
| download | rust-0e98a162c86cbc4a1bad86d63a0eb72739bb99f3.tar.gz rust-0e98a162c86cbc4a1bad86d63a0eb72739bb99f3.zip | |
Track bound types like bound regions
Diffstat (limited to 'compiler/rustc_trait_selection/src/traits/project.rs')
| -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 a11c5e81969..53cae3e720c 100644 --- a/compiler/rustc_trait_selection/src/traits/project.rs +++ b/compiler/rustc_trait_selection/src/traits/project.rs @@ -783,7 +783,7 @@ impl<'tcx> TypeFolder<'tcx> for BoundVarReplacer<'_, 'tcx> { } ty::Bound(debruijn, bound_ty) if debruijn >= self.current_index => { let universe = self.universe_for(debruijn); - let p = ty::PlaceholderType { universe, name: bound_ty.var }; + let p = ty::PlaceholderType { universe, name: bound_ty.kind }; self.mapped_types.insert(p, bound_ty); self.infcx.tcx.mk_ty(ty::Placeholder(p)) } | 
