aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir_ty/src
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2020-03-06 15:40:38 +0000
committerAleksey Kladov <[email protected]>2020-03-06 15:40:38 +0000
commit59f91f2f9ba4cb6fa86fccb8a427cb9af2ecd192 (patch)
tree637cf6dfb29d0b7d0ecee76a348e65187bdfc2ba /crates/ra_hir_ty/src
parentaa82b5915de32f582b58cd25816bc3be69aa75c7 (diff)
Less confusing profile names
Diffstat (limited to 'crates/ra_hir_ty/src')
-rw-r--r--crates/ra_hir_ty/src/db.rs2
-rw-r--r--crates/ra_hir_ty/src/infer.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_hir_ty/src/db.rs b/crates/ra_hir_ty/src/db.rs
index 85d85182f..c43619d1c 100644
--- a/crates/ra_hir_ty/src/db.rs
+++ b/crates/ra_hir_ty/src/db.rs
@@ -111,7 +111,7 @@ pub trait HirDatabase: DefDatabase {
111} 111}
112 112
113fn infer(db: &impl HirDatabase, def: DefWithBodyId) -> Arc<InferenceResult> { 113fn infer(db: &impl HirDatabase, def: DefWithBodyId) -> Arc<InferenceResult> {
114 let _p = profile("infer"); 114 let _p = profile("wait_infer");
115 db.do_infer(def) 115 db.do_infer(def)
116} 116}
117 117
diff --git a/crates/ra_hir_ty/src/infer.rs b/crates/ra_hir_ty/src/infer.rs
index 39f144216..437086ff6 100644
--- a/crates/ra_hir_ty/src/infer.rs
+++ b/crates/ra_hir_ty/src/infer.rs
@@ -64,7 +64,7 @@ mod coerce;
64 64
65/// The entry point of type inference. 65/// The entry point of type inference.
66pub fn do_infer_query(db: &impl HirDatabase, def: DefWithBodyId) -> Arc<InferenceResult> { 66pub fn do_infer_query(db: &impl HirDatabase, def: DefWithBodyId) -> Arc<InferenceResult> {
67 let _p = profile("do_infer"); 67 let _p = profile("infer");
68 let resolver = def.resolver(db); 68 let resolver = def.resolver(db);
69 let mut ctx = InferenceContext::new(db, def, resolver); 69 let mut ctx = InferenceContext::new(db, def, resolver);
70 70