mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Detach enable-experimental-async-top-level flag
SE-0343 is approved so it's time to pull the feature out from behind the experimental feature flag. This patch pulls it out and deprecates passing the flag to the frontend so that we can pull it out entirely eventually.
This commit is contained in:
@@ -9088,9 +9088,7 @@ ActorIsolation swift::getActorIsolationOfContext(DeclContext *dc) {
|
||||
}
|
||||
|
||||
if (auto *tld = dyn_cast<TopLevelCodeDecl>(dc)) {
|
||||
if (dc->isAsyncContext() ||
|
||||
(dc->getASTContext().LangOpts.WarnConcurrency &&
|
||||
dc->getASTContext().LangOpts.EnableExperimentalAsyncTopLevel)) {
|
||||
if (dc->isAsyncContext() || dc->getASTContext().LangOpts.WarnConcurrency) {
|
||||
if (Type mainActor = dc->getASTContext().getMainActorType())
|
||||
return ActorIsolation::forGlobalActor(mainActor, /*unsafe=*/false);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user