]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_typeck/src/check/mod.rs
RegionCtxt merged `body_id` with `body_owner`
[rust.git] / compiler / rustc_typeck / src / check / mod.rs
index 0ede9ef775631cd0de056b63b3587f2504afcddf..028df78e6bdad958d50f89ccebfb60e866df991c 100644 (file)
@@ -493,7 +493,7 @@ fn typeck_with_fallback<'tcx>(
         if fn_sig.is_some() {
             fcx.regionck_fn(id, body, span, wf_tys);
         } else {
-            fcx.regionck_expr(body);
+            fcx.regionck_body(body);
         }
 
         fcx.resolve_type_vars_in_body(body)