about summary refs log tree commit diff
path: root/compiler/rustc_trait_selection/src/traits/select/confirmation.rs
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2023-01-17 03:27:48 +0000
committerMichael Goulet <michael@errs.io>2023-01-30 22:18:20 +0000
commit0e98a162c86cbc4a1bad86d63a0eb72739bb99f3 (patch)
tree4fb662f1a106caee115b900e56c85319eb6c2beb /compiler/rustc_trait_selection/src/traits/select/confirmation.rs
parenta322848c6b0e037c1f0209387558ecb6ab763714 (diff)
downloadrust-0e98a162c86cbc4a1bad86d63a0eb72739bb99f3.tar.gz
rust-0e98a162c86cbc4a1bad86d63a0eb72739bb99f3.zip
Track bound types like bound regions
Diffstat (limited to 'compiler/rustc_trait_selection/src/traits/select/confirmation.rs')
-rw-r--r--compiler/rustc_trait_selection/src/traits/select/confirmation.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_trait_selection/src/traits/select/confirmation.rs b/compiler/rustc_trait_selection/src/traits/select/confirmation.rs
index 89a8fdbac1c..0a4136dc1cf 100644
--- a/compiler/rustc_trait_selection/src/traits/select/confirmation.rs
+++ b/compiler/rustc_trait_selection/src/traits/select/confirmation.rs
@@ -524,7 +524,7 @@ impl<'cx, 'tcx> SelectionContext<'cx, 'tcx> {
                             .kind
                         {
                             GenericParamDefKind::Type { .. } => {
-                                let kind = ty::BoundTyKind::Param(param.name);
+                                let kind = ty::BoundTyKind::Param(param.def_id, param.name);
                                 let bound_var = ty::BoundVariableKind::Ty(kind);
                                 bound_vars.push(bound_var);
                                 tcx.mk_ty(ty::Bound(