Skip to content

Commit 89e46b4

Browse files
committed
Minor: replace old name CrateDefMap
1 parent c16e647 commit 89e46b4

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

crates/hir_def/src/nameres.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
//! This module implements import-resolution/macro expansion algorithm.
22
//!
3-
//! The result of this module is `CrateDefMap`: a data structure which contains:
3+
//! The result of this module is `DefMap`: a data structure which contains:
44
//!
55
//! * a tree of modules for the crate
66
//! * for each module, a set of items visible in the module (directly declared
77
//! or imported)
88
//!
9-
//! Note that `CrateDefMap` contains fully macro expanded code.
9+
//! Note that `DefMap` contains fully macro expanded code.
1010
//!
11-
//! Computing `CrateDefMap` can be partitioned into several logically
11+
//! Computing `DefMap` can be partitioned into several logically
1212
//! independent "phases". The phases are mutually recursive though, there's no
1313
//! strict ordering.
1414
//!

crates/ide_db/src/symbol_index.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ pub fn world_symbols(db: &RootDatabase, query: Query) -> Vec<FileSymbol> {
198198

199199
pub fn crate_symbols(db: &RootDatabase, krate: CrateId, query: Query) -> Vec<FileSymbol> {
200200
let _p = profile::span("crate_symbols").detail(|| format!("{:?}", query));
201-
// FIXME(#4842): This now depends on CrateDefMap, why not build the entire symbol index from
201+
// FIXME(#4842): This now depends on DefMap, why not build the entire symbol index from
202202
// that instead?
203203

204204
let def_map = db.crate_def_map(krate);

0 commit comments

Comments
 (0)