aboutsummaryrefslogtreecommitdiff
path: root/crates
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2021-04-02 13:28:51 +0100
committerAleksey Kladov <[email protected]>2021-04-02 13:28:51 +0100
commit387d7c7d96d6ef2b9b7f8e1da1b761a045df711b (patch)
tree67fee4829ac0889ff099644c58d62c70c34286eb /crates
parent71ef64b673595807ccb4b3f5b7ad6ea55e63645b (diff)
minor: add profile call for resolve_obligations
Diffstat (limited to 'crates')
-rw-r--r--crates/hir_ty/src/infer.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/crates/hir_ty/src/infer.rs b/crates/hir_ty/src/infer.rs
index 497a1beb7..674e9e6f9 100644
--- a/crates/hir_ty/src/infer.rs
+++ b/crates/hir_ty/src/infer.rs
@@ -340,6 +340,8 @@ impl<'a> InferenceContext<'a> {
340 // no change 340 // no change
341 return; 341 return;
342 } 342 }
343 let _span = profile::span("resolve_obligations_as_possible");
344
343 self.last_obligations_check = Some(self.table.revision); 345 self.last_obligations_check = Some(self.table.revision);
344 let obligations = mem::replace(&mut self.obligations, Vec::new()); 346 let obligations = mem::replace(&mut self.obligations, Vec::new());
345 for obligation in obligations { 347 for obligation in obligations {