diff options
Diffstat (limited to 'crates/ra_hir/src/db.rs')
-rw-r--r-- | crates/ra_hir/src/db.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/crates/ra_hir/src/db.rs b/crates/ra_hir/src/db.rs index b8715abab..2be47c160 100644 --- a/crates/ra_hir/src/db.rs +++ b/crates/ra_hir/src/db.rs | |||
@@ -8,6 +8,7 @@ use crate::{ | |||
8 | SourceFileItems, SourceItemId, Crate, Module, HirInterner, | 8 | SourceFileItems, SourceItemId, Crate, Module, HirInterner, |
9 | Function, FnSignature, ExprScopes, TypeAlias, | 9 | Function, FnSignature, ExprScopes, TypeAlias, |
10 | Struct, Enum, StructField, | 10 | Struct, Enum, StructField, |
11 | Const, ConstSignature, | ||
11 | macros::MacroExpansion, | 12 | macros::MacroExpansion, |
12 | module_tree::ModuleTree, | 13 | module_tree::ModuleTree, |
13 | nameres::{ItemMap, lower::{LoweredModule, ImportSourceMap}}, | 14 | nameres::{ItemMap, lower::{LoweredModule, ImportSourceMap}}, |
@@ -82,6 +83,9 @@ pub trait PersistentHirDatabase: SourceDatabase + AsRef<HirInterner> { | |||
82 | 83 | ||
83 | #[salsa::invoke(crate::type_alias::type_alias_ref_query)] | 84 | #[salsa::invoke(crate::type_alias::type_alias_ref_query)] |
84 | fn type_alias_ref(&self, typ: TypeAlias) -> Arc<TypeRef>; | 85 | fn type_alias_ref(&self, typ: TypeAlias) -> Arc<TypeRef>; |
86 | |||
87 | #[salsa::invoke(crate::ConstSignature::const_signature_query)] | ||
88 | fn const_signature(&self, konst: Const) -> Arc<ConstSignature>; | ||
85 | } | 89 | } |
86 | 90 | ||
87 | #[salsa::query_group(HirDatabaseStorage)] | 91 | #[salsa::query_group(HirDatabaseStorage)] |