Fix drop shim for AsyncFnOnce closure, AsyncFnMut shim for AsyncFn closure
This commit is contained in:
@@ -190,10 +190,13 @@ fn run_passes_inner<'tcx>(
|
||||
body.pass_count = 1;
|
||||
}
|
||||
|
||||
if let Some(coroutine) = body.coroutine.as_mut()
|
||||
&& let Some(by_move_body) = coroutine.by_move_body.as_mut()
|
||||
{
|
||||
run_passes_inner(tcx, by_move_body, passes, phase_change, validate_each);
|
||||
if let Some(coroutine) = body.coroutine.as_mut() {
|
||||
if let Some(by_move_body) = coroutine.by_move_body.as_mut() {
|
||||
run_passes_inner(tcx, by_move_body, passes, phase_change, validate_each);
|
||||
}
|
||||
if let Some(by_mut_body) = coroutine.by_mut_body.as_mut() {
|
||||
run_passes_inner(tcx, by_mut_body, passes, phase_change, validate_each);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user