1
Fork 0

Move RegionKind to rustc_type_ir

This commit is contained in:
Jack Huey 2022-06-19 00:20:27 -04:00
parent 8e430bfa9a
commit 1e9f8df6bb
12 changed files with 597 additions and 344 deletions

View file

@ -574,7 +574,7 @@ impl<'tcx> TyCtxt<'tcx> {
self,
closure_def_id: DefId,
closure_substs: SubstsRef<'tcx>,
env_region: ty::RegionKind,
env_region: ty::RegionKind<'tcx>,
) -> Option<Ty<'tcx>> {
let closure_ty = self.mk_closure(closure_def_id, closure_substs);
let closure_kind_ty = closure_substs.as_closure().kind_ty();