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.
hir::Trait
items_with_supertraits(…)
all_supertraits(…)
1 parent 89a002e commit 5a9767bCopy full SHA for 5a9767b
crates/hir/src/lib.rs
@@ -2714,8 +2714,7 @@ impl Trait {
2714
}
2715
2716
pub fn items_with_supertraits(self, db: &dyn HirDatabase) -> Vec<AssocItem> {
2717
- let traits = all_super_traits(db.upcast(), self.into());
2718
- traits.iter().flat_map(|tr| Trait::from(*tr).items(db)).collect()
+ self.all_supertraits(db).into_iter().flat_map(|tr| tr.items(db)).collect()
2719
2720
2721
pub fn is_auto(self, db: &dyn HirDatabase) -> bool {
0 commit comments