We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eaa03ef commit ac8fee0Copy full SHA for ac8fee0
crates/hir_ty/src/lower.rs
@@ -860,10 +860,9 @@ pub fn associated_type_shorthand_candidates<R>(
860
if generics.params.types[param_id.local_id].provenance
861
== TypeParamProvenance::TraitSelf
862
{
863
- let trait_ref = TraitRef {
864
- trait_id: to_chalk_trait_id(trait_id),
865
- substitution: Substitution::bound_vars(&generics, DebruijnIndex::INNERMOST),
866
- };
+ let trait_ref = TyBuilder::trait_ref(db, trait_id)
+ .fill_with_bound_vars(DebruijnIndex::INNERMOST, 0)
+ .build();
867
return search(trait_ref);
868
}
869
0 commit comments