aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--crates/ra_hir_def/src/nameres.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/crates/ra_hir_def/src/nameres.rs b/crates/ra_hir_def/src/nameres.rs
index 066b43ef9..81eac52ad 100644
--- a/crates/ra_hir_def/src/nameres.rs
+++ b/crates/ra_hir_def/src/nameres.rs
@@ -177,7 +177,8 @@ pub struct ModuleData {
177 177
178impl CrateDefMap { 178impl CrateDefMap {
179 pub(crate) fn crate_def_map_query(db: &impl DefDatabase, krate: CrateId) -> Arc<CrateDefMap> { 179 pub(crate) fn crate_def_map_query(db: &impl DefDatabase, krate: CrateId) -> Arc<CrateDefMap> {
180 let _p = profile("crate_def_map_query"); 180 let _p = profile("crate_def_map_query")
181 .detail(|| db.crate_graph()[krate].display_name.clone().unwrap_or_default());
181 let def_map = { 182 let def_map = {
182 let edition = db.crate_graph()[krate].edition; 183 let edition = db.crate_graph()[krate].edition;
183 let mut modules: Arena<LocalModuleId, ModuleData> = Arena::default(); 184 let mut modules: Arena<LocalModuleId, ModuleData> = Arena::default();