Skip to content

Commit 2e2e443

Browse files
committed
Add _query suffix to compute_crate_def_map for consistency
Signed-off-by: Michal Terepeta <michal.terepeta@gmail.com>
1 parent 7cd6f12 commit 2e2e443

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

crates/ra_hir_def/src/db.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ pub trait DefDatabase: InternDatabase + AstDatabase {
5050
#[salsa::transparent]
5151
fn crate_def_map(&self, krate: CrateId) -> Arc<CrateDefMap>;
5252

53-
#[salsa::invoke(CrateDefMap::compute_crate_def_map)]
53+
#[salsa::invoke(CrateDefMap::compute_crate_def_map_query)]
5454
fn compute_crate_def_map(&self, krate: CrateId) -> Arc<CrateDefMap>;
5555

5656
#[salsa::invoke(StructData::struct_data_query)]

crates/ra_hir_def/src/nameres.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ pub struct ModuleData {
172172
}
173173

174174
impl CrateDefMap {
175-
pub(crate) fn compute_crate_def_map(
175+
pub(crate) fn compute_crate_def_map_query(
176176
// Note that this doesn't have `+ AstDatabase`!
177177
// This gurantess that `CrateDefMap` is stable across reparses.
178178
db: &impl DefDatabase,

0 commit comments

Comments
 (0)