This commit is contained in:
Aleksey Kladov 2019-11-21 14:13:49 +03:00
parent 621cf06156
commit 061e6c77b5
6 changed files with 108 additions and 78 deletions

View file

@ -829,7 +829,7 @@ impl Trait {
}
fn direct_super_traits(self, db: &impl HirDatabase) -> Vec<Trait> {
let resolver = self.resolver(db);
let resolver = self.id.resolver(db);
// returning the iterator directly doesn't easily work because of
// lifetime problems, but since there usually shouldn't be more than a
// few direct traits this should be fine (we could even use some kind of