diff options
Diffstat (limited to 'crates/ra_hir/src/db.rs')
-rw-r--r-- | crates/ra_hir/src/db.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/ra_hir/src/db.rs b/crates/ra_hir/src/db.rs index c7bad7e2b..d3908f8ac 100644 --- a/crates/ra_hir/src/db.rs +++ b/crates/ra_hir/src/db.rs | |||
@@ -16,8 +16,8 @@ use crate::{ | |||
16 | type_ref::TypeRef, | 16 | type_ref::TypeRef, |
17 | }; | 17 | }; |
18 | 18 | ||
19 | #[salsa::query_group(PersistentHirDatabaseStorage)] | 19 | #[salsa::query_group(DefDatabaseStorage)] |
20 | pub trait PersistentHirDatabase: SourceDatabase + AsRef<HirInterner> { | 20 | pub trait DefDatabase: SourceDatabase + AsRef<HirInterner> { |
21 | #[salsa::invoke(HirFileId::hir_parse)] | 21 | #[salsa::invoke(HirFileId::hir_parse)] |
22 | fn hir_parse(&self, file_id: HirFileId) -> TreeArc<SourceFile>; | 22 | fn hir_parse(&self, file_id: HirFileId) -> TreeArc<SourceFile>; |
23 | 23 | ||
@@ -71,7 +71,7 @@ pub trait PersistentHirDatabase: SourceDatabase + AsRef<HirInterner> { | |||
71 | } | 71 | } |
72 | 72 | ||
73 | #[salsa::query_group(HirDatabaseStorage)] | 73 | #[salsa::query_group(HirDatabaseStorage)] |
74 | pub trait HirDatabase: PersistentHirDatabase { | 74 | pub trait HirDatabase: DefDatabase { |
75 | #[salsa::invoke(ExprScopes::expr_scopes_query)] | 75 | #[salsa::invoke(ExprScopes::expr_scopes_query)] |
76 | fn expr_scopes(&self, func: Function) -> Arc<ExprScopes>; | 76 | fn expr_scopes(&self, func: Function) -> Arc<ExprScopes>; |
77 | 77 | ||