aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir_def/src
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2020-03-06 15:41:09 +0000
committerGitHub <[email protected]>2020-03-06 15:41:09 +0000
commit190179489d7e19043c1cd087d4d4fc9035614227 (patch)
tree637cf6dfb29d0b7d0ecee76a348e65187bdfc2ba /crates/ra_hir_def/src
parentaa82b5915de32f582b58cd25816bc3be69aa75c7 (diff)
parent59f91f2f9ba4cb6fa86fccb8a427cb9af2ecd192 (diff)
Merge #3496
3496: Less confusing profile names r=matklad a=matklad bors r+ 🤖 Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/ra_hir_def/src')
-rw-r--r--crates/ra_hir_def/src/db.rs2
-rw-r--r--crates/ra_hir_def/src/nameres.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_hir_def/src/db.rs b/crates/ra_hir_def/src/db.rs
index da273eb11..2338b2cbe 100644
--- a/crates/ra_hir_def/src/db.rs
+++ b/crates/ra_hir_def/src/db.rs
@@ -110,6 +110,6 @@ pub trait DefDatabase: InternDatabase + AstDatabase {
110} 110}
111 111
112fn crate_def_map(db: &impl DefDatabase, krate: CrateId) -> Arc<CrateDefMap> { 112fn crate_def_map(db: &impl DefDatabase, krate: CrateId) -> Arc<CrateDefMap> {
113 let _p = profile("crate_def_map"); 113 let _p = profile("wait_crate_def_map");
114 db.compute_crate_def_map(krate) 114 db.compute_crate_def_map(krate)
115} 115}
diff --git a/crates/ra_hir_def/src/nameres.rs b/crates/ra_hir_def/src/nameres.rs
index c5137a0ab..166d1c421 100644
--- a/crates/ra_hir_def/src/nameres.rs
+++ b/crates/ra_hir_def/src/nameres.rs
@@ -182,7 +182,7 @@ impl CrateDefMap {
182 db: &impl DefDatabase, 182 db: &impl DefDatabase,
183 krate: CrateId, 183 krate: CrateId,
184 ) -> Arc<CrateDefMap> { 184 ) -> Arc<CrateDefMap> {
185 let _p = profile("compute_crate_def_map"); 185 let _p = profile("crate_def_map");
186 let def_map = { 186 let def_map = {
187 let crate_graph = db.crate_graph(); 187 let crate_graph = db.crate_graph();
188 let edition = crate_graph.edition(krate); 188 let edition = crate_graph.edition(krate);