mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-03 07:04:49 +00:00
Add _query
suffix to compute_crate_def_map
for consistency
Signed-off-by: Michal Terepeta <michal.terepeta@gmail.com>
This commit is contained in:
parent
7cd6f12926
commit
2e2e443560
2 changed files with 2 additions and 2 deletions
|
@ -50,7 +50,7 @@ pub trait DefDatabase: InternDatabase + AstDatabase {
|
||||||
#[salsa::transparent]
|
#[salsa::transparent]
|
||||||
fn crate_def_map(&self, krate: CrateId) -> Arc<CrateDefMap>;
|
fn crate_def_map(&self, krate: CrateId) -> Arc<CrateDefMap>;
|
||||||
|
|
||||||
#[salsa::invoke(CrateDefMap::compute_crate_def_map)]
|
#[salsa::invoke(CrateDefMap::compute_crate_def_map_query)]
|
||||||
fn compute_crate_def_map(&self, krate: CrateId) -> Arc<CrateDefMap>;
|
fn compute_crate_def_map(&self, krate: CrateId) -> Arc<CrateDefMap>;
|
||||||
|
|
||||||
#[salsa::invoke(StructData::struct_data_query)]
|
#[salsa::invoke(StructData::struct_data_query)]
|
||||||
|
|
|
@ -172,7 +172,7 @@ pub struct ModuleData {
|
||||||
}
|
}
|
||||||
|
|
||||||
impl CrateDefMap {
|
impl CrateDefMap {
|
||||||
pub(crate) fn compute_crate_def_map(
|
pub(crate) fn compute_crate_def_map_query(
|
||||||
// Note that this doesn't have `+ AstDatabase`!
|
// Note that this doesn't have `+ AstDatabase`!
|
||||||
// This gurantess that `CrateDefMap` is stable across reparses.
|
// This gurantess that `CrateDefMap` is stable across reparses.
|
||||||
db: &impl DefDatabase,
|
db: &impl DefDatabase,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue