Merge pull request #36606 from DougGregor/remove-actor-independent-unsafe-isolation

[Concurrency] Remove actorIndependent(unsafe) isolation.
This commit is contained in:
Doug Gregor
2021-03-26 12:30:10 -07:00
committed by GitHub
11 changed files with 8 additions and 294 deletions

View File

@@ -8060,7 +8060,7 @@ ActorIsolation swift::getActorIsolationOfContext(DeclContext *dc) {
if (auto *closure = dyn_cast<AbstractClosureExpr>(dc)) {
switch (auto isolation = closure->getActorIsolation()) {
case ClosureActorIsolation::Independent:
return ActorIsolation::forIndependent(ActorIndependentKind::Safe);
return ActorIsolation::forIndependent();
case ClosureActorIsolation::GlobalActor: {
return ActorIsolation::forGlobalActor(