Use expand_weak_alias_tys when collecting constrained generics params in impls

This commit is contained in:
León Orell Valerian Liehr 2024-02-20 14:29:50 +01:00
parent da01cced15
commit 1b3df6f068
No known key found for this signature in database
GPG key ID: D17A07215F68E713
3 changed files with 25 additions and 40 deletions

View file

@ -111,7 +111,7 @@ fn enforce_impl_params_are_constrained(
match item.kind {
ty::AssocKind::Type => {
if item.defaultness(tcx).has_value() {
cgp::parameters_for(tcx, &tcx.type_of(def_id).instantiate_identity(), true)
cgp::parameters_for(tcx, tcx.type_of(def_id).instantiate_identity(), true)
} else {
vec![]
}