diff options
author | Aleksey Kladov <[email protected]> | 2020-03-09 10:55:43 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2020-03-09 10:55:43 +0000 |
commit | 34b0409298cbc534bae4db92e39a7d760c9f47ef (patch) | |
tree | f3b6c94c23f027c24151720ab3f463e33324e718 /crates/ra_hir_def | |
parent | a6133206d1614624bbb51650d33fae04d70bc21a (diff) |
Print crate name in profil
Diffstat (limited to 'crates/ra_hir_def')
-rw-r--r-- | crates/ra_hir_def/src/nameres.rs | 3 |
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 | ||
178 | impl CrateDefMap { | 178 | impl 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(); |