Stall coroutines based off of ty::Coroutine, not ty::CoroutineWitness

This commit is contained in:
Michael Goulet
2025-07-18 18:17:15 +00:00
parent 3fb1b53a9d
commit d525e79157
15 changed files with 218 additions and 210 deletions

View File

@@ -355,7 +355,7 @@ impl<'tcx> TypeVisitor<TyCtxt<'tcx>> for StalledOnCoroutines<'tcx> {
return ControlFlow::Continue(());
}
if let ty::CoroutineWitness(def_id, _) = *ty.kind()
if let ty::Coroutine(def_id, _) = *ty.kind()
&& def_id.as_local().is_some_and(|def_id| self.stalled_coroutines.contains(&def_id))
{
ControlFlow::Break(())