diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2020-03-09 10:56:06 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2020-03-09 10:56:06 +0000 |
commit | 400972b01314b57ad01e84b927ee9a51c77e9a61 (patch) | |
tree | f3b6c94c23f027c24151720ab3f463e33324e718 /crates | |
parent | a6133206d1614624bbb51650d33fae04d70bc21a (diff) | |
parent | 34b0409298cbc534bae4db92e39a7d760c9f47ef (diff) |
Merge #3528
3528: Print crate name in profil r=matklad a=matklad
bors r+
🤖
Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates')
-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(); |