]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_hir_typeck/src/closure.rs
Remove some return-type booleans from FnCtxt
[rust.git] / compiler / rustc_hir_typeck / src / closure.rs
index a5a45f75e0e240c25a0ec8fb1bcad01d5b6dfa14..1c2a7dfd994f9a5533c421a84591863527315bfe 100644 (file)
@@ -82,8 +82,6 @@ fn check_closure(
 
         debug!(?bound_sig, ?liberated_sig);
 
-        let return_type_pre_known = !liberated_sig.output().is_ty_infer();
-
         let generator_types = check_fn(
             self,
             self.param_env.without_const(),
@@ -92,7 +90,6 @@ fn check_closure(
             expr.hir_id,
             body,
             gen,
-            return_type_pre_known,
         )
         .1;