aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir/src/db.rs
diff options
context:
space:
mode:
authorbors[bot] <bors[bot]@users.noreply.github.com>2019-03-23 12:44:47 +0000
committerbors[bot] <bors[bot]@users.noreply.github.com>2019-03-23 12:44:47 +0000
commitbce55c749a65f268a156606fa7e8dc15821ee631 (patch)
tree2b9ba6289fc865889775dab7c6b029faea7161ab /crates/ra_hir/src/db.rs
parent331220fee2c8c6d9f6e87c371ab101baace205dc (diff)
parent3f0cf6ebe1a42c3a38f3ab8a7b2e10110ed91ee1 (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.rs6
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)]
20pub trait PersistentHirDatabase: SourceDatabase + AsRef<HirInterner> { 20pub 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)]
74pub trait HirDatabase: PersistentHirDatabase { 74pub 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