aboutsummaryrefslogtreecommitdiff
path: root/crates
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2020-03-09 10:55:43 +0000
committerAleksey Kladov <[email protected]>2020-03-09 10:55:43 +0000
commit34b0409298cbc534bae4db92e39a7d760c9f47ef (patch)
treef3b6c94c23f027c24151720ab3f463e33324e718 /crates
parenta6133206d1614624bbb51650d33fae04d70bc21a (diff)
Print crate name in profil
Diffstat (limited to 'crates')
-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();