mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 12: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
|
@ -2024,7 +2024,7 @@ impl TypeParam {
|
|||
}
|
||||
|
||||
pub fn trait_bounds(self, db: &dyn HirDatabase) -> Vec<Trait> {
|
||||
db.generic_predicates_for_param(self.id)
|
||||
db.generic_predicates_for_param(self.id, None)
|
||||
.iter()
|
||||
.filter_map(|pred| match &pred.skip_binders().skip_binders() {
|
||||
hir_ty::WhereClause::Implemented(trait_ref) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue