diff options
Diffstat (limited to 'crates/ra_hir_def/src/db.rs')
-rw-r--r-- | crates/ra_hir_def/src/db.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/crates/ra_hir_def/src/db.rs b/crates/ra_hir_def/src/db.rs index da273eb11..0c00627b5 100644 --- a/crates/ra_hir_def/src/db.rs +++ b/crates/ra_hir_def/src/db.rs | |||
@@ -107,6 +107,13 @@ pub trait DefDatabase: InternDatabase + AstDatabase { | |||
107 | // Remove this query completely, in favor of `Attrs::docs` method | 107 | // Remove this query completely, in favor of `Attrs::docs` method |
108 | #[salsa::invoke(Documentation::documentation_query)] | 108 | #[salsa::invoke(Documentation::documentation_query)] |
109 | fn documentation(&self, def: AttrDefId) -> Option<Documentation>; | 109 | fn documentation(&self, def: AttrDefId) -> Option<Documentation>; |
110 | |||
111 | #[salsa::invoke(crate::find_path::importable_locations_in_crate_query)] | ||
112 | fn importable_locations_in_crate( | ||
113 | &self, | ||
114 | item: crate::item_scope::ItemInNs, | ||
115 | krate: CrateId, | ||
116 | ) -> Arc<[(ModuleId, hir_expand::name::Name, crate::visibility::Visibility)]>; | ||
110 | } | 117 | } |
111 | 118 | ||
112 | fn crate_def_map(db: &impl DefDatabase, krate: CrateId) -> Arc<CrateDefMap> { | 119 | fn crate_def_map(db: &impl DefDatabase, krate: CrateId) -> Arc<CrateDefMap> { |