about summary refs log tree commit diff
diff options
context:
space:
mode:
authorBorys Minaiev <mb.787788@gmail.com>2022-09-12 11:03:44 +0100
committerBorys Minaiev <mb.787788@gmail.com>2022-09-12 11:03:44 +0100
commit32603baac383c081e035cb4433105e9d431c9332 (patch)
tree9ea800dcbe2342b4438110fd1b588387bbb34f39
parent2e9f1204ca01c3e20898d4a67c8b84899d394a88 (diff)
downloadrust-32603baac383c081e035cb4433105e9d431c9332.tar.gz
rust-32603baac383c081e035cb4433105e9d431c9332.zip
Remove redundant 'resolve_obligations_as_possible' call
-rw-r--r--crates/hir-ty/src/infer.rs5
1 files changed, 0 insertions, 5 deletions
diff --git a/crates/hir-ty/src/infer.rs b/crates/hir-ty/src/infer.rs
index 10ffde87eef..e37763e8ea7 100644
--- a/crates/hir-ty/src/infer.rs
+++ b/crates/hir-ty/src/infer.rs
@@ -673,10 +673,6 @@ impl<'a> InferenceContext<'a> {
         )
     }
 
-    fn resolve_obligations_as_possible(&mut self) {
-        self.table.resolve_obligations_as_possible();
-    }
-
     fn push_obligation(&mut self, o: DomainGoal) {
         self.table.register_obligation(o.cast(Interner));
     }
@@ -696,7 +692,6 @@ impl<'a> InferenceContext<'a> {
     }
 
     fn resolve_ty_shallow(&mut self, ty: &Ty) -> Ty {
-        self.resolve_obligations_as_possible();
         self.table.resolve_ty_shallow(ty)
     }