aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir_def
diff options
context:
space:
mode:
authorMichal Terepeta <[email protected]>2020-01-03 13:20:04 +0000
committerMichal Terepeta <[email protected]>2020-01-03 13:20:24 +0000
commit2e2e4435605b8fdabb36f018c2d6cba1fd0069b8 (patch)
tree0b4d2b1afcb919b50dd16efc4448c18eb39a9f16 /crates/ra_hir_def
parent7cd6f12926295476d162e21e315ee72671985cd2 (diff)
Add `_query` suffix to `compute_crate_def_map` for consistency
Signed-off-by: Michal Terepeta <[email protected]>
Diffstat (limited to 'crates/ra_hir_def')
-rw-r--r--crates/ra_hir_def/src/db.rs2
-rw-r--r--crates/ra_hir_def/src/nameres.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_hir_def/src/db.rs b/crates/ra_hir_def/src/db.rs
index a348f37bc..da273eb11 100644
--- a/crates/ra_hir_def/src/db.rs
+++ b/crates/ra_hir_def/src/db.rs
@@ -50,7 +50,7 @@ pub trait DefDatabase: InternDatabase + AstDatabase {
50 #[salsa::transparent] 50 #[salsa::transparent]
51 fn crate_def_map(&self, krate: CrateId) -> Arc<CrateDefMap>; 51 fn crate_def_map(&self, krate: CrateId) -> Arc<CrateDefMap>;
52 52
53 #[salsa::invoke(CrateDefMap::compute_crate_def_map)] 53 #[salsa::invoke(CrateDefMap::compute_crate_def_map_query)]
54 fn compute_crate_def_map(&self, krate: CrateId) -> Arc<CrateDefMap>; 54 fn compute_crate_def_map(&self, krate: CrateId) -> Arc<CrateDefMap>;
55 55
56 #[salsa::invoke(StructData::struct_data_query)] 56 #[salsa::invoke(StructData::struct_data_query)]
diff --git a/crates/ra_hir_def/src/nameres.rs b/crates/ra_hir_def/src/nameres.rs
index 43255f4a1..4d210eab1 100644
--- a/crates/ra_hir_def/src/nameres.rs
+++ b/crates/ra_hir_def/src/nameres.rs
@@ -172,7 +172,7 @@ pub struct ModuleData {
172} 172}
173 173
174impl CrateDefMap { 174impl CrateDefMap {
175 pub(crate) fn compute_crate_def_map( 175 pub(crate) fn compute_crate_def_map_query(
176 // Note that this doesn't have `+ AstDatabase`! 176 // Note that this doesn't have `+ AstDatabase`!
177 // This gurantess that `CrateDefMap` is stable across reparses. 177 // This gurantess that `CrateDefMap` is stable across reparses.
178 db: &impl DefDatabase, 178 db: &impl DefDatabase,