Revert "Isolated synchronous deinit"

This commit is contained in:
Alex Hoppen
2024-09-03 18:11:26 -07:00
committed by GitHub
parent de963486d0
commit c5aa49ba64
88 changed files with 509 additions and 4226 deletions

View File

@@ -232,23 +232,6 @@ static bool usesFeatureAllowUnsafeAttribute(Decl *decl) {
UNINTERESTING_FEATURE(WarnUnsafe)
bool swift::usesFeatureIsolatedDeinit(const Decl *decl) {
if (auto cd = dyn_cast<ClassDecl>(decl)) {
return cd->getFormalAccess() == AccessLevel::Open &&
usesFeatureIsolatedDeinit(cd->getDestructor());
} else if (auto dd = dyn_cast<DestructorDecl>(decl)) {
if (dd->hasExplicitIsolationAttribute()) {
return true;
}
if (auto superDD = dd->getSuperDeinit()) {
return usesFeatureIsolatedDeinit(superDD);
}
return false;
} else {
return false;
}
}
// ----------------------------------------------------------------------------
// MARK: - FeatureSet
// ----------------------------------------------------------------------------