File tree Expand file tree Collapse file tree 1 file changed +0
-25
lines changed Expand file tree Collapse file tree 1 file changed +0
-25
lines changed Original file line number Diff line number Diff line change @@ -3554,31 +3554,6 @@ void swift::checkOverrideActorIsolation(ValueDecl *value) {
3554
3554
}
3555
3555
}
3556
3556
3557
- // If the overriding declaration uses an unsafe global actor, we can do
3558
- // anything that doesn't actively conflict with the overridden isolation.
3559
- if (isolation == ActorIsolation::GlobalActorUnsafe) {
3560
- switch (overriddenIsolation) {
3561
- case ActorIsolation::Unspecified:
3562
- return ;
3563
-
3564
- case ActorIsolation::ActorInstance:
3565
- case ActorIsolation::DistributedActorInstance:
3566
- case ActorIsolation::Independent:
3567
- // Diagnose below.
3568
- break ;
3569
-
3570
- case ActorIsolation::GlobalActor:
3571
- case ActorIsolation::GlobalActorUnsafe:
3572
- // The global actors don't match; diagnose it.
3573
- if (overriddenIsolation.getGlobalActor ()->isEqual (
3574
- isolation.getGlobalActor ()))
3575
- return ;
3576
-
3577
- // Diagnose below.
3578
- break ;
3579
- }
3580
- }
3581
-
3582
3557
// Isolation mismatch. Diagnose it.
3583
3558
value->diagnose (
3584
3559
diag::actor_isolation_override_mismatch, isolation,
You can’t perform that action at this time.
0 commit comments