1
Fork 0

Step bootstrap cfgs

This commit is contained in:
Mark Rousskov 2024-04-29 09:27:34 -04:00
parent 377c518bce
commit a64f941611
44 changed files with 38 additions and 282 deletions

View file

@ -424,7 +424,7 @@ pub fn analyze_coroutine_closure_captures<'a, 'tcx: 'a, T>(
mut for_each: impl FnMut((usize, &'a CapturedPlace<'tcx>), (usize, &'a CapturedPlace<'tcx>)) -> T,
) -> impl Iterator<Item = T> + Captures<'a> + Captures<'tcx> {
std::iter::from_coroutine(
#[cfg_attr(not(bootstrap), coroutine)]
#[coroutine]
move || {
let mut child_captures = child_captures.into_iter().enumerate().peekable();