From 2e2e4435605b8fdabb36f018c2d6cba1fd0069b8 Mon Sep 17 00:00:00 2001 From: Michal Terepeta Date: Fri, 3 Jan 2020 14:20:04 +0100 Subject: Add `_query` suffix to `compute_crate_def_map` for consistency Signed-off-by: Michal Terepeta --- crates/ra_hir_def/src/db.rs | 2 +- crates/ra_hir_def/src/nameres.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'crates/ra_hir_def') 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 { #[salsa::transparent] fn crate_def_map(&self, krate: CrateId) -> Arc; - #[salsa::invoke(CrateDefMap::compute_crate_def_map)] + #[salsa::invoke(CrateDefMap::compute_crate_def_map_query)] fn compute_crate_def_map(&self, krate: CrateId) -> Arc; #[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 { } impl CrateDefMap { - pub(crate) fn compute_crate_def_map( + pub(crate) fn compute_crate_def_map_query( // Note that this doesn't have `+ AstDatabase`! // This gurantess that `CrateDefMap` is stable across reparses. db: &impl DefDatabase, -- cgit v1.2.3