Remove movability from TyKind::Coroutine
This commit is contained in:
@@ -578,9 +578,7 @@ impl<'tcx> TypeSuperFoldable<TyCtxt<'tcx>> for Ty<'tcx> {
|
||||
ty::Ref(r, ty, mutbl) => {
|
||||
ty::Ref(r.try_fold_with(folder)?, ty.try_fold_with(folder)?, mutbl)
|
||||
}
|
||||
ty::Coroutine(did, args, movability) => {
|
||||
ty::Coroutine(did, args.try_fold_with(folder)?, movability)
|
||||
}
|
||||
ty::Coroutine(did, args) => ty::Coroutine(did, args.try_fold_with(folder)?),
|
||||
ty::CoroutineWitness(did, args) => {
|
||||
ty::CoroutineWitness(did, args.try_fold_with(folder)?)
|
||||
}
|
||||
@@ -630,7 +628,7 @@ impl<'tcx> TypeSuperVisitable<TyCtxt<'tcx>> for Ty<'tcx> {
|
||||
r.visit_with(visitor)?;
|
||||
ty.visit_with(visitor)
|
||||
}
|
||||
ty::Coroutine(_did, ref args, _) => args.visit_with(visitor),
|
||||
ty::Coroutine(_did, ref args) => args.visit_with(visitor),
|
||||
ty::CoroutineWitness(_did, ref args) => args.visit_with(visitor),
|
||||
ty::Closure(_did, ref args) => args.visit_with(visitor),
|
||||
ty::Alias(_, ref data) => data.visit_with(visitor),
|
||||
|
||||
Reference in New Issue
Block a user