diff options
author | Florian Diebold <[email protected]> | 2021-04-07 19:40:01 +0100 |
---|---|---|
committer | Florian Diebold <[email protected]> | 2021-04-07 19:40:01 +0100 |
commit | 6777a4975d6a88928fda3e3b3f0bb05d98c61060 (patch) | |
tree | 549d8b9eb2a30b9c6542f87545936e8283b8a8dd /crates/hir_ty/src/utils.rs | |
parent | 86feac18e8f96a99830defd707eb221f12d02924 (diff) |
Move hir_trait_id to extension trait
Diffstat (limited to 'crates/hir_ty/src/utils.rs')
-rw-r--r-- | crates/hir_ty/src/utils.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/crates/hir_ty/src/utils.rs b/crates/hir_ty/src/utils.rs index 0a424f607..8d5d5cd73 100644 --- a/crates/hir_ty/src/utils.rs +++ b/crates/hir_ty/src/utils.rs | |||
@@ -16,7 +16,9 @@ use hir_def::{ | |||
16 | }; | 16 | }; |
17 | use hir_expand::name::{name, Name}; | 17 | use hir_expand::name::{name, Name}; |
18 | 18 | ||
19 | use crate::{db::HirDatabase, Interner, Substitution, TraitRef, TyKind, TypeWalk, WhereClause}; | 19 | use crate::{ |
20 | db::HirDatabase, Interner, Substitution, TraitRef, TraitRefExt, TyKind, TypeWalk, WhereClause, | ||
21 | }; | ||
20 | 22 | ||
21 | fn direct_super_traits(db: &dyn DefDatabase, trait_: TraitId) -> Vec<TraitId> { | 23 | fn direct_super_traits(db: &dyn DefDatabase, trait_: TraitId) -> Vec<TraitId> { |
22 | let resolver = trait_.resolver(db); | 24 | let resolver = trait_.resolver(db); |