mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 22:54:58 +00:00
Avoid cycle when lowering predicates for associated item lookup
This commit is contained in:
parent
9724ca7af1
commit
3aa37d7f80
6 changed files with 65 additions and 17 deletions
|
@ -241,7 +241,7 @@ impl HirDisplay for TypeParam {
|
|||
return Ok(());
|
||||
}
|
||||
|
||||
let bounds = f.db.generic_predicates_for_param(self.id);
|
||||
let bounds = f.db.generic_predicates_for_param(self.id, None);
|
||||
let substs = TyBuilder::type_params_subst(f.db, self.id.parent);
|
||||
let predicates: Vec<_> =
|
||||
bounds.iter().cloned().map(|b| b.substitute(&Interner, &substs)).collect();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue