diff options
Diffstat (limited to 'crates/ra_hir/src/db.rs')
-rw-r--r-- | crates/ra_hir/src/db.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/crates/ra_hir/src/db.rs b/crates/ra_hir/src/db.rs index 07cf0d10a..7dbe93f2b 100644 --- a/crates/ra_hir/src/db.rs +++ b/crates/ra_hir/src/db.rs | |||
@@ -26,6 +26,7 @@ pub trait HirDatabase: SyntaxDatabase | |||
26 | type HirSourceFileQuery; | 26 | type HirSourceFileQuery; |
27 | use fn HirFileId::hir_source_file; | 27 | use fn HirFileId::hir_source_file; |
28 | } | 28 | } |
29 | |||
29 | fn expand_macro_invocation(invoc: MacroCallId) -> Option<Arc<MacroExpansion>> { | 30 | fn expand_macro_invocation(invoc: MacroCallId) -> Option<Arc<MacroExpansion>> { |
30 | type ExpandMacroCallQuery; | 31 | type ExpandMacroCallQuery; |
31 | use fn crate::macros::expand_macro_invocation; | 32 | use fn crate::macros::expand_macro_invocation; |
@@ -80,10 +81,12 @@ pub trait HirDatabase: SyntaxDatabase | |||
80 | type InputModuleItemsQuery; | 81 | type InputModuleItemsQuery; |
81 | use fn query_definitions::input_module_items; | 82 | use fn query_definitions::input_module_items; |
82 | } | 83 | } |
84 | |||
83 | fn item_map(source_root_id: SourceRootId) -> Cancelable<Arc<ItemMap>> { | 85 | fn item_map(source_root_id: SourceRootId) -> Cancelable<Arc<ItemMap>> { |
84 | type ItemMapQuery; | 86 | type ItemMapQuery; |
85 | use fn query_definitions::item_map; | 87 | use fn query_definitions::item_map; |
86 | } | 88 | } |
89 | |||
87 | fn module_tree(source_root_id: SourceRootId) -> Cancelable<Arc<ModuleTree>> { | 90 | fn module_tree(source_root_id: SourceRootId) -> Cancelable<Arc<ModuleTree>> { |
88 | type ModuleTreeQuery; | 91 | type ModuleTreeQuery; |
89 | use fn crate::module_tree::ModuleTree::module_tree_query; | 92 | use fn crate::module_tree::ModuleTree::module_tree_query; |