mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Enable strict memory safety in the Distributed module
This commit is contained in:
@@ -406,10 +406,10 @@ extension DistributedActor {
|
||||
@_implements(Actor, unownedExecutor)
|
||||
public nonisolated var __actorUnownedExecutor: UnownedSerialExecutor {
|
||||
if #available(macOS 14.0, iOS 17.0, watchOS 10.0, tvOS 17.0, *) {
|
||||
return unownedExecutor
|
||||
return unsafe unownedExecutor
|
||||
} else {
|
||||
// On older platforms, all distributed actors are default actors.
|
||||
return UnownedSerialExecutor(Builtin.buildDefaultActorExecutorRef(self))
|
||||
return unsafe UnownedSerialExecutor(Builtin.buildDefaultActorExecutorRef(self))
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user