Build Information
Failed to build swift-distributed-actors, reference 1.0.0-beta.3 (d816a1
), with Swift 6.0 for macOS (SPM) on 29 Nov 2024 20:32:11 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Build Log
143 | final class _ChildTerminated: Terminated {
| `- warning: class '_ChildTerminated' must restate inherited '@unchecked Sendable' conformance
144 | /// Filled with the error that caused the child actor to terminate.
145 | /// This kind of information is only known to the parent, which may decide to perform
[1444/1457] Compiling DistributedCluster WeakActorDictionary.swift
/Users/admin/builder/spi-builder-workspace/Sources/DistributedCluster/Supervision.swift:21:16: warning: static property 'default' is not concurrency-safe because non-'Sendable' type '_SupervisionProps' may have shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | /// Properties configuring supervision for given actor.
16 | internal struct _SupervisionProps {
| `- note: consider making struct '_SupervisionProps' conform to the 'Sendable' protocol
17 | // internal var supervisionMappings: [ErrorTypeIdentifier: _SupervisionStrategy]
18 | // on purpose stored as list, to keep order in which the supervisors are added as we "scan" from first to last when we handle
19 | internal var supervisionMappings: [ErrorTypeBoundSupervisionStrategy]
20 |
21 | static let `default`: _SupervisionProps = .init()
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type '_SupervisionProps' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'default' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
22 |
23 | init() {
/Users/admin/builder/spi-builder-workspace/Sources/DistributedCluster/SystemMessages.swift:166:16: warning: static property 'metaType' is not concurrency-safe because non-'Sendable' type 'MetaType<_SystemMessage>' may have shared mutable state; this is an error in the Swift 6 language mode
164 |
165 | extension _SystemMessage {
166 | static let metaType: MetaType<_SystemMessage> = MetaType(_SystemMessage.self)
| |- warning: static property 'metaType' is not concurrency-safe because non-'Sendable' type 'MetaType<_SystemMessage>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'metaType' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
167 | }
168 |
/Users/admin/builder/spi-builder-workspace/Sources/DistributedCluster/Serialization/Serialization.swift:626:17: note: consider making generic struct 'MetaType' conform to the 'Sendable' protocol
624 | /// A meta type is a type eraser for any `T`, such that we can still perform `value is T` checks.
625 | @usableFromInline
626 | internal struct MetaType<T>: Hashable, CustomStringConvertible {
| `- note: consider making generic struct 'MetaType' conform to the 'Sendable' protocol
627 | let _underlying: Any.Type?
628 | let id: ObjectIdentifier
/Users/admin/builder/spi-builder-workspace/Sources/DistributedCluster/Time.swift:81:16: warning: static property 'effectivelyInfinite' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
79 | /// Largest time amount expressible using this type.
80 | /// Roughly equivalent to 292 years, which for the intents and purposes of this type can serve as "infinite".
81 | static var effectivelyInfinite: Duration = .nanoseconds(Value.max)
| |- warning: static property 'effectivelyInfinite' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'effectivelyInfinite' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'effectivelyInfinite' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
82 | }
83 |
/Users/admin/builder/spi-builder-workspace/Sources/DistributedCluster/_ActorNaming.swift:61:16: warning: static property 'ask' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
59 | extension _ActorNaming {
60 | /// Special naming scheme applied to `ask` actors.
61 | static var ask: _ActorNaming = .init(unchecked: .prefixed(prefix: "$ask", suffixScheme: .letters))
| |- warning: static property 'ask' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'ask' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'ask' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
62 |
63 | /// Naming for adapters (`context.messageAdapter`)
/Users/admin/builder/spi-builder-workspace/Sources/DistributedCluster/_ActorNaming.swift:64:16: warning: static property 'adapter' is not concurrency-safe because non-'Sendable' type '_ActorNaming' may have shared mutable state; this is an error in the Swift 6 language mode
62 |
63 | /// Naming for adapters (`context.messageAdapter`)
64 | static let adapter: _ActorNaming = .init(unchecked: .unique("$messageAdapter"))
| |- warning: static property 'adapter' is not concurrency-safe because non-'Sendable' type '_ActorNaming' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'adapter' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
65 | }
66 |
67 | /// Used while spawning actors to identify how its name should be created.
68 | public struct _ActorNaming: ExpressibleByStringLiteral, ExpressibleByStringInterpolation {
| `- note: consider making struct '_ActorNaming' conform to the 'Sendable' protocol
69 | // We keep an internal enum, but do not expose it as we may want to add more naming strategies in the future?
70 | internal enum _Naming {
/Users/admin/builder/spi-builder-workspace/Sources/DistributedCluster/_ActorShell.swift:629:38: warning: generic parameter 'Message' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
29 | /// The shell is mutable, and full of dangerous and carefully threaded/ordered code, be extra cautious.
30 | // TODO: remove this and replace by the infrastructure which is now Swift's `actor`
31 | public final class _ActorShell<Message: Codable>: _ActorContext<Message>, AbstractShellProtocol {
| `- note: 'Message' previously declared here
32 | // The phrase that "actor change their behavior" can be understood quite literally;
33 | // On each message interpretation the actor may return a new behavior that will be handling the next message.
:
627 |
628 | @discardableResult
629 | override public func _spawnWatch<Message>(
| `- warning: generic parameter 'Message' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
630 | _ naming: _ActorNaming,
631 | of type: Message.Type = Message.self,
/Users/admin/builder/spi-builder-workspace/Sources/DistributedCluster/_ActorShell.swift:641:31: warning: generic parameter 'Message' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
29 | /// The shell is mutable, and full of dangerous and carefully threaded/ordered code, be extra cautious.
30 | // TODO: remove this and replace by the infrastructure which is now Swift's `actor`
31 | public final class _ActorShell<Message: Codable>: _ActorContext<Message>, AbstractShellProtocol {
| `- note: 'Message' previously declared here
32 | // The phrase that "actor change their behavior" can be understood quite literally;
33 | // On each message interpretation the actor may return a new behavior that will be handling the next message.
:
639 | }
640 |
641 | override public func stop<Message: Codable>(child ref: _ActorRef<Message>) throws {
| `- warning: generic parameter 'Message' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
642 | try self._stop(child: ref)
643 | }
/Users/admin/builder/spi-builder-workspace/Sources/DistributedCluster/_ActorShell.swift:996:17: warning: conformance of 'Never' to 'Decodable' is only available in macOS 14.0 or newer; this is an error in the Swift 6 language mode
939 | }
940 |
941 | extension AbstractShellProtocol {
| `- note: add @available attribute to enclosing extension
942 | @inlinable
943 | var receivesSystemMessages: _ReceivesSystemMessages {
:
994 | }
995 |
996 | public func _resolveUntyped(context: _ResolveContext<Never>) -> _AddressableActorRef {
| |- warning: conformance of 'Never' to 'Decodable' is only available in macOS 14.0 or newer; this is an error in the Swift 6 language mode
| `- note: add @available attribute to enclosing instance method
997 | guard context.selectorSegments.first != nil else {
998 | // no remaining selectors == we are the "selected" ref, apply uid check
/Users/admin/builder/spi-builder-workspace/Sources/DistributedCluster/_ActorShell.swift:996:17: warning: conformance of 'Never' to 'Encodable' is only available in macOS 14.0 or newer; this is an error in the Swift 6 language mode
939 | }
940 |
941 | extension AbstractShellProtocol {
| `- note: add @available attribute to enclosing extension
942 | @inlinable
943 | var receivesSystemMessages: _ReceivesSystemMessages {
:
994 | }
995 |
996 | public func _resolveUntyped(context: _ResolveContext<Never>) -> _AddressableActorRef {
| |- warning: conformance of 'Never' to 'Encodable' is only available in macOS 14.0 or newer; this is an error in the Swift 6 language mode
| `- note: add @available attribute to enclosing instance method
997 | guard context.selectorSegments.first != nil else {
998 | // no remaining selectors == we are the "selected" ref, apply uid check
/Users/admin/builder/spi-builder-workspace/Sources/DistributedCluster/_ActorShell.swift:752:139: warning: 'wellKnown' is deprecated: Useful only with behavior actors, will be removed entirely
750 | return .init(.adapter(adapter))
751 | } else {
752 | let adaptedAddress = try self.id.makeChildAddress(name: _ActorNaming.adapter.makeName(&self.namingContext), incarnation: .wellKnown)
| `- warning: 'wellKnown' is deprecated: Useful only with behavior actors, will be removed entirely
753 | let adapter = _ActorRefAdapter(fromType: fromType, to: self.myself, id: adaptedAddress)
754 |
/Users/admin/builder/spi-builder-workspace/Sources/DistributedCluster/_ActorShell.swift:997:23: warning: conformance of 'Never' to 'Decodable' is only available in macOS 14.0 or newer; this is an error in the Swift 6 language mode
939 | }
940 |
941 | extension AbstractShellProtocol {
| `- note: add @available attribute to enclosing extension
942 | @inlinable
943 | var receivesSystemMessages: _ReceivesSystemMessages {
:
994 | }
995 |
996 | public func _resolveUntyped(context: _ResolveContext<Never>) -> _AddressableActorRef {
| `- note: add @available attribute to enclosing instance method
997 | guard context.selectorSegments.first != nil else {
| |- warning: conformance of 'Never' to 'Decodable' is only available in macOS 14.0 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
998 | // no remaining selectors == we are the "selected" ref, apply uid check
999 | if self._myselfReceivesSystemMessages.id.incarnation == context.id.incarnation {
/Users/admin/builder/spi-builder-workspace/Sources/DistributedCluster/_ActorShell.swift:997:23: warning: conformance of 'Never' to 'Encodable' is only available in macOS 14.0 or newer; this is an error in the Swift 6 language mode
939 | }
940 |
941 | extension AbstractShellProtocol {
| `- note: add @available attribute to enclosing extension
942 | @inlinable
943 | var receivesSystemMessages: _ReceivesSystemMessages {
:
994 | }
995 |
996 | public func _resolveUntyped(context: _ResolveContext<Never>) -> _AddressableActorRef {
| `- note: add @available attribute to enclosing instance method
997 | guard context.selectorSegments.first != nil else {
| |- warning: conformance of 'Never' to 'Encodable' is only available in macOS 14.0 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
998 | // no remaining selectors == we are the "selected" ref, apply uid check
999 | if self._myselfReceivesSystemMessages.id.incarnation == context.id.incarnation {
/Users/admin/builder/spi-builder-workspace/Sources/DistributedCluster/_ActorShell.swift:999:77: warning: conformance of 'Never' to 'Decodable' is only available in macOS 14.0 or newer; this is an error in the Swift 6 language mode
939 | }
940 |
941 | extension AbstractShellProtocol {
| `- note: add @available attribute to enclosing extension
942 | @inlinable
943 | var receivesSystemMessages: _ReceivesSystemMessages {
:
994 | }
995 |
996 | public func _resolveUntyped(context: _ResolveContext<Never>) -> _AddressableActorRef {
| `- note: add @available attribute to enclosing instance method
997 | guard context.selectorSegments.first != nil else {
998 | // no remaining selectors == we are the "selected" ref, apply uid check
999 | if self._myselfReceivesSystemMessages.id.incarnation == context.id.incarnation {
| |- warning: conformance of 'Never' to 'Decodable' is only available in macOS 14.0 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
1000 | return self.asAddressable
1001 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/DistributedCluster/_ActorShell.swift:999:77: warning: conformance of 'Never' to 'Encodable' is only available in macOS 14.0 or newer; this is an error in the Swift 6 language mode
939 | }
940 |
941 | extension AbstractShellProtocol {
| `- note: add @available attribute to enclosing extension
942 | @inlinable
943 | var receivesSystemMessages: _ReceivesSystemMessages {
:
994 | }
995 |
996 | public func _resolveUntyped(context: _ResolveContext<Never>) -> _AddressableActorRef {
| `- note: add @available attribute to enclosing instance method
997 | guard context.selectorSegments.first != nil else {
998 | // no remaining selectors == we are the "selected" ref, apply uid check
999 | if self._myselfReceivesSystemMessages.id.incarnation == context.id.incarnation {
| |- warning: conformance of 'Never' to 'Encodable' is only available in macOS 14.0 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
1000 | return self.asAddressable
1001 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/DistributedCluster/_ActorShell.swift:1003:32: warning: conformance of 'Never' to 'Decodable' is only available in macOS 14.0 or newer; this is an error in the Swift 6 language mode
939 | }
940 |
941 | extension AbstractShellProtocol {
| `- note: add @available attribute to enclosing extension
942 | @inlinable
943 | var receivesSystemMessages: _ReceivesSystemMessages {
:
994 | }
995 |
996 | public func _resolveUntyped(context: _ResolveContext<Never>) -> _AddressableActorRef {
| `- note: add @available attribute to enclosing instance method
997 | guard context.selectorSegments.first != nil else {
998 | // no remaining selectors == we are the "selected" ref, apply uid check
:
1001 | } else {
1002 | // the selection was indeed for this path, however we are a different incarnation (or different actor)
1003 | return context.personalDeadLetters.asAddressable
| |- warning: conformance of 'Never' to 'Decodable' is only available in macOS 14.0 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
1004 | }
1005 | }
/Users/admin/builder/spi-builder-workspace/Sources/DistributedCluster/_ActorShell.swift:1003:32: warning: conformance of 'Never' to 'Encodable' is only available in macOS 14.0 or newer; this is an error in the Swift 6 language mode
939 | }
940 |
941 | extension AbstractShellProtocol {
| `- note: add @available attribute to enclosing extension
942 | @inlinable
943 | var receivesSystemMessages: _ReceivesSystemMessages {
:
994 | }
995 |
996 | public func _resolveUntyped(context: _ResolveContext<Never>) -> _AddressableActorRef {
| `- note: add @available attribute to enclosing instance method
997 | guard context.selectorSegments.first != nil else {
998 | // no remaining selectors == we are the "selected" ref, apply uid check
:
1001 | } else {
1002 | // the selection was indeed for this path, however we are a different incarnation (or different actor)
1003 | return context.personalDeadLetters.asAddressable
| |- warning: conformance of 'Never' to 'Encodable' is only available in macOS 14.0 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
1004 | }
1005 | }
/Users/admin/builder/spi-builder-workspace/Sources/DistributedCluster/_ActorShell.swift:1003:52: warning: conformance of 'Never' to 'Decodable' is only available in macOS 14.0 or newer; this is an error in the Swift 6 language mode
939 | }
940 |
941 | extension AbstractShellProtocol {
| `- note: add @available attribute to enclosing extension
942 | @inlinable
943 | var receivesSystemMessages: _ReceivesSystemMessages {
:
994 | }
995 |
996 | public func _resolveUntyped(context: _ResolveContext<Never>) -> _AddressableActorRef {
| `- note: add @available attribute to enclosing instance method
997 | guard context.selectorSegments.first != nil else {
998 | // no remaining selectors == we are the "selected" ref, apply uid check
:
1001 | } else {
1002 | // the selection was indeed for this path, however we are a different incarnation (or different actor)
1003 | return context.personalDeadLetters.asAddressable
| |- warning: conformance of 'Never' to 'Decodable' is only available in macOS 14.0 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
1004 | }
1005 | }
/Users/admin/builder/spi-builder-workspace/Sources/DistributedCluster/_ActorShell.swift:1003:52: warning: conformance of 'Never' to 'Encodable' is only available in macOS 14.0 or newer; this is an error in the Swift 6 language mode
939 | }
940 |
941 | extension AbstractShellProtocol {
| `- note: add @available attribute to enclosing extension
942 | @inlinable
943 | var receivesSystemMessages: _ReceivesSystemMessages {
:
994 | }
995 |
996 | public func _resolveUntyped(context: _ResolveContext<Never>) -> _AddressableActorRef {
| `- note: add @available attribute to enclosing instance method
997 | guard context.selectorSegments.first != nil else {
998 | // no remaining selectors == we are the "selected" ref, apply uid check
:
1001 | } else {
1002 | // the selection was indeed for this path, however we are a different incarnation (or different actor)
1003 | return context.personalDeadLetters.asAddressable
| |- warning: conformance of 'Never' to 'Encodable' is only available in macOS 14.0 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
1004 | }
1005 | }
/Users/admin/builder/spi-builder-workspace/Sources/DistributedCluster/_Signals.swift:143:17: warning: class '_ChildTerminated' must restate inherited '@unchecked Sendable' conformance
141 | ///
142 | /// - SeeAlso: `Terminated` which is sent when a watched actor terminates.
143 | final class _ChildTerminated: Terminated {
| `- warning: class '_ChildTerminated' must restate inherited '@unchecked Sendable' conformance
144 | /// Filled with the error that caused the child actor to terminate.
145 | /// This kind of information is only known to the parent, which may decide to perform
[1445/1457] Compiling DistributedCluster _ActorNaming.swift
/Users/admin/builder/spi-builder-workspace/Sources/DistributedCluster/Supervision.swift:21:16: warning: static property 'default' is not concurrency-safe because non-'Sendable' type '_SupervisionProps' may have shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | /// Properties configuring supervision for given actor.
16 | internal struct _SupervisionProps {
| `- note: consider making struct '_SupervisionProps' conform to the 'Sendable' protocol
17 | // internal var supervisionMappings: [ErrorTypeIdentifier: _SupervisionStrategy]
18 | // on purpose stored as list, to keep order in which the supervisors are added as we "scan" from first to last when we handle
19 | internal var supervisionMappings: [ErrorTypeBoundSupervisionStrategy]
20 |
21 | static let `default`: _SupervisionProps = .init()
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type '_SupervisionProps' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'default' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
22 |
23 | init() {
/Users/admin/builder/spi-builder-workspace/Sources/DistributedCluster/SystemMessages.swift:166:16: warning: static property 'metaType' is not concurrency-safe because non-'Sendable' type 'MetaType<_SystemMessage>' may have shared mutable state; this is an error in the Swift 6 language mode
164 |
165 | extension _SystemMessage {
166 | static let metaType: MetaType<_SystemMessage> = MetaType(_SystemMessage.self)
| |- warning: static property 'metaType' is not concurrency-safe because non-'Sendable' type 'MetaType<_SystemMessage>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'metaType' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
167 | }
168 |
/Users/admin/builder/spi-builder-workspace/Sources/DistributedCluster/Serialization/Serialization.swift:626:17: note: consider making generic struct 'MetaType' conform to the 'Sendable' protocol
624 | /// A meta type is a type eraser for any `T`, such that we can still perform `value is T` checks.
625 | @usableFromInline
626 | internal struct MetaType<T>: Hashable, CustomStringConvertible {
| `- note: consider making generic struct 'MetaType' conform to the 'Sendable' protocol
627 | let _underlying: Any.Type?
628 | let id: ObjectIdentifier
/Users/admin/builder/spi-builder-workspace/Sources/DistributedCluster/Time.swift:81:16: warning: static property 'effectivelyInfinite' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
79 | /// Largest time amount expressible using this type.
80 | /// Roughly equivalent to 292 years, which for the intents and purposes of this type can serve as "infinite".
81 | static var effectivelyInfinite: Duration = .nanoseconds(Value.max)
| |- warning: static property 'effectivelyInfinite' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'effectivelyInfinite' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'effectivelyInfinite' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
82 | }
83 |
/Users/admin/builder/spi-builder-workspace/Sources/DistributedCluster/_ActorNaming.swift:61:16: warning: static property 'ask' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
59 | extension _ActorNaming {
60 | /// Special naming scheme applied to `ask` actors.
61 | static var ask: _ActorNaming = .init(unchecked: .prefixed(prefix: "$ask", suffixScheme: .letters))
| |- warning: static property 'ask' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'ask' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'ask' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
62 |
63 | /// Naming for adapters (`context.messageAdapter`)
/Users/admin/builder/spi-builder-workspace/Sources/DistributedCluster/_ActorNaming.swift:64:16: warning: static property 'adapter' is not concurrency-safe because non-'Sendable' type '_ActorNaming' may have shared mutable state; this is an error in the Swift 6 language mode
62 |
63 | /// Naming for adapters (`context.messageAdapter`)
64 | static let adapter: _ActorNaming = .init(unchecked: .unique("$messageAdapter"))
| |- warning: static property 'adapter' is not concurrency-safe because non-'Sendable' type '_ActorNaming' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'adapter' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
65 | }
66 |
67 | /// Used while spawning actors to identify how its name should be created.
68 | public struct _ActorNaming: ExpressibleByStringLiteral, ExpressibleByStringInterpolation {
| `- note: consider making struct '_ActorNaming' conform to the 'Sendable' protocol
69 | // We keep an internal enum, but do not expose it as we may want to add more naming strategies in the future?
70 | internal enum _Naming {
/Users/admin/builder/spi-builder-workspace/Sources/DistributedCluster/_ActorShell.swift:629:38: warning: generic parameter 'Message' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
29 | /// The shell is mutable, and full of dangerous and carefully threaded/ordered code, be extra cautious.
30 | // TODO: remove this and replace by the infrastructure which is now Swift's `actor`
31 | public final class _ActorShell<Message: Codable>: _ActorContext<Message>, AbstractShellProtocol {
| `- note: 'Message' previously declared here
32 | // The phrase that "actor change their behavior" can be understood quite literally;
33 | // On each message interpretation the actor may return a new behavior that will be handling the next message.
:
627 |
628 | @discardableResult
629 | override public func _spawnWatch<Message>(
| `- warning: generic parameter 'Message' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
630 | _ naming: _ActorNaming,
631 | of type: Message.Type = Message.self,
/Users/admin/builder/spi-builder-workspace/Sources/DistributedCluster/_ActorShell.swift:641:31: warning: generic parameter 'Message' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
29 | /// The shell is mutable, and full of dangerous and carefully threaded/ordered code, be extra cautious.
30 | // TODO: remove this and replace by the infrastructure which is now Swift's `actor`
31 | public final class _ActorShell<Message: Codable>: _ActorContext<Message>, AbstractShellProtocol {
| `- note: 'Message' previously declared here
32 | // The phrase that "actor change their behavior" can be understood quite literally;
33 | // On each message interpretation the actor may return a new behavior that will be handling the next message.
:
639 | }
640 |
641 | override public func stop<Message: Codable>(child ref: _ActorRef<Message>) throws {
| `- warning: generic parameter 'Message' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
642 | try self._stop(child: ref)
643 | }
/Users/admin/builder/spi-builder-workspace/Sources/DistributedCluster/_ActorShell.swift:996:17: warning: conformance of 'Never' to 'Decodable' is only available in macOS 14.0 or newer; this is an error in the Swift 6 language mode
939 | }
940 |
941 | extension AbstractShellProtocol {
| `- note: add @available attribute to enclosing extension
942 | @inlinable
943 | var receivesSystemMessages: _ReceivesSystemMessages {
:
994 | }
995 |
996 | public func _resolveUntyped(context: _ResolveContext<Never>) -> _AddressableActorRef {
| |- warning: conformance of 'Never' to 'Decodable' is only available in macOS 14.0 or newer; this is an error in the Swift 6 language mode
| `- note: add @available attribute to enclosing instance method
997 | guard context.selectorSegments.first != nil else {
998 | // no remaining selectors == we are the "selected" ref, apply uid check
/Users/admin/builder/spi-builder-workspace/Sources/DistributedCluster/_ActorShell.swift:996:17: warning: conformance of 'Never' to 'Encodable' is only available in macOS 14.0 or newer; this is an error in the Swift 6 language mode
939 | }
940 |
941 | extension AbstractShellProtocol {
| `- note: add @available attribute to enclosing extension
942 | @inlinable
943 | var receivesSystemMessages: _ReceivesSystemMessages {
:
994 | }
995 |
996 | public func _resolveUntyped(context: _ResolveContext<Never>) -> _AddressableActorRef {
| |- warning: conformance of 'Never' to 'Encodable' is only available in macOS 14.0 or newer; this is an error in the Swift 6 language mode
| `- note: add @available attribute to enclosing instance method
997 | guard context.selectorSegments.first != nil else {
998 | // no remaining selectors == we are the "selected" ref, apply uid check
/Users/admin/builder/spi-builder-workspace/Sources/DistributedCluster/_ActorShell.swift:752:139: warning: 'wellKnown' is deprecated: Useful only with behavior actors, will be removed entirely
750 | return .init(.adapter(adapter))
751 | } else {
752 | let adaptedAddress = try self.id.makeChildAddress(name: _ActorNaming.adapter.makeName(&self.namingContext), incarnation: .wellKnown)
| `- warning: 'wellKnown' is deprecated: Useful only with behavior actors, will be removed entirely
753 | let adapter = _ActorRefAdapter(fromType: fromType, to: self.myself, id: adaptedAddress)
754 |
/Users/admin/builder/spi-builder-workspace/Sources/DistributedCluster/_ActorShell.swift:997:23: warning: conformance of 'Never' to 'Decodable' is only available in macOS 14.0 or newer; this is an error in the Swift 6 language mode
939 | }
940 |
941 | extension AbstractShellProtocol {
| `- note: add @available attribute to enclosing extension
942 | @inlinable
943 | var receivesSystemMessages: _ReceivesSystemMessages {
:
994 | }
995 |
996 | public func _resolveUntyped(context: _ResolveContext<Never>) -> _AddressableActorRef {
| `- note: add @available attribute to enclosing instance method
997 | guard context.selectorSegments.first != nil else {
| |- warning: conformance of 'Never' to 'Decodable' is only available in macOS 14.0 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
998 | // no remaining selectors == we are the "selected" ref, apply uid check
999 | if self._myselfReceivesSystemMessages.id.incarnation == context.id.incarnation {
/Users/admin/builder/spi-builder-workspace/Sources/DistributedCluster/_ActorShell.swift:997:23: warning: conformance of 'Never' to 'Encodable' is only available in macOS 14.0 or newer; this is an error in the Swift 6 language mode
939 | }
940 |
941 | extension AbstractShellProtocol {
| `- note: add @available attribute to enclosing extension
942 | @inlinable
943 | var receivesSystemMessages: _ReceivesSystemMessages {
:
994 | }
995 |
996 | public func _resolveUntyped(context: _ResolveContext<Never>) -> _AddressableActorRef {
| `- note: add @available attribute to enclosing instance method
997 | guard context.selectorSegments.first != nil else {
| |- warning: conformance of 'Never' to 'Encodable' is only available in macOS 14.0 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
998 | // no remaining selectors == we are the "selected" ref, apply uid check
999 | if self._myselfReceivesSystemMessages.id.incarnation == context.id.incarnation {
/Users/admin/builder/spi-builder-workspace/Sources/DistributedCluster/_ActorShell.swift:999:77: warning: conformance of 'Never' to 'Decodable' is only available in macOS 14.0 or newer; this is an error in the Swift 6 language mode
939 | }
940 |
941 | extension AbstractShellProtocol {
| `- note: add @available attribute to enclosing extension
942 | @inlinable
943 | var receivesSystemMessages: _ReceivesSystemMessages {
:
994 | }
995 |
996 | public func _resolveUntyped(context: _ResolveContext<Never>) -> _AddressableActorRef {
| `- note: add @available attribute to enclosing instance method
997 | guard context.selectorSegments.first != nil else {
998 | // no remaining selectors == we are the "selected" ref, apply uid check
999 | if self._myselfReceivesSystemMessages.id.incarnation == context.id.incarnation {
| |- warning: conformance of 'Never' to 'Decodable' is only available in macOS 14.0 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
1000 | return self.asAddressable
1001 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/DistributedCluster/_ActorShell.swift:999:77: warning: conformance of 'Never' to 'Encodable' is only available in macOS 14.0 or newer; this is an error in the Swift 6 language mode
939 | }
940 |
941 | extension AbstractShellProtocol {
| `- note: add @available attribute to enclosing extension
942 | @inlinable
943 | var receivesSystemMessages: _ReceivesSystemMessages {
:
994 | }
995 |
996 | public func _resolveUntyped(context: _ResolveContext<Never>) -> _AddressableActorRef {
| `- note: add @available attribute to enclosing instance method
997 | guard context.selectorSegments.first != nil else {
998 | // no remaining selectors == we are the "selected" ref, apply uid check
999 | if self._myselfReceivesSystemMessages.id.incarnation == context.id.incarnation {
| |- warning: conformance of 'Never' to 'Encodable' is only available in macOS 14.0 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
1000 | return self.asAddressable
1001 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/DistributedCluster/_ActorShell.swift:1003:32: warning: conformance of 'Never' to 'Decodable' is only available in macOS 14.0 or newer; this is an error in the Swift 6 language mode
939 | }
940 |
941 | extension AbstractShellProtocol {
| `- note: add @available attribute to enclosing extension
942 | @inlinable
943 | var receivesSystemMessages: _ReceivesSystemMessages {
:
994 | }
995 |
996 | public func _resolveUntyped(context: _ResolveContext<Never>) -> _AddressableActorRef {
| `- note: add @available attribute to enclosing instance method
997 | guard context.selectorSegments.first != nil else {
998 | // no remaining selectors == we are the "selected" ref, apply uid check
:
1001 | } else {
1002 | // the selection was indeed for this path, however we are a different incarnation (or different actor)
1003 | return context.personalDeadLetters.asAddressable
| |- warning: conformance of 'Never' to 'Decodable' is only available in macOS 14.0 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
1004 | }
1005 | }
/Users/admin/builder/spi-builder-workspace/Sources/DistributedCluster/_ActorShell.swift:1003:32: warning: conformance of 'Never' to 'Encodable' is only available in macOS 14.0 or newer; this is an error in the Swift 6 language mode
939 | }
940 |
941 | extension AbstractShellProtocol {
| `- note: add @available attribute to enclosing extension
942 | @inlinable
943 | var receivesSystemMessages: _ReceivesSystemMessages {
:
994 | }
995 |
996 | public func _resolveUntyped(context: _ResolveContext<Never>) -> _AddressableActorRef {
| `- note: add @available attribute to enclosing instance method
997 | guard context.selectorSegments.first != nil else {
998 | // no remaining selectors == we are the "selected" ref, apply uid check
:
1001 | } else {
1002 | // the selection was indeed for this path, however we are a different incarnation (or different actor)
1003 | return context.personalDeadLetters.asAddressable
| |- warning: conformance of 'Never' to 'Encodable' is only available in macOS 14.0 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
1004 | }
1005 | }
/Users/admin/builder/spi-builder-workspace/Sources/DistributedCluster/_ActorShell.swift:1003:52: warning: conformance of 'Never' to 'Decodable' is only available in macOS 14.0 or newer; this is an error in the Swift 6 language mode
939 | }
940 |
941 | extension AbstractShellProtocol {
| `- note: add @available attribute to enclosing extension
942 | @inlinable
943 | var receivesSystemMessages: _ReceivesSystemMessages {
:
994 | }
995 |
996 | public func _resolveUntyped(context: _ResolveContext<Never>) -> _AddressableActorRef {
| `- note: add @available attribute to enclosing instance method
997 | guard context.selectorSegments.first != nil else {
998 | // no remaining selectors == we are the "selected" ref, apply uid check
:
1001 | } else {
1002 | // the selection was indeed for this path, however we are a different incarnation (or different actor)
1003 | return context.personalDeadLetters.asAddressable
| |- warning: conformance of 'Never' to 'Decodable' is only available in macOS 14.0 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
1004 | }
1005 | }
/Users/admin/builder/spi-builder-workspace/Sources/DistributedCluster/_ActorShell.swift:1003:52: warning: conformance of 'Never' to 'Encodable' is only available in macOS 14.0 or newer; this is an error in the Swift 6 language mode
939 | }
940 |
941 | extension AbstractShellProtocol {
| `- note: add @available attribute to enclosing extension
942 | @inlinable
943 | var receivesSystemMessages: _ReceivesSystemMessages {
:
994 | }
995 |
996 | public func _resolveUntyped(context: _ResolveContext<Never>) -> _AddressableActorRef {
| `- note: add @available attribute to enclosing instance method
997 | guard context.selectorSegments.first != nil else {
998 | // no remaining selectors == we are the "selected" ref, apply uid check
:
1001 | } else {
1002 | // the selection was indeed for this path, however we are a different incarnation (or different actor)
1003 | return context.personalDeadLetters.asAddressable
| |- warning: conformance of 'Never' to 'Encodable' is only available in macOS 14.0 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
1004 | }
1005 | }
/Users/admin/builder/spi-builder-workspace/Sources/DistributedCluster/_Signals.swift:143:17: warning: class '_ChildTerminated' must restate inherited '@unchecked Sendable' conformance
141 | ///
142 | /// - SeeAlso: `Terminated` which is sent when a watched actor terminates.
143 | final class _ChildTerminated: Terminated {
| `- warning: class '_ChildTerminated' must restate inherited '@unchecked Sendable' conformance
144 | /// Filled with the error that caused the child actor to terminate.
145 | /// This kind of information is only known to the parent, which may decide to perform
[1446/1457] Compiling DistributedCluster _ActorShell.swift
/Users/admin/builder/spi-builder-workspace/Sources/DistributedCluster/Supervision.swift:21:16: warning: static property 'default' is not concurrency-safe because non-'Sendable' type '_SupervisionProps' may have shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | /// Properties configuring supervision for given actor.
16 | internal struct _SupervisionProps {
| `- note: consider making struct '_SupervisionProps' conform to the 'Sendable' protocol
17 | // internal var supervisionMappings: [ErrorTypeIdentifier: _SupervisionStrategy]
18 | // on purpose stored as list, to keep order in which the supervisors are added as we "scan" from first to last when we handle
19 | internal var supervisionMappings: [ErrorTypeBoundSupervisionStrategy]
20 |
21 | static let `default`: _SupervisionProps = .init()
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type '_SupervisionProps' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'default' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
22 |
23 | init() {
/Users/admin/builder/spi-builder-workspace/Sources/DistributedCluster/SystemMessages.swift:166:16: warning: static property 'metaType' is not concurrency-safe because non-'Sendable' type 'MetaType<_SystemMessage>' may have shared mutable state; this is an error in the Swift 6 language mode
164 |
165 | extension _SystemMessage {
166 | static let metaType: MetaType<_SystemMessage> = MetaType(_SystemMessage.self)
| |- warning: static property 'metaType' is not concurrency-safe because non-'Sendable' type 'MetaType<_SystemMessage>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'metaType' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
167 | }
168 |
/Users/admin/builder/spi-builder-workspace/Sources/DistributedCluster/Serialization/Serialization.swift:626:17: note: consider making generic struct 'MetaType' conform to the 'Sendable' protocol
624 | /// A meta type is a type eraser for any `T`, such that we can still perform `value is T` checks.
625 | @usableFromInline
626 | internal struct MetaType<T>: Hashable, CustomStringConvertible {
| `- note: consider making generic struct 'MetaType' conform to the 'Sendable' protocol
627 | let _underlying: Any.Type?
628 | let id: ObjectIdentifier
/Users/admin/builder/spi-builder-workspace/Sources/DistributedCluster/Time.swift:81:16: warning: static property 'effectivelyInfinite' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
79 | /// Largest time amount expressible using this type.
80 | /// Roughly equivalent to 292 years, which for the intents and purposes of this type can serve as "infinite".
81 | static var effectivelyInfinite: Duration = .nanoseconds(Value.max)
| |- warning: static property 'effectivelyInfinite' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'effectivelyInfinite' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'effectivelyInfinite' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
82 | }
83 |
/Users/admin/builder/spi-builder-workspace/Sources/DistributedCluster/_ActorNaming.swift:61:16: warning: static property 'ask' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
59 | extension _ActorNaming {
60 | /// Special naming scheme applied to `ask` actors.
61 | static var ask: _ActorNaming = .init(unchecked: .prefixed(prefix: "$ask", suffixScheme: .letters))
| |- warning: static property 'ask' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'ask' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'ask' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
62 |
63 | /// Naming for adapters (`context.messageAdapter`)
/Users/admin/builder/spi-builder-workspace/Sources/DistributedCluster/_ActorNaming.swift:64:16: warning: static property 'adapter' is not concurrency-safe because non-'Sendable' type '_ActorNaming' may have shared mutable state; this is an error in the Swift 6 language mode
62 |
63 | /// Naming for adapters (`context.messageAdapter`)
64 | static let adapter: _ActorNaming = .init(unchecked: .unique("$messageAdapter"))
| |- warning: static property 'adapter' is not concurrency-safe because non-'Sendable' type '_ActorNaming' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'adapter' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
65 | }
66 |
67 | /// Used while spawning actors to identify how its name should be created.
68 | public struct _ActorNaming: ExpressibleByStringLiteral, ExpressibleByStringInterpolation {
| `- note: consider making struct '_ActorNaming' conform to the 'Sendable' protocol
69 | // We keep an internal enum, but do not expose it as we may want to add more naming strategies in the future?
70 | internal enum _Naming {
/Users/admin/builder/spi-builder-workspace/Sources/DistributedCluster/_ActorShell.swift:629:38: warning: generic parameter 'Message' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
29 | /// The shell is mutable, and full of dangerous and carefully threaded/ordered code, be extra cautious.
30 | // TODO: remove this and replace by the infrastructure which is now Swift's `actor`
31 | public final class _ActorShell<Message: Codable>: _ActorContext<Message>, AbstractShellProtocol {
| `- note: 'Message' previously declared here
32 | // The phrase that "actor change their behavior" can be understood quite literally;
33 | // On each message interpretation the actor may return a new behavior that will be handling the next message.
:
627 |
628 | @discardableResult
629 | override public func _spawnWatch<Message>(
| `- warning: generic parameter 'Message' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
630 | _ naming: _ActorNaming,
631 | of type: Message.Type = Message.self,
/Users/admin/builder/spi-builder-workspace/Sources/DistributedCluster/_ActorShell.swift:641:31: warning: generic parameter 'Message' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
29 | /// The shell is mutable, and full of dangerous and carefully threaded/ordered code, be extra cautious.
30 | // TODO: remove this and replace by the infrastructure which is now Swift's `actor`
31 | public final class _ActorShell<Message: Codable>: _ActorContext<Message>, AbstractShellProtocol {
| `- note: 'Message' previously declared here
32 | // The phrase that "actor change their behavior" can be understood quite literally;
33 | // On each message interpretation the actor may return a new behavior that will be handling the next message.
:
639 | }
640 |
641 | override public func stop<Message: Codable>(child ref: _ActorRef<Message>) throws {
| `- warning: generic parameter 'Message' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
642 | try self._stop(child: ref)
643 | }
/Users/admin/builder/spi-builder-workspace/Sources/DistributedCluster/_ActorShell.swift:996:17: warning: conformance of 'Never' to 'Decodable' is only available in macOS 14.0 or newer; this is an error in the Swift 6 language mode
939 | }
940 |
941 | extension AbstractShellProtocol {
| `- note: add @available attribute to enclosing extension
942 | @inlinable
943 | var receivesSystemMessages: _ReceivesSystemMessages {
:
994 | }
995 |
996 | public func _resolveUntyped(context: _ResolveContext<Never>) -> _AddressableActorRef {
| |- warning: conformance of 'Never' to 'Decodable' is only available in macOS 14.0 or newer; this is an error in the Swift 6 language mode
| `- note: add @available attribute to enclosing instance method
997 | guard context.selectorSegments.first != nil else {
998 | // no remaining selectors == we are the "selected" ref, apply uid check
/Users/admin/builder/spi-builder-workspace/Sources/DistributedCluster/_ActorShell.swift:996:17: warning: conformance of 'Never' to 'Encodable' is only available in macOS 14.0 or newer; this is an error in the Swift 6 language mode
939 | }
940 |
941 | extension AbstractShellProtocol {
| `- note: add @available attribute to enclosing extension
942 | @inlinable
943 | var receivesSystemMessages: _ReceivesSystemMessages {
:
994 | }
995 |
996 | public func _resolveUntyped(context: _ResolveContext<Never>) -> _AddressableActorRef {
| |- warning: conformance of 'Never' to 'Encodable' is only available in macOS 14.0 or newer; this is an error in the Swift 6 language mode
| `- note: add @available attribute to enclosing instance method
997 | guard context.selectorSegments.first != nil else {
998 | // no remaining selectors == we are the "selected" ref, apply uid check
/Users/admin/builder/spi-builder-workspace/Sources/DistributedCluster/_ActorShell.swift:752:139: warning: 'wellKnown' is deprecated: Useful only with behavior actors, will be removed entirely
750 | return .init(.adapter(adapter))
751 | } else {
752 | let adaptedAddress = try self.id.makeChildAddress(name: _ActorNaming.adapter.makeName(&self.namingContext), incarnation: .wellKnown)
| `- warning: 'wellKnown' is deprecated: Useful only with behavior actors, will be removed entirely
753 | let adapter = _ActorRefAdapter(fromType: fromType, to: self.myself, id: adaptedAddress)
754 |
/Users/admin/builder/spi-builder-workspace/Sources/DistributedCluster/_ActorShell.swift:997:23: warning: conformance of 'Never' to 'Decodable' is only available in macOS 14.0 or newer; this is an error in the Swift 6 language mode
939 | }
940 |
941 | extension AbstractShellProtocol {
| `- note: add @available attribute to enclosing extension
942 | @inlinable
943 | var receivesSystemMessages: _ReceivesSystemMessages {
:
994 | }
995 |
996 | public func _resolveUntyped(context: _ResolveContext<Never>) -> _AddressableActorRef {
| `- note: add @available attribute to enclosing instance method
997 | guard context.selectorSegments.first != nil else {
| |- warning: conformance of 'Never' to 'Decodable' is only available in macOS 14.0 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
998 | // no remaining selectors == we are the "selected" ref, apply uid check
999 | if self._myselfReceivesSystemMessages.id.incarnation == context.id.incarnation {
/Users/admin/builder/spi-builder-workspace/Sources/DistributedCluster/_ActorShell.swift:997:23: warning: conformance of 'Never' to 'Encodable' is only available in macOS 14.0 or newer; this is an error in the Swift 6 language mode
939 | }
940 |
941 | extension AbstractShellProtocol {
| `- note: add @available attribute to enclosing extension
942 | @inlinable
943 | var receivesSystemMessages: _ReceivesSystemMessages {
:
994 | }
995 |
996 | public func _resolveUntyped(context: _ResolveContext<Never>) -> _AddressableActorRef {
| `- note: add @available attribute to enclosing instance method
997 | guard context.selectorSegments.first != nil else {
| |- warning: conformance of 'Never' to 'Encodable' is only available in macOS 14.0 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
998 | // no remaining selectors == we are the "selected" ref, apply uid check
999 | if self._myselfReceivesSystemMessages.id.incarnation == context.id.incarnation {
/Users/admin/builder/spi-builder-workspace/Sources/DistributedCluster/_ActorShell.swift:999:77: warning: conformance of 'Never' to 'Decodable' is only available in macOS 14.0 or newer; this is an error in the Swift 6 language mode
939 | }
940 |
941 | extension AbstractShellProtocol {
| `- note: add @available attribute to enclosing extension
942 | @inlinable
943 | var receivesSystemMessages: _ReceivesSystemMessages {
:
994 | }
995 |
996 | public func _resolveUntyped(context: _ResolveContext<Never>) -> _AddressableActorRef {
| `- note: add @available attribute to enclosing instance method
997 | guard context.selectorSegments.first != nil else {
998 | // no remaining selectors == we are the "selected" ref, apply uid check
999 | if self._myselfReceivesSystemMessages.id.incarnation == context.id.incarnation {
| |- warning: conformance of 'Never' to 'Decodable' is only available in macOS 14.0 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
1000 | return self.asAddressable
1001 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/DistributedCluster/_ActorShell.swift:999:77: warning: conformance of 'Never' to 'Encodable' is only available in macOS 14.0 or newer; this is an error in the Swift 6 language mode
939 | }
940 |
941 | extension AbstractShellProtocol {
| `- note: add @available attribute to enclosing extension
942 | @inlinable
943 | var receivesSystemMessages: _ReceivesSystemMessages {
:
994 | }
995 |
996 | public func _resolveUntyped(context: _ResolveContext<Never>) -> _AddressableActorRef {
| `- note: add @available attribute to enclosing instance method
997 | guard context.selectorSegments.first != nil else {
998 | // no remaining selectors == we are the "selected" ref, apply uid check
999 | if self._myselfReceivesSystemMessages.id.incarnation == context.id.incarnation {
| |- warning: conformance of 'Never' to 'Encodable' is only available in macOS 14.0 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
1000 | return self.asAddressable
1001 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/DistributedCluster/_ActorShell.swift:1003:32: warning: conformance of 'Never' to 'Decodable' is only available in macOS 14.0 or newer; this is an error in the Swift 6 language mode
939 | }
940 |
941 | extension AbstractShellProtocol {
| `- note: add @available attribute to enclosing extension
942 | @inlinable
943 | var receivesSystemMessages: _ReceivesSystemMessages {
:
994 | }
995 |
996 | public func _resolveUntyped(context: _ResolveContext<Never>) -> _AddressableActorRef {
| `- note: add @available attribute to enclosing instance method
997 | guard context.selectorSegments.first != nil else {
998 | // no remaining selectors == we are the "selected" ref, apply uid check
:
1001 | } else {
1002 | // the selection was indeed for this path, however we are a different incarnation (or different actor)
1003 | return context.personalDeadLetters.asAddressable
| |- warning: conformance of 'Never' to 'Decodable' is only available in macOS 14.0 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
1004 | }
1005 | }
/Users/admin/builder/spi-builder-workspace/Sources/DistributedCluster/_ActorShell.swift:1003:32: warning: conformance of 'Never' to 'Encodable' is only available in macOS 14.0 or newer; this is an error in the Swift 6 language mode
939 | }
940 |
941 | extension AbstractShellProtocol {
| `- note: add @available attribute to enclosing extension
942 | @inlinable
943 | var receivesSystemMessages: _ReceivesSystemMessages {
:
994 | }
995 |
996 | public func _resolveUntyped(context: _ResolveContext<Never>) -> _AddressableActorRef {
| `- note: add @available attribute to enclosing instance method
997 | guard context.selectorSegments.first != nil else {
998 | // no remaining selectors == we are the "selected" ref, apply uid check
:
1001 | } else {
1002 | // the selection was indeed for this path, however we are a different incarnation (or different actor)
1003 | return context.personalDeadLetters.asAddressable
| |- warning: conformance of 'Never' to 'Encodable' is only available in macOS 14.0 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
1004 | }
1005 | }
/Users/admin/builder/spi-builder-workspace/Sources/DistributedCluster/_ActorShell.swift:1003:52: warning: conformance of 'Never' to 'Decodable' is only available in macOS 14.0 or newer; this is an error in the Swift 6 language mode
939 | }
940 |
941 | extension AbstractShellProtocol {
| `- note: add @available attribute to enclosing extension
942 | @inlinable
943 | var receivesSystemMessages: _ReceivesSystemMessages {
:
994 | }
995 |
996 | public func _resolveUntyped(context: _ResolveContext<Never>) -> _AddressableActorRef {
| `- note: add @available attribute to enclosing instance method
997 | guard context.selectorSegments.first != nil else {
998 | // no remaining selectors == we are the "selected" ref, apply uid check
:
1001 | } else {
1002 | // the selection was indeed for this path, however we are a different incarnation (or different actor)
1003 | return context.personalDeadLetters.asAddressable
| |- warning: conformance of 'Never' to 'Decodable' is only available in macOS 14.0 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
1004 | }
1005 | }
/Users/admin/builder/spi-builder-workspace/Sources/DistributedCluster/_ActorShell.swift:1003:52: warning: conformance of 'Never' to 'Encodable' is only available in macOS 14.0 or newer; this is an error in the Swift 6 language mode
939 | }
940 |
941 | extension AbstractShellProtocol {
| `- note: add @available attribute to enclosing extension
942 | @inlinable
943 | var receivesSystemMessages: _ReceivesSystemMessages {
:
994 | }
995 |
996 | public func _resolveUntyped(context: _ResolveContext<Never>) -> _AddressableActorRef {
| `- note: add @available attribute to enclosing instance method
997 | guard context.selectorSegments.first != nil else {
998 | // no remaining selectors == we are the "selected" ref, apply uid check
:
1001 | } else {
1002 | // the selection was indeed for this path, however we are a different incarnation (or different actor)
1003 | return context.personalDeadLetters.asAddressable
| |- warning: conformance of 'Never' to 'Encodable' is only available in macOS 14.0 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
1004 | }
1005 | }
/Users/admin/builder/spi-builder-workspace/Sources/DistributedCluster/_Signals.swift:143:17: warning: class '_ChildTerminated' must restate inherited '@unchecked Sendable' conformance
141 | ///
142 | /// - SeeAlso: `Terminated` which is sent when a watched actor terminates.
143 | final class _ChildTerminated: Terminated {
| `- warning: class '_ChildTerminated' must restate inherited '@unchecked Sendable' conformance
144 | /// Filled with the error that caused the child actor to terminate.
145 | /// This kind of information is only known to the parent, which may decide to perform
[1447/1457] Compiling DistributedCluster _BehaviorTimers.swift
/Users/admin/builder/spi-builder-workspace/Sources/DistributedCluster/Supervision.swift:21:16: warning: static property 'default' is not concurrency-safe because non-'Sendable' type '_SupervisionProps' may have shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | /// Properties configuring supervision for given actor.
16 | internal struct _SupervisionProps {
| `- note: consider making struct '_SupervisionProps' conform to the 'Sendable' protocol
17 | // internal var supervisionMappings: [ErrorTypeIdentifier: _SupervisionStrategy]
18 | // on purpose stored as list, to keep order in which the supervisors are added as we "scan" from first to last when we handle
19 | internal var supervisionMappings: [ErrorTypeBoundSupervisionStrategy]
20 |
21 | static let `default`: _SupervisionProps = .init()
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type '_SupervisionProps' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'default' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
22 |
23 | init() {
/Users/admin/builder/spi-builder-workspace/Sources/DistributedCluster/SystemMessages.swift:166:16: warning: static property 'metaType' is not concurrency-safe because non-'Sendable' type 'MetaType<_SystemMessage>' may have shared mutable state; this is an error in the Swift 6 language mode
164 |
165 | extension _SystemMessage {
166 | static let metaType: MetaType<_SystemMessage> = MetaType(_SystemMessage.self)
| |- warning: static property 'metaType' is not concurrency-safe because non-'Sendable' type 'MetaType<_SystemMessage>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'metaType' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
167 | }
168 |
/Users/admin/builder/spi-builder-workspace/Sources/DistributedCluster/Serialization/Serialization.swift:626:17: note: consider making generic struct 'MetaType' conform to the 'Sendable' protocol
624 | /// A meta type is a type eraser for any `T`, such that we can still perform `value is T` checks.
625 | @usableFromInline
626 | internal struct MetaType<T>: Hashable, CustomStringConvertible {
| `- note: consider making generic struct 'MetaType' conform to the 'Sendable' protocol
627 | let _underlying: Any.Type?
628 | let id: ObjectIdentifier
/Users/admin/builder/spi-builder-workspace/Sources/DistributedCluster/Time.swift:81:16: warning: static property 'effectivelyInfinite' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
79 | /// Largest time amount expressible using this type.
80 | /// Roughly equivalent to 292 years, which for the intents and purposes of this type can serve as "infinite".
81 | static var effectivelyInfinite: Duration = .nanoseconds(Value.max)
| |- warning: static property 'effectivelyInfinite' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'effectivelyInfinite' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'effectivelyInfinite' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
82 | }
83 |
/Users/admin/builder/spi-builder-workspace/Sources/DistributedCluster/_ActorNaming.swift:61:16: warning: static property 'ask' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
59 | extension _ActorNaming {
60 | /// Special naming scheme applied to `ask` actors.
61 | static var ask: _ActorNaming = .init(unchecked: .prefixed(prefix: "$ask", suffixScheme: .letters))
| |- warning: static property 'ask' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'ask' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'ask' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
62 |
63 | /// Naming for adapters (`context.messageAdapter`)
/Users/admin/builder/spi-builder-workspace/Sources/DistributedCluster/_ActorNaming.swift:64:16: warning: static property 'adapter' is not concurrency-safe because non-'Sendable' type '_ActorNaming' may have shared mutable state; this is an error in the Swift 6 language mode
62 |
63 | /// Naming for adapters (`context.messageAdapter`)
64 | static let adapter: _ActorNaming = .init(unchecked: .unique("$messageAdapter"))
| |- warning: static property 'adapter' is not concurrency-safe because non-'Sendable' type '_ActorNaming' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'adapter' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
65 | }
66 |
67 | /// Used while spawning actors to identify how its name should be created.
68 | public struct _ActorNaming: ExpressibleByStringLiteral, ExpressibleByStringInterpolation {
| `- note: consider making struct '_ActorNaming' conform to the 'Sendable' protocol
69 | // We keep an internal enum, but do not expose it as we may want to add more naming strategies in the future?
70 | internal enum _Naming {
/Users/admin/builder/spi-builder-workspace/Sources/DistributedCluster/_ActorShell.swift:629:38: warning: generic parameter 'Message' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
29 | /// The shell is mutable, and full of dangerous and carefully threaded/ordered code, be extra cautious.
30 | // TODO: remove this and replace by the infrastructure which is now Swift's `actor`
31 | public final class _ActorShell<Message: Codable>: _ActorContext<Message>, AbstractShellProtocol {
| `- note: 'Message' previously declared here
32 | // The phrase that "actor change their behavior" can be understood quite literally;
33 | // On each message interpretation the actor may return a new behavior that will be handling the next message.
:
627 |
628 | @discardableResult
629 | override public func _spawnWatch<Message>(
| `- warning: generic parameter 'Message' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
630 | _ naming: _ActorNaming,
631 | of type: Message.Type = Message.self,
/Users/admin/builder/spi-builder-workspace/Sources/DistributedCluster/_ActorShell.swift:641:31: warning: generic parameter 'Message' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
29 | /// The shell is mutable, and full of dangerous and carefully threaded/ordered code, be extra cautious.
30 | // TODO: remove this and replace by the infrastructure which is now Swift's `actor`
31 | public final class _ActorShell<Message: Codable>: _ActorContext<Message>, AbstractShellProtocol {
| `- note: 'Message' previously declared here
32 | // The phrase that "actor change their behavior" can be understood quite literally;
33 | // On each message interpretation the actor may return a new behavior that will be handling the next message.
:
639 | }
640 |
641 | override public func stop<Message: Codable>(child ref: _ActorRef<Message>) throws {
| `- warning: generic parameter 'Message' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
642 | try self._stop(child: ref)
643 | }
/Users/admin/builder/spi-builder-workspace/Sources/DistributedCluster/_ActorShell.swift:996:17: warning: conformance of 'Never' to 'Decodable' is only available in macOS 14.0 or newer; this is an error in the Swift 6 language mode
939 | }
940 |
941 | extension AbstractShellProtocol {
| `- note: add @available attribute to enclosing extension
942 | @inlinable
943 | var receivesSystemMessages: _ReceivesSystemMessages {
:
994 | }
995 |
996 | public func _resolveUntyped(context: _ResolveContext<Never>) -> _AddressableActorRef {
| |- warning: conformance of 'Never' to 'Decodable' is only available in macOS 14.0 or newer; this is an error in the Swift 6 language mode
| `- note: add @available attribute to enclosing instance method
997 | guard context.selectorSegments.first != nil else {
998 | // no remaining selectors == we are the "selected" ref, apply uid check
/Users/admin/builder/spi-builder-workspace/Sources/DistributedCluster/_ActorShell.swift:996:17: warning: conformance of 'Never' to 'Encodable' is only available in macOS 14.0 or newer; this is an error in the Swift 6 language mode
939 | }
940 |
941 | extension AbstractShellProtocol {
| `- note: add @available attribute to enclosing extension
942 | @inlinable
943 | var receivesSystemMessages: _ReceivesSystemMessages {
:
994 | }
995 |
996 | public func _resolveUntyped(context: _ResolveContext<Never>) -> _AddressableActorRef {
| |- warning: conformance of 'Never' to 'Encodable' is only available in macOS 14.0 or newer; this is an error in the Swift 6 language mode
| `- note: add @available attribute to enclosing instance method
997 | guard context.selectorSegments.first != nil else {
998 | // no remaining selectors == we are the "selected" ref, apply uid check
/Users/admin/builder/spi-builder-workspace/Sources/DistributedCluster/_ActorShell.swift:752:139: warning: 'wellKnown' is deprecated: Useful only with behavior actors, will be removed entirely
750 | return .init(.adapter(adapter))
751 | } else {
752 | let adaptedAddress = try self.id.makeChildAddress(name: _ActorNaming.adapter.makeName(&self.namingContext), incarnation: .wellKnown)
| `- warning: 'wellKnown' is deprecated: Useful only with behavior actors, will be removed entirely
753 | let adapter = _ActorRefAdapter(fromType: fromType, to: self.myself, id: adaptedAddress)
754 |
/Users/admin/builder/spi-builder-workspace/Sources/DistributedCluster/_ActorShell.swift:997:23: warning: conformance of 'Never' to 'Decodable' is only available in macOS 14.0 or newer; this is an error in the Swift 6 language mode
939 | }
940 |
941 | extension AbstractShellProtocol {
| `- note: add @available attribute to enclosing extension
942 | @inlinable
943 | var receivesSystemMessages: _ReceivesSystemMessages {
:
994 | }
995 |
996 | public func _resolveUntyped(context: _ResolveContext<Never>) -> _AddressableActorRef {
| `- note: add @available attribute to enclosing instance method
997 | guard context.selectorSegments.first != nil else {
| |- warning: conformance of 'Never' to 'Decodable' is only available in macOS 14.0 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
998 | // no remaining selectors == we are the "selected" ref, apply uid check
999 | if self._myselfReceivesSystemMessages.id.incarnation == context.id.incarnation {
/Users/admin/builder/spi-builder-workspace/Sources/DistributedCluster/_ActorShell.swift:997:23: warning: conformance of 'Never' to 'Encodable' is only available in macOS 14.0 or newer; this is an error in the Swift 6 language mode
939 | }
940 |
941 | extension AbstractShellProtocol {
| `- note: add @available attribute to enclosing extension
942 | @inlinable
943 | var receivesSystemMessages: _ReceivesSystemMessages {
:
994 | }
995 |
996 | public func _resolveUntyped(context: _ResolveContext<Never>) -> _AddressableActorRef {
| `- note: add @available attribute to enclosing instance method
997 | guard context.selectorSegments.first != nil else {
| |- warning: conformance of 'Never' to 'Encodable' is only available in macOS 14.0 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
998 | // no remaining selectors == we are the "selected" ref, apply uid check
999 | if self._myselfReceivesSystemMessages.id.incarnation == context.id.incarnation {
/Users/admin/builder/spi-builder-workspace/Sources/DistributedCluster/_ActorShell.swift:999:77: warning: conformance of 'Never' to 'Decodable' is only available in macOS 14.0 or newer; this is an error in the Swift 6 language mode
939 | }
940 |
941 | extension AbstractShellProtocol {
| `- note: add @available attribute to enclosing extension
942 | @inlinable
943 | var receivesSystemMessages: _ReceivesSystemMessages {
:
994 | }
995 |
996 | public func _resolveUntyped(context: _ResolveContext<Never>) -> _AddressableActorRef {
| `- note: add @available attribute to enclosing instance method
997 | guard context.selectorSegments.first != nil else {
998 | // no remaining selectors == we are the "selected" ref, apply uid check
999 | if self._myselfReceivesSystemMessages.id.incarnation == context.id.incarnation {
| |- warning: conformance of 'Never' to 'Decodable' is only available in macOS 14.0 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
1000 | return self.asAddressable
1001 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/DistributedCluster/_ActorShell.swift:999:77: warning: conformance of 'Never' to 'Encodable' is only available in macOS 14.0 or newer; this is an error in the Swift 6 language mode
939 | }
940 |
941 | extension AbstractShellProtocol {
| `- note: add @available attribute to enclosing extension
942 | @inlinable
943 | var receivesSystemMessages: _ReceivesSystemMessages {
:
994 | }
995 |
996 | public func _resolveUntyped(context: _ResolveContext<Never>) -> _AddressableActorRef {
| `- note: add @available attribute to enclosing instance method
997 | guard context.selectorSegments.first != nil else {
998 | // no remaining selectors == we are the "selected" ref, apply uid check
999 | if self._myselfReceivesSystemMessages.id.incarnation == context.id.incarnation {
| |- warning: conformance of 'Never' to 'Encodable' is only available in macOS 14.0 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
1000 | return self.asAddressable
1001 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/DistributedCluster/_ActorShell.swift:1003:32: warning: conformance of 'Never' to 'Decodable' is only available in macOS 14.0 or newer; this is an error in the Swift 6 language mode
939 | }
940 |
941 | extension AbstractShellProtocol {
| `- note: add @available attribute to enclosing extension
942 | @inlinable
943 | var receivesSystemMessages: _ReceivesSystemMessages {
:
994 | }
995 |
996 | public func _resolveUntyped(context: _ResolveContext<Never>) -> _AddressableActorRef {
| `- note: add @available attribute to enclosing instance method
997 | guard context.selectorSegments.first != nil else {
998 | // no remaining selectors == we are the "selected" ref, apply uid check
:
1001 | } else {
1002 | // the selection was indeed for this path, however we are a different incarnation (or different actor)
1003 | return context.personalDeadLetters.asAddressable
| |- warning: conformance of 'Never' to 'Decodable' is only available in macOS 14.0 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
1004 | }
1005 | }
/Users/admin/builder/spi-builder-workspace/Sources/DistributedCluster/_ActorShell.swift:1003:32: warning: conformance of 'Never' to 'Encodable' is only available in macOS 14.0 or newer; this is an error in the Swift 6 language mode
939 | }
940 |
941 | extension AbstractShellProtocol {
| `- note: add @available attribute to enclosing extension
942 | @inlinable
943 | var receivesSystemMessages: _ReceivesSystemMessages {
:
994 | }
995 |
996 | public func _resolveUntyped(context: _ResolveContext<Never>) -> _AddressableActorRef {
| `- note: add @available attribute to enclosing instance method
997 | guard context.selectorSegments.first != nil else {
998 | // no remaining selectors == we are the "selected" ref, apply uid check
:
1001 | } else {
1002 | // the selection was indeed for this path, however we are a different incarnation (or different actor)
1003 | return context.personalDeadLetters.asAddressable
| |- warning: conformance of 'Never' to 'Encodable' is only available in macOS 14.0 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
1004 | }
1005 | }
/Users/admin/builder/spi-builder-workspace/Sources/DistributedCluster/_ActorShell.swift:1003:52: warning: conformance of 'Never' to 'Decodable' is only available in macOS 14.0 or newer; this is an error in the Swift 6 language mode
939 | }
940 |
941 | extension AbstractShellProtocol {
| `- note: add @available attribute to enclosing extension
942 | @inlinable
943 | var receivesSystemMessages: _ReceivesSystemMessages {
:
994 | }
995 |
996 | public func _resolveUntyped(context: _ResolveContext<Never>) -> _AddressableActorRef {
| `- note: add @available attribute to enclosing instance method
997 | guard context.selectorSegments.first != nil else {
998 | // no remaining selectors == we are the "selected" ref, apply uid check
:
1001 | } else {
1002 | // the selection was indeed for this path, however we are a different incarnation (or different actor)
1003 | return context.personalDeadLetters.asAddressable
| |- warning: conformance of 'Never' to 'Decodable' is only available in macOS 14.0 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
1004 | }
1005 | }
/Users/admin/builder/spi-builder-workspace/Sources/DistributedCluster/_ActorShell.swift:1003:52: warning: conformance of 'Never' to 'Encodable' is only available in macOS 14.0 or newer; this is an error in the Swift 6 language mode
939 | }
940 |
941 | extension AbstractShellProtocol {
| `- note: add @available attribute to enclosing extension
942 | @inlinable
943 | var receivesSystemMessages: _ReceivesSystemMessages {
:
994 | }
995 |
996 | public func _resolveUntyped(context: _ResolveContext<Never>) -> _AddressableActorRef {
| `- note: add @available attribute to enclosing instance method
997 | guard context.selectorSegments.first != nil else {
998 | // no remaining selectors == we are the "selected" ref, apply uid check
:
1001 | } else {
1002 | // the selection was indeed for this path, however we are a different incarnation (or different actor)
1003 | return context.personalDeadLetters.asAddressable
| |- warning: conformance of 'Never' to 'Encodable' is only available in macOS 14.0 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
1004 | }
1005 | }
/Users/admin/builder/spi-builder-workspace/Sources/DistributedCluster/_Signals.swift:143:17: warning: class '_ChildTerminated' must restate inherited '@unchecked Sendable' conformance
141 | ///
142 | /// - SeeAlso: `Terminated` which is sent when a watched actor terminates.
143 | final class _ChildTerminated: Terminated {
| `- warning: class '_ChildTerminated' must restate inherited '@unchecked Sendable' conformance
144 | /// Filled with the error that caused the child actor to terminate.
145 | /// This kind of information is only known to the parent, which may decide to perform
[1448/1457] Compiling DistributedCluster _Mailbox.swift
/Users/admin/builder/spi-builder-workspace/Sources/DistributedCluster/Supervision.swift:21:16: warning: static property 'default' is not concurrency-safe because non-'Sendable' type '_SupervisionProps' may have shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | /// Properties configuring supervision for given actor.
16 | internal struct _SupervisionProps {
| `- note: consider making struct '_SupervisionProps' conform to the 'Sendable' protocol
17 | // internal var supervisionMappings: [ErrorTypeIdentifier: _SupervisionStrategy]
18 | // on purpose stored as list, to keep order in which the supervisors are added as we "scan" from first to last when we handle
19 | internal var supervisionMappings: [ErrorTypeBoundSupervisionStrategy]
20 |
21 | static let `default`: _SupervisionProps = .init()
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type '_SupervisionProps' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'default' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
22 |
23 | init() {
/Users/admin/builder/spi-builder-workspace/Sources/DistributedCluster/SystemMessages.swift:166:16: warning: static property 'metaType' is not concurrency-safe because non-'Sendable' type 'MetaType<_SystemMessage>' may have shared mutable state; this is an error in the Swift 6 language mode
164 |
165 | extension _SystemMessage {
166 | static let metaType: MetaType<_SystemMessage> = MetaType(_SystemMessage.self)
| |- warning: static property 'metaType' is not concurrency-safe because non-'Sendable' type 'MetaType<_SystemMessage>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'metaType' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
167 | }
168 |
/Users/admin/builder/spi-builder-workspace/Sources/DistributedCluster/Serialization/Serialization.swift:626:17: note: consider making generic struct 'MetaType' conform to the 'Sendable' protocol
624 | /// A meta type is a type eraser for any `T`, such that we can still perform `value is T` checks.
625 | @usableFromInline
626 | internal struct MetaType<T>: Hashable, CustomStringConvertible {
| `- note: consider making generic struct 'MetaType' conform to the 'Sendable' protocol
627 | let _underlying: Any.Type?
628 | let id: ObjectIdentifier
/Users/admin/builder/spi-builder-workspace/Sources/DistributedCluster/Time.swift:81:16: warning: static property 'effectivelyInfinite' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
79 | /// Largest time amount expressible using this type.
80 | /// Roughly equivalent to 292 years, which for the intents and purposes of this type can serve as "infinite".
81 | static var effectivelyInfinite: Duration = .nanoseconds(Value.max)
| |- warning: static property 'effectivelyInfinite' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'effectivelyInfinite' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'effectivelyInfinite' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
82 | }
83 |
/Users/admin/builder/spi-builder-workspace/Sources/DistributedCluster/_ActorNaming.swift:61:16: warning: static property 'ask' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
59 | extension _ActorNaming {
60 | /// Special naming scheme applied to `ask` actors.
61 | static var ask: _ActorNaming = .init(unchecked: .prefixed(prefix: "$ask", suffixScheme: .letters))
| |- warning: static property 'ask' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'ask' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'ask' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
62 |
63 | /// Naming for adapters (`context.messageAdapter`)
/Users/admin/builder/spi-builder-workspace/Sources/DistributedCluster/_ActorNaming.swift:64:16: warning: static property 'adapter' is not concurrency-safe because non-'Sendable' type '_ActorNaming' may have shared mutable state; this is an error in the Swift 6 language mode
62 |
63 | /// Naming for adapters (`context.messageAdapter`)
64 | static let adapter: _ActorNaming = .init(unchecked: .unique("$messageAdapter"))
| |- warning: static property 'adapter' is not concurrency-safe because non-'Sendable' type '_ActorNaming' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'adapter' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
65 | }
66 |
67 | /// Used while spawning actors to identify how its name should be created.
68 | public struct _ActorNaming: ExpressibleByStringLiteral, ExpressibleByStringInterpolation {
| `- note: consider making struct '_ActorNaming' conform to the 'Sendable' protocol
69 | // We keep an internal enum, but do not expose it as we may want to add more naming strategies in the future?
70 | internal enum _Naming {
/Users/admin/builder/spi-builder-workspace/Sources/DistributedCluster/_ActorShell.swift:629:38: warning: generic parameter 'Message' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
29 | /// The shell is mutable, and full of dangerous and carefully threaded/ordered code, be extra cautious.
30 | // TODO: remove this and replace by the infrastructure which is now Swift's `actor`
31 | public final class _ActorShell<Message: Codable>: _ActorContext<Message>, AbstractShellProtocol {
| `- note: 'Message' previously declared here
32 | // The phrase that "actor change their behavior" can be understood quite literally;
33 | // On each message interpretation the actor may return a new behavior that will be handling the next message.
:
627 |
628 | @discardableResult
629 | override public func _spawnWatch<Message>(
| `- warning: generic parameter 'Message' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
630 | _ naming: _ActorNaming,
631 | of type: Message.Type = Message.self,
/Users/admin/builder/spi-builder-workspace/Sources/DistributedCluster/_ActorShell.swift:641:31: warning: generic parameter 'Message' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
29 | /// The shell is mutable, and full of dangerous and carefully threaded/ordered code, be extra cautious.
30 | // TODO: remove this and replace by the infrastructure which is now Swift's `actor`
31 | public final class _ActorShell<Message: Codable>: _ActorContext<Message>, AbstractShellProtocol {
| `- note: 'Message' previously declared here
32 | // The phrase that "actor change their behavior" can be understood quite literally;
33 | // On each message interpretation the actor may return a new behavior that will be handling the next message.
:
639 | }
640 |
641 | override public func stop<Message: Codable>(child ref: _ActorRef<Message>) throws {
| `- warning: generic parameter 'Message' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
642 | try self._stop(child: ref)
643 | }
/Users/admin/builder/spi-builder-workspace/Sources/DistributedCluster/_ActorShell.swift:996:17: warning: conformance of 'Never' to 'Decodable' is only available in macOS 14.0 or newer; this is an error in the Swift 6 language mode
939 | }
940 |
941 | extension AbstractShellProtocol {
| `- note: add @available attribute to enclosing extension
942 | @inlinable
943 | var receivesSystemMessages: _ReceivesSystemMessages {
:
994 | }
995 |
996 | public func _resolveUntyped(context: _ResolveContext<Never>) -> _AddressableActorRef {
| |- warning: conformance of 'Never' to 'Decodable' is only available in macOS 14.0 or newer; this is an error in the Swift 6 language mode
| `- note: add @available attribute to enclosing instance method
997 | guard context.selectorSegments.first != nil else {
998 | // no remaining selectors == we are the "selected" ref, apply uid check
/Users/admin/builder/spi-builder-workspace/Sources/DistributedCluster/_ActorShell.swift:996:17: warning: conformance of 'Never' to 'Encodable' is only available in macOS 14.0 or newer; this is an error in the Swift 6 language mode
939 | }
940 |
941 | extension AbstractShellProtocol {
| `- note: add @available attribute to enclosing extension
942 | @inlinable
943 | var receivesSystemMessages: _ReceivesSystemMessages {
:
994 | }
995 |
996 | public func _resolveUntyped(context: _ResolveContext<Never>) -> _AddressableActorRef {
| |- warning: conformance of 'Never' to 'Encodable' is only available in macOS 14.0 or newer; this is an error in the Swift 6 language mode
| `- note: add @available attribute to enclosing instance method
997 | guard context.selectorSegments.first != nil else {
998 | // no remaining selectors == we are the "selected" ref, apply uid check
/Users/admin/builder/spi-builder-workspace/Sources/DistributedCluster/_ActorShell.swift:752:139: warning: 'wellKnown' is deprecated: Useful only with behavior actors, will be removed entirely
750 | return .init(.adapter(adapter))
751 | } else {
752 | let adaptedAddress = try self.id.makeChildAddress(name: _ActorNaming.adapter.makeName(&self.namingContext), incarnation: .wellKnown)
| `- warning: 'wellKnown' is deprecated: Useful only with behavior actors, will be removed entirely
753 | let adapter = _ActorRefAdapter(fromType: fromType, to: self.myself, id: adaptedAddress)
754 |
/Users/admin/builder/spi-builder-workspace/Sources/DistributedCluster/_ActorShell.swift:997:23: warning: conformance of 'Never' to 'Decodable' is only available in macOS 14.0 or newer; this is an error in the Swift 6 language mode
939 | }
940 |
941 | extension AbstractShellProtocol {
| `- note: add @available attribute to enclosing extension
942 | @inlinable
943 | var receivesSystemMessages: _ReceivesSystemMessages {
:
994 | }
995 |
996 | public func _resolveUntyped(context: _ResolveContext<Never>) -> _AddressableActorRef {
| `- note: add @available attribute to enclosing instance method
997 | guard context.selectorSegments.first != nil else {
| |- warning: conformance of 'Never' to 'Decodable' is only available in macOS 14.0 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
998 | // no remaining selectors == we are the "selected" ref, apply uid check
999 | if self._myselfReceivesSystemMessages.id.incarnation == context.id.incarnation {
/Users/admin/builder/spi-builder-workspace/Sources/DistributedCluster/_ActorShell.swift:997:23: warning: conformance of 'Never' to 'Encodable' is only available in macOS 14.0 or newer; this is an error in the Swift 6 language mode
939 | }
940 |
941 | extension AbstractShellProtocol {
| `- note: add @available attribute to enclosing extension
942 | @inlinable
943 | var receivesSystemMessages: _ReceivesSystemMessages {
:
994 | }
995 |
996 | public func _resolveUntyped(context: _ResolveContext<Never>) -> _AddressableActorRef {
| `- note: add @available attribute to enclosing instance method
997 | guard context.selectorSegments.first != nil else {
| |- warning: conformance of 'Never' to 'Encodable' is only available in macOS 14.0 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
998 | // no remaining selectors == we are the "selected" ref, apply uid check
999 | if self._myselfReceivesSystemMessages.id.incarnation == context.id.incarnation {
/Users/admin/builder/spi-builder-workspace/Sources/DistributedCluster/_ActorShell.swift:999:77: warning: conformance of 'Never' to 'Decodable' is only available in macOS 14.0 or newer; this is an error in the Swift 6 language mode
939 | }
940 |
941 | extension AbstractShellProtocol {
| `- note: add @available attribute to enclosing extension
942 | @inlinable
943 | var receivesSystemMessages: _ReceivesSystemMessages {
:
994 | }
995 |
996 | public func _resolveUntyped(context: _ResolveContext<Never>) -> _AddressableActorRef {
| `- note: add @available attribute to enclosing instance method
997 | guard context.selectorSegments.first != nil else {
998 | // no remaining selectors == we are the "selected" ref, apply uid check
999 | if self._myselfReceivesSystemMessages.id.incarnation == context.id.incarnation {
| |- warning: conformance of 'Never' to 'Decodable' is only available in macOS 14.0 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
1000 | return self.asAddressable
1001 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/DistributedCluster/_ActorShell.swift:999:77: warning: conformance of 'Never' to 'Encodable' is only available in macOS 14.0 or newer; this is an error in the Swift 6 language mode
939 | }
940 |
941 | extension AbstractShellProtocol {
| `- note: add @available attribute to enclosing extension
942 | @inlinable
943 | var receivesSystemMessages: _ReceivesSystemMessages {
:
994 | }
995 |
996 | public func _resolveUntyped(context: _ResolveContext<Never>) -> _AddressableActorRef {
| `- note: add @available attribute to enclosing instance method
997 | guard context.selectorSegments.first != nil else {
998 | // no remaining selectors == we are the "selected" ref, apply uid check
999 | if self._myselfReceivesSystemMessages.id.incarnation == context.id.incarnation {
| |- warning: conformance of 'Never' to 'Encodable' is only available in macOS 14.0 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
1000 | return self.asAddressable
1001 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/DistributedCluster/_ActorShell.swift:1003:32: warning: conformance of 'Never' to 'Decodable' is only available in macOS 14.0 or newer; this is an error in the Swift 6 language mode
939 | }
940 |
941 | extension AbstractShellProtocol {
| `- note: add @available attribute to enclosing extension
942 | @inlinable
943 | var receivesSystemMessages: _ReceivesSystemMessages {
:
994 | }
995 |
996 | public func _resolveUntyped(context: _ResolveContext<Never>) -> _AddressableActorRef {
| `- note: add @available attribute to enclosing instance method
997 | guard context.selectorSegments.first != nil else {
998 | // no remaining selectors == we are the "selected" ref, apply uid check
:
1001 | } else {
1002 | // the selection was indeed for this path, however we are a different incarnation (or different actor)
1003 | return context.personalDeadLetters.asAddressable
| |- warning: conformance of 'Never' to 'Decodable' is only available in macOS 14.0 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
1004 | }
1005 | }
/Users/admin/builder/spi-builder-workspace/Sources/DistributedCluster/_ActorShell.swift:1003:32: warning: conformance of 'Never' to 'Encodable' is only available in macOS 14.0 or newer; this is an error in the Swift 6 language mode
939 | }
940 |
941 | extension AbstractShellProtocol {
| `- note: add @available attribute to enclosing extension
942 | @inlinable
943 | var receivesSystemMessages: _ReceivesSystemMessages {
:
994 | }
995 |
996 | public func _resolveUntyped(context: _ResolveContext<Never>) -> _AddressableActorRef {
| `- note: add @available attribute to enclosing instance method
997 | guard context.selectorSegments.first != nil else {
998 | // no remaining selectors == we are the "selected" ref, apply uid check
:
1001 | } else {
1002 | // the selection was indeed for this path, however we are a different incarnation (or different actor)
1003 | return context.personalDeadLetters.asAddressable
| |- warning: conformance of 'Never' to 'Encodable' is only available in macOS 14.0 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
1004 | }
1005 | }
/Users/admin/builder/spi-builder-workspace/Sources/DistributedCluster/_ActorShell.swift:1003:52: warning: conformance of 'Never' to 'Decodable' is only available in macOS 14.0 or newer; this is an error in the Swift 6 language mode
939 | }
940 |
941 | extension AbstractShellProtocol {
| `- note: add @available attribute to enclosing extension
942 | @inlinable
943 | var receivesSystemMessages: _ReceivesSystemMessages {
:
994 | }
995 |
996 | public func _resolveUntyped(context: _ResolveContext<Never>) -> _AddressableActorRef {
| `- note: add @available attribute to enclosing instance method
997 | guard context.selectorSegments.first != nil else {
998 | // no remaining selectors == we are the "selected" ref, apply uid check
:
1001 | } else {
1002 | // the selection was indeed for this path, however we are a different incarnation (or different actor)
1003 | return context.personalDeadLetters.asAddressable
| |- warning: conformance of 'Never' to 'Decodable' is only available in macOS 14.0 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
1004 | }
1005 | }
/Users/admin/builder/spi-builder-workspace/Sources/DistributedCluster/_ActorShell.swift:1003:52: warning: conformance of 'Never' to 'Encodable' is only available in macOS 14.0 or newer; this is an error in the Swift 6 language mode
939 | }
940 |
941 | extension AbstractShellProtocol {
| `- note: add @available attribute to enclosing extension
942 | @inlinable
943 | var receivesSystemMessages: _ReceivesSystemMessages {
:
994 | }
995 |
996 | public func _resolveUntyped(context: _ResolveContext<Never>) -> _AddressableActorRef {
| `- note: add @available attribute to enclosing instance method
997 | guard context.selectorSegments.first != nil else {
998 | // no remaining selectors == we are the "selected" ref, apply uid check
:
1001 | } else {
1002 | // the selection was indeed for this path, however we are a different incarnation (or different actor)
1003 | return context.personalDeadLetters.asAddressable
| |- warning: conformance of 'Never' to 'Encodable' is only available in macOS 14.0 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
1004 | }
1005 | }
/Users/admin/builder/spi-builder-workspace/Sources/DistributedCluster/_Signals.swift:143:17: warning: class '_ChildTerminated' must restate inherited '@unchecked Sendable' conformance
141 | ///
142 | /// - SeeAlso: `Terminated` which is sent when a watched actor terminates.
143 | final class _ChildTerminated: Terminated {
| `- warning: class '_ChildTerminated' must restate inherited '@unchecked Sendable' conformance
144 | /// Filled with the error that caused the child actor to terminate.
145 | /// This kind of information is only known to the parent, which may decide to perform
[1449/1457] Compiling DistributedCluster _OrderedSet+Extensions.swift
/Users/admin/builder/spi-builder-workspace/Sources/DistributedCluster/Supervision.swift:21:16: warning: static property 'default' is not concurrency-safe because non-'Sendable' type '_SupervisionProps' may have shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | /// Properties configuring supervision for given actor.
16 | internal struct _SupervisionProps {
| `- note: consider making struct '_SupervisionProps' conform to the 'Sendable' protocol
17 | // internal var supervisionMappings: [ErrorTypeIdentifier: _SupervisionStrategy]
18 | // on purpose stored as list, to keep order in which the supervisors are added as we "scan" from first to last when we handle
19 | internal var supervisionMappings: [ErrorTypeBoundSupervisionStrategy]
20 |
21 | static let `default`: _SupervisionProps = .init()
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type '_SupervisionProps' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'default' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
22 |
23 | init() {
/Users/admin/builder/spi-builder-workspace/Sources/DistributedCluster/SystemMessages.swift:166:16: warning: static property 'metaType' is not concurrency-safe because non-'Sendable' type 'MetaType<_SystemMessage>' may have shared mutable state; this is an error in the Swift 6 language mode
164 |
165 | extension _SystemMessage {
166 | static let metaType: MetaType<_SystemMessage> = MetaType(_SystemMessage.self)
| |- warning: static property 'metaType' is not concurrency-safe because non-'Sendable' type 'MetaType<_SystemMessage>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'metaType' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
167 | }
168 |
/Users/admin/builder/spi-builder-workspace/Sources/DistributedCluster/Serialization/Serialization.swift:626:17: note: consider making generic struct 'MetaType' conform to the 'Sendable' protocol
624 | /// A meta type is a type eraser for any `T`, such that we can still perform `value is T` checks.
625 | @usableFromInline
626 | internal struct MetaType<T>: Hashable, CustomStringConvertible {
| `- note: consider making generic struct 'MetaType' conform to the 'Sendable' protocol
627 | let _underlying: Any.Type?
628 | let id: ObjectIdentifier
/Users/admin/builder/spi-builder-workspace/Sources/DistributedCluster/Time.swift:81:16: warning: static property 'effectivelyInfinite' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
79 | /// Largest time amount expressible using this type.
80 | /// Roughly equivalent to 292 years, which for the intents and purposes of this type can serve as "infinite".
81 | static var effectivelyInfinite: Duration = .nanoseconds(Value.max)
| |- warning: static property 'effectivelyInfinite' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'effectivelyInfinite' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'effectivelyInfinite' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
82 | }
83 |
/Users/admin/builder/spi-builder-workspace/Sources/DistributedCluster/_ActorNaming.swift:61:16: warning: static property 'ask' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
59 | extension _ActorNaming {
60 | /// Special naming scheme applied to `ask` actors.
61 | static var ask: _ActorNaming = .init(unchecked: .prefixed(prefix: "$ask", suffixScheme: .letters))
| |- warning: static property 'ask' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'ask' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'ask' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
62 |
63 | /// Naming for adapters (`context.messageAdapter`)
/Users/admin/builder/spi-builder-workspace/Sources/DistributedCluster/_ActorNaming.swift:64:16: warning: static property 'adapter' is not concurrency-safe because non-'Sendable' type '_ActorNaming' may have shared mutable state; this is an error in the Swift 6 language mode
62 |
63 | /// Naming for adapters (`context.messageAdapter`)
64 | static let adapter: _ActorNaming = .init(unchecked: .unique("$messageAdapter"))
| |- warning: static property 'adapter' is not concurrency-safe because non-'Sendable' type '_ActorNaming' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'adapter' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
65 | }
66 |
67 | /// Used while spawning actors to identify how its name should be created.
68 | public struct _ActorNaming: ExpressibleByStringLiteral, ExpressibleByStringInterpolation {
| `- note: consider making struct '_ActorNaming' conform to the 'Sendable' protocol
69 | // We keep an internal enum, but do not expose it as we may want to add more naming strategies in the future?
70 | internal enum _Naming {
/Users/admin/builder/spi-builder-workspace/Sources/DistributedCluster/_ActorShell.swift:629:38: warning: generic parameter 'Message' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
29 | /// The shell is mutable, and full of dangerous and carefully threaded/ordered code, be extra cautious.
30 | // TODO: remove this and replace by the infrastructure which is now Swift's `actor`
31 | public final class _ActorShell<Message: Codable>: _ActorContext<Message>, AbstractShellProtocol {
| `- note: 'Message' previously declared here
32 | // The phrase that "actor change their behavior" can be understood quite literally;
33 | // On each message interpretation the actor may return a new behavior that will be handling the next message.
:
627 |
628 | @discardableResult
629 | override public func _spawnWatch<Message>(
| `- warning: generic parameter 'Message' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
630 | _ naming: _ActorNaming,
631 | of type: Message.Type = Message.self,
/Users/admin/builder/spi-builder-workspace/Sources/DistributedCluster/_ActorShell.swift:641:31: warning: generic parameter 'Message' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
29 | /// The shell is mutable, and full of dangerous and carefully threaded/ordered code, be extra cautious.
30 | // TODO: remove this and replace by the infrastructure which is now Swift's `actor`
31 | public final class _ActorShell<Message: Codable>: _ActorContext<Message>, AbstractShellProtocol {
| `- note: 'Message' previously declared here
32 | // The phrase that "actor change their behavior" can be understood quite literally;
33 | // On each message interpretation the actor may return a new behavior that will be handling the next message.
:
639 | }
640 |
641 | override public func stop<Message: Codable>(child ref: _ActorRef<Message>) throws {
| `- warning: generic parameter 'Message' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
642 | try self._stop(child: ref)
643 | }
/Users/admin/builder/spi-builder-workspace/Sources/DistributedCluster/_ActorShell.swift:996:17: warning: conformance of 'Never' to 'Decodable' is only available in macOS 14.0 or newer; this is an error in the Swift 6 language mode
939 | }
940 |
941 | extension AbstractShellProtocol {
| `- note: add @available attribute to enclosing extension
942 | @inlinable
943 | var receivesSystemMessages: _ReceivesSystemMessages {
:
994 | }
995 |
996 | public func _resolveUntyped(context: _ResolveContext<Never>) -> _AddressableActorRef {
| |- warning: conformance of 'Never' to 'Decodable' is only available in macOS 14.0 or newer; this is an error in the Swift 6 language mode
| `- note: add @available attribute to enclosing instance method
997 | guard context.selectorSegments.first != nil else {
998 | // no remaining selectors == we are the "selected" ref, apply uid check
/Users/admin/builder/spi-builder-workspace/Sources/DistributedCluster/_ActorShell.swift:996:17: warning: conformance of 'Never' to 'Encodable' is only available in macOS 14.0 or newer; this is an error in the Swift 6 language mode
939 | }
940 |
941 | extension AbstractShellProtocol {
| `- note: add @available attribute to enclosing extension
942 | @inlinable
943 | var receivesSystemMessages: _ReceivesSystemMessages {
:
994 | }
995 |
996 | public func _resolveUntyped(context: _ResolveContext<Never>) -> _AddressableActorRef {
| |- warning: conformance of 'Never' to 'Encodable' is only available in macOS 14.0 or newer; this is an error in the Swift 6 language mode
| `- note: add @available attribute to enclosing instance method
997 | guard context.selectorSegments.first != nil else {
998 | // no remaining selectors == we are the "selected" ref, apply uid check
/Users/admin/builder/spi-builder-workspace/Sources/DistributedCluster/_ActorShell.swift:752:139: warning: 'wellKnown' is deprecated: Useful only with behavior actors, will be removed entirely
750 | return .init(.adapter(adapter))
751 | } else {
752 | let adaptedAddress = try self.id.makeChildAddress(name: _ActorNaming.adapter.makeName(&self.namingContext), incarnation: .wellKnown)
| `- warning: 'wellKnown' is deprecated: Useful only with behavior actors, will be removed entirely
753 | let adapter = _ActorRefAdapter(fromType: fromType, to: self.myself, id: adaptedAddress)
754 |
/Users/admin/builder/spi-builder-workspace/Sources/DistributedCluster/_ActorShell.swift:997:23: warning: conformance of 'Never' to 'Decodable' is only available in macOS 14.0 or newer; this is an error in the Swift 6 language mode
939 | }
940 |
941 | extension AbstractShellProtocol {
| `- note: add @available attribute to enclosing extension
942 | @inlinable
943 | var receivesSystemMessages: _ReceivesSystemMessages {
:
994 | }
995 |
996 | public func _resolveUntyped(context: _ResolveContext<Never>) -> _AddressableActorRef {
| `- note: add @available attribute to enclosing instance method
997 | guard context.selectorSegments.first != nil else {
| |- warning: conformance of 'Never' to 'Decodable' is only available in macOS 14.0 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
998 | // no remaining selectors == we are the "selected" ref, apply uid check
999 | if self._myselfReceivesSystemMessages.id.incarnation == context.id.incarnation {
/Users/admin/builder/spi-builder-workspace/Sources/DistributedCluster/_ActorShell.swift:997:23: warning: conformance of 'Never' to 'Encodable' is only available in macOS 14.0 or newer; this is an error in the Swift 6 language mode
939 | }
940 |
941 | extension AbstractShellProtocol {
| `- note: add @available attribute to enclosing extension
942 | @inlinable
943 | var receivesSystemMessages: _ReceivesSystemMessages {
:
994 | }
995 |
996 | public func _resolveUntyped(context: _ResolveContext<Never>) -> _AddressableActorRef {
| `- note: add @available attribute to enclosing instance method
997 | guard context.selectorSegments.first != nil else {
| |- warning: conformance of 'Never' to 'Encodable' is only available in macOS 14.0 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
998 | // no remaining selectors == we are the "selected" ref, apply uid check
999 | if self._myselfReceivesSystemMessages.id.incarnation == context.id.incarnation {
/Users/admin/builder/spi-builder-workspace/Sources/DistributedCluster/_ActorShell.swift:999:77: warning: conformance of 'Never' to 'Decodable' is only available in macOS 14.0 or newer; this is an error in the Swift 6 language mode
939 | }
940 |
941 | extension AbstractShellProtocol {
| `- note: add @available attribute to enclosing extension
942 | @inlinable
943 | var receivesSystemMessages: _ReceivesSystemMessages {
:
994 | }
995 |
996 | public func _resolveUntyped(context: _ResolveContext<Never>) -> _AddressableActorRef {
| `- note: add @available attribute to enclosing instance method
997 | guard context.selectorSegments.first != nil else {
998 | // no remaining selectors == we are the "selected" ref, apply uid check
999 | if self._myselfReceivesSystemMessages.id.incarnation == context.id.incarnation {
| |- warning: conformance of 'Never' to 'Decodable' is only available in macOS 14.0 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
1000 | return self.asAddressable
1001 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/DistributedCluster/_ActorShell.swift:999:77: warning: conformance of 'Never' to 'Encodable' is only available in macOS 14.0 or newer; this is an error in the Swift 6 language mode
939 | }
940 |
941 | extension AbstractShellProtocol {
| `- note: add @available attribute to enclosing extension
942 | @inlinable
943 | var receivesSystemMessages: _ReceivesSystemMessages {
:
994 | }
995 |
996 | public func _resolveUntyped(context: _ResolveContext<Never>) -> _AddressableActorRef {
| `- note: add @available attribute to enclosing instance method
997 | guard context.selectorSegments.first != nil else {
998 | // no remaining selectors == we are the "selected" ref, apply uid check
999 | if self._myselfReceivesSystemMessages.id.incarnation == context.id.incarnation {
| |- warning: conformance of 'Never' to 'Encodable' is only available in macOS 14.0 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
1000 | return self.asAddressable
1001 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/DistributedCluster/_ActorShell.swift:1003:32: warning: conformance of 'Never' to 'Decodable' is only available in macOS 14.0 or newer; this is an error in the Swift 6 language mode
939 | }
940 |
941 | extension AbstractShellProtocol {
| `- note: add @available attribute to enclosing extension
942 | @inlinable
943 | var receivesSystemMessages: _ReceivesSystemMessages {
:
994 | }
995 |
996 | public func _resolveUntyped(context: _ResolveContext<Never>) -> _AddressableActorRef {
| `- note: add @available attribute to enclosing instance method
997 | guard context.selectorSegments.first != nil else {
998 | // no remaining selectors == we are the "selected" ref, apply uid check
:
1001 | } else {
1002 | // the selection was indeed for this path, however we are a different incarnation (or different actor)
1003 | return context.personalDeadLetters.asAddressable
| |- warning: conformance of 'Never' to 'Decodable' is only available in macOS 14.0 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
1004 | }
1005 | }
/Users/admin/builder/spi-builder-workspace/Sources/DistributedCluster/_ActorShell.swift:1003:32: warning: conformance of 'Never' to 'Encodable' is only available in macOS 14.0 or newer; this is an error in the Swift 6 language mode
939 | }
940 |
941 | extension AbstractShellProtocol {
| `- note: add @available attribute to enclosing extension
942 | @inlinable
943 | var receivesSystemMessages: _ReceivesSystemMessages {
:
994 | }
995 |
996 | public func _resolveUntyped(context: _ResolveContext<Never>) -> _AddressableActorRef {
| `- note: add @available attribute to enclosing instance method
997 | guard context.selectorSegments.first != nil else {
998 | // no remaining selectors == we are the "selected" ref, apply uid check
:
1001 | } else {
1002 | // the selection was indeed for this path, however we are a different incarnation (or different actor)
1003 | return context.personalDeadLetters.asAddressable
| |- warning: conformance of 'Never' to 'Encodable' is only available in macOS 14.0 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
1004 | }
1005 | }
/Users/admin/builder/spi-builder-workspace/Sources/DistributedCluster/_ActorShell.swift:1003:52: warning: conformance of 'Never' to 'Decodable' is only available in macOS 14.0 or newer; this is an error in the Swift 6 language mode
939 | }
940 |
941 | extension AbstractShellProtocol {
| `- note: add @available attribute to enclosing extension
942 | @inlinable
943 | var receivesSystemMessages: _ReceivesSystemMessages {
:
994 | }
995 |
996 | public func _resolveUntyped(context: _ResolveContext<Never>) -> _AddressableActorRef {
| `- note: add @available attribute to enclosing instance method
997 | guard context.selectorSegments.first != nil else {
998 | // no remaining selectors == we are the "selected" ref, apply uid check
:
1001 | } else {
1002 | // the selection was indeed for this path, however we are a different incarnation (or different actor)
1003 | return context.personalDeadLetters.asAddressable
| |- warning: conformance of 'Never' to 'Decodable' is only available in macOS 14.0 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
1004 | }
1005 | }
/Users/admin/builder/spi-builder-workspace/Sources/DistributedCluster/_ActorShell.swift:1003:52: warning: conformance of 'Never' to 'Encodable' is only available in macOS 14.0 or newer; this is an error in the Swift 6 language mode
939 | }
940 |
941 | extension AbstractShellProtocol {
| `- note: add @available attribute to enclosing extension
942 | @inlinable
943 | var receivesSystemMessages: _ReceivesSystemMessages {
:
994 | }
995 |
996 | public func _resolveUntyped(context: _ResolveContext<Never>) -> _AddressableActorRef {
| `- note: add @available attribute to enclosing instance method
997 | guard context.selectorSegments.first != nil else {
998 | // no remaining selectors == we are the "selected" ref, apply uid check
:
1001 | } else {
1002 | // the selection was indeed for this path, however we are a different incarnation (or different actor)
1003 | return context.personalDeadLetters.asAddressable
| |- warning: conformance of 'Never' to 'Encodable' is only available in macOS 14.0 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
1004 | }
1005 | }
/Users/admin/builder/spi-builder-workspace/Sources/DistributedCluster/_Signals.swift:143:17: warning: class '_ChildTerminated' must restate inherited '@unchecked Sendable' conformance
141 | ///
142 | /// - SeeAlso: `Terminated` which is sent when a watched actor terminates.
143 | final class _ChildTerminated: Terminated {
| `- warning: class '_ChildTerminated' must restate inherited '@unchecked Sendable' conformance
144 | /// Filled with the error that caused the child actor to terminate.
145 | /// This kind of information is only known to the parent, which may decide to perform
[1450/1457] Compiling DistributedCluster _Signals.swift
/Users/admin/builder/spi-builder-workspace/Sources/DistributedCluster/Supervision.swift:21:16: warning: static property 'default' is not concurrency-safe because non-'Sendable' type '_SupervisionProps' may have shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | /// Properties configuring supervision for given actor.
16 | internal struct _SupervisionProps {
| `- note: consider making struct '_SupervisionProps' conform to the 'Sendable' protocol
17 | // internal var supervisionMappings: [ErrorTypeIdentifier: _SupervisionStrategy]
18 | // on purpose stored as list, to keep order in which the supervisors are added as we "scan" from first to last when we handle
19 | internal var supervisionMappings: [ErrorTypeBoundSupervisionStrategy]
20 |
21 | static let `default`: _SupervisionProps = .init()
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type '_SupervisionProps' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'default' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
22 |
23 | init() {
/Users/admin/builder/spi-builder-workspace/Sources/DistributedCluster/SystemMessages.swift:166:16: warning: static property 'metaType' is not concurrency-safe because non-'Sendable' type 'MetaType<_SystemMessage>' may have shared mutable state; this is an error in the Swift 6 language mode
164 |
165 | extension _SystemMessage {
166 | static let metaType: MetaType<_SystemMessage> = MetaType(_SystemMessage.self)
| |- warning: static property 'metaType' is not concurrency-safe because non-'Sendable' type 'MetaType<_SystemMessage>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'metaType' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
167 | }
168 |
/Users/admin/builder/spi-builder-workspace/Sources/DistributedCluster/Serialization/Serialization.swift:626:17: note: consider making generic struct 'MetaType' conform to the 'Sendable' protocol
624 | /// A meta type is a type eraser for any `T`, such that we can still perform `value is T` checks.
625 | @usableFromInline
626 | internal struct MetaType<T>: Hashable, CustomStringConvertible {
| `- note: consider making generic struct 'MetaType' conform to the 'Sendable' protocol
627 | let _underlying: Any.Type?
628 | let id: ObjectIdentifier
/Users/admin/builder/spi-builder-workspace/Sources/DistributedCluster/Time.swift:81:16: warning: static property 'effectivelyInfinite' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
79 | /// Largest time amount expressible using this type.
80 | /// Roughly equivalent to 292 years, which for the intents and purposes of this type can serve as "infinite".
81 | static var effectivelyInfinite: Duration = .nanoseconds(Value.max)
| |- warning: static property 'effectivelyInfinite' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'effectivelyInfinite' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'effectivelyInfinite' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
82 | }
83 |
/Users/admin/builder/spi-builder-workspace/Sources/DistributedCluster/_ActorNaming.swift:61:16: warning: static property 'ask' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
59 | extension _ActorNaming {
60 | /// Special naming scheme applied to `ask` actors.
61 | static var ask: _ActorNaming = .init(unchecked: .prefixed(prefix: "$ask", suffixScheme: .letters))
| |- warning: static property 'ask' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'ask' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'ask' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
62 |
63 | /// Naming for adapters (`context.messageAdapter`)
/Users/admin/builder/spi-builder-workspace/Sources/DistributedCluster/_ActorNaming.swift:64:16: warning: static property 'adapter' is not concurrency-safe because non-'Sendable' type '_ActorNaming' may have shared mutable state; this is an error in the Swift 6 language mode
62 |
63 | /// Naming for adapters (`context.messageAdapter`)
64 | static let adapter: _ActorNaming = .init(unchecked: .unique("$messageAdapter"))
| |- warning: static property 'adapter' is not concurrency-safe because non-'Sendable' type '_ActorNaming' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'adapter' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
65 | }
66 |
67 | /// Used while spawning actors to identify how its name should be created.
68 | public struct _ActorNaming: ExpressibleByStringLiteral, ExpressibleByStringInterpolation {
| `- note: consider making struct '_ActorNaming' conform to the 'Sendable' protocol
69 | // We keep an internal enum, but do not expose it as we may want to add more naming strategies in the future?
70 | internal enum _Naming {
/Users/admin/builder/spi-builder-workspace/Sources/DistributedCluster/_ActorShell.swift:629:38: warning: generic parameter 'Message' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
29 | /// The shell is mutable, and full of dangerous and carefully threaded/ordered code, be extra cautious.
30 | // TODO: remove this and replace by the infrastructure which is now Swift's `actor`
31 | public final class _ActorShell<Message: Codable>: _ActorContext<Message>, AbstractShellProtocol {
| `- note: 'Message' previously declared here
32 | // The phrase that "actor change their behavior" can be understood quite literally;
33 | // On each message interpretation the actor may return a new behavior that will be handling the next message.
:
627 |
628 | @discardableResult
629 | override public func _spawnWatch<Message>(
| `- warning: generic parameter 'Message' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
630 | _ naming: _ActorNaming,
631 | of type: Message.Type = Message.self,
/Users/admin/builder/spi-builder-workspace/Sources/DistributedCluster/_ActorShell.swift:641:31: warning: generic parameter 'Message' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
29 | /// The shell is mutable, and full of dangerous and carefully threaded/ordered code, be extra cautious.
30 | // TODO: remove this and replace by the infrastructure which is now Swift's `actor`
31 | public final class _ActorShell<Message: Codable>: _ActorContext<Message>, AbstractShellProtocol {
| `- note: 'Message' previously declared here
32 | // The phrase that "actor change their behavior" can be understood quite literally;
33 | // On each message interpretation the actor may return a new behavior that will be handling the next message.
:
639 | }
640 |
641 | override public func stop<Message: Codable>(child ref: _ActorRef<Message>) throws {
| `- warning: generic parameter 'Message' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
642 | try self._stop(child: ref)
643 | }
/Users/admin/builder/spi-builder-workspace/Sources/DistributedCluster/_ActorShell.swift:996:17: warning: conformance of 'Never' to 'Decodable' is only available in macOS 14.0 or newer; this is an error in the Swift 6 language mode
939 | }
940 |
941 | extension AbstractShellProtocol {
| `- note: add @available attribute to enclosing extension
942 | @inlinable
943 | var receivesSystemMessages: _ReceivesSystemMessages {
:
994 | }
995 |
996 | public func _resolveUntyped(context: _ResolveContext<Never>) -> _AddressableActorRef {
| |- warning: conformance of 'Never' to 'Decodable' is only available in macOS 14.0 or newer; this is an error in the Swift 6 language mode
| `- note: add @available attribute to enclosing instance method
997 | guard context.selectorSegments.first != nil else {
998 | // no remaining selectors == we are the "selected" ref, apply uid check
/Users/admin/builder/spi-builder-workspace/Sources/DistributedCluster/_ActorShell.swift:996:17: warning: conformance of 'Never' to 'Encodable' is only available in macOS 14.0 or newer; this is an error in the Swift 6 language mode
939 | }
940 |
941 | extension AbstractShellProtocol {
| `- note: add @available attribute to enclosing extension
942 | @inlinable
943 | var receivesSystemMessages: _ReceivesSystemMessages {
:
994 | }
995 |
996 | public func _resolveUntyped(context: _ResolveContext<Never>) -> _AddressableActorRef {
| |- warning: conformance of 'Never' to 'Encodable' is only available in macOS 14.0 or newer; this is an error in the Swift 6 language mode
| `- note: add @available attribute to enclosing instance method
997 | guard context.selectorSegments.first != nil else {
998 | // no remaining selectors == we are the "selected" ref, apply uid check
/Users/admin/builder/spi-builder-workspace/Sources/DistributedCluster/_ActorShell.swift:752:139: warning: 'wellKnown' is deprecated: Useful only with behavior actors, will be removed entirely
750 | return .init(.adapter(adapter))
751 | } else {
752 | let adaptedAddress = try self.id.makeChildAddress(name: _ActorNaming.adapter.makeName(&self.namingContext), incarnation: .wellKnown)
| `- warning: 'wellKnown' is deprecated: Useful only with behavior actors, will be removed entirely
753 | let adapter = _ActorRefAdapter(fromType: fromType, to: self.myself, id: adaptedAddress)
754 |
/Users/admin/builder/spi-builder-workspace/Sources/DistributedCluster/_ActorShell.swift:997:23: warning: conformance of 'Never' to 'Decodable' is only available in macOS 14.0 or newer; this is an error in the Swift 6 language mode
939 | }
940 |
941 | extension AbstractShellProtocol {
| `- note: add @available attribute to enclosing extension
942 | @inlinable
943 | var receivesSystemMessages: _ReceivesSystemMessages {
:
994 | }
995 |
996 | public func _resolveUntyped(context: _ResolveContext<Never>) -> _AddressableActorRef {
| `- note: add @available attribute to enclosing instance method
997 | guard context.selectorSegments.first != nil else {
| |- warning: conformance of 'Never' to 'Decodable' is only available in macOS 14.0 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
998 | // no remaining selectors == we are the "selected" ref, apply uid check
999 | if self._myselfReceivesSystemMessages.id.incarnation == context.id.incarnation {
/Users/admin/builder/spi-builder-workspace/Sources/DistributedCluster/_ActorShell.swift:997:23: warning: conformance of 'Never' to 'Encodable' is only available in macOS 14.0 or newer; this is an error in the Swift 6 language mode
939 | }
940 |
941 | extension AbstractShellProtocol {
| `- note: add @available attribute to enclosing extension
942 | @inlinable
943 | var receivesSystemMessages: _ReceivesSystemMessages {
:
994 | }
995 |
996 | public func _resolveUntyped(context: _ResolveContext<Never>) -> _AddressableActorRef {
| `- note: add @available attribute to enclosing instance method
997 | guard context.selectorSegments.first != nil else {
| |- warning: conformance of 'Never' to 'Encodable' is only available in macOS 14.0 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
998 | // no remaining selectors == we are the "selected" ref, apply uid check
999 | if self._myselfReceivesSystemMessages.id.incarnation == context.id.incarnation {
/Users/admin/builder/spi-builder-workspace/Sources/DistributedCluster/_ActorShell.swift:999:77: warning: conformance of 'Never' to 'Decodable' is only available in macOS 14.0 or newer; this is an error in the Swift 6 language mode
939 | }
940 |
941 | extension AbstractShellProtocol {
| `- note: add @available attribute to enclosing extension
942 | @inlinable
943 | var receivesSystemMessages: _ReceivesSystemMessages {
:
994 | }
995 |
996 | public func _resolveUntyped(context: _ResolveContext<Never>) -> _AddressableActorRef {
| `- note: add @available attribute to enclosing instance method
997 | guard context.selectorSegments.first != nil else {
998 | // no remaining selectors == we are the "selected" ref, apply uid check
999 | if self._myselfReceivesSystemMessages.id.incarnation == context.id.incarnation {
| |- warning: conformance of 'Never' to 'Decodable' is only available in macOS 14.0 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
1000 | return self.asAddressable
1001 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/DistributedCluster/_ActorShell.swift:999:77: warning: conformance of 'Never' to 'Encodable' is only available in macOS 14.0 or newer; this is an error in the Swift 6 language mode
939 | }
940 |
941 | extension AbstractShellProtocol {
| `- note: add @available attribute to enclosing extension
942 | @inlinable
943 | var receivesSystemMessages: _ReceivesSystemMessages {
:
994 | }
995 |
996 | public func _resolveUntyped(context: _ResolveContext<Never>) -> _AddressableActorRef {
| `- note: add @available attribute to enclosing instance method
997 | guard context.selectorSegments.first != nil else {
998 | // no remaining selectors == we are the "selected" ref, apply uid check
999 | if self._myselfReceivesSystemMessages.id.incarnation == context.id.incarnation {
| |- warning: conformance of 'Never' to 'Encodable' is only available in macOS 14.0 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
1000 | return self.asAddressable
1001 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/DistributedCluster/_ActorShell.swift:1003:32: warning: conformance of 'Never' to 'Decodable' is only available in macOS 14.0 or newer; this is an error in the Swift 6 language mode
939 | }
940 |
941 | extension AbstractShellProtocol {
| `- note: add @available attribute to enclosing extension
942 | @inlinable
943 | var receivesSystemMessages: _ReceivesSystemMessages {
:
994 | }
995 |
996 | public func _resolveUntyped(context: _ResolveContext<Never>) -> _AddressableActorRef {
| `- note: add @available attribute to enclosing instance method
997 | guard context.selectorSegments.first != nil else {
998 | // no remaining selectors == we are the "selected" ref, apply uid check
:
1001 | } else {
1002 | // the selection was indeed for this path, however we are a different incarnation (or different actor)
1003 | return context.personalDeadLetters.asAddressable
| |- warning: conformance of 'Never' to 'Decodable' is only available in macOS 14.0 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
1004 | }
1005 | }
/Users/admin/builder/spi-builder-workspace/Sources/DistributedCluster/_ActorShell.swift:1003:32: warning: conformance of 'Never' to 'Encodable' is only available in macOS 14.0 or newer; this is an error in the Swift 6 language mode
939 | }
940 |
941 | extension AbstractShellProtocol {
| `- note: add @available attribute to enclosing extension
942 | @inlinable
943 | var receivesSystemMessages: _ReceivesSystemMessages {
:
994 | }
995 |
996 | public func _resolveUntyped(context: _ResolveContext<Never>) -> _AddressableActorRef {
| `- note: add @available attribute to enclosing instance method
997 | guard context.selectorSegments.first != nil else {
998 | // no remaining selectors == we are the "selected" ref, apply uid check
:
1001 | } else {
1002 | // the selection was indeed for this path, however we are a different incarnation (or different actor)
1003 | return context.personalDeadLetters.asAddressable
| |- warning: conformance of 'Never' to 'Encodable' is only available in macOS 14.0 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
1004 | }
1005 | }
/Users/admin/builder/spi-builder-workspace/Sources/DistributedCluster/_ActorShell.swift:1003:52: warning: conformance of 'Never' to 'Decodable' is only available in macOS 14.0 or newer; this is an error in the Swift 6 language mode
939 | }
940 |
941 | extension AbstractShellProtocol {
| `- note: add @available attribute to enclosing extension
942 | @inlinable
943 | var receivesSystemMessages: _ReceivesSystemMessages {
:
994 | }
995 |
996 | public func _resolveUntyped(context: _ResolveContext<Never>) -> _AddressableActorRef {
| `- note: add @available attribute to enclosing instance method
997 | guard context.selectorSegments.first != nil else {
998 | // no remaining selectors == we are the "selected" ref, apply uid check
:
1001 | } else {
1002 | // the selection was indeed for this path, however we are a different incarnation (or different actor)
1003 | return context.personalDeadLetters.asAddressable
| |- warning: conformance of 'Never' to 'Decodable' is only available in macOS 14.0 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
1004 | }
1005 | }
/Users/admin/builder/spi-builder-workspace/Sources/DistributedCluster/_ActorShell.swift:1003:52: warning: conformance of 'Never' to 'Encodable' is only available in macOS 14.0 or newer; this is an error in the Swift 6 language mode
939 | }
940 |
941 | extension AbstractShellProtocol {
| `- note: add @available attribute to enclosing extension
942 | @inlinable
943 | var receivesSystemMessages: _ReceivesSystemMessages {
:
994 | }
995 |
996 | public func _resolveUntyped(context: _ResolveContext<Never>) -> _AddressableActorRef {
| `- note: add @available attribute to enclosing instance method
997 | guard context.selectorSegments.first != nil else {
998 | // no remaining selectors == we are the "selected" ref, apply uid check
:
1001 | } else {
1002 | // the selection was indeed for this path, however we are a different incarnation (or different actor)
1003 | return context.personalDeadLetters.asAddressable
| |- warning: conformance of 'Never' to 'Encodable' is only available in macOS 14.0 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
1004 | }
1005 | }
/Users/admin/builder/spi-builder-workspace/Sources/DistributedCluster/_Signals.swift:143:17: warning: class '_ChildTerminated' must restate inherited '@unchecked Sendable' conformance
141 | ///
142 | /// - SeeAlso: `Terminated` which is sent when a watched actor terminates.
143 | final class _ChildTerminated: Terminated {
| `- warning: class '_ChildTerminated' must restate inherited '@unchecked Sendable' conformance
144 | /// Filled with the error that caused the child actor to terminate.
145 | /// This kind of information is only known to the parent, which may decide to perform
[1451/1457] Compiling DistributedCluster utils.swift
/Users/admin/builder/spi-builder-workspace/Sources/DistributedCluster/Supervision.swift:21:16: warning: static property 'default' is not concurrency-safe because non-'Sendable' type '_SupervisionProps' may have shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | /// Properties configuring supervision for given actor.
16 | internal struct _SupervisionProps {
| `- note: consider making struct '_SupervisionProps' conform to the 'Sendable' protocol
17 | // internal var supervisionMappings: [ErrorTypeIdentifier: _SupervisionStrategy]
18 | // on purpose stored as list, to keep order in which the supervisors are added as we "scan" from first to last when we handle
19 | internal var supervisionMappings: [ErrorTypeBoundSupervisionStrategy]
20 |
21 | static let `default`: _SupervisionProps = .init()
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type '_SupervisionProps' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'default' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
22 |
23 | init() {
/Users/admin/builder/spi-builder-workspace/Sources/DistributedCluster/SystemMessages.swift:166:16: warning: static property 'metaType' is not concurrency-safe because non-'Sendable' type 'MetaType<_SystemMessage>' may have shared mutable state; this is an error in the Swift 6 language mode
164 |
165 | extension _SystemMessage {
166 | static let metaType: MetaType<_SystemMessage> = MetaType(_SystemMessage.self)
| |- warning: static property 'metaType' is not concurrency-safe because non-'Sendable' type 'MetaType<_SystemMessage>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'metaType' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
167 | }
168 |
/Users/admin/builder/spi-builder-workspace/Sources/DistributedCluster/Serialization/Serialization.swift:626:17: note: consider making generic struct 'MetaType' conform to the 'Sendable' protocol
624 | /// A meta type is a type eraser for any `T`, such that we can still perform `value is T` checks.
625 | @usableFromInline
626 | internal struct MetaType<T>: Hashable, CustomStringConvertible {
| `- note: consider making generic struct 'MetaType' conform to the 'Sendable' protocol
627 | let _underlying: Any.Type?
628 | let id: ObjectIdentifier
/Users/admin/builder/spi-builder-workspace/Sources/DistributedCluster/Time.swift:81:16: warning: static property 'effectivelyInfinite' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
79 | /// Largest time amount expressible using this type.
80 | /// Roughly equivalent to 292 years, which for the intents and purposes of this type can serve as "infinite".
81 | static var effectivelyInfinite: Duration = .nanoseconds(Value.max)
| |- warning: static property 'effectivelyInfinite' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'effectivelyInfinite' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'effectivelyInfinite' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
82 | }
83 |
/Users/admin/builder/spi-builder-workspace/Sources/DistributedCluster/_ActorNaming.swift:61:16: warning: static property 'ask' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
59 | extension _ActorNaming {
60 | /// Special naming scheme applied to `ask` actors.
61 | static var ask: _ActorNaming = .init(unchecked: .prefixed(prefix: "$ask", suffixScheme: .letters))
| |- warning: static property 'ask' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'ask' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'ask' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
62 |
63 | /// Naming for adapters (`context.messageAdapter`)
/Users/admin/builder/spi-builder-workspace/Sources/DistributedCluster/_ActorNaming.swift:64:16: warning: static property 'adapter' is not concurrency-safe because non-'Sendable' type '_ActorNaming' may have shared mutable state; this is an error in the Swift 6 language mode
62 |
63 | /// Naming for adapters (`context.messageAdapter`)
64 | static let adapter: _ActorNaming = .init(unchecked: .unique("$messageAdapter"))
| |- warning: static property 'adapter' is not concurrency-safe because non-'Sendable' type '_ActorNaming' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'adapter' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
65 | }
66 |
67 | /// Used while spawning actors to identify how its name should be created.
68 | public struct _ActorNaming: ExpressibleByStringLiteral, ExpressibleByStringInterpolation {
| `- note: consider making struct '_ActorNaming' conform to the 'Sendable' protocol
69 | // We keep an internal enum, but do not expose it as we may want to add more naming strategies in the future?
70 | internal enum _Naming {
/Users/admin/builder/spi-builder-workspace/Sources/DistributedCluster/_ActorShell.swift:629:38: warning: generic parameter 'Message' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
29 | /// The shell is mutable, and full of dangerous and carefully threaded/ordered code, be extra cautious.
30 | // TODO: remove this and replace by the infrastructure which is now Swift's `actor`
31 | public final class _ActorShell<Message: Codable>: _ActorContext<Message>, AbstractShellProtocol {
| `- note: 'Message' previously declared here
32 | // The phrase that "actor change their behavior" can be understood quite literally;
33 | // On each message interpretation the actor may return a new behavior that will be handling the next message.
:
627 |
628 | @discardableResult
629 | override public func _spawnWatch<Message>(
| `- warning: generic parameter 'Message' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
630 | _ naming: _ActorNaming,
631 | of type: Message.Type = Message.self,
/Users/admin/builder/spi-builder-workspace/Sources/DistributedCluster/_ActorShell.swift:641:31: warning: generic parameter 'Message' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
29 | /// The shell is mutable, and full of dangerous and carefully threaded/ordered code, be extra cautious.
30 | // TODO: remove this and replace by the infrastructure which is now Swift's `actor`
31 | public final class _ActorShell<Message: Codable>: _ActorContext<Message>, AbstractShellProtocol {
| `- note: 'Message' previously declared here
32 | // The phrase that "actor change their behavior" can be understood quite literally;
33 | // On each message interpretation the actor may return a new behavior that will be handling the next message.
:
639 | }
640 |
641 | override public func stop<Message: Codable>(child ref: _ActorRef<Message>) throws {
| `- warning: generic parameter 'Message' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
642 | try self._stop(child: ref)
643 | }
/Users/admin/builder/spi-builder-workspace/Sources/DistributedCluster/_ActorShell.swift:996:17: warning: conformance of 'Never' to 'Decodable' is only available in macOS 14.0 or newer; this is an error in the Swift 6 language mode
939 | }
940 |
941 | extension AbstractShellProtocol {
| `- note: add @available attribute to enclosing extension
942 | @inlinable
943 | var receivesSystemMessages: _ReceivesSystemMessages {
:
994 | }
995 |
996 | public func _resolveUntyped(context: _ResolveContext<Never>) -> _AddressableActorRef {
| |- warning: conformance of 'Never' to 'Decodable' is only available in macOS 14.0 or newer; this is an error in the Swift 6 language mode
| `- note: add @available attribute to enclosing instance method
997 | guard context.selectorSegments.first != nil else {
998 | // no remaining selectors == we are the "selected" ref, apply uid check
/Users/admin/builder/spi-builder-workspace/Sources/DistributedCluster/_ActorShell.swift:996:17: warning: conformance of 'Never' to 'Encodable' is only available in macOS 14.0 or newer; this is an error in the Swift 6 language mode
939 | }
940 |
941 | extension AbstractShellProtocol {
| `- note: add @available attribute to enclosing extension
942 | @inlinable
943 | var receivesSystemMessages: _ReceivesSystemMessages {
:
994 | }
995 |
996 | public func _resolveUntyped(context: _ResolveContext<Never>) -> _AddressableActorRef {
| |- warning: conformance of 'Never' to 'Encodable' is only available in macOS 14.0 or newer; this is an error in the Swift 6 language mode
| `- note: add @available attribute to enclosing instance method
997 | guard context.selectorSegments.first != nil else {
998 | // no remaining selectors == we are the "selected" ref, apply uid check
/Users/admin/builder/spi-builder-workspace/Sources/DistributedCluster/_ActorShell.swift:752:139: warning: 'wellKnown' is deprecated: Useful only with behavior actors, will be removed entirely
750 | return .init(.adapter(adapter))
751 | } else {
752 | let adaptedAddress = try self.id.makeChildAddress(name: _ActorNaming.adapter.makeName(&self.namingContext), incarnation: .wellKnown)
| `- warning: 'wellKnown' is deprecated: Useful only with behavior actors, will be removed entirely
753 | let adapter = _ActorRefAdapter(fromType: fromType, to: self.myself, id: adaptedAddress)
754 |
/Users/admin/builder/spi-builder-workspace/Sources/DistributedCluster/_ActorShell.swift:997:23: warning: conformance of 'Never' to 'Decodable' is only available in macOS 14.0 or newer; this is an error in the Swift 6 language mode
939 | }
940 |
941 | extension AbstractShellProtocol {
| `- note: add @available attribute to enclosing extension
942 | @inlinable
943 | var receivesSystemMessages: _ReceivesSystemMessages {
:
994 | }
995 |
996 | public func _resolveUntyped(context: _ResolveContext<Never>) -> _AddressableActorRef {
| `- note: add @available attribute to enclosing instance method
997 | guard context.selectorSegments.first != nil else {
| |- warning: conformance of 'Never' to 'Decodable' is only available in macOS 14.0 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
998 | // no remaining selectors == we are the "selected" ref, apply uid check
999 | if self._myselfReceivesSystemMessages.id.incarnation == context.id.incarnation {
/Users/admin/builder/spi-builder-workspace/Sources/DistributedCluster/_ActorShell.swift:997:23: warning: conformance of 'Never' to 'Encodable' is only available in macOS 14.0 or newer; this is an error in the Swift 6 language mode
939 | }
940 |
941 | extension AbstractShellProtocol {
| `- note: add @available attribute to enclosing extension
942 | @inlinable
943 | var receivesSystemMessages: _ReceivesSystemMessages {
:
994 | }
995 |
996 | public func _resolveUntyped(context: _ResolveContext<Never>) -> _AddressableActorRef {
| `- note: add @available attribute to enclosing instance method
997 | guard context.selectorSegments.first != nil else {
| |- warning: conformance of 'Never' to 'Encodable' is only available in macOS 14.0 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
998 | // no remaining selectors == we are the "selected" ref, apply uid check
999 | if self._myselfReceivesSystemMessages.id.incarnation == context.id.incarnation {
/Users/admin/builder/spi-builder-workspace/Sources/DistributedCluster/_ActorShell.swift:999:77: warning: conformance of 'Never' to 'Decodable' is only available in macOS 14.0 or newer; this is an error in the Swift 6 language mode
939 | }
940 |
941 | extension AbstractShellProtocol {
| `- note: add @available attribute to enclosing extension
942 | @inlinable
943 | var receivesSystemMessages: _ReceivesSystemMessages {
:
994 | }
995 |
996 | public func _resolveUntyped(context: _ResolveContext<Never>) -> _AddressableActorRef {
| `- note: add @available attribute to enclosing instance method
997 | guard context.selectorSegments.first != nil else {
998 | // no remaining selectors == we are the "selected" ref, apply uid check
999 | if self._myselfReceivesSystemMessages.id.incarnation == context.id.incarnation {
| |- warning: conformance of 'Never' to 'Decodable' is only available in macOS 14.0 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
1000 | return self.asAddressable
1001 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/DistributedCluster/_ActorShell.swift:999:77: warning: conformance of 'Never' to 'Encodable' is only available in macOS 14.0 or newer; this is an error in the Swift 6 language mode
939 | }
940 |
941 | extension AbstractShellProtocol {
| `- note: add @available attribute to enclosing extension
942 | @inlinable
943 | var receivesSystemMessages: _ReceivesSystemMessages {
:
994 | }
995 |
996 | public func _resolveUntyped(context: _ResolveContext<Never>) -> _AddressableActorRef {
| `- note: add @available attribute to enclosing instance method
997 | guard context.selectorSegments.first != nil else {
998 | // no remaining selectors == we are the "selected" ref, apply uid check
999 | if self._myselfReceivesSystemMessages.id.incarnation == context.id.incarnation {
| |- warning: conformance of 'Never' to 'Encodable' is only available in macOS 14.0 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
1000 | return self.asAddressable
1001 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/DistributedCluster/_ActorShell.swift:1003:32: warning: conformance of 'Never' to 'Decodable' is only available in macOS 14.0 or newer; this is an error in the Swift 6 language mode
939 | }
940 |
941 | extension AbstractShellProtocol {
| `- note: add @available attribute to enclosing extension
942 | @inlinable
943 | var receivesSystemMessages: _ReceivesSystemMessages {
:
994 | }
995 |
996 | public func _resolveUntyped(context: _ResolveContext<Never>) -> _AddressableActorRef {
| `- note: add @available attribute to enclosing instance method
997 | guard context.selectorSegments.first != nil else {
998 | // no remaining selectors == we are the "selected" ref, apply uid check
:
1001 | } else {
1002 | // the selection was indeed for this path, however we are a different incarnation (or different actor)
1003 | return context.personalDeadLetters.asAddressable
| |- warning: conformance of 'Never' to 'Decodable' is only available in macOS 14.0 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
1004 | }
1005 | }
/Users/admin/builder/spi-builder-workspace/Sources/DistributedCluster/_ActorShell.swift:1003:32: warning: conformance of 'Never' to 'Encodable' is only available in macOS 14.0 or newer; this is an error in the Swift 6 language mode
939 | }
940 |
941 | extension AbstractShellProtocol {
| `- note: add @available attribute to enclosing extension
942 | @inlinable
943 | var receivesSystemMessages: _ReceivesSystemMessages {
:
994 | }
995 |
996 | public func _resolveUntyped(context: _ResolveContext<Never>) -> _AddressableActorRef {
| `- note: add @available attribute to enclosing instance method
997 | guard context.selectorSegments.first != nil else {
998 | // no remaining selectors == we are the "selected" ref, apply uid check
:
1001 | } else {
1002 | // the selection was indeed for this path, however we are a different incarnation (or different actor)
1003 | return context.personalDeadLetters.asAddressable
| |- warning: conformance of 'Never' to 'Encodable' is only available in macOS 14.0 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
1004 | }
1005 | }
/Users/admin/builder/spi-builder-workspace/Sources/DistributedCluster/_ActorShell.swift:1003:52: warning: conformance of 'Never' to 'Decodable' is only available in macOS 14.0 or newer; this is an error in the Swift 6 language mode
939 | }
940 |
941 | extension AbstractShellProtocol {
| `- note: add @available attribute to enclosing extension
942 | @inlinable
943 | var receivesSystemMessages: _ReceivesSystemMessages {
:
994 | }
995 |
996 | public func _resolveUntyped(context: _ResolveContext<Never>) -> _AddressableActorRef {
| `- note: add @available attribute to enclosing instance method
997 | guard context.selectorSegments.first != nil else {
998 | // no remaining selectors == we are the "selected" ref, apply uid check
:
1001 | } else {
1002 | // the selection was indeed for this path, however we are a different incarnation (or different actor)
1003 | return context.personalDeadLetters.asAddressable
| |- warning: conformance of 'Never' to 'Decodable' is only available in macOS 14.0 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
1004 | }
1005 | }
/Users/admin/builder/spi-builder-workspace/Sources/DistributedCluster/_ActorShell.swift:1003:52: warning: conformance of 'Never' to 'Encodable' is only available in macOS 14.0 or newer; this is an error in the Swift 6 language mode
939 | }
940 |
941 | extension AbstractShellProtocol {
| `- note: add @available attribute to enclosing extension
942 | @inlinable
943 | var receivesSystemMessages: _ReceivesSystemMessages {
:
994 | }
995 |
996 | public func _resolveUntyped(context: _ResolveContext<Never>) -> _AddressableActorRef {
| `- note: add @available attribute to enclosing instance method
997 | guard context.selectorSegments.first != nil else {
998 | // no remaining selectors == we are the "selected" ref, apply uid check
:
1001 | } else {
1002 | // the selection was indeed for this path, however we are a different incarnation (or different actor)
1003 | return context.personalDeadLetters.asAddressable
| |- warning: conformance of 'Never' to 'Encodable' is only available in macOS 14.0 or newer; this is an error in the Swift 6 language mode
| `- note: add 'if #available' version check
1004 | }
1005 | }
/Users/admin/builder/spi-builder-workspace/Sources/DistributedCluster/_Signals.swift:143:17: warning: class '_ChildTerminated' must restate inherited '@unchecked Sendable' conformance
141 | ///
142 | /// - SeeAlso: `Terminated` which is sent when a watched actor terminates.
143 | final class _ChildTerminated: Terminated {
| `- warning: class '_ChildTerminated' must restate inherited '@unchecked Sendable' conformance
144 | /// Filled with the error that caused the child actor to terminate.
145 | /// This kind of information is only known to the parent, which may decide to perform
[1452/1476] Emitting module it_Clustered_swim_suspension_reachability
/Users/admin/builder/spi-builder-workspace/IntegrationTests/tests_01_cluster/it_Clustered_swim_suspension_reachability/main.swift:45:5: warning: non-sendable type 'Cluster.Event?' returned by implicitly asynchronous call to nonisolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
43 |
44 | Task {
45 | for await event in system.cluster.events {
| `- warning: non-sendable type 'Cluster.Event?' returned by implicitly asynchronous call to nonisolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
46 | system.log.info("Event: \(event)")
47 | }
/Users/admin/builder/spi-builder-workspace/Sources/DistributedCluster/Cluster/Cluster+Event.swift:22:17: note: enum 'Event' does not conform to the 'Sendable' protocol
20 | ///
21 | /// Inspect them directly, or `apply` to a `Membership` copy in order to be able to react to membership state of the cluster.
22 | public enum Event: Codable, Equatable {
| `- note: enum 'Event' does not conform to the 'Sendable' protocol
23 | case snapshot(Membership)
24 | case membershipChange(MembershipChange)
/Users/admin/builder/spi-builder-workspace/IntegrationTests/tests_01_cluster/it_Clustered_swim_suspension_reachability/main.swift:15:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'DistributedCluster'
13 | //===----------------------------------------------------------------------===//
14 |
15 | import DistributedCluster
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'DistributedCluster'
16 |
17 | print("Getting args")
[1453/1476] Compiling it_Clustered_swim_suspension_reachability main.swift
/Users/admin/builder/spi-builder-workspace/IntegrationTests/tests_01_cluster/it_Clustered_swim_suspension_reachability/main.swift:45:5: warning: non-sendable type 'Cluster.Event?' returned by implicitly asynchronous call to nonisolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
43 |
44 | Task {
45 | for await event in system.cluster.events {
| `- warning: non-sendable type 'Cluster.Event?' returned by implicitly asynchronous call to nonisolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
46 | system.log.info("Event: \(event)")
47 | }
/Users/admin/builder/spi-builder-workspace/Sources/DistributedCluster/Cluster/Cluster+Event.swift:22:17: note: enum 'Event' does not conform to the 'Sendable' protocol
20 | ///
21 | /// Inspect them directly, or `apply` to a `Membership` copy in order to be able to react to membership state of the cluster.
22 | public enum Event: Codable, Equatable {
| `- note: enum 'Event' does not conform to the 'Sendable' protocol
23 | case snapshot(Membership)
24 | case membershipChange(MembershipChange)
/Users/admin/builder/spi-builder-workspace/IntegrationTests/tests_01_cluster/it_Clustered_swim_suspension_reachability/main.swift:15:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'DistributedCluster'
13 | //===----------------------------------------------------------------------===//
14 |
15 | import DistributedCluster
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'DistributedCluster'
16 |
17 | print("Getting args")
[1454/1476] Emitting module MultiNodeTestKit
[1454/1476] Write Objects.LinkFileList
[1456/1476] Compiling MultiNodeTestKit MultiNodeTestSettings.swift
[1457/1476] Compiling MultiNodeTestKit MultiNodeTestConductor.swift
/Users/admin/builder/spi-builder-workspace/Sources/MultiNodeTestKit/MultiNodeTestConductor.swift:164:21: warning: dictionary literal of type 'Logger.Metadata' (aka 'Dictionary<String, Logger.MetadataValue>') has duplicate entries for string literal key 'checkPoint/error'
162 | self.log.warning("Checkpoint failed, informing node [\(node)]", metadata: [
163 | "checkPoint/node": "\(node)",
164 | "checkPoint/error": "\(checkPointError)",
| |- warning: dictionary literal of type 'Logger.Metadata' (aka 'Dictionary<String, Logger.MetadataValue>') has duplicate entries for string literal key 'checkPoint/error'
| `- note: duplicate key declared here
165 | "checkPoint/error": "\(checkPointError)",
| `- note: duplicate key declared here
166 | ])
167 | cc.resume(throwing: checkPointError)
/Users/admin/builder/spi-builder-workspace/Sources/MultiNodeTestKit/MultiNodeTestConductor.swift:248:13: warning: non-sendable type 'Cluster.Event?' returned by implicitly asynchronous call to nonisolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
246 |
247 | self.clusterEventsTask = Task {
248 | for await event in self.actorSystem.cluster.events {
| `- warning: non-sendable type 'Cluster.Event?' returned by implicitly asynchronous call to nonisolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
249 | self.onClusterEvent(event)
250 | }
/Users/admin/builder/spi-builder-workspace/Sources/DistributedCluster/Cluster/Cluster+Event.swift:22:17: note: enum 'Event' does not conform to the 'Sendable' protocol
20 | ///
21 | /// Inspect them directly, or `apply` to a `Membership` copy in order to be able to react to membership state of the cluster.
22 | public enum Event: Codable, Equatable {
| `- note: enum 'Event' does not conform to the 'Sendable' protocol
23 | case snapshot(Membership)
24 | case membershipChange(MembershipChange)
/Users/admin/builder/spi-builder-workspace/Sources/MultiNodeTestKit/MultiNodeTestConductor.swift:15:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'DistributedCluster'
13 | //===----------------------------------------------------------------------===//
14 |
15 | import DistributedCluster
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'DistributedCluster'
16 | import Logging
17 |
/Users/admin/builder/spi-builder-workspace/Sources/MultiNodeTestKit/MultiNodeTestConductor.swift:54:31: warning: cannot access property 'clusterEventsTask' here in deinitializer; this is an error in the Swift 6 language mode
49 |
50 | deinit {
51 | guard __isLocalActor(self) else { // workaround for old toolchains
| `- note: after making a copy of 'self', only nonisolated properties of 'self' can be accessed from a deinit
52 | return
53 | }
54 | self.clusterEventsTask?.cancel()
| `- warning: cannot access property 'clusterEventsTask' here in deinitializer; this is an error in the Swift 6 language mode
55 | }
56 |
/Users/admin/builder/spi-builder-workspace/Sources/MultiNodeTestKit/MultiNodeTestConductor.swift:134:37: warning: sending 'checkPoint' risks causing data races; this is an error in the Swift 6 language mode
132 |
133 | for waitingAtCheckpoint in self.nodesAtCheckPoint.values {
134 | waitingAtCheckpoint.resume(returning: checkPoint)
| |- warning: sending 'checkPoint' risks causing data races; this is an error in the Swift 6 language mode
| `- note: 'self'-isolated 'checkPoint' is passed as a 'sending' parameter; Uses in callee may race with later 'self'-isolated uses
135 | }
136 |
/Users/admin/builder/spi-builder-workspace/Sources/MultiNodeTestKit/MultiNodeTestConductor.swift:175:23: warning: sending 'self'-isolated value of type '(CheckedContinuation<MultiNode.Checkpoint, any Error>) -> Void' with later accesses to actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
173 | }
174 |
175 | _ = try await withCheckedThrowingContinuation { (cc: CheckedContinuation<MultiNode.Checkpoint, Error>) in
| `- warning: sending 'self'-isolated value of type '(CheckedContinuation<MultiNode.Checkpoint, any Error>) -> Void' with later accesses to actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
176 | checkpointTimeoutTask.cancel()
177 | self.setContinuation(node: node, cc: cc)
/Users/admin/builder/spi-builder-workspace/Sources/MultiNodeTestKit/MultiNodeTestConductor.swift:124:52: warning: sending 'checkPoint' risks causing data races; this is an error in the Swift 6 language mode
122 | }
123 | let remainingNodes = self.allNodes.count - 1 - self.nodesAtCheckPoint.count
124 | self.log.notice("[multi-node][checkpoint:\(checkPoint.name) @ \(self.nodesAtCheckPoint.count + 1)/\(self.allNodes.count)] \(node) entered checkpoint [\(checkPoint)]... Waiting for \(remainingNodes) remaining nodes.", metadata: [
| | `- note: access can happen concurrently
| |- warning: sending 'checkPoint' risks causing data races; this is an error in the Swift 6 language mode
| `- note: 'self'-isolated 'checkPoint' is captured by a actor-isolated closure. actor-isolated uses in closure may race against later nonisolated uses
125 | "multiNode/checkpoint": "\(checkPoint.name)",
126 | "multiNode/checkpoint/missing": Logger.MetadataValue.array(self.checkpointMissingNodes.map { Logger.MetadataValue.string($0) }),
/Users/admin/builder/spi-builder-workspace/Sources/MultiNodeTestKit/MultiNodeTestConductor.swift:125:40: warning: sending 'checkPoint' risks causing data races; this is an error in the Swift 6 language mode
123 | let remainingNodes = self.allNodes.count - 1 - self.nodesAtCheckPoint.count
124 | self.log.notice("[multi-node][checkpoint:\(checkPoint.name) @ \(self.nodesAtCheckPoint.count + 1)/\(self.allNodes.count)] \(node) entered checkpoint [\(checkPoint)]... Waiting for \(remainingNodes) remaining nodes.", metadata: [
125 | "multiNode/checkpoint": "\(checkPoint.name)",
| |- warning: sending 'checkPoint' risks causing data races; this is an error in the Swift 6 language mode
| `- note: 'self'-isolated 'checkPoint' is captured by a actor-isolated closure. actor-isolated uses in closure may race against later nonisolated uses
126 | "multiNode/checkpoint/missing": Logger.MetadataValue.array(self.checkpointMissingNodes.map { Logger.MetadataValue.string($0) }),
127 | ])
:
129 | // last node arriving at the checkpoint, resume them all!
130 | if remainingNodes == 0 {
131 | print("[multi-node] [checkpoint:\(checkPoint.name)] All [\(self.allNodes.count)] nodes entered checkpoint! Release: \(checkPoint.name) at \(checkPoint.file):\(checkPoint.line)")
| `- note: access can happen concurrently
132 |
133 | for waitingAtCheckpoint in self.nodesAtCheckPoint.values {
/Users/admin/builder/spi-builder-workspace/Sources/MultiNodeTestKit/MultiNodeTestConductor.swift:92:28: warning: sending 'checkPoint' risks causing data races; this is an error in the Swift 6 language mode
90 | try await RemoteCall.with(timeout: waitTime) {
91 | self.actorSystem.log.warning("CHECKPOINT FROM [\(node)] INNER (\(__isRemoteActor(self)))")
92 | try await self._enterCheckPoint(node: node, checkPoint: checkPoint)
| |- warning: sending 'checkPoint' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'checkPoint' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
93 | self.actorSystem.log.warning("CHECKPOINT FROM [\(node)] DONE")
94 | }
[1458/1476] Compiling MultiNodeTestKit MultiNodeTestKit.swift
[1459/1476] Compiling MultiNodeTestKit MultiNodeTestKit+Control.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[1460/1480] Compiling DistributedActorsMultiNodeTests MultiNode+ReceptionistTests.swift
[1461/1480] Compiling DistributedActorsMultiNodeTests MultiNode+MultiNodeConductorTests.swift
/Users/admin/builder/spi-builder-workspace/MultiNodeTests/DistributedActorsMultiNodeTests/MultiNode+MultiNodeConductorTests.swift:65:29: warning: type 'Cluster.Member' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
63 | }
64 |
65 | try await multiNode.runOn(.first) { first in
| `- warning: type 'Cluster.Member' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
66 | try await first.cluster.waitFor(multiNode[.second], .down, within: .seconds(30))
67 | }
/Users/admin/builder/spi-builder-workspace/Sources/DistributedCluster/Cluster/Cluster+Member.swift:23:19: note: struct 'Member' does not conform to the 'Sendable' protocol
21 | /// It carries `Cluster.MemberStatus` and reachability information.
22 | /// Its identity is the underlying `Cluster.Node`, other fields are not taken into account when comparing members.
23 | public struct Member: Hashable {
| `- note: struct 'Member' does not conform to the 'Sendable' protocol
24 | /// Unique node of this cluster member.
25 | public let node: Cluster.Node
/Users/admin/builder/spi-builder-workspace/MultiNodeTests/DistributedActorsMultiNodeTests/MultiNode+MultiNodeConductorTests.swift:15:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'DistributedCluster'
13 | //===----------------------------------------------------------------------===//
14 |
15 | import DistributedCluster
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'DistributedCluster'
16 | import MultiNodeTestKit
17 |
[1462/1480] Emitting module DistributedActorsMultiNodeTests
/Users/admin/builder/spi-builder-workspace/MultiNodeTests/DistributedActorsMultiNodeTests/MultiNode+ClusterSingletonTests.swift:63:25: warning: no 'async' operations occur within 'await' expression
61 |
62 | try await multiNode.checkPoint("Hosted singleton") // ----------------------------------------------------------
63 | let reply = try await ref.greet(name: "Hello from \(multiNode.system.name)")
| `- warning: no 'async' operations occur within 'await' expression
64 | print("[ON: \(multiNode.system.name)] Got reply: \(reply)")
65 |
/Users/admin/builder/spi-builder-workspace/MultiNodeTests/DistributedActorsMultiNodeTests/MultiNode+ClusterSingletonTests.swift:54:47: error: default argument cannot be both actor-isolated and actor-isolated
52 | }
53 |
54 | public let test_singleton_fromManyNodes = MultiNodeTest(MultiNodeClusterSingletonTests.self) { multiNode in
| `- error: default argument cannot be both actor-isolated and actor-isolated
55 | let singletonName = "the-one"
56 |
/Users/admin/builder/spi-builder-workspace/MultiNodeTests/DistributedActorsMultiNodeTests/MultiNode+MultiNodeConductorTests.swift:65:29: warning: type 'Cluster.Member' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
63 | }
64 |
65 | try await multiNode.runOn(.first) { first in
| `- warning: type 'Cluster.Member' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
66 | try await first.cluster.waitFor(multiNode[.second], .down, within: .seconds(30))
67 | }
/Users/admin/builder/spi-builder-workspace/Sources/DistributedCluster/Cluster/Cluster+Member.swift:23:19: note: struct 'Member' does not conform to the 'Sendable' protocol
21 | /// It carries `Cluster.MemberStatus` and reachability information.
22 | /// Its identity is the underlying `Cluster.Node`, other fields are not taken into account when comparing members.
23 | public struct Member: Hashable {
| `- note: struct 'Member' does not conform to the 'Sendable' protocol
24 | /// Unique node of this cluster member.
25 | public let node: Cluster.Node
/Users/admin/builder/spi-builder-workspace/MultiNodeTests/DistributedActorsMultiNodeTests/MultiNode+MultiNodeConductorTests.swift:15:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'DistributedCluster'
13 | //===----------------------------------------------------------------------===//
14 |
15 | import DistributedCluster
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'DistributedCluster'
16 | import MultiNodeTestKit
17 |
[1463/1480] Compiling DistributedActorsMultiNodeTests MultiNode+ClusterSingletonTests.swift
/Users/admin/builder/spi-builder-workspace/MultiNodeTests/DistributedActorsMultiNodeTests/MultiNode+ClusterSingletonTests.swift:63:25: warning: no 'async' operations occur within 'await' expression
61 |
62 | try await multiNode.checkPoint("Hosted singleton") // ----------------------------------------------------------
63 | let reply = try await ref.greet(name: "Hello from \(multiNode.system.name)")
| `- warning: no 'async' operations occur within 'await' expression
64 | print("[ON: \(multiNode.system.name)] Got reply: \(reply)")
65 |
/Users/admin/builder/spi-builder-workspace/MultiNodeTests/DistributedActorsMultiNodeTests/MultiNode+ClusterSingletonTests.swift:54:47: error: default argument cannot be both actor-isolated and actor-isolated
52 | }
53 |
54 | public let test_singleton_fromManyNodes = MultiNodeTest(MultiNodeClusterSingletonTests.self) { multiNode in
| `- error: default argument cannot be both actor-isolated and actor-isolated
55 | let singletonName = "the-one"
56 |
[1463/1480] Linking it_Clustered_swim_suspension_reachability
BUILD FAILURE 6.0 macosSpm