]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_typeck/src/check/mod.rs
Auto merge of #88266 - nikomatsakis:issue-87879, r=jackh726
[rust.git] / compiler / rustc_typeck / src / check / mod.rs
index ff6cb35a752565b2d5374dfdbc9e796f1af41a13..a88b1c7af5a96640f49b498fd536d0524ea57834 100644 (file)
@@ -392,7 +392,7 @@ fn typeck_with_fallback<'tcx>(
                 fn_sig,
             );
 
-            let fcx = check_fn(&inh, param_env, fn_sig, decl, id, body, None).0;
+            let fcx = check_fn(&inh, param_env, fn_sig, decl, id, body, None, true).0;
             fcx
         } else {
             let fcx = FnCtxt::new(&inh, param_env, body.value.hir_id);