AsyncDrop implementation using shim codegen of async_drop_in_place::{closure}, scoped async drop added.

This commit is contained in:
Andrew Zhogin
2024-08-26 16:45:15 +03:00
parent 52c1838fa7
commit c366756a85
116 changed files with 4054 additions and 1879 deletions

View File

@@ -405,6 +405,9 @@ impl<'tcx> Map<'tcx> {
if exclude.contains(local) {
continue;
}
if decl.ty.is_async_drop_in_place_coroutine(tcx) {
continue;
}
// Create a place for the local.
debug_assert!(self.locals[local].is_none());