]> git.lizzy.rs Git - rust.git/commitdiff
minor: add profile call for resolve_obligations
authorAleksey Kladov <aleksey.kladov@gmail.com>
Fri, 2 Apr 2021 12:28:51 +0000 (15:28 +0300)
committerAleksey Kladov <aleksey.kladov@gmail.com>
Fri, 2 Apr 2021 12:28:51 +0000 (15:28 +0300)
crates/hir_ty/src/infer.rs

index 497a1beb7dc795082555a253eb9aeb917c75186b..674e9e6f9301717916892a03351cba5c834c699c 100644 (file)
@@ -340,6 +340,8 @@ fn resolve_obligations_as_possible(&mut self) {
             // no change
             return;
         }
+        let _span = profile::span("resolve_obligations_as_possible");
+
         self.last_obligations_check = Some(self.table.revision);
         let obligations = mem::replace(&mut self.obligations, Vec::new());
         for obligation in obligations {