mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Revert "Isolated synchronous deinit"
This commit is contained in:
@@ -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
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user