diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2021-04-02 13:30:02 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2021-04-02 13:30:02 +0100 |
commit | 2c5f905c67bb8e3bfb19efa0de5ab911e63f8e42 (patch) | |
tree | 67fee4829ac0889ff099644c58d62c70c34286eb /crates/hir_ty/src | |
parent | 71ef64b673595807ccb4b3f5b7ad6ea55e63645b (diff) | |
parent | 387d7c7d96d6ef2b9b7f8e1da1b761a045df711b (diff) |
Merge #8294
8294: minor: add profile call for resolve_obligations r=matklad a=matklad
bors r+
🤖
Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/hir_ty/src')
-rw-r--r-- | crates/hir_ty/src/infer.rs | 2 |
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 { |