diff options
author | bors[bot] <bors[bot]@users.noreply.github.com> | 2019-03-23 12:44:47 +0000 |
---|---|---|
committer | bors[bot] <bors[bot]@users.noreply.github.com> | 2019-03-23 12:44:47 +0000 |
commit | bce55c749a65f268a156606fa7e8dc15821ee631 (patch) | |
tree | 2b9ba6289fc865889775dab7c6b029faea7161ab /crates/ra_hir/src/db.rs | |
parent | 331220fee2c8c6d9f6e87c371ab101baace205dc (diff) | |
parent | 3f0cf6ebe1a42c3a38f3ab8a7b2e10110ed91ee1 (diff) |
Merge #1026
1026: rename persistent hir database -> def database r=matklad a=matklad
Co-authored-by: Aleksey Kladov <[email protected]>
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 | ||