Movability doesn't need to be a query anymore

This commit is contained in:
Michael Goulet 2023-12-26 22:43:11 +00:00
parent 15ccf2e7bd
commit e24da8ea19
21 changed files with 29 additions and 56 deletions

View file

@ -275,7 +275,7 @@ fn do_mir_borrowck<'tcx>(
if let Some(local) = body.local_decls.raw.get(1)
// Get the interior types and args which typeck computed
&& let ty::Coroutine(def_id, _) = *local.ty.kind()
&& tcx.movability(def_id) == hir::Movability::Movable
&& tcx.coroutine_movability(def_id) == hir::Movability::Movable
{
true
} else {