aboutsummaryrefslogtreecommitdiff
path: root/crates
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2020-03-09 10:56:06 +0000
committerGitHub <[email protected]>2020-03-09 10:56:06 +0000
commit400972b01314b57ad01e84b927ee9a51c77e9a61 (patch)
treef3b6c94c23f027c24151720ab3f463e33324e718 /crates
parenta6133206d1614624bbb51650d33fae04d70bc21a (diff)
parent34b0409298cbc534bae4db92e39a7d760c9f47ef (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.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();