mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 21:05:02 +00:00
Rename CrateDefMap
to DefMap
This commit is contained in:
parent
08efb8a943
commit
57a82fb05b
10 changed files with 35 additions and 39 deletions
|
@ -18,7 +18,7 @@ use hir_def::{
|
|||
db::DefDatabase,
|
||||
item_scope::ItemScope,
|
||||
keys,
|
||||
nameres::CrateDefMap,
|
||||
nameres::DefMap,
|
||||
AssocItemId, DefWithBodyId, LocalModuleId, Lookup, ModuleDefId,
|
||||
};
|
||||
use hir_expand::{db::AstDatabase, InFile};
|
||||
|
@ -221,7 +221,7 @@ fn infer_with_mismatches(content: &str, include_mismatches: bool) -> String {
|
|||
|
||||
fn visit_module(
|
||||
db: &TestDB,
|
||||
crate_def_map: &CrateDefMap,
|
||||
crate_def_map: &DefMap,
|
||||
module_id: LocalModuleId,
|
||||
cb: &mut dyn FnMut(DefWithBodyId),
|
||||
) {
|
||||
|
@ -249,7 +249,7 @@ fn visit_module(
|
|||
|
||||
fn visit_scope(
|
||||
db: &TestDB,
|
||||
crate_def_map: &CrateDefMap,
|
||||
crate_def_map: &DefMap,
|
||||
scope: &ItemScope,
|
||||
cb: &mut dyn FnMut(DefWithBodyId),
|
||||
) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue