Build Information
Successful build of Macro, reference develop (7c1a6a
), with Swift 6.1 for macOS (SPM) on 8 Sep 2025 14:28:06 UTC.
Swift 6 data race errors: 21
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.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
[39/93] Compiling _NIOBase64 Base64.swift
[40/93] Emitting module _NIOBase64
[41/93] Compiling Atomics ManagedAtomicLazyReference.swift
[42/93] Compiling Atomics UnsafeAtomic.swift
[43/93] Compiling Atomics DoubleWord.swift
[44/93] Compiling Atomics ManagedAtomic.swift
[45/93] Compiling Atomics UnsafeAtomicLazyReference.swift
[46/93] Compiling Atomics IntegerOperations.swift
[47/94] Compiling Atomics Unmanaged extensions.swift
[48/94] Compiling Atomics AtomicInteger.swift
[49/94] Compiling Atomics AtomicOptionalWrappable.swift
[50/94] Compiling Atomics AtomicReference.swift
[51/94] Compiling Atomics AtomicStorage.swift
[52/94] Emitting module InternalCollectionsUtilities
[53/94] Compiling Atomics AtomicBool.swift
[54/94] Compiling Atomics IntegerConformances.swift
[55/94] Compiling Atomics AtomicValue.swift
[56/94] Compiling Atomics PointerConformances.swift
[57/94] Compiling Atomics AtomicMemoryOrderings.swift
[58/94] Compiling Atomics Primitives.native.swift
[63/94] Compiling _NIODataStructures PriorityQueue.swift
[64/94] Emitting module _NIODataStructures
[65/94] Compiling Logging MetadataProvider.swift
[66/110] Compiling _NIODataStructures _TinyArray.swift
[67/110] Compiling _NIODataStructures Heap.swift
[68/110] Compiling DequeModule _DequeBufferHeader.swift
[69/110] Compiling DequeModule _DequeSlot.swift
[70/111] Compiling Logging LogHandler.swift
[71/111] Emitting module Logging
[72/111] Compiling Logging Locks.swift
[73/111] Compiling Logging Logging.swift
[74/111] Compiling DequeModule _DequeBuffer.swift
[75/111] Compiling DequeModule Deque+Testing.swift
[76/111] Compiling DequeModule Deque._Storage.swift
[77/111] Compiling DequeModule Deque+Codable.swift
[78/111] Compiling DequeModule Deque+Collection.swift
[79/111] Compiling DequeModule Deque+CustomReflectable.swift
[80/111] Compiling DequeModule Deque+Descriptions.swift
[81/111] Emitting module Atomics
[82/111] Compiling DequeModule Deque._UnsafeHandle.swift
[83/111] Compiling DequeModule Deque.swift
[84/111] Compiling DequeModule _UnsafeWrappedBuffer.swift
[87/111] Compiling DequeModule Deque+Extras.swift
[88/111] Compiling DequeModule Deque+Hashable.swift
[91/111] Compiling DequeModule Deque+Equatable.swift
[92/111] Compiling DequeModule Deque+ExpressibleByArrayLiteral.swift
[92/111] Compiling c-nioatomics.c
[96/111] Emitting module DequeModule
[96/111] Compiling c-atomics.c
[98/117] Compiling NIOConcurrencyHelpers NIOLockedValueBox.swift
[99/117] Compiling NIOConcurrencyHelpers lock.swift
[100/117] Compiling NIOConcurrencyHelpers NIOLock.swift
[101/117] Compiling NIOConcurrencyHelpers atomics.swift
[102/117] Emitting module NIOConcurrencyHelpers
[103/117] Compiling NIOConcurrencyHelpers NIOAtomic.swift
[104/117] Compiling xsys time.swift
[105/117] Compiling xsys socket.swift
[106/117] Compiling xsys sockaddr_any.swift
[107/117] Compiling xsys timespec.swift
/Users/admin/builder/spi-builder-workspace/Sources/xsys/ioctl.swift:49:13: warning: let 'dlHandle' is not concurrency-safe because non-'Sendable' type 'UnsafeMutableRawPointer?' may have shared mutable state; this is an error in the Swift 6 language mode
47 | // but not in Xcode yet?
48 |
49 | private let dlHandle = dlopen(nil, RTLD_NOW)
| |- warning: let 'dlHandle' is not concurrency-safe because non-'Sendable' type 'UnsafeMutableRawPointer?' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'dlHandle' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
50 | private let fnFcntl = dlsym(dlHandle, "fcntl")
51 | private let fnIoctl = dlsym(dlHandle, "ioctl")
Swift.Optional:1:21: note: generic enum 'Optional' does not conform to the 'Sendable' protocol
1 | @frozen public enum Optional<Wrapped> : ~Copyable where Wrapped : ~Copyable {
| `- note: generic enum 'Optional' does not conform to the 'Sendable' protocol
2 | case none
3 | case some(Wrapped)
/Users/admin/builder/spi-builder-workspace/Sources/xsys/ioctl.swift:50:13: warning: let 'fnFcntl' is not concurrency-safe because non-'Sendable' type 'UnsafeMutableRawPointer?' may have shared mutable state; this is an error in the Swift 6 language mode
48 |
49 | private let dlHandle = dlopen(nil, RTLD_NOW)
50 | private let fnFcntl = dlsym(dlHandle, "fcntl")
| |- warning: let 'fnFcntl' is not concurrency-safe because non-'Sendable' type 'UnsafeMutableRawPointer?' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'fnFcntl' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
51 | private let fnIoctl = dlsym(dlHandle, "ioctl")
52 |
Swift.Optional:1:21: note: generic enum 'Optional' does not conform to the 'Sendable' protocol
1 | @frozen public enum Optional<Wrapped> : ~Copyable where Wrapped : ~Copyable {
| `- note: generic enum 'Optional' does not conform to the 'Sendable' protocol
2 | case none
3 | case some(Wrapped)
/Users/admin/builder/spi-builder-workspace/Sources/xsys/ioctl.swift:51:13: warning: let 'fnIoctl' is not concurrency-safe because non-'Sendable' type 'UnsafeMutableRawPointer?' may have shared mutable state; this is an error in the Swift 6 language mode
49 | private let dlHandle = dlopen(nil, RTLD_NOW)
50 | private let fnFcntl = dlsym(dlHandle, "fcntl")
51 | private let fnIoctl = dlsym(dlHandle, "ioctl")
| |- warning: let 'fnIoctl' is not concurrency-safe because non-'Sendable' type 'UnsafeMutableRawPointer?' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'fnIoctl' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
52 |
53 | typealias fcntlViType =
Swift.Optional:1:21: note: generic enum 'Optional' does not conform to the 'Sendable' protocol
1 | @frozen public enum Optional<Wrapped> : ~Copyable where Wrapped : ~Copyable {
| `- note: generic enum 'Optional' does not conform to the 'Sendable' protocol
2 | case none
3 | case some(Wrapped)
/Users/admin/builder/spi-builder-workspace/Sources/xsys/ioctl.swift:49:13: warning: let 'dlHandle' is not concurrency-safe because non-'Sendable' type 'UnsafeMutableRawPointer?' may have shared mutable state; this is an error in the Swift 6 language mode
47 | // but not in Xcode yet?
48 |
49 | private let dlHandle = dlopen(nil, RTLD_NOW)
| |- warning: let 'dlHandle' is not concurrency-safe because non-'Sendable' type 'UnsafeMutableRawPointer?' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'dlHandle' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
50 | private let fnFcntl = dlsym(dlHandle, "fcntl")
51 | private let fnIoctl = dlsym(dlHandle, "ioctl")
Swift.Optional:1:21: note: generic enum 'Optional' does not conform to the 'Sendable' protocol
1 | @frozen public enum Optional<Wrapped> : ~Copyable where Wrapped : ~Copyable {
| `- note: generic enum 'Optional' does not conform to the 'Sendable' protocol
2 | case none
3 | case some(Wrapped)
/Users/admin/builder/spi-builder-workspace/Sources/xsys/ioctl.swift:50:13: warning: let 'fnFcntl' is not concurrency-safe because non-'Sendable' type 'UnsafeMutableRawPointer?' may have shared mutable state; this is an error in the Swift 6 language mode
48 |
49 | private let dlHandle = dlopen(nil, RTLD_NOW)
50 | private let fnFcntl = dlsym(dlHandle, "fcntl")
| |- warning: let 'fnFcntl' is not concurrency-safe because non-'Sendable' type 'UnsafeMutableRawPointer?' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'fnFcntl' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
51 | private let fnIoctl = dlsym(dlHandle, "ioctl")
52 |
Swift.Optional:1:21: note: generic enum 'Optional' does not conform to the 'Sendable' protocol
1 | @frozen public enum Optional<Wrapped> : ~Copyable where Wrapped : ~Copyable {
| `- note: generic enum 'Optional' does not conform to the 'Sendable' protocol
2 | case none
3 | case some(Wrapped)
/Users/admin/builder/spi-builder-workspace/Sources/xsys/ioctl.swift:51:13: warning: let 'fnIoctl' is not concurrency-safe because non-'Sendable' type 'UnsafeMutableRawPointer?' may have shared mutable state; this is an error in the Swift 6 language mode
49 | private let dlHandle = dlopen(nil, RTLD_NOW)
50 | private let fnFcntl = dlsym(dlHandle, "fcntl")
51 | private let fnIoctl = dlsym(dlHandle, "ioctl")
| |- warning: let 'fnIoctl' is not concurrency-safe because non-'Sendable' type 'UnsafeMutableRawPointer?' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'fnIoctl' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
52 |
53 | typealias fcntlViType =
Swift.Optional:1:21: note: generic enum 'Optional' does not conform to the 'Sendable' protocol
1 | @frozen public enum Optional<Wrapped> : ~Copyable where Wrapped : ~Copyable {
| `- note: generic enum 'Optional' does not conform to the 'Sendable' protocol
2 | case none
3 | case some(Wrapped)
[112/118] Compiling xsys ntohs.swift
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/xsys/fd.swift:63:14: warning: let 'open' is not concurrency-safe because non-'Sendable' type 'xsysOpenType' (aka '(UnsafePointer<Int8>, Int32) -> Int32') may have shared mutable state; this is an error in the Swift 6 language mode
61 | import Darwin
62 |
63 | public let open : xsysOpenType = Darwin.open
| |- warning: let 'open' is not concurrency-safe because non-'Sendable' type 'xsysOpenType' (aka '(UnsafePointer<Int8>, Int32) -> Int32') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'open' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
64 | public let close = Darwin.close
65 | public let read = Darwin.read
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/xsys/fd.swift:63:14: warning: let 'open' is not concurrency-safe because non-'Sendable' type 'xsysOpenType' (aka '(UnsafePointer<Int8>, Int32) -> Int32') may have shared mutable state; this is an error in the Swift 6 language mode
61 | import Darwin
62 |
63 | public let open : xsysOpenType = Darwin.open
| |- warning: let 'open' is not concurrency-safe because non-'Sendable' type 'xsysOpenType' (aka '(UnsafePointer<Int8>, Int32) -> Int32') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'open' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
64 | public let close = Darwin.close
65 | public let read = Darwin.read
[115/171] Compiling xsys timeval_any.swift
[116/181] Compiling NIOCore Linux.swift
[117/181] Compiling NIOCore MarkedCircularBuffer.swift
[118/181] Compiling NIOCore MulticastChannel.swift
[119/181] Compiling NIOCore NIOAny.swift
[120/181] Compiling NIOCore NIOCloseOnErrorHandler.swift
[121/181] Compiling NIOCore NIOCoreSendableMetatype.swift
[122/181] Compiling NIOCore NIOLoopBound.swift
[123/187] Emitting module xsys
/Users/admin/builder/spi-builder-workspace/Sources/xsys/Module.swift:19:12: warning: let 'module' is not concurrency-safe because non-'Sendable' type 'XSysModule' may have shared mutable state; this is an error in the Swift 6 language mode
15 | #endif
16 |
17 | public struct XSysModule {
| `- note: consider making struct 'XSysModule' conform to the 'Sendable' protocol
18 | }
19 | public let module = XSysModule()
| |- warning: let 'module' is not concurrency-safe because non-'Sendable' type 'XSysModule' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'module' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
20 |
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/xsys/fd.swift:63:14: warning: let 'open' is not concurrency-safe because non-'Sendable' type 'xsysOpenType' (aka '(UnsafePointer<Int8>, Int32) -> Int32') may have shared mutable state; this is an error in the Swift 6 language mode
61 | import Darwin
62 |
63 | public let open : xsysOpenType = Darwin.open
| |- warning: let 'open' is not concurrency-safe because non-'Sendable' type 'xsysOpenType' (aka '(UnsafePointer<Int8>, Int32) -> Int32') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'open' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
64 | public let close = Darwin.close
65 | public let read = Darwin.read
/Users/admin/builder/spi-builder-workspace/Sources/xsys/ioctl.swift:49:13: warning: let 'dlHandle' is not concurrency-safe because non-'Sendable' type 'UnsafeMutableRawPointer?' may have shared mutable state; this is an error in the Swift 6 language mode
47 | // but not in Xcode yet?
48 |
49 | private let dlHandle = dlopen(nil, RTLD_NOW)
| |- warning: let 'dlHandle' is not concurrency-safe because non-'Sendable' type 'UnsafeMutableRawPointer?' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'dlHandle' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
50 | private let fnFcntl = dlsym(dlHandle, "fcntl")
51 | private let fnIoctl = dlsym(dlHandle, "ioctl")
Swift.Optional:1:21: note: generic enum 'Optional' does not conform to the 'Sendable' protocol
1 | @frozen public enum Optional<Wrapped> : ~Copyable where Wrapped : ~Copyable {
| `- note: generic enum 'Optional' does not conform to the 'Sendable' protocol
2 | case none
3 | case some(Wrapped)
/Users/admin/builder/spi-builder-workspace/Sources/xsys/ioctl.swift:50:13: warning: let 'fnFcntl' is not concurrency-safe because non-'Sendable' type 'UnsafeMutableRawPointer?' may have shared mutable state; this is an error in the Swift 6 language mode
48 |
49 | private let dlHandle = dlopen(nil, RTLD_NOW)
50 | private let fnFcntl = dlsym(dlHandle, "fcntl")
| |- warning: let 'fnFcntl' is not concurrency-safe because non-'Sendable' type 'UnsafeMutableRawPointer?' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'fnFcntl' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
51 | private let fnIoctl = dlsym(dlHandle, "ioctl")
52 |
Swift.Optional:1:21: note: generic enum 'Optional' does not conform to the 'Sendable' protocol
1 | @frozen public enum Optional<Wrapped> : ~Copyable where Wrapped : ~Copyable {
| `- note: generic enum 'Optional' does not conform to the 'Sendable' protocol
2 | case none
3 | case some(Wrapped)
/Users/admin/builder/spi-builder-workspace/Sources/xsys/ioctl.swift:51:13: warning: let 'fnIoctl' is not concurrency-safe because non-'Sendable' type 'UnsafeMutableRawPointer?' may have shared mutable state; this is an error in the Swift 6 language mode
49 | private let dlHandle = dlopen(nil, RTLD_NOW)
50 | private let fnFcntl = dlsym(dlHandle, "fcntl")
51 | private let fnIoctl = dlsym(dlHandle, "ioctl")
| |- warning: let 'fnIoctl' is not concurrency-safe because non-'Sendable' type 'UnsafeMutableRawPointer?' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'fnIoctl' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
52 |
53 | typealias fcntlViType =
Swift.Optional:1:21: note: generic enum 'Optional' does not conform to the 'Sendable' protocol
1 | @frozen public enum Optional<Wrapped> : ~Copyable where Wrapped : ~Copyable {
| `- note: generic enum 'Optional' does not conform to the 'Sendable' protocol
2 | case none
3 | case some(Wrapped)
[124/187] Compiling NIOCore AddressedEnvelope.swift
/Users/admin/builder/spi-builder-workspace/Sources/xsys/Module.swift:19:12: warning: let 'module' is not concurrency-safe because non-'Sendable' type 'XSysModule' may have shared mutable state; this is an error in the Swift 6 language mode
15 | #endif
16 |
17 | public struct XSysModule {
| `- note: consider making struct 'XSysModule' conform to the 'Sendable' protocol
18 | }
19 | public let module = XSysModule()
| |- warning: let 'module' is not concurrency-safe because non-'Sendable' type 'XSysModule' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'module' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
20 |
[125/187] Compiling NIOCore AsyncAwaitSupport.swift
/Users/admin/builder/spi-builder-workspace/Sources/xsys/Module.swift:19:12: warning: let 'module' is not concurrency-safe because non-'Sendable' type 'XSysModule' may have shared mutable state; this is an error in the Swift 6 language mode
15 | #endif
16 |
17 | public struct XSysModule {
| `- note: consider making struct 'XSysModule' conform to the 'Sendable' protocol
18 | }
19 | public let module = XSysModule()
| |- warning: let 'module' is not concurrency-safe because non-'Sendable' type 'XSysModule' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'module' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
20 |
[126/187] Compiling NIOCore NIOPooledRecvBufferAllocator.swift
[127/187] Compiling NIOCore NIOScheduledCallback.swift
[128/187] Compiling NIOCore NIOSendable.swift
[129/187] Compiling NIOCore RecvByteBufferAllocator.swift
[130/187] Compiling NIOCore SingleStepByteToMessageDecoder.swift
[131/187] Compiling NIOCore SocketAddresses.swift
[132/187] Compiling NIOCore SocketOptionProvider.swift
[133/187] Compiling NIOCore SystemCallHelpers.swift
[134/187] Compiling NIOCore TimeAmount+Duration.swift
[135/187] Compiling NIOCore TypeAssistedChannelHandler.swift
[136/187] Compiling NIOCore UniversalBootstrapSupport.swift
[137/187] Compiling NIOCore Utilities.swift
[140/187] Compiling NIOCore AsyncChannel.swift
[141/187] Compiling NIOCore AsyncChannelHandler.swift
[142/187] Compiling NIOCore AsyncChannelInboundStream.swift
[143/187] Compiling NIOCore AsyncChannelOutboundWriter.swift
[144/187] Compiling NIOCore NIOAsyncSequenceProducer.swift
[145/187] Compiling NIOCore EventLoopFuture+AssumeIsolated.swift
[146/187] Compiling NIOCore EventLoopFuture+Deprecated.swift
[147/187] Compiling NIOCore EventLoopFuture+WithEventLoop.swift
[148/187] Compiling NIOCore EventLoopFuture.swift
[149/187] Compiling NIOCore FileDescriptor.swift
[150/187] Compiling NIOCore FileHandle.swift
[151/187] Compiling NIOCore FileRegion.swift
[152/187] Compiling NIOCore NIOAsyncSequenceProducerStrategies.swift
[153/187] Compiling NIOCore NIOAsyncWriter.swift
[154/187] Compiling NIOCore NIOThrowingAsyncSequenceProducer.swift
[155/187] Compiling NIOCore BSDSocketAPI.swift
[156/187] Compiling NIOCore ByteBuffer-aux.swift
[157/187] Compiling NIOCore ByteBuffer-binaryEncodedLengthPrefix.swift
[158/187] Compiling NIOCore ByteBuffer-conversions.swift
[159/187] Compiling NIOCore Channel.swift
[160/187] Compiling NIOCore ChannelHandler.swift
[161/187] Compiling NIOCore ChannelHandlers.swift
[162/187] Compiling NIOCore ChannelInvoker.swift
[163/187] Compiling NIOCore ChannelOption.swift
[164/187] Compiling NIOCore ChannelPipeline.swift
[165/187] Compiling NIOCore CircularBuffer.swift
[166/187] Compiling NIOCore Codec.swift
[167/187] Compiling NIOCore ConvenienceOptionSupport.swift
[168/187] Compiling NIOCore DeadChannel.swift
[169/187] Compiling NIOCore DispatchQueue+WithFuture.swift
[170/187] Compiling NIOCore EventLoop+Deprecated.swift
[171/187] Compiling NIOCore EventLoop+SerialExecutor.swift
[172/187] Compiling NIOCore EventLoop.swift
[173/187] Compiling NIOCore ByteBuffer-core.swift
[174/187] Compiling NIOCore ByteBuffer-hex.swift
[175/187] Compiling NIOCore ByteBuffer-int.swift
[176/187] Compiling NIOCore ByteBuffer-lengthPrefix.swift
[177/187] Compiling NIOCore ByteBuffer-multi-int.swift
[178/187] Compiling NIOCore ByteBuffer-quicBinaryEncodingStrategy.swift
[179/187] Compiling NIOCore ByteBuffer-views.swift
[180/187] Compiling NIOCore GlobalSingletons.swift
[181/187] Compiling NIOCore IO.swift
[182/187] Compiling NIOCore IOData.swift
[183/187] Compiling NIOCore IPProtocol.swift
[184/187] Compiling NIOCore IntegerBitPacking.swift
[185/187] Compiling NIOCore IntegerTypes.swift
[186/187] Compiling NIOCore Interfaces.swift
[187/187] Emitting module NIOCore
[188/241] Compiling NIOEmbedded AsyncTestingChannel.swift
[189/241] Compiling NIOEmbedded AsyncTestingEventLoop.swift
[190/241] Emitting module NIOEmbedded
[191/241] Compiling NIOEmbedded Embedded.swift
[192/241] Compiling NIOPosix PosixSingletons+ConcurrencyTakeOver.swift
[193/241] Compiling NIOPosix PosixSingletons.swift
[194/241] Compiling NIOPosix RawSocketBootstrap.swift
[195/241] Compiling NIOPosix Resolver.swift
[196/241] Compiling NIOPosix Selectable.swift
[197/246] Compiling NIOPosix GetaddrinfoResolver.swift
[198/246] Compiling NIOPosix HappyEyeballs.swift
[199/246] Compiling NIOPosix IO.swift
[200/246] Compiling NIOPosix IntegerBitPacking.swift
[201/246] Compiling NIOPosix IntegerTypes.swift
[202/246] Compiling NIOPosix Linux.swift
[203/246] Compiling NIOPosix UnsafeTransfer.swift
[204/246] Compiling NIOPosix Utilities.swift
[205/246] Compiling NIOPosix VsockAddress.swift
[206/246] Compiling NIOPosix VsockChannelEvents.swift
[207/246] Compiling NIOPosix resource_bundle_accessor.swift
[208/246] Compiling NIOPosix BSDSocketAPICommon.swift
[209/246] Compiling NIOPosix BSDSocketAPIPosix.swift
[210/246] Compiling NIOPosix BSDSocketAPIWindows.swift
[211/246] Compiling NIOPosix BaseSocket.swift
[212/246] Compiling NIOPosix BaseSocketChannel+SocketOptionProvider.swift
[213/246] Compiling NIOPosix BaseSocketChannel.swift
[214/246] Emitting module NIOPosix
[215/246] Compiling NIOPosix LinuxCPUSet.swift
[216/246] Compiling NIOPosix LinuxUring.swift
[217/246] Compiling NIOPosix MultiThreadedEventLoopGroup.swift
[218/246] Compiling NIOPosix NIOPosixSendableMetatype.swift
[219/246] Compiling NIOPosix NIOThreadPool.swift
[220/246] Compiling NIOPosix NonBlockingFileIO.swift
[221/246] Compiling NIOPosix PendingDatagramWritesManager.swift
[222/246] Compiling NIOPosix PendingWritesManager.swift
[223/246] Compiling NIOPosix PipeChannel.swift
[224/246] Compiling NIOPosix PipePair.swift
[225/246] Compiling NIOPosix Pool.swift
[226/246] Compiling NIOPosix SelectableChannel.swift
[227/246] Compiling NIOPosix SelectableEventLoop.swift
[228/246] Compiling NIOPosix SelectorEpoll.swift
[229/246] Compiling NIOPosix SelectorGeneric.swift
[230/246] Compiling NIOPosix SelectorKqueue.swift
[231/246] Compiling NIOPosix SelectorUring.swift
[232/246] Compiling NIOPosix ServerSocket.swift
[233/246] Compiling NIOPosix Socket.swift
[234/246] Compiling NIOPosix SocketChannel.swift
[235/246] Compiling NIOPosix SocketProtocols.swift
[236/246] Compiling NIOPosix StructuredConcurrencyHelpers.swift
[237/246] Compiling NIOPosix System.swift
[238/246] Compiling NIOPosix Thread.swift
[239/246] Compiling NIOPosix ThreadPosix.swift
[240/246] Compiling NIOPosix ThreadWindows.swift
[241/246] Compiling NIOPosix BaseStreamSocketChannel.swift
[242/246] Compiling NIOPosix Bootstrap.swift
[243/246] Compiling NIOPosix ControlMessage.swift
[244/246] Compiling NIOPosix DatagramVectorReadManager.swift
[245/246] Compiling NIOPosix Errors+Any.swift
[246/246] Compiling NIOPosix FileDescriptor.swift
[247/248] Compiling NIO Exports.swift
[248/248] Emitting module NIO
[249/270] Compiling NIOFoundationCompat JSONSerialization+ByteBuffer.swift
[250/270] Compiling NIOFoundationCompat Codable+ByteBuffer.swift
[251/270] Compiling NIOFoundationCompat WaitSpinningRunLoop.swift
[252/270] Compiling NIOHTTP1 NIOTypedHTTPServerUpgradeHandler.swift
[253/270] Compiling NIOHTTP1 NIOTypedHTTPClientUpgraderStateMachine.swift
[254/271] Emitting module NIOHTTP1
[255/271] Compiling NIOHTTP1 HTTPServerUpgradeHandler.swift
[256/271] Compiling NIOHTTP1 HTTPTypedPipelineSetup.swift
[257/271] Compiling NIOHTTP1 HTTPServerPipelineHandler.swift
[258/271] Compiling NIOHTTP1 HTTPServerProtocolErrorHandler.swift
[259/271] Compiling NIOFoundationCompat ByteBuffer-foundation.swift
[260/271] Emitting module NIOFoundationCompat
[261/271] Compiling NIOHTTP1 HTTPHeaders+Validation.swift
[262/271] Compiling NIOHTTP1 HTTPPipelineSetup.swift
[263/271] Compiling NIOHTTP1 NIOHTTPObjectAggregator.swift
[264/271] Compiling NIOHTTP1 NIOTypedHTTPClientUpgradeHandler.swift
[265/272] Compiling NIOHTTP1 NIOTypedHTTPServerUpgraderStateMachine.swift
[266/310] Compiling MacroCore CollectionStubs.swift
[267/310] Compiling MacroCore Math.swift
[268/310] Compiling MacroCore BufferDeprecations.swift
[269/310] Compiling MacroCore BufferHexEncoding.swift
[270/310] Compiling MacroCore BufferStrings.swift
[271/310] Compiling MacroCore JSON.swift
[272/310] Compiling MacroCore MacroError.swift
/Users/admin/builder/spi-builder-workspace/Sources/MacroCore/NextTick.swift:27:7: warning: capture of 'execute' with non-sendable type '() -> Void' in a '@Sendable' closure
25 | ?? eventLoopGroup.next()
26 | loop.execute {
27 | execute()
| |- warning: capture of 'execute' with non-sendable type '() -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
28 | self.release()
29 | }
/Users/admin/builder/spi-builder-workspace/Sources/MacroCore/NextTick.swift:49:7: warning: capture of 'execute' with non-sendable type '() -> Void' in a '@Sendable' closure
47 |
48 | loop.scheduleTask(in: .milliseconds(Int64(milliseconds))) {
49 | execute()
| |- warning: capture of 'execute' with non-sendable type '() -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
50 | self.release()
51 | }
[273/310] Compiling MacroCore NextTick.swift
/Users/admin/builder/spi-builder-workspace/Sources/MacroCore/NextTick.swift:27:7: warning: capture of 'execute' with non-sendable type '() -> Void' in a '@Sendable' closure
25 | ?? eventLoopGroup.next()
26 | loop.execute {
27 | execute()
| |- warning: capture of 'execute' with non-sendable type '() -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
28 | self.release()
29 | }
/Users/admin/builder/spi-builder-workspace/Sources/MacroCore/NextTick.swift:49:7: warning: capture of 'execute' with non-sendable type '() -> Void' in a '@Sendable' closure
47 |
48 | loop.scheduleTask(in: .milliseconds(Int64(milliseconds))) {
49 | execute()
| |- warning: capture of 'execute' with non-sendable type '() -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
50 | self.release()
51 | }
[274/310] Compiling MacroCore CommandLine.swift
/Users/admin/builder/spi-builder-workspace/Sources/MacroCore/NextTick.swift:27:7: warning: capture of 'execute' with non-sendable type '() -> Void' in a '@Sendable' closure
25 | ?? eventLoopGroup.next()
26 | loop.execute {
27 | execute()
| |- warning: capture of 'execute' with non-sendable type '() -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
28 | self.release()
29 | }
/Users/admin/builder/spi-builder-workspace/Sources/MacroCore/NextTick.swift:49:7: warning: capture of 'execute' with non-sendable type '() -> Void' in a '@Sendable' closure
47 |
48 | loop.scheduleTask(in: .milliseconds(Int64(milliseconds))) {
49 | execute()
| |- warning: capture of 'execute' with non-sendable type '() -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
50 | self.release()
51 | }
[275/310] Compiling MacroCore DetectXcode.swift
/Users/admin/builder/spi-builder-workspace/Sources/MacroCore/NextTick.swift:27:7: warning: capture of 'execute' with non-sendable type '() -> Void' in a '@Sendable' closure
25 | ?? eventLoopGroup.next()
26 | loop.execute {
27 | execute()
| |- warning: capture of 'execute' with non-sendable type '() -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
28 | self.release()
29 | }
/Users/admin/builder/spi-builder-workspace/Sources/MacroCore/NextTick.swift:49:7: warning: capture of 'execute' with non-sendable type '() -> Void' in a '@Sendable' closure
47 |
48 | loop.scheduleTask(in: .milliseconds(Int64(milliseconds))) {
49 | execute()
| |- warning: capture of 'execute' with non-sendable type '() -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
50 | self.release()
51 | }
[276/310] Compiling MacroCore ReadableByteStreamType.swift
[277/310] Compiling MacroCore ReadableStreamBase.swift
[278/310] Compiling MacroCore ReadableStreamType.swift
[279/310] Compiling MacroCore WritableByteStream.swift
[283/314] Compiling MacroCore Object.swift
[284/314] Compiling MacroCore Environment.swift
/Users/admin/builder/spi-builder-workspace/Sources/MacroCore/Process/Warnings.swift:13:22: warning: static property '_warningListeners' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
11 | public extension process { // Warnings
12 |
13 | private static var _warningListeners = EventListenerSet<Warning>()
| |- warning: static property '_warningListeners' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '_warningListeners' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property '_warningListeners' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 | private static let _warningListenersLock = NIOConcurrencyHelpers.NIOLock()
15 |
[285/314] Compiling MacroCore Process.swift
/Users/admin/builder/spi-builder-workspace/Sources/MacroCore/Process/Warnings.swift:13:22: warning: static property '_warningListeners' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
11 | public extension process { // Warnings
12 |
13 | private static var _warningListeners = EventListenerSet<Warning>()
| |- warning: static property '_warningListeners' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '_warningListeners' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property '_warningListeners' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 | private static let _warningListenersLock = NIOConcurrencyHelpers.NIOLock()
15 |
[286/314] Compiling MacroCore Warnings.swift
/Users/admin/builder/spi-builder-workspace/Sources/MacroCore/Process/Warnings.swift:13:22: warning: static property '_warningListeners' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
11 | public extension process { // Warnings
12 |
13 | private static var _warningListeners = EventListenerSet<Warning>()
| |- warning: static property '_warningListeners' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '_warningListeners' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property '_warningListeners' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 | private static let _warningListenersLock = NIOConcurrencyHelpers.NIOLock()
15 |
[287/314] Compiling MacroCore Regex.swift
/Users/admin/builder/spi-builder-workspace/Sources/MacroCore/Process/Warnings.swift:13:22: warning: static property '_warningListeners' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
11 | public extension process { // Warnings
12 |
13 | private static var _warningListeners = EventListenerSet<Warning>()
| |- warning: static property '_warningListeners' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '_warningListeners' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property '_warningListeners' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 | private static let _warningListenersLock = NIOConcurrencyHelpers.NIOLock()
15 |
[288/314] Compiling MacroCore ErrorEmitter.swift
/Users/admin/builder/spi-builder-workspace/Sources/MacroCore/Events/EventListenerSet.swift:181:19: warning: capture of 'callback' with non-sendable type '(T) -> Void' in a '@Sendable' closure
179 | let value = value
180 | let callback = self.callback
181 | queue.async { callback(value) }
| |- warning: capture of 'callback' with non-sendable type '(T) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
182 | }
183 | }
/Users/admin/builder/spi-builder-workspace/Sources/MacroCore/Events/EventListenerSet.swift:181:28: warning: capture of 'value' with non-sendable type 'T' in a '@Sendable' closure
166 |
167 | @usableFromInline
168 | internal final class _QueueBoundListener<T>: Listener<T> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
169 | @usableFromInline let queue : DispatchQueue
170 | @usableFromInline let callback : EventHandler
:
179 | let value = value
180 | let callback = self.callback
181 | queue.async { callback(value) }
| `- warning: capture of 'value' with non-sendable type 'T' in a '@Sendable' closure
182 | }
183 | }
/Users/admin/builder/spi-builder-workspace/Sources/MacroCore/Events/EventListenerSet.swift:206:27: warning: capture of 'callback' with non-sendable type '(T) -> Void' in a '@Sendable' closure
204 | let value = value
205 | let callback = self.callback
206 | eventLoop.execute { callback(value) }
| |- warning: capture of 'callback' with non-sendable type '(T) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
207 | }
208 | }
/Users/admin/builder/spi-builder-workspace/Sources/MacroCore/Events/EventListenerSet.swift:206:36: warning: capture of 'value' with non-sendable type 'T' in a '@Sendable' closure
186 |
187 | @usableFromInline
188 | internal final class _EventLoopBoundListener<T>: Listener<T> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
189 | @usableFromInline let eventLoop : EventLoop
190 | @usableFromInline let callback : EventHandler
:
204 | let value = value
205 | let callback = self.callback
206 | eventLoop.execute { callback(value) }
| `- warning: capture of 'value' with non-sendable type 'T' in a '@Sendable' closure
207 | }
208 | }
[289/314] Compiling MacroCore EventListenerSet.swift
/Users/admin/builder/spi-builder-workspace/Sources/MacroCore/Events/EventListenerSet.swift:181:19: warning: capture of 'callback' with non-sendable type '(T) -> Void' in a '@Sendable' closure
179 | let value = value
180 | let callback = self.callback
181 | queue.async { callback(value) }
| |- warning: capture of 'callback' with non-sendable type '(T) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
182 | }
183 | }
/Users/admin/builder/spi-builder-workspace/Sources/MacroCore/Events/EventListenerSet.swift:181:28: warning: capture of 'value' with non-sendable type 'T' in a '@Sendable' closure
166 |
167 | @usableFromInline
168 | internal final class _QueueBoundListener<T>: Listener<T> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
169 | @usableFromInline let queue : DispatchQueue
170 | @usableFromInline let callback : EventHandler
:
179 | let value = value
180 | let callback = self.callback
181 | queue.async { callback(value) }
| `- warning: capture of 'value' with non-sendable type 'T' in a '@Sendable' closure
182 | }
183 | }
/Users/admin/builder/spi-builder-workspace/Sources/MacroCore/Events/EventListenerSet.swift:206:27: warning: capture of 'callback' with non-sendable type '(T) -> Void' in a '@Sendable' closure
204 | let value = value
205 | let callback = self.callback
206 | eventLoop.execute { callback(value) }
| |- warning: capture of 'callback' with non-sendable type '(T) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
207 | }
208 | }
/Users/admin/builder/spi-builder-workspace/Sources/MacroCore/Events/EventListenerSet.swift:206:36: warning: capture of 'value' with non-sendable type 'T' in a '@Sendable' closure
186 |
187 | @usableFromInline
188 | internal final class _EventLoopBoundListener<T>: Listener<T> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
189 | @usableFromInline let eventLoop : EventLoop
190 | @usableFromInline let callback : EventHandler
:
204 | let value = value
205 | let callback = self.callback
206 | eventLoop.execute { callback(value) }
| `- warning: capture of 'value' with non-sendable type 'T' in a '@Sendable' closure
207 | }
208 | }
[290/314] Compiling MacroCore ListenerType.swift
/Users/admin/builder/spi-builder-workspace/Sources/MacroCore/Events/EventListenerSet.swift:181:19: warning: capture of 'callback' with non-sendable type '(T) -> Void' in a '@Sendable' closure
179 | let value = value
180 | let callback = self.callback
181 | queue.async { callback(value) }
| |- warning: capture of 'callback' with non-sendable type '(T) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
182 | }
183 | }
/Users/admin/builder/spi-builder-workspace/Sources/MacroCore/Events/EventListenerSet.swift:181:28: warning: capture of 'value' with non-sendable type 'T' in a '@Sendable' closure
166 |
167 | @usableFromInline
168 | internal final class _QueueBoundListener<T>: Listener<T> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
169 | @usableFromInline let queue : DispatchQueue
170 | @usableFromInline let callback : EventHandler
:
179 | let value = value
180 | let callback = self.callback
181 | queue.async { callback(value) }
| `- warning: capture of 'value' with non-sendable type 'T' in a '@Sendable' closure
182 | }
183 | }
/Users/admin/builder/spi-builder-workspace/Sources/MacroCore/Events/EventListenerSet.swift:206:27: warning: capture of 'callback' with non-sendable type '(T) -> Void' in a '@Sendable' closure
204 | let value = value
205 | let callback = self.callback
206 | eventLoop.execute { callback(value) }
| |- warning: capture of 'callback' with non-sendable type '(T) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
207 | }
208 | }
/Users/admin/builder/spi-builder-workspace/Sources/MacroCore/Events/EventListenerSet.swift:206:36: warning: capture of 'value' with non-sendable type 'T' in a '@Sendable' closure
186 |
187 | @usableFromInline
188 | internal final class _EventLoopBoundListener<T>: Listener<T> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
189 | @usableFromInline let eventLoop : EventLoop
190 | @usableFromInline let callback : EventHandler
:
204 | let value = value
205 | let callback = self.callback
206 | eventLoop.execute { callback(value) }
| `- warning: capture of 'value' with non-sendable type 'T' in a '@Sendable' closure
207 | }
208 | }
[291/314] Compiling MacroCore JSError.swift
/Users/admin/builder/spi-builder-workspace/Sources/MacroCore/Events/EventListenerSet.swift:181:19: warning: capture of 'callback' with non-sendable type '(T) -> Void' in a '@Sendable' closure
179 | let value = value
180 | let callback = self.callback
181 | queue.async { callback(value) }
| |- warning: capture of 'callback' with non-sendable type '(T) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
182 | }
183 | }
/Users/admin/builder/spi-builder-workspace/Sources/MacroCore/Events/EventListenerSet.swift:181:28: warning: capture of 'value' with non-sendable type 'T' in a '@Sendable' closure
166 |
167 | @usableFromInline
168 | internal final class _QueueBoundListener<T>: Listener<T> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
169 | @usableFromInline let queue : DispatchQueue
170 | @usableFromInline let callback : EventHandler
:
179 | let value = value
180 | let callback = self.callback
181 | queue.async { callback(value) }
| `- warning: capture of 'value' with non-sendable type 'T' in a '@Sendable' closure
182 | }
183 | }
/Users/admin/builder/spi-builder-workspace/Sources/MacroCore/Events/EventListenerSet.swift:206:27: warning: capture of 'callback' with non-sendable type '(T) -> Void' in a '@Sendable' closure
204 | let value = value
205 | let callback = self.callback
206 | eventLoop.execute { callback(value) }
| |- warning: capture of 'callback' with non-sendable type '(T) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
207 | }
208 | }
/Users/admin/builder/spi-builder-workspace/Sources/MacroCore/Events/EventListenerSet.swift:206:36: warning: capture of 'value' with non-sendable type 'T' in a '@Sendable' closure
186 |
187 | @usableFromInline
188 | internal final class _EventLoopBoundListener<T>: Listener<T> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
189 | @usableFromInline let eventLoop : EventLoop
190 | @usableFromInline let callback : EventHandler
:
204 | let value = value
205 | let callback = self.callback
206 | eventLoop.execute { callback(value) }
| `- warning: capture of 'value' with non-sendable type 'T' in a '@Sendable' closure
207 | }
208 | }
[292/314] Compiling MacroCore StringStubs.swift
/Users/admin/builder/spi-builder-workspace/Sources/MacroCore/MacroCore.swift:237:17: warning: var 'wasInExit' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
235 | }
236 |
237 | fileprivate var wasInExit = false
| |- warning: var 'wasInExit' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'wasInExit' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'wasInExit' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
238 |
239 | public func disableAtExitHandler() {
[293/314] Compiling MacroCore ToString.swift
/Users/admin/builder/spi-builder-workspace/Sources/MacroCore/MacroCore.swift:237:17: warning: var 'wasInExit' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
235 | }
236 |
237 | fileprivate var wasInExit = false
| |- warning: var 'wasInExit' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'wasInExit' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'wasInExit' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
238 |
239 | public func disableAtExitHandler() {
[294/314] Compiling MacroCore LeftPad.swift
/Users/admin/builder/spi-builder-workspace/Sources/MacroCore/MacroCore.swift:237:17: warning: var 'wasInExit' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
235 | }
236 |
237 | fileprivate var wasInExit = false
| |- warning: var 'wasInExit' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'wasInExit' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'wasInExit' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
238 |
239 | public func disableAtExitHandler() {
[295/314] Compiling MacroCore MacroCore.swift
/Users/admin/builder/spi-builder-workspace/Sources/MacroCore/MacroCore.swift:237:17: warning: var 'wasInExit' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
235 | }
236 |
237 | fileprivate var wasInExit = false
| |- warning: var 'wasInExit' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'wasInExit' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'wasInExit' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
238 |
239 | public func disableAtExitHandler() {
[296/314] Compiling MacroCore Concat.swift
/Users/admin/builder/spi-builder-workspace/Sources/MacroCore/Streams/Pipe.swift:155:14: warning: stored property 'original' of 'Sendable'-conforming generic struct 'PipeSourceError' has non-sendable type 'Original'; this is an error in the Swift 6 language mode
148 | }
149 |
150 | public struct PipeSourceError<Original, Last>: PipeSourceErrorType
| `- note: consider making generic parameter 'Original' conform to the 'Sendable' protocol
151 | where Original : ReadableStreamType,
152 | Last : ReadableStreamType
153 | {
154 |
155 | public let original : Original
| `- warning: stored property 'original' of 'Sendable'-conforming generic struct 'PipeSourceError' has non-sendable type 'Original'; this is an error in the Swift 6 language mode
156 | public let last : Last
157 | public let error : Swift.Error
/Users/admin/builder/spi-builder-workspace/Sources/MacroCore/Streams/Pipe.swift:156:14: warning: stored property 'last' of 'Sendable'-conforming generic struct 'PipeSourceError' has non-sendable type 'Last'; this is an error in the Swift 6 language mode
148 | }
149 |
150 | public struct PipeSourceError<Original, Last>: PipeSourceErrorType
| `- note: consider making generic parameter 'Last' conform to the 'Sendable' protocol
151 | where Original : ReadableStreamType,
152 | Last : ReadableStreamType
:
154 |
155 | public let original : Original
156 | public let last : Last
| `- warning: stored property 'last' of 'Sendable'-conforming generic struct 'PipeSourceError' has non-sendable type 'Last'; this is an error in the Swift 6 language mode
157 | public let error : Swift.Error
158 |
[297/314] Compiling MacroCore DuplexStreamType.swift
/Users/admin/builder/spi-builder-workspace/Sources/MacroCore/Streams/Pipe.swift:155:14: warning: stored property 'original' of 'Sendable'-conforming generic struct 'PipeSourceError' has non-sendable type 'Original'; this is an error in the Swift 6 language mode
148 | }
149 |
150 | public struct PipeSourceError<Original, Last>: PipeSourceErrorType
| `- note: consider making generic parameter 'Original' conform to the 'Sendable' protocol
151 | where Original : ReadableStreamType,
152 | Last : ReadableStreamType
153 | {
154 |
155 | public let original : Original
| `- warning: stored property 'original' of 'Sendable'-conforming generic struct 'PipeSourceError' has non-sendable type 'Original'; this is an error in the Swift 6 language mode
156 | public let last : Last
157 | public let error : Swift.Error
/Users/admin/builder/spi-builder-workspace/Sources/MacroCore/Streams/Pipe.swift:156:14: warning: stored property 'last' of 'Sendable'-conforming generic struct 'PipeSourceError' has non-sendable type 'Last'; this is an error in the Swift 6 language mode
148 | }
149 |
150 | public struct PipeSourceError<Original, Last>: PipeSourceErrorType
| `- note: consider making generic parameter 'Last' conform to the 'Sendable' protocol
151 | where Original : ReadableStreamType,
152 | Last : ReadableStreamType
:
154 |
155 | public let original : Original
156 | public let last : Last
| `- warning: stored property 'last' of 'Sendable'-conforming generic struct 'PipeSourceError' has non-sendable type 'Last'; this is an error in the Swift 6 language mode
157 | public let error : Swift.Error
158 |
[298/314] Compiling MacroCore Pipe.swift
/Users/admin/builder/spi-builder-workspace/Sources/MacroCore/Streams/Pipe.swift:155:14: warning: stored property 'original' of 'Sendable'-conforming generic struct 'PipeSourceError' has non-sendable type 'Original'; this is an error in the Swift 6 language mode
148 | }
149 |
150 | public struct PipeSourceError<Original, Last>: PipeSourceErrorType
| `- note: consider making generic parameter 'Original' conform to the 'Sendable' protocol
151 | where Original : ReadableStreamType,
152 | Last : ReadableStreamType
153 | {
154 |
155 | public let original : Original
| `- warning: stored property 'original' of 'Sendable'-conforming generic struct 'PipeSourceError' has non-sendable type 'Original'; this is an error in the Swift 6 language mode
156 | public let last : Last
157 | public let error : Swift.Error
/Users/admin/builder/spi-builder-workspace/Sources/MacroCore/Streams/Pipe.swift:156:14: warning: stored property 'last' of 'Sendable'-conforming generic struct 'PipeSourceError' has non-sendable type 'Last'; this is an error in the Swift 6 language mode
148 | }
149 |
150 | public struct PipeSourceError<Original, Last>: PipeSourceErrorType
| `- note: consider making generic parameter 'Last' conform to the 'Sendable' protocol
151 | where Original : ReadableStreamType,
152 | Last : ReadableStreamType
:
154 |
155 | public let original : Original
156 | public let last : Last
| `- warning: stored property 'last' of 'Sendable'-conforming generic struct 'PipeSourceError' has non-sendable type 'Last'; this is an error in the Swift 6 language mode
157 | public let error : Swift.Error
158 |
[299/314] Compiling MacroCore ReadableByteStream.swift
/Users/admin/builder/spi-builder-workspace/Sources/MacroCore/Streams/Pipe.swift:155:14: warning: stored property 'original' of 'Sendable'-conforming generic struct 'PipeSourceError' has non-sendable type 'Original'; this is an error in the Swift 6 language mode
148 | }
149 |
150 | public struct PipeSourceError<Original, Last>: PipeSourceErrorType
| `- note: consider making generic parameter 'Original' conform to the 'Sendable' protocol
151 | where Original : ReadableStreamType,
152 | Last : ReadableStreamType
153 | {
154 |
155 | public let original : Original
| `- warning: stored property 'original' of 'Sendable'-conforming generic struct 'PipeSourceError' has non-sendable type 'Original'; this is an error in the Swift 6 language mode
156 | public let last : Last
157 | public let error : Swift.Error
/Users/admin/builder/spi-builder-workspace/Sources/MacroCore/Streams/Pipe.swift:156:14: warning: stored property 'last' of 'Sendable'-conforming generic struct 'PipeSourceError' has non-sendable type 'Last'; this is an error in the Swift 6 language mode
148 | }
149 |
150 | public struct PipeSourceError<Original, Last>: PipeSourceErrorType
| `- note: consider making generic parameter 'Last' conform to the 'Sendable' protocol
151 | where Original : ReadableStreamType,
152 | Last : ReadableStreamType
:
154 |
155 | public let original : Original
156 | public let last : Last
| `- warning: stored property 'last' of 'Sendable'-conforming generic struct 'PipeSourceError' has non-sendable type 'Last'; this is an error in the Swift 6 language mode
157 | public let error : Swift.Error
158 |
[300/314] Compiling MacroCore CollectionUtils.swift
/Users/admin/builder/spi-builder-workspace/Sources/MacroCore/Buffer/CollectionUtils.swift:32:21: warning: static property 'partialSuffixMatch' is not concurrency-safe because non-'Sendable' type 'StringMatchOptions' may have shared mutable state; this is an error in the Swift 6 language mode
7 | //
8 |
9 | public struct StringMatchOptions: OptionSet {
| `- note: consider making struct 'StringMatchOptions' conform to the 'Sendable' protocol
10 | public let rawValue : UInt8
11 |
:
30 | * possible prefix of the needle. In the example that is `buf`.
31 | */
32 | public static let partialSuffixMatch = StringMatchOptions(rawValue: 1 << 0)
| |- warning: static property 'partialSuffixMatch' is not concurrency-safe because non-'Sendable' type 'StringMatchOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'partialSuffixMatch' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
33 | }
34 |
/Users/admin/builder/spi-builder-workspace/Sources/MacroCore/Concurrency.swift:64:9: warning: capture of 'yield' with non-sendable type '(R) -> Void' in a '@Sendable' closure
62 | let value = await body(repeat each args)
63 | loop.execute {
64 | yield(value)
| |- warning: capture of 'yield' with non-sendable type '(R) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
65 | }
66 | self.release()
/Users/admin/builder/spi-builder-workspace/Sources/MacroCore/Concurrency.swift:64:15: warning: capture of 'value' with non-sendable type 'R' in a '@Sendable' closure
49 | */
50 | @inlinable
51 | func `task`<each A, R>(on eventLoop : EventLoop? = nil,
| `- note: consider making generic parameter 'R' conform to the 'Sendable' protocol
52 | _ args : repeat each A,
53 | body : @escaping (repeat each A) async -> R,
:
62 | let value = await body(repeat each args)
63 | loop.execute {
64 | yield(value)
| `- warning: capture of 'value' with non-sendable type 'R' in a '@Sendable' closure
65 | }
66 | self.release()
/Users/admin/builder/spi-builder-workspace/Sources/MacroCore/Concurrency.swift:98:24: warning: capture of 'yield' with non-sendable type '((any Error)?, R?) -> Void' in a '@Sendable' closure
96 | do {
97 | let value = try await body(repeat each args)
98 | loop.execute { yield(nil, value) }
| |- warning: capture of 'yield' with non-sendable type '((any Error)?, R?) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
99 | }
100 | catch {
/Users/admin/builder/spi-builder-workspace/Sources/MacroCore/Concurrency.swift:98:35: warning: capture of 'value' with non-sendable type 'R' in a '@Sendable' closure
83 | */
84 | @inlinable
85 | func `task`<each A, R>(on eventLoop : EventLoop? = nil,
| `- note: consider making generic parameter 'R' conform to the 'Sendable' protocol
86 | _ args : repeat each A,
87 | body : @escaping (repeat each A) async throws -> R,
:
96 | do {
97 | let value = try await body(repeat each args)
98 | loop.execute { yield(nil, value) }
| `- warning: capture of 'value' with non-sendable type 'R' in a '@Sendable' closure
99 | }
100 | catch {
/Users/admin/builder/spi-builder-workspace/Sources/MacroCore/Concurrency.swift:101:24: warning: capture of 'yield' with non-sendable type '((any Error)?, R?) -> Void' in a '@Sendable' closure
99 | }
100 | catch {
101 | loop.execute { yield(error, nil) }
| |- warning: capture of 'yield' with non-sendable type '((any Error)?, R?) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
102 | }
103 | self.release()
/Users/admin/builder/spi-builder-workspace/Sources/MacroCore/EnvironmentValues.swift:116:14: warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'EnvironmentValues' may have shared mutable state; this is an error in the Swift 6 language mode
100 | */
101 | @frozen
102 | public struct EnvironmentValues {
| `- note: consider making struct 'EnvironmentValues' conform to the 'Sendable' protocol
103 |
104 | @usableFromInline
:
114 | public extension EnvironmentValues {
115 |
116 | static let empty = EnvironmentValues()
| |- warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'EnvironmentValues' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'empty' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
117 |
118 | @inlinable
/Users/admin/builder/spi-builder-workspace/Sources/MacroCore/Concurrency.swift:30:10: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
28 | {
29 | retain()
30 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
31 | await body(repeat each args)
| `- note: closure captures 'body' which is accessible to code in the current task
32 | self.release()
33 | }
/Users/admin/builder/spi-builder-workspace/Sources/MacroCore/Concurrency.swift:61:10: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
59 | ?? MultiThreadedEventLoopGroup.currentEventLoop
60 | ?? eventLoopGroup.next()
61 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
62 | let value = await body(repeat each args)
63 | loop.execute {
64 | yield(value)
| `- note: closure captures 'yield' which is accessible to code in the current task
65 | }
66 | self.release()
/Users/admin/builder/spi-builder-workspace/Sources/MacroCore/Concurrency.swift:95:10: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
93 | ?? MultiThreadedEventLoopGroup.currentEventLoop
94 | ?? eventLoopGroup.next()
95 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
96 | do {
97 | let value = try await body(repeat each args)
98 | loop.execute { yield(nil, value) }
| `- note: closure captures 'yield' which is accessible to code in the current task
99 | }
100 | catch {
[301/314] Compiling MacroCore Concurrency.swift
/Users/admin/builder/spi-builder-workspace/Sources/MacroCore/Buffer/CollectionUtils.swift:32:21: warning: static property 'partialSuffixMatch' is not concurrency-safe because non-'Sendable' type 'StringMatchOptions' may have shared mutable state; this is an error in the Swift 6 language mode
7 | //
8 |
9 | public struct StringMatchOptions: OptionSet {
| `- note: consider making struct 'StringMatchOptions' conform to the 'Sendable' protocol
10 | public let rawValue : UInt8
11 |
:
30 | * possible prefix of the needle. In the example that is `buf`.
31 | */
32 | public static let partialSuffixMatch = StringMatchOptions(rawValue: 1 << 0)
| |- warning: static property 'partialSuffixMatch' is not concurrency-safe because non-'Sendable' type 'StringMatchOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'partialSuffixMatch' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
33 | }
34 |
/Users/admin/builder/spi-builder-workspace/Sources/MacroCore/Concurrency.swift:64:9: warning: capture of 'yield' with non-sendable type '(R) -> Void' in a '@Sendable' closure
62 | let value = await body(repeat each args)
63 | loop.execute {
64 | yield(value)
| |- warning: capture of 'yield' with non-sendable type '(R) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
65 | }
66 | self.release()
/Users/admin/builder/spi-builder-workspace/Sources/MacroCore/Concurrency.swift:64:15: warning: capture of 'value' with non-sendable type 'R' in a '@Sendable' closure
49 | */
50 | @inlinable
51 | func `task`<each A, R>(on eventLoop : EventLoop? = nil,
| `- note: consider making generic parameter 'R' conform to the 'Sendable' protocol
52 | _ args : repeat each A,
53 | body : @escaping (repeat each A) async -> R,
:
62 | let value = await body(repeat each args)
63 | loop.execute {
64 | yield(value)
| `- warning: capture of 'value' with non-sendable type 'R' in a '@Sendable' closure
65 | }
66 | self.release()
/Users/admin/builder/spi-builder-workspace/Sources/MacroCore/Concurrency.swift:98:24: warning: capture of 'yield' with non-sendable type '((any Error)?, R?) -> Void' in a '@Sendable' closure
96 | do {
97 | let value = try await body(repeat each args)
98 | loop.execute { yield(nil, value) }
| |- warning: capture of 'yield' with non-sendable type '((any Error)?, R?) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
99 | }
100 | catch {
/Users/admin/builder/spi-builder-workspace/Sources/MacroCore/Concurrency.swift:98:35: warning: capture of 'value' with non-sendable type 'R' in a '@Sendable' closure
83 | */
84 | @inlinable
85 | func `task`<each A, R>(on eventLoop : EventLoop? = nil,
| `- note: consider making generic parameter 'R' conform to the 'Sendable' protocol
86 | _ args : repeat each A,
87 | body : @escaping (repeat each A) async throws -> R,
:
96 | do {
97 | let value = try await body(repeat each args)
98 | loop.execute { yield(nil, value) }
| `- warning: capture of 'value' with non-sendable type 'R' in a '@Sendable' closure
99 | }
100 | catch {
/Users/admin/builder/spi-builder-workspace/Sources/MacroCore/Concurrency.swift:101:24: warning: capture of 'yield' with non-sendable type '((any Error)?, R?) -> Void' in a '@Sendable' closure
99 | }
100 | catch {
101 | loop.execute { yield(error, nil) }
| |- warning: capture of 'yield' with non-sendable type '((any Error)?, R?) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
102 | }
103 | self.release()
/Users/admin/builder/spi-builder-workspace/Sources/MacroCore/EnvironmentValues.swift:116:14: warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'EnvironmentValues' may have shared mutable state; this is an error in the Swift 6 language mode
100 | */
101 | @frozen
102 | public struct EnvironmentValues {
| `- note: consider making struct 'EnvironmentValues' conform to the 'Sendable' protocol
103 |
104 | @usableFromInline
:
114 | public extension EnvironmentValues {
115 |
116 | static let empty = EnvironmentValues()
| |- warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'EnvironmentValues' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'empty' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
117 |
118 | @inlinable
/Users/admin/builder/spi-builder-workspace/Sources/MacroCore/Concurrency.swift:30:10: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
28 | {
29 | retain()
30 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
31 | await body(repeat each args)
| `- note: closure captures 'body' which is accessible to code in the current task
32 | self.release()
33 | }
/Users/admin/builder/spi-builder-workspace/Sources/MacroCore/Concurrency.swift:61:10: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
59 | ?? MultiThreadedEventLoopGroup.currentEventLoop
60 | ?? eventLoopGroup.next()
61 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
62 | let value = await body(repeat each args)
63 | loop.execute {
64 | yield(value)
| `- note: closure captures 'yield' which is accessible to code in the current task
65 | }
66 | self.release()
/Users/admin/builder/spi-builder-workspace/Sources/MacroCore/Concurrency.swift:95:10: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
93 | ?? MultiThreadedEventLoopGroup.currentEventLoop
94 | ?? eventLoopGroup.next()
95 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
96 | do {
97 | let value = try await body(repeat each args)
98 | loop.execute { yield(nil, value) }
| `- note: closure captures 'yield' which is accessible to code in the current task
99 | }
100 | catch {
[302/314] Compiling MacroCore Console.swift
/Users/admin/builder/spi-builder-workspace/Sources/MacroCore/Buffer/CollectionUtils.swift:32:21: warning: static property 'partialSuffixMatch' is not concurrency-safe because non-'Sendable' type 'StringMatchOptions' may have shared mutable state; this is an error in the Swift 6 language mode
7 | //
8 |
9 | public struct StringMatchOptions: OptionSet {
| `- note: consider making struct 'StringMatchOptions' conform to the 'Sendable' protocol
10 | public let rawValue : UInt8
11 |
:
30 | * possible prefix of the needle. In the example that is `buf`.
31 | */
32 | public static let partialSuffixMatch = StringMatchOptions(rawValue: 1 << 0)
| |- warning: static property 'partialSuffixMatch' is not concurrency-safe because non-'Sendable' type 'StringMatchOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'partialSuffixMatch' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
33 | }
34 |
/Users/admin/builder/spi-builder-workspace/Sources/MacroCore/Concurrency.swift:64:9: warning: capture of 'yield' with non-sendable type '(R) -> Void' in a '@Sendable' closure
62 | let value = await body(repeat each args)
63 | loop.execute {
64 | yield(value)
| |- warning: capture of 'yield' with non-sendable type '(R) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
65 | }
66 | self.release()
/Users/admin/builder/spi-builder-workspace/Sources/MacroCore/Concurrency.swift:64:15: warning: capture of 'value' with non-sendable type 'R' in a '@Sendable' closure
49 | */
50 | @inlinable
51 | func `task`<each A, R>(on eventLoop : EventLoop? = nil,
| `- note: consider making generic parameter 'R' conform to the 'Sendable' protocol
52 | _ args : repeat each A,
53 | body : @escaping (repeat each A) async -> R,
:
62 | let value = await body(repeat each args)
63 | loop.execute {
64 | yield(value)
| `- warning: capture of 'value' with non-sendable type 'R' in a '@Sendable' closure
65 | }
66 | self.release()
/Users/admin/builder/spi-builder-workspace/Sources/MacroCore/Concurrency.swift:98:24: warning: capture of 'yield' with non-sendable type '((any Error)?, R?) -> Void' in a '@Sendable' closure
96 | do {
97 | let value = try await body(repeat each args)
98 | loop.execute { yield(nil, value) }
| |- warning: capture of 'yield' with non-sendable type '((any Error)?, R?) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
99 | }
100 | catch {
/Users/admin/builder/spi-builder-workspace/Sources/MacroCore/Concurrency.swift:98:35: warning: capture of 'value' with non-sendable type 'R' in a '@Sendable' closure
83 | */
84 | @inlinable
85 | func `task`<each A, R>(on eventLoop : EventLoop? = nil,
| `- note: consider making generic parameter 'R' conform to the 'Sendable' protocol
86 | _ args : repeat each A,
87 | body : @escaping (repeat each A) async throws -> R,
:
96 | do {
97 | let value = try await body(repeat each args)
98 | loop.execute { yield(nil, value) }
| `- warning: capture of 'value' with non-sendable type 'R' in a '@Sendable' closure
99 | }
100 | catch {
/Users/admin/builder/spi-builder-workspace/Sources/MacroCore/Concurrency.swift:101:24: warning: capture of 'yield' with non-sendable type '((any Error)?, R?) -> Void' in a '@Sendable' closure
99 | }
100 | catch {
101 | loop.execute { yield(error, nil) }
| |- warning: capture of 'yield' with non-sendable type '((any Error)?, R?) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
102 | }
103 | self.release()
/Users/admin/builder/spi-builder-workspace/Sources/MacroCore/EnvironmentValues.swift:116:14: warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'EnvironmentValues' may have shared mutable state; this is an error in the Swift 6 language mode
100 | */
101 | @frozen
102 | public struct EnvironmentValues {
| `- note: consider making struct 'EnvironmentValues' conform to the 'Sendable' protocol
103 |
104 | @usableFromInline
:
114 | public extension EnvironmentValues {
115 |
116 | static let empty = EnvironmentValues()
| |- warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'EnvironmentValues' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'empty' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
117 |
118 | @inlinable
/Users/admin/builder/spi-builder-workspace/Sources/MacroCore/Concurrency.swift:30:10: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
28 | {
29 | retain()
30 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
31 | await body(repeat each args)
| `- note: closure captures 'body' which is accessible to code in the current task
32 | self.release()
33 | }
/Users/admin/builder/spi-builder-workspace/Sources/MacroCore/Concurrency.swift:61:10: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
59 | ?? MultiThreadedEventLoopGroup.currentEventLoop
60 | ?? eventLoopGroup.next()
61 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
62 | let value = await body(repeat each args)
63 | loop.execute {
64 | yield(value)
| `- note: closure captures 'yield' which is accessible to code in the current task
65 | }
66 | self.release()
/Users/admin/builder/spi-builder-workspace/Sources/MacroCore/Concurrency.swift:95:10: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
93 | ?? MultiThreadedEventLoopGroup.currentEventLoop
94 | ?? eventLoopGroup.next()
95 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
96 | do {
97 | let value = try await body(repeat each args)
98 | loop.execute { yield(nil, value) }
| `- note: closure captures 'yield' which is accessible to code in the current task
99 | }
100 | catch {
[303/314] Compiling MacroCore Dirname.swift
/Users/admin/builder/spi-builder-workspace/Sources/MacroCore/Buffer/CollectionUtils.swift:32:21: warning: static property 'partialSuffixMatch' is not concurrency-safe because non-'Sendable' type 'StringMatchOptions' may have shared mutable state; this is an error in the Swift 6 language mode
7 | //
8 |
9 | public struct StringMatchOptions: OptionSet {
| `- note: consider making struct 'StringMatchOptions' conform to the 'Sendable' protocol
10 | public let rawValue : UInt8
11 |
:
30 | * possible prefix of the needle. In the example that is `buf`.
31 | */
32 | public static let partialSuffixMatch = StringMatchOptions(rawValue: 1 << 0)
| |- warning: static property 'partialSuffixMatch' is not concurrency-safe because non-'Sendable' type 'StringMatchOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'partialSuffixMatch' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
33 | }
34 |
/Users/admin/builder/spi-builder-workspace/Sources/MacroCore/Concurrency.swift:64:9: warning: capture of 'yield' with non-sendable type '(R) -> Void' in a '@Sendable' closure
62 | let value = await body(repeat each args)
63 | loop.execute {
64 | yield(value)
| |- warning: capture of 'yield' with non-sendable type '(R) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
65 | }
66 | self.release()
/Users/admin/builder/spi-builder-workspace/Sources/MacroCore/Concurrency.swift:64:15: warning: capture of 'value' with non-sendable type 'R' in a '@Sendable' closure
49 | */
50 | @inlinable
51 | func `task`<each A, R>(on eventLoop : EventLoop? = nil,
| `- note: consider making generic parameter 'R' conform to the 'Sendable' protocol
52 | _ args : repeat each A,
53 | body : @escaping (repeat each A) async -> R,
:
62 | let value = await body(repeat each args)
63 | loop.execute {
64 | yield(value)
| `- warning: capture of 'value' with non-sendable type 'R' in a '@Sendable' closure
65 | }
66 | self.release()
/Users/admin/builder/spi-builder-workspace/Sources/MacroCore/Concurrency.swift:98:24: warning: capture of 'yield' with non-sendable type '((any Error)?, R?) -> Void' in a '@Sendable' closure
96 | do {
97 | let value = try await body(repeat each args)
98 | loop.execute { yield(nil, value) }
| |- warning: capture of 'yield' with non-sendable type '((any Error)?, R?) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
99 | }
100 | catch {
/Users/admin/builder/spi-builder-workspace/Sources/MacroCore/Concurrency.swift:98:35: warning: capture of 'value' with non-sendable type 'R' in a '@Sendable' closure
83 | */
84 | @inlinable
85 | func `task`<each A, R>(on eventLoop : EventLoop? = nil,
| `- note: consider making generic parameter 'R' conform to the 'Sendable' protocol
86 | _ args : repeat each A,
87 | body : @escaping (repeat each A) async throws -> R,
:
96 | do {
97 | let value = try await body(repeat each args)
98 | loop.execute { yield(nil, value) }
| `- warning: capture of 'value' with non-sendable type 'R' in a '@Sendable' closure
99 | }
100 | catch {
/Users/admin/builder/spi-builder-workspace/Sources/MacroCore/Concurrency.swift:101:24: warning: capture of 'yield' with non-sendable type '((any Error)?, R?) -> Void' in a '@Sendable' closure
99 | }
100 | catch {
101 | loop.execute { yield(error, nil) }
| |- warning: capture of 'yield' with non-sendable type '((any Error)?, R?) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
102 | }
103 | self.release()
/Users/admin/builder/spi-builder-workspace/Sources/MacroCore/EnvironmentValues.swift:116:14: warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'EnvironmentValues' may have shared mutable state; this is an error in the Swift 6 language mode
100 | */
101 | @frozen
102 | public struct EnvironmentValues {
| `- note: consider making struct 'EnvironmentValues' conform to the 'Sendable' protocol
103 |
104 | @usableFromInline
:
114 | public extension EnvironmentValues {
115 |
116 | static let empty = EnvironmentValues()
| |- warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'EnvironmentValues' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'empty' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
117 |
118 | @inlinable
/Users/admin/builder/spi-builder-workspace/Sources/MacroCore/Concurrency.swift:30:10: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
28 | {
29 | retain()
30 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
31 | await body(repeat each args)
| `- note: closure captures 'body' which is accessible to code in the current task
32 | self.release()
33 | }
/Users/admin/builder/spi-builder-workspace/Sources/MacroCore/Concurrency.swift:61:10: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
59 | ?? MultiThreadedEventLoopGroup.currentEventLoop
60 | ?? eventLoopGroup.next()
61 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
62 | let value = await body(repeat each args)
63 | loop.execute {
64 | yield(value)
| `- note: closure captures 'yield' which is accessible to code in the current task
65 | }
66 | self.release()
/Users/admin/builder/spi-builder-workspace/Sources/MacroCore/Concurrency.swift:95:10: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
93 | ?? MultiThreadedEventLoopGroup.currentEventLoop
94 | ?? eventLoopGroup.next()
95 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
96 | do {
97 | let value = try await body(repeat each args)
98 | loop.execute { yield(nil, value) }
| `- note: closure captures 'yield' which is accessible to code in the current task
99 | }
100 | catch {
[304/314] Compiling MacroCore EnvironmentValues.swift
/Users/admin/builder/spi-builder-workspace/Sources/MacroCore/Buffer/CollectionUtils.swift:32:21: warning: static property 'partialSuffixMatch' is not concurrency-safe because non-'Sendable' type 'StringMatchOptions' may have shared mutable state; this is an error in the Swift 6 language mode
7 | //
8 |
9 | public struct StringMatchOptions: OptionSet {
| `- note: consider making struct 'StringMatchOptions' conform to the 'Sendable' protocol
10 | public let rawValue : UInt8
11 |
:
30 | * possible prefix of the needle. In the example that is `buf`.
31 | */
32 | public static let partialSuffixMatch = StringMatchOptions(rawValue: 1 << 0)
| |- warning: static property 'partialSuffixMatch' is not concurrency-safe because non-'Sendable' type 'StringMatchOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'partialSuffixMatch' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
33 | }
34 |
/Users/admin/builder/spi-builder-workspace/Sources/MacroCore/Concurrency.swift:64:9: warning: capture of 'yield' with non-sendable type '(R) -> Void' in a '@Sendable' closure
62 | let value = await body(repeat each args)
63 | loop.execute {
64 | yield(value)
| |- warning: capture of 'yield' with non-sendable type '(R) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
65 | }
66 | self.release()
/Users/admin/builder/spi-builder-workspace/Sources/MacroCore/Concurrency.swift:64:15: warning: capture of 'value' with non-sendable type 'R' in a '@Sendable' closure
49 | */
50 | @inlinable
51 | func `task`<each A, R>(on eventLoop : EventLoop? = nil,
| `- note: consider making generic parameter 'R' conform to the 'Sendable' protocol
52 | _ args : repeat each A,
53 | body : @escaping (repeat each A) async -> R,
:
62 | let value = await body(repeat each args)
63 | loop.execute {
64 | yield(value)
| `- warning: capture of 'value' with non-sendable type 'R' in a '@Sendable' closure
65 | }
66 | self.release()
/Users/admin/builder/spi-builder-workspace/Sources/MacroCore/Concurrency.swift:98:24: warning: capture of 'yield' with non-sendable type '((any Error)?, R?) -> Void' in a '@Sendable' closure
96 | do {
97 | let value = try await body(repeat each args)
98 | loop.execute { yield(nil, value) }
| |- warning: capture of 'yield' with non-sendable type '((any Error)?, R?) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
99 | }
100 | catch {
/Users/admin/builder/spi-builder-workspace/Sources/MacroCore/Concurrency.swift:98:35: warning: capture of 'value' with non-sendable type 'R' in a '@Sendable' closure
83 | */
84 | @inlinable
85 | func `task`<each A, R>(on eventLoop : EventLoop? = nil,
| `- note: consider making generic parameter 'R' conform to the 'Sendable' protocol
86 | _ args : repeat each A,
87 | body : @escaping (repeat each A) async throws -> R,
:
96 | do {
97 | let value = try await body(repeat each args)
98 | loop.execute { yield(nil, value) }
| `- warning: capture of 'value' with non-sendable type 'R' in a '@Sendable' closure
99 | }
100 | catch {
/Users/admin/builder/spi-builder-workspace/Sources/MacroCore/Concurrency.swift:101:24: warning: capture of 'yield' with non-sendable type '((any Error)?, R?) -> Void' in a '@Sendable' closure
99 | }
100 | catch {
101 | loop.execute { yield(error, nil) }
| |- warning: capture of 'yield' with non-sendable type '((any Error)?, R?) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
102 | }
103 | self.release()
/Users/admin/builder/spi-builder-workspace/Sources/MacroCore/EnvironmentValues.swift:116:14: warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'EnvironmentValues' may have shared mutable state; this is an error in the Swift 6 language mode
100 | */
101 | @frozen
102 | public struct EnvironmentValues {
| `- note: consider making struct 'EnvironmentValues' conform to the 'Sendable' protocol
103 |
104 | @usableFromInline
:
114 | public extension EnvironmentValues {
115 |
116 | static let empty = EnvironmentValues()
| |- warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'EnvironmentValues' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'empty' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
117 |
118 | @inlinable
/Users/admin/builder/spi-builder-workspace/Sources/MacroCore/Concurrency.swift:30:10: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
28 | {
29 | retain()
30 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
31 | await body(repeat each args)
| `- note: closure captures 'body' which is accessible to code in the current task
32 | self.release()
33 | }
/Users/admin/builder/spi-builder-workspace/Sources/MacroCore/Concurrency.swift:61:10: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
59 | ?? MultiThreadedEventLoopGroup.currentEventLoop
60 | ?? eventLoopGroup.next()
61 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
62 | let value = await body(repeat each args)
63 | loop.execute {
64 | yield(value)
| `- note: closure captures 'yield' which is accessible to code in the current task
65 | }
66 | self.release()
/Users/admin/builder/spi-builder-workspace/Sources/MacroCore/Concurrency.swift:95:10: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
93 | ?? MultiThreadedEventLoopGroup.currentEventLoop
94 | ?? eventLoopGroup.next()
95 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
96 | do {
97 | let value = try await body(repeat each args)
98 | loop.execute { yield(nil, value) }
| `- note: closure captures 'yield' which is accessible to code in the current task
99 | }
100 | catch {
[305/314] Compiling MacroCore Buffer.swift
[306/314] Compiling MacroCore BufferData.swift
[310/314] Compiling MacroCore WritableByteStreamType.swift
[311/314] Compiling MacroCore WritableStreamBase.swift
[312/314] Compiling MacroCore WritableStreamType.swift
[313/314] Compiling MacroCore StringEncoding.swift
[314/314] Emitting module MacroCore
/Users/admin/builder/spi-builder-workspace/Sources/MacroCore/Buffer/CollectionUtils.swift:32:21: warning: static property 'partialSuffixMatch' is not concurrency-safe because non-'Sendable' type 'StringMatchOptions' may have shared mutable state; this is an error in the Swift 6 language mode
7 | //
8 |
9 | public struct StringMatchOptions: OptionSet {
| `- note: consider making struct 'StringMatchOptions' conform to the 'Sendable' protocol
10 | public let rawValue : UInt8
11 |
:
30 | * possible prefix of the needle. In the example that is `buf`.
31 | */
32 | public static let partialSuffixMatch = StringMatchOptions(rawValue: 1 << 0)
| |- warning: static property 'partialSuffixMatch' is not concurrency-safe because non-'Sendable' type 'StringMatchOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'partialSuffixMatch' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
33 | }
34 |
/Users/admin/builder/spi-builder-workspace/Sources/MacroCore/Concurrency.swift:64:9: warning: capture of 'yield' with non-sendable type '(R) -> Void' in a '@Sendable' closure
62 | let value = await body(repeat each args)
63 | loop.execute {
64 | yield(value)
| |- warning: capture of 'yield' with non-sendable type '(R) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
65 | }
66 | self.release()
/Users/admin/builder/spi-builder-workspace/Sources/MacroCore/Concurrency.swift:64:15: warning: capture of 'value' with non-sendable type 'R' in a '@Sendable' closure
49 | */
50 | @inlinable
51 | func `task`<each A, R>(on eventLoop : EventLoop? = nil,
| `- note: consider making generic parameter 'R' conform to the 'Sendable' protocol
52 | _ args : repeat each A,
53 | body : @escaping (repeat each A) async -> R,
:
62 | let value = await body(repeat each args)
63 | loop.execute {
64 | yield(value)
| `- warning: capture of 'value' with non-sendable type 'R' in a '@Sendable' closure
65 | }
66 | self.release()
/Users/admin/builder/spi-builder-workspace/Sources/MacroCore/Concurrency.swift:98:24: warning: capture of 'yield' with non-sendable type '((any Error)?, R?) -> Void' in a '@Sendable' closure
96 | do {
97 | let value = try await body(repeat each args)
98 | loop.execute { yield(nil, value) }
| |- warning: capture of 'yield' with non-sendable type '((any Error)?, R?) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
99 | }
100 | catch {
/Users/admin/builder/spi-builder-workspace/Sources/MacroCore/Concurrency.swift:98:35: warning: capture of 'value' with non-sendable type 'R' in a '@Sendable' closure
83 | */
84 | @inlinable
85 | func `task`<each A, R>(on eventLoop : EventLoop? = nil,
| `- note: consider making generic parameter 'R' conform to the 'Sendable' protocol
86 | _ args : repeat each A,
87 | body : @escaping (repeat each A) async throws -> R,
:
96 | do {
97 | let value = try await body(repeat each args)
98 | loop.execute { yield(nil, value) }
| `- warning: capture of 'value' with non-sendable type 'R' in a '@Sendable' closure
99 | }
100 | catch {
/Users/admin/builder/spi-builder-workspace/Sources/MacroCore/Concurrency.swift:101:24: warning: capture of 'yield' with non-sendable type '((any Error)?, R?) -> Void' in a '@Sendable' closure
99 | }
100 | catch {
101 | loop.execute { yield(error, nil) }
| |- warning: capture of 'yield' with non-sendable type '((any Error)?, R?) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
102 | }
103 | self.release()
/Users/admin/builder/spi-builder-workspace/Sources/MacroCore/EnvironmentValues.swift:116:14: warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'EnvironmentValues' may have shared mutable state; this is an error in the Swift 6 language mode
100 | */
101 | @frozen
102 | public struct EnvironmentValues {
| `- note: consider making struct 'EnvironmentValues' conform to the 'Sendable' protocol
103 |
104 | @usableFromInline
:
114 | public extension EnvironmentValues {
115 |
116 | static let empty = EnvironmentValues()
| |- warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'EnvironmentValues' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'empty' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
117 |
118 | @inlinable
/Users/admin/builder/spi-builder-workspace/Sources/MacroCore/Events/EventListenerSet.swift:181:19: warning: capture of 'callback' with non-sendable type '(T) -> Void' in a '@Sendable' closure
179 | let value = value
180 | let callback = self.callback
181 | queue.async { callback(value) }
| |- warning: capture of 'callback' with non-sendable type '(T) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
182 | }
183 | }
/Users/admin/builder/spi-builder-workspace/Sources/MacroCore/Events/EventListenerSet.swift:181:28: warning: capture of 'value' with non-sendable type 'T' in a '@Sendable' closure
166 |
167 | @usableFromInline
168 | internal final class _QueueBoundListener<T>: Listener<T> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
169 | @usableFromInline let queue : DispatchQueue
170 | @usableFromInline let callback : EventHandler
:
179 | let value = value
180 | let callback = self.callback
181 | queue.async { callback(value) }
| `- warning: capture of 'value' with non-sendable type 'T' in a '@Sendable' closure
182 | }
183 | }
/Users/admin/builder/spi-builder-workspace/Sources/MacroCore/Events/EventListenerSet.swift:206:27: warning: capture of 'callback' with non-sendable type '(T) -> Void' in a '@Sendable' closure
204 | let value = value
205 | let callback = self.callback
206 | eventLoop.execute { callback(value) }
| |- warning: capture of 'callback' with non-sendable type '(T) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
207 | }
208 | }
/Users/admin/builder/spi-builder-workspace/Sources/MacroCore/Events/EventListenerSet.swift:206:36: warning: capture of 'value' with non-sendable type 'T' in a '@Sendable' closure
186 |
187 | @usableFromInline
188 | internal final class _EventLoopBoundListener<T>: Listener<T> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
189 | @usableFromInline let eventLoop : EventLoop
190 | @usableFromInline let callback : EventHandler
:
204 | let value = value
205 | let callback = self.callback
206 | eventLoop.execute { callback(value) }
| `- warning: capture of 'value' with non-sendable type 'T' in a '@Sendable' closure
207 | }
208 | }
/Users/admin/builder/spi-builder-workspace/Sources/MacroCore/MacroCore.swift:237:17: warning: var 'wasInExit' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
235 | }
236 |
237 | fileprivate var wasInExit = false
| |- warning: var 'wasInExit' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'wasInExit' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'wasInExit' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
238 |
239 | public func disableAtExitHandler() {
/Users/admin/builder/spi-builder-workspace/Sources/MacroCore/NextTick.swift:27:7: warning: capture of 'execute' with non-sendable type '() -> Void' in a '@Sendable' closure
25 | ?? eventLoopGroup.next()
26 | loop.execute {
27 | execute()
| |- warning: capture of 'execute' with non-sendable type '() -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
28 | self.release()
29 | }
/Users/admin/builder/spi-builder-workspace/Sources/MacroCore/NextTick.swift:49:7: warning: capture of 'execute' with non-sendable type '() -> Void' in a '@Sendable' closure
47 |
48 | loop.scheduleTask(in: .milliseconds(Int64(milliseconds))) {
49 | execute()
| |- warning: capture of 'execute' with non-sendable type '() -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
50 | self.release()
51 | }
/Users/admin/builder/spi-builder-workspace/Sources/MacroCore/Process/Warnings.swift:13:22: warning: static property '_warningListeners' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
11 | public extension process { // Warnings
12 |
13 | private static var _warningListeners = EventListenerSet<Warning>()
| |- warning: static property '_warningListeners' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '_warningListeners' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property '_warningListeners' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 | private static let _warningListenersLock = NIOConcurrencyHelpers.NIOLock()
15 |
/Users/admin/builder/spi-builder-workspace/Sources/MacroCore/Streams/Pipe.swift:155:14: warning: stored property 'original' of 'Sendable'-conforming generic struct 'PipeSourceError' has non-sendable type 'Original'; this is an error in the Swift 6 language mode
148 | }
149 |
150 | public struct PipeSourceError<Original, Last>: PipeSourceErrorType
| `- note: consider making generic parameter 'Original' conform to the 'Sendable' protocol
151 | where Original : ReadableStreamType,
152 | Last : ReadableStreamType
153 | {
154 |
155 | public let original : Original
| `- warning: stored property 'original' of 'Sendable'-conforming generic struct 'PipeSourceError' has non-sendable type 'Original'; this is an error in the Swift 6 language mode
156 | public let last : Last
157 | public let error : Swift.Error
/Users/admin/builder/spi-builder-workspace/Sources/MacroCore/Streams/Pipe.swift:156:14: warning: stored property 'last' of 'Sendable'-conforming generic struct 'PipeSourceError' has non-sendable type 'Last'; this is an error in the Swift 6 language mode
148 | }
149 |
150 | public struct PipeSourceError<Original, Last>: PipeSourceErrorType
| `- note: consider making generic parameter 'Last' conform to the 'Sendable' protocol
151 | where Original : ReadableStreamType,
152 | Last : ReadableStreamType
:
154 |
155 | public let original : Original
156 | public let last : Last
| `- warning: stored property 'last' of 'Sendable'-conforming generic struct 'PipeSourceError' has non-sendable type 'Last'; this is an error in the Swift 6 language mode
157 | public let error : Swift.Error
158 |
/Users/admin/builder/spi-builder-workspace/Sources/MacroCore/Concurrency.swift:30:10: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
28 | {
29 | retain()
30 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
31 | await body(repeat each args)
| `- note: closure captures 'body' which is accessible to code in the current task
32 | self.release()
33 | }
/Users/admin/builder/spi-builder-workspace/Sources/MacroCore/Concurrency.swift:61:10: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
59 | ?? MultiThreadedEventLoopGroup.currentEventLoop
60 | ?? eventLoopGroup.next()
61 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
62 | let value = await body(repeat each args)
63 | loop.execute {
64 | yield(value)
| `- note: closure captures 'yield' which is accessible to code in the current task
65 | }
66 | self.release()
/Users/admin/builder/spi-builder-workspace/Sources/MacroCore/Concurrency.swift:95:10: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
93 | ?? MultiThreadedEventLoopGroup.currentEventLoop
94 | ?? eventLoopGroup.next()
95 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
96 | do {
97 | let value = try await body(repeat each args)
98 | loop.execute { yield(nil, value) }
| `- note: closure captures 'yield' which is accessible to code in the current task
99 | }
100 | catch {
[315/342] Compiling http OutgoingMessage.swift
[316/342] Compiling http HTTPHeadersHolder.swift
[317/343] Compiling fs File.swift
/Users/admin/builder/spi-builder-workspace/Sources/http/Globals.swift:17:14: warning: static property 'METHODS' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
15 | * `HTTPMethod` also supports a custom case.
16 | */
17 | static var METHODS : [ String ] = [
| |- warning: static property 'METHODS' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'METHODS' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'METHODS' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 | "GET",
19 | "PUT",
/Users/admin/builder/spi-builder-workspace/Sources/http/Globals.swift:58:14: warning: static property 'STATUS_CASES' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
56 | * `HTTPResponseStatus` also supports a custom case.
57 | */
58 | static var STATUS_CASES : [ HTTPResponseStatus ] = [
| |- warning: static property 'STATUS_CASES' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'STATUS_CASES' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'STATUS_CASES' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
59 | .`continue`,
60 | .switchingProtocols,
/Users/admin/builder/spi-builder-workspace/Sources/http/Globals.swift:124:14: warning: static property 'STATUS_CODES' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
122 | * A non-exhaustive collection of known HTTP response status codes.
123 | */
124 | static var STATUS_CODES = [ Int : String ](
| |- warning: static property 'STATUS_CODES' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'STATUS_CODES' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'STATUS_CODES' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
125 | uniqueKeysWithValues: STATUS_CASES.map { status in
126 | ( Int(status.code), status.reasonPhrase )
[318/343] Compiling http IncomingMessage.swift
/Users/admin/builder/spi-builder-workspace/Sources/http/Globals.swift:17:14: warning: static property 'METHODS' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
15 | * `HTTPMethod` also supports a custom case.
16 | */
17 | static var METHODS : [ String ] = [
| |- warning: static property 'METHODS' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'METHODS' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'METHODS' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 | "GET",
19 | "PUT",
/Users/admin/builder/spi-builder-workspace/Sources/http/Globals.swift:58:14: warning: static property 'STATUS_CASES' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
56 | * `HTTPResponseStatus` also supports a custom case.
57 | */
58 | static var STATUS_CASES : [ HTTPResponseStatus ] = [
| |- warning: static property 'STATUS_CASES' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'STATUS_CASES' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'STATUS_CASES' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
59 | .`continue`,
60 | .switchingProtocols,
/Users/admin/builder/spi-builder-workspace/Sources/http/Globals.swift:124:14: warning: static property 'STATUS_CODES' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
122 | * A non-exhaustive collection of known HTTP response status codes.
123 | */
124 | static var STATUS_CODES = [ Int : String ](
| |- warning: static property 'STATUS_CODES' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'STATUS_CODES' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'STATUS_CODES' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
125 | uniqueKeysWithValues: STATUS_CASES.map { status in
126 | ( Int(status.code), status.reasonPhrase )
[319/343] Compiling fs Promise.swift
/Users/admin/builder/spi-builder-workspace/Sources/fs/Streams/FileReadStream.swift:28:21: warning: static property 'defaultReadableHighWaterMark' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
26 | open class FileReadStream: ReadableByteStream, FileStream {
27 |
28 | public static var defaultReadableHighWaterMark = 64 * 1024
| |- warning: static property 'defaultReadableHighWaterMark' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultReadableHighWaterMark' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'defaultReadableHighWaterMark' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
29 |
30 | public let eventLoop : EventLoop
/Users/admin/builder/spi-builder-workspace/Sources/fs/Streams/FileReadStream.swift:110:15: warning: capture of 'self' with non-sendable type 'FileReadStream' in a '@Sendable' closure
24 | }
25 |
26 | open class FileReadStream: ReadableByteStream, FileStream {
| `- note: class 'FileReadStream' does not conform to the 'Sendable' protocol
27 |
28 | public static var defaultReadableHighWaterMark = 64 * 1024
:
108 | case .success(let buffer):
109 | if buffer.readableBytes == 0 {
110 | self.handleEOF()
| `- warning: capture of 'self' with non-sendable type 'FileReadStream' in a '@Sendable' closure
111 | }
112 | else {
/Users/admin/builder/spi-builder-workspace/Sources/fs/Streams/FileReadStream.swift:126:25: warning: converting non-sendable function value to '@Sendable (Result<NIOFileHandle, any Error>) -> Void' may introduce data races
124 | assert(pending)
125 | fileIO.openFile(path: path, mode: .read, eventLoop: eventLoop)
126 | .whenComplete(_handleOpenResult)
| `- warning: converting non-sendable function value to '@Sendable (Result<NIOFileHandle, any Error>) -> Void' may introduce data races
127 | }
128 | func _handleOpenResult(_ result: Result<NIOFileHandle, Swift.Error>) {
/Users/admin/builder/spi-builder-workspace/Sources/fs/Streams/FileReadStream.swift:125:12: warning: 'openFile(path:mode:flags:eventLoop:)' is deprecated: Avoid using NonBlockingFileIO. The type is difficult to hold correctly, use NIOFileSystem as a replacement API.
123 | assert(fileHandle == nil)
124 | assert(pending)
125 | fileIO.openFile(path: path, mode: .read, eventLoop: eventLoop)
| `- warning: 'openFile(path:mode:flags:eventLoop:)' is deprecated: Avoid using NonBlockingFileIO. The type is difficult to hold correctly, use NIOFileSystem as a replacement API.
126 | .whenComplete(_handleOpenResult)
127 | }
[320/343] Compiling fs FileReadStream.swift
/Users/admin/builder/spi-builder-workspace/Sources/fs/Streams/FileReadStream.swift:28:21: warning: static property 'defaultReadableHighWaterMark' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
26 | open class FileReadStream: ReadableByteStream, FileStream {
27 |
28 | public static var defaultReadableHighWaterMark = 64 * 1024
| |- warning: static property 'defaultReadableHighWaterMark' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultReadableHighWaterMark' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'defaultReadableHighWaterMark' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
29 |
30 | public let eventLoop : EventLoop
/Users/admin/builder/spi-builder-workspace/Sources/fs/Streams/FileReadStream.swift:110:15: warning: capture of 'self' with non-sendable type 'FileReadStream' in a '@Sendable' closure
24 | }
25 |
26 | open class FileReadStream: ReadableByteStream, FileStream {
| `- note: class 'FileReadStream' does not conform to the 'Sendable' protocol
27 |
28 | public static var defaultReadableHighWaterMark = 64 * 1024
:
108 | case .success(let buffer):
109 | if buffer.readableBytes == 0 {
110 | self.handleEOF()
| `- warning: capture of 'self' with non-sendable type 'FileReadStream' in a '@Sendable' closure
111 | }
112 | else {
/Users/admin/builder/spi-builder-workspace/Sources/fs/Streams/FileReadStream.swift:126:25: warning: converting non-sendable function value to '@Sendable (Result<NIOFileHandle, any Error>) -> Void' may introduce data races
124 | assert(pending)
125 | fileIO.openFile(path: path, mode: .read, eventLoop: eventLoop)
126 | .whenComplete(_handleOpenResult)
| `- warning: converting non-sendable function value to '@Sendable (Result<NIOFileHandle, any Error>) -> Void' may introduce data races
127 | }
128 | func _handleOpenResult(_ result: Result<NIOFileHandle, Swift.Error>) {
/Users/admin/builder/spi-builder-workspace/Sources/fs/Streams/FileReadStream.swift:125:12: warning: 'openFile(path:mode:flags:eventLoop:)' is deprecated: Avoid using NonBlockingFileIO. The type is difficult to hold correctly, use NIOFileSystem as a replacement API.
123 | assert(fileHandle == nil)
124 | assert(pending)
125 | fileIO.openFile(path: path, mode: .read, eventLoop: eventLoop)
| `- warning: 'openFile(path:mode:flags:eventLoop:)' is deprecated: Avoid using NonBlockingFileIO. The type is difficult to hold correctly, use NIOFileSystem as a replacement API.
126 | .whenComplete(_handleOpenResult)
127 | }
[321/343] Compiling fs FileStream.swift
[322/344] Compiling fs AsyncWrapper.swift
/Users/admin/builder/spi-builder-workspace/Sources/fs/Utils/AsyncWrapper.swift:39:15: warning: capture of 'f' with non-sendable type '(ArgT) throws -> Void' in a '@Sendable' closure
37 | if case shouldRun = NIOThreadPool.WorkItemState.active {
38 | do {
39 | try f(arg)
| |- warning: capture of 'f' with non-sendable type '(ArgT) throws -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
40 | returnError = nil
41 | }
/Users/admin/builder/spi-builder-workspace/Sources/fs/Utils/AsyncWrapper.swift:39:17: warning: capture of 'arg' with non-sendable type 'ArgT' in a '@Sendable' closure
25 |
26 | @inlinable static
27 | func _evalAsync<ArgT>(on eventLoop: EventLoop? = nil,
| `- note: consider making generic parameter 'ArgT' conform to the 'Sendable' protocol
28 | _ f : @escaping ( ArgT ) throws -> Void,
29 | _ arg : ArgT,
:
37 | if case shouldRun = NIOThreadPool.WorkItemState.active {
38 | do {
39 | try f(arg)
| `- warning: capture of 'arg' with non-sendable type 'ArgT' in a '@Sendable' closure
40 | returnError = nil
41 | }
/Users/admin/builder/spi-builder-workspace/Sources/fs/Utils/AsyncWrapper.swift:51:9: warning: capture of 'yield' with non-sendable type '((any Error)?) -> Void' in a '@Sendable' closure
49 |
50 | loop.execute {
51 | yield(returnError)
| |- warning: capture of 'yield' with non-sendable type '((any Error)?) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
52 | module.release()
53 | }
/Users/admin/builder/spi-builder-workspace/Sources/fs/Utils/AsyncWrapper.swift:51:9: warning: capture of 'yield' with non-sendable type '((any Error)?) -> Void' in a '@Sendable' closure
49 |
50 | loop.execute {
51 | yield(returnError)
| |- warning: capture of 'yield' with non-sendable type '((any Error)?) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
52 | module.release()
53 | }
/Users/admin/builder/spi-builder-workspace/Sources/fs/Utils/AsyncWrapper.swift:71:24: warning: capture of 'f' with non-sendable type '(ArgT) throws -> RT' in a '@Sendable' closure
69 | if case shouldRun = NIOThreadPool.WorkItemState.active {
70 | do {
71 | result = try f(arg)
| |- warning: capture of 'f' with non-sendable type '(ArgT) throws -> RT' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
72 | returnError = nil
73 | }
/Users/admin/builder/spi-builder-workspace/Sources/fs/Utils/AsyncWrapper.swift:71:26: warning: capture of 'arg' with non-sendable type 'ArgT' in a '@Sendable' closure
56 |
57 | @inlinable static
58 | func _evalAsync<ArgT, RT>(on eventLoop: EventLoop? = nil,
| `- note: consider making generic parameter 'ArgT' conform to the 'Sendable' protocol
59 | _ f : @escaping ( ArgT ) throws -> RT,
60 | _ arg : ArgT,
:
69 | if case shouldRun = NIOThreadPool.WorkItemState.active {
70 | do {
71 | result = try f(arg)
| `- warning: capture of 'arg' with non-sendable type 'ArgT' in a '@Sendable' closure
72 | returnError = nil
73 | }
/Users/admin/builder/spi-builder-workspace/Sources/fs/Utils/AsyncWrapper.swift:85:9: warning: capture of 'yield' with non-sendable type '((any Error)?, RT?) -> Void' in a '@Sendable' closure
83 |
84 | loop.execute {
85 | yield(returnError, result)
| |- warning: capture of 'yield' with non-sendable type '((any Error)?, RT?) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
86 | module.release()
87 | }
/Users/admin/builder/spi-builder-workspace/Sources/fs/Utils/AsyncWrapper.swift:85:9: warning: capture of 'yield' with non-sendable type '((any Error)?, RT?) -> Void' in a '@Sendable' closure
83 |
84 | loop.execute {
85 | yield(returnError, result)
| |- warning: capture of 'yield' with non-sendable type '((any Error)?, RT?) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
86 | module.release()
87 | }
/Users/admin/builder/spi-builder-workspace/Sources/fs/Utils/AsyncWrapper.swift:85:28: warning: capture of 'result' with non-sendable type 'RT?' in a '@Sendable' closure
56 |
57 | @inlinable static
58 | func _evalAsync<ArgT, RT>(on eventLoop: EventLoop? = nil,
| `- note: consider making generic parameter 'RT' conform to the 'Sendable' protocol
59 | _ f : @escaping ( ArgT ) throws -> RT,
60 | _ arg : ArgT,
:
83 |
84 | loop.execute {
85 | yield(returnError, result)
| `- warning: capture of 'result' with non-sendable type 'RT?' in a '@Sendable' closure
86 | module.release()
87 | }
[323/344] Compiling fs StatStruct.swift
[324/344] Compiling fs Path.swift
[325/344] Compiling fs PosixWrappers.swift
[326/344] Compiling fs FileWriteStream.swift
/Users/admin/builder/spi-builder-workspace/Sources/fs/Streams/FileWriteStream.swift:33:17: warning: var 'retainedStreams' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
31 |
32 | fileprivate let retainLock = NIOLock()
33 | fileprivate var retainedStreams = [ ObjectIdentifier : FileWriteStream ]()
| |- warning: var 'retainedStreams' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'retainedStreams' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'retainedStreams' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
34 |
35 | open class FileWriteStream: WritableByteStream, FileStream,
/Users/admin/builder/spi-builder-workspace/Sources/fs/Streams/FileWriteStream.swift:38:21: warning: static property 'defaultWritableHighWaterMark' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
36 | WritableStreamType, WritableByteStreamType
37 | {
38 | public static var defaultWritableHighWaterMark = 64 * 1024
| |- warning: static property 'defaultWritableHighWaterMark' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultWritableHighWaterMark' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'defaultWritableHighWaterMark' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
39 |
40 | enum StreamState: Equatable {
/Users/admin/builder/spi-builder-workspace/Sources/fs/Streams/FileWriteStream.swift:176:11: warning: capture of 'self' with non-sendable type 'FileWriteStream' in a '@Sendable' closure
33 | fileprivate var retainedStreams = [ ObjectIdentifier : FileWriteStream ]()
34 |
35 | open class FileWriteStream: WritableByteStream, FileStream,
| `- note: class 'FileWriteStream' does not conform to the 'Sendable' protocol
36 | WritableStreamType, WritableByteStreamType
37 | {
:
174 | eventLoop: eventLoop)
175 | .whenComplete { result in
176 | self.pendingWrites -= count
| `- warning: capture of 'self' with non-sendable type 'FileWriteStream' in a '@Sendable' closure
177 | assert(self.pendingWrites >= 0)
178 |
/Users/admin/builder/spi-builder-workspace/Sources/fs/Streams/FileWriteStream.swift:183:11: warning: capture of 'whenDone' with non-sendable type '() -> Void' in a '@Sendable' closure
181 | }
182 |
183 | whenDone()
| |- warning: capture of 'whenDone' with non-sendable type '() -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
184 |
185 | if self.pendingWrites < 1 {
/Users/admin/builder/spi-builder-workspace/Sources/fs/Streams/FileWriteStream.swift:177:18: warning: implicit capture of 'self' requires that 'FileWriteStream' conforms to 'Sendable'; this is an error in the Swift 6 language mode
33 | fileprivate var retainedStreams = [ ObjectIdentifier : FileWriteStream ]()
34 |
35 | open class FileWriteStream: WritableByteStream, FileStream,
| `- note: class 'FileWriteStream' does not conform to the 'Sendable' protocol
36 | WritableStreamType, WritableByteStreamType
37 | {
:
175 | .whenComplete { result in
176 | self.pendingWrites -= count
177 | assert(self.pendingWrites >= 0)
| `- warning: implicit capture of 'self' requires that 'FileWriteStream' conforms to 'Sendable'; this is an error in the Swift 6 language mode
178 |
179 | if case .failure(let error) = result {
/Users/admin/builder/spi-builder-workspace/Sources/fs/Streams/FileWriteStream.swift:237:25: warning: converting non-sendable function value to '@Sendable (Result<NIOFileHandle, any Error>) -> Void' may introduce data races
235 | fileIO.openFile(path: path, mode: .write, flags: flags,
236 | eventLoop: eventLoop)
237 | .whenComplete(_handleOpenResult)
| `- warning: converting non-sendable function value to '@Sendable (Result<NIOFileHandle, any Error>) -> Void' may introduce data races
238 | }
239 | func _handleOpenResult(_ result: Result<NIOFileHandle, Swift.Error>) {
/Users/admin/builder/spi-builder-workspace/Sources/fs/Streams/FileWriteStream.swift:235:12: warning: 'openFile(path:mode:flags:eventLoop:)' is deprecated: Avoid using NonBlockingFileIO. The type is difficult to hold correctly, use NIOFileSystem as a replacement API.
233 | retainIfNecessary()
234 |
235 | fileIO.openFile(path: path, mode: .write, flags: flags,
| `- warning: 'openFile(path:mode:flags:eventLoop:)' is deprecated: Avoid using NonBlockingFileIO. The type is difficult to hold correctly, use NIOFileSystem as a replacement API.
236 | eventLoop: eventLoop)
237 | .whenComplete(_handleOpenResult)
[327/344] Compiling fs ResultExtensions.swift
/Users/admin/builder/spi-builder-workspace/Sources/http/Agent/Foundation/URLSessionClientRequest.swift:94:15: warning: capture of 'self' with non-sendable type 'URLSessionClientRequest' in a '@Sendable' closure
31 | #endif
32 |
33 | public final class URLSessionClientRequest: ClientRequest {
| `- note: class 'URLSessionClientRequest' does not conform to the 'Sendable' protocol
34 |
35 | let agent : URLSessionAgent
:
92 | task = agent.options.session.dataTask(with: request) {
93 | data, urlResponse, error in
94 | defer { self.task = nil }
| `- warning: capture of 'self' with non-sendable type 'URLSessionClientRequest' in a '@Sendable' closure
95 |
96 | let response = self.setupResponse(with: urlResponse as? HTTPURLResponse)
/Users/admin/builder/spi-builder-workspace/Sources/http/Agent/Foundation/URLSessionClientRequest.swift:94:15: warning: capture of 'self' with non-sendable type 'URLSessionClientRequest' in an isolated local function; this is an error in the Swift 6 language mode
31 | #endif
32 |
33 | public final class URLSessionClientRequest: ClientRequest {
| `- note: class 'URLSessionClientRequest' does not conform to the 'Sendable' protocol
34 |
35 | let agent : URLSessionAgent
:
92 | task = agent.options.session.dataTask(with: request) {
93 | data, urlResponse, error in
94 | defer { self.task = nil }
| `- warning: capture of 'self' with non-sendable type 'URLSessionClientRequest' in an isolated local function; this is an error in the Swift 6 language mode
95 |
96 | let response = self.setupResponse(with: urlResponse as? HTTPURLResponse)
/Users/admin/builder/spi-builder-workspace/Sources/http/Agent/Foundation/URLSessionClientRequest.swift:100:9: warning: capture of 'self' with non-sendable type 'URLSessionClientRequest' in a '@Sendable' closure
31 | #endif
32 |
33 | public final class URLSessionClientRequest: ClientRequest {
| `- note: class 'URLSessionClientRequest' does not conform to the 'Sendable' protocol
34 |
35 | let agent : URLSessionAgent
:
98 |
99 | eventLoop.execute {
100 | self.responseListeners.emit(response)
| `- warning: capture of 'self' with non-sendable type 'URLSessionClientRequest' in a '@Sendable' closure
101 | }
102 |
/Users/admin/builder/spi-builder-workspace/Sources/http/Agent/Foundation/URLSessionClientRequest.swift:100:37: warning: capture of 'response' with non-sendable type 'IncomingMessage' in a '@Sendable' closure
98 |
99 | eventLoop.execute {
100 | self.responseListeners.emit(response)
| `- warning: capture of 'response' with non-sendable type 'IncomingMessage' in a '@Sendable' closure
101 | }
102 |
/Users/admin/builder/spi-builder-workspace/Sources/http/IncomingMessage.swift:45:12: note: class 'IncomingMessage' does not conform to the 'Sendable' protocol
43 | * * IncomingMessage
44 | */
45 | open class IncomingMessage: ReadableByteStream, CustomStringConvertible {
| `- note: class 'IncomingMessage' does not conform to the 'Sendable' protocol
46 |
47 | public enum IncomingType {
/Users/admin/builder/spi-builder-workspace/Sources/http/Agent/Foundation/URLSessionClientRequest.swift:106:11: warning: capture of 'response' with non-sendable type 'IncomingMessage' in a '@Sendable' closure
104 | eventLoop.execute {
105 | if let data = data, !data.isEmpty {
106 | response.push(Buffer(data))
| `- warning: capture of 'response' with non-sendable type 'IncomingMessage' in a '@Sendable' closure
107 | }
108 | response.push(nil) // EOF
/Users/admin/builder/spi-builder-workspace/Sources/http/IncomingMessage.swift:45:12: note: class 'IncomingMessage' does not conform to the 'Sendable' protocol
43 | * * IncomingMessage
44 | */
45 | open class IncomingMessage: ReadableByteStream, CustomStringConvertible {
| `- note: class 'IncomingMessage' does not conform to the 'Sendable' protocol
46 |
47 | public enum IncomingType {
/Users/admin/builder/spi-builder-workspace/Sources/http/Agent/Foundation/URLSessionClientRequest.swift:110:9: warning: capture of 'self' with non-sendable type 'URLSessionClientRequest' in a '@Sendable' closure
31 | #endif
32 |
33 | public final class URLSessionClientRequest: ClientRequest {
| `- note: class 'URLSessionClientRequest' does not conform to the 'Sendable' protocol
34 |
35 | let agent : URLSessionAgent
:
108 | response.push(nil) // EOF
109 |
110 | self.selfRef = nil
| `- warning: capture of 'self' with non-sendable type 'URLSessionClientRequest' in a '@Sendable' closure
111 | if self.didRetain { self.didRetain = false; self.core.release() }
112 | }
/Users/admin/builder/spi-builder-workspace/Sources/http/Agent/Foundation/URLSessionClientRequest.swift:94:15: warning: capture of 'self' with non-sendable type 'URLSessionClientRequest' in a '@Sendable' closure
31 | #endif
32 |
33 | public final class URLSessionClientRequest: ClientRequest {
| `- note: class 'URLSessionClientRequest' does not conform to the 'Sendable' protocol
34 |
35 | let agent : URLSessionAgent
:
92 | task = agent.options.session.dataTask(with: request) {
93 | data, urlResponse, error in
94 | defer { self.task = nil }
| `- warning: capture of 'self' with non-sendable type 'URLSessionClientRequest' in a '@Sendable' closure
95 |
96 | let response = self.setupResponse(with: urlResponse as? HTTPURLResponse)
/Users/admin/builder/spi-builder-workspace/Sources/http/Agent/Foundation/URLSessionClientRequest.swift:94:15: warning: capture of 'self' with non-sendable type 'URLSessionClientRequest' in an isolated local function; this is an error in the Swift 6 language mode
31 | #endif
32 |
33 | public final class URLSessionClientRequest: ClientRequest {
| `- note: class 'URLSessionClientRequest' does not conform to the 'Sendable' protocol
34 |
35 | let agent : URLSessionAgent
:
92 | task = agent.options.session.dataTask(with: request) {
93 | data, urlResponse, error in
94 | defer { self.task = nil }
| `- warning: capture of 'self' with non-sendable type 'URLSessionClientRequest' in an isolated local function; this is an error in the Swift 6 language mode
95 |
96 | let response = self.setupResponse(with: urlResponse as? HTTPURLResponse)
/Users/admin/builder/spi-builder-workspace/Sources/http/Agent/Foundation/URLSessionClientRequest.swift:100:9: warning: capture of 'self' with non-sendable type 'URLSessionClientRequest' in a '@Sendable' closure
31 | #endif
32 |
33 | public final class URLSessionClientRequest: ClientRequest {
| `- note: class 'URLSessionClientRequest' does not conform to the 'Sendable' protocol
34 |
35 | let agent : URLSessionAgent
:
98 |
99 | eventLoop.execute {
100 | self.responseListeners.emit(response)
| `- warning: capture of 'self' with non-sendable type 'URLSessionClientRequest' in a '@Sendable' closure
101 | }
102 |
/Users/admin/builder/spi-builder-workspace/Sources/http/Agent/Foundation/URLSessionClientRequest.swift:100:37: warning: capture of 'response' with non-sendable type 'IncomingMessage' in a '@Sendable' closure
98 |
99 | eventLoop.execute {
100 | self.responseListeners.emit(response)
| `- warning: capture of 'response' with non-sendable type 'IncomingMessage' in a '@Sendable' closure
101 | }
102 |
/Users/admin/builder/spi-builder-workspace/Sources/http/IncomingMessage.swift:45:12: note: class 'IncomingMessage' does not conform to the 'Sendable' protocol
43 | * * IncomingMessage
44 | */
45 | open class IncomingMessage: ReadableByteStream, CustomStringConvertible {
| `- note: class 'IncomingMessage' does not conform to the 'Sendable' protocol
46 |
47 | public enum IncomingType {
/Users/admin/builder/spi-builder-workspace/Sources/http/Agent/Foundation/URLSessionClientRequest.swift:106:11: warning: capture of 'response' with non-sendable type 'IncomingMessage' in a '@Sendable' closure
104 | eventLoop.execute {
105 | if let data = data, !data.isEmpty {
106 | response.push(Buffer(data))
| `- warning: capture of 'response' with non-sendable type 'IncomingMessage' in a '@Sendable' closure
107 | }
108 | response.push(nil) // EOF
/Users/admin/builder/spi-builder-workspace/Sources/http/IncomingMessage.swift:45:12: note: class 'IncomingMessage' does not conform to the 'Sendable' protocol
43 | * * IncomingMessage
44 | */
45 | open class IncomingMessage: ReadableByteStream, CustomStringConvertible {
| `- note: class 'IncomingMessage' does not conform to the 'Sendable' protocol
46 |
47 | public enum IncomingType {
/Users/admin/builder/spi-builder-workspace/Sources/http/Agent/Foundation/URLSessionClientRequest.swift:110:9: warning: capture of 'self' with non-sendable type 'URLSessionClientRequest' in a '@Sendable' closure
31 | #endif
32 |
33 | public final class URLSessionClientRequest: ClientRequest {
| `- note: class 'URLSessionClientRequest' does not conform to the 'Sendable' protocol
34 |
35 | let agent : URLSessionAgent
:
108 | response.push(nil) // EOF
109 |
110 | self.selfRef = nil
| `- warning: capture of 'self' with non-sendable type 'URLSessionClientRequest' in a '@Sendable' closure
111 | if self.didRetain { self.didRetain = false; self.core.release() }
112 | }
[330/344] Compiling http http.swift
/Users/admin/builder/spi-builder-workspace/Sources/fs/File.swift:66:7: warning: capture of 'yield' with non-sendable type '((any Error)?, Buffer?) -> Void' in a '@Sendable' closure
64 |
65 | loop.execute {
66 | yield(result.jsError, result.jsValue)
| |- warning: capture of 'yield' with non-sendable type '((any Error)?, Buffer?) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
67 | module.release()
68 | }
/Users/admin/builder/spi-builder-workspace/Sources/fs/File.swift:66:7: warning: capture of 'yield' with non-sendable type '((any Error)?, Buffer?) -> Void' in a '@Sendable' closure
64 |
65 | loop.execute {
66 | yield(result.jsError, result.jsValue)
| |- warning: capture of 'yield' with non-sendable type '((any Error)?, Buffer?) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
67 | module.release()
68 | }
/Users/admin/builder/spi-builder-workspace/Sources/fs/File.swift:114:7: warning: capture of 'yield' with non-sendable type '((any Error)?, String?) -> Void' in a '@Sendable' closure
112 |
113 | loop.execute {
114 | yield(result.jsError, result.jsValue)
| |- warning: capture of 'yield' with non-sendable type '((any Error)?, String?) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
115 | module.release()
116 | }
/Users/admin/builder/spi-builder-workspace/Sources/fs/File.swift:114:7: warning: capture of 'yield' with non-sendable type '((any Error)?, String?) -> Void' in a '@Sendable' closure
112 |
113 | loop.execute {
114 | yield(result.jsError, result.jsValue)
| |- warning: capture of 'yield' with non-sendable type '((any Error)?, String?) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
115 | module.release()
116 | }
/Users/admin/builder/spi-builder-workspace/Sources/fs/File.swift:200:7: warning: capture of 'whenDone' with non-sendable type '((any Error)?) -> Void' in a '@Sendable' closure
198 |
199 | loop.execute {
200 | whenDone(yieldError)
| |- warning: capture of 'whenDone' with non-sendable type '((any Error)?) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
201 | module.release()
202 | }
/Users/admin/builder/spi-builder-workspace/Sources/fs/File.swift:200:7: warning: capture of 'whenDone' with non-sendable type '((any Error)?) -> Void' in a '@Sendable' closure
198 |
199 | loop.execute {
200 | whenDone(yieldError)
| |- warning: capture of 'whenDone' with non-sendable type '((any Error)?) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
201 | module.release()
202 | }
/Users/admin/builder/spi-builder-workspace/Sources/fs/JSONFile.swift:91:9: warning: capture of 'yield' with non-sendable type '((any Error)?, Any) -> Void' in a '@Sendable' closure
89 |
90 | loop.execute {
91 | yield(resultError, result)
| |- warning: capture of 'yield' with non-sendable type '((any Error)?, Any) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
92 | module.release()
93 | }
/Users/admin/builder/spi-builder-workspace/Sources/fs/JSONFile.swift:91:9: warning: capture of 'yield' with non-sendable type '((any Error)?, Any) -> Void' in a '@Sendable' closure
89 |
90 | loop.execute {
91 | yield(resultError, result)
| |- warning: capture of 'yield' with non-sendable type '((any Error)?, Any) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
92 | module.release()
93 | }
/Users/admin/builder/spi-builder-workspace/Sources/fs/JSONFile.swift:91:28: warning: capture of 'result' with non-sendable type 'Any' in a '@Sendable' closure
89 |
90 | loop.execute {
91 | yield(resultError, result)
| `- warning: capture of 'result' with non-sendable type 'Any' in a '@Sendable' closure
92 | module.release()
93 | }
/Users/admin/builder/spi-builder-workspace/Sources/fs/JSONFile.swift:162:9: warning: capture of 'yield' with non-sendable type '((any Error)?, T?) -> Void' in a '@Sendable' closure
160 |
161 | loop.execute {
162 | yield(resultError, result)
| |- warning: capture of 'yield' with non-sendable type '((any Error)?, T?) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
163 | module.release()
164 | }
/Users/admin/builder/spi-builder-workspace/Sources/fs/JSONFile.swift:162:9: warning: capture of 'yield' with non-sendable type '((any Error)?, T?) -> Void' in a '@Sendable' closure
160 |
161 | loop.execute {
162 | yield(resultError, result)
| |- warning: capture of 'yield' with non-sendable type '((any Error)?, T?) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
163 | module.release()
164 | }
/Users/admin/builder/spi-builder-workspace/Sources/fs/JSONFile.swift:162:28: warning: capture of 'result' with non-sendable type 'T?' in a '@Sendable' closure
126 | * error).
127 | */
128 | static func readFile<T>(on eventLoop : EventLoop? = nil,
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
129 | _ path : String,
130 | as type : T.Type,
:
160 |
161 | loop.execute {
162 | yield(resultError, result)
| `- warning: capture of 'result' with non-sendable type 'T?' in a '@Sendable' closure
163 | module.release()
164 | }
/Users/admin/builder/spi-builder-workspace/Sources/fs/JSONFile.swift:210:65: warning: capture of 'json' with non-sendable type 'Any' in a '@Sendable' closure
208 | if case shouldRun = NIOThreadPool.WorkItemState.active {
209 | do {
210 | let data = try JSONSerialization.data(withJSONObject: json,
| `- warning: capture of 'json' with non-sendable type 'Any' in a '@Sendable' closure
211 | options: options)
212 | try data.write(to: URL(fileURLWithPath: path), options: [.atomic])
/Users/admin/builder/spi-builder-workspace/Sources/fs/JSONFile.swift:224:9: warning: capture of 'yield' with non-sendable type '((any Error)?) -> Void' in a '@Sendable' closure
222 |
223 | loop.execute {
224 | yield(resultError)
| |- warning: capture of 'yield' with non-sendable type '((any Error)?) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
225 | module.release()
226 | }
/Users/admin/builder/spi-builder-workspace/Sources/fs/JSONFile.swift:224:9: warning: capture of 'yield' with non-sendable type '((any Error)?) -> Void' in a '@Sendable' closure
222 |
223 | loop.execute {
224 | yield(resultError)
| |- warning: capture of 'yield' with non-sendable type '((any Error)?) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
225 | module.release()
226 | }
/Users/admin/builder/spi-builder-workspace/Sources/fs/JSONFile.swift:272:47: warning: capture of 'json' with non-sendable type 'T' in a '@Sendable' closure
254 | * if one occurred, or nil.
255 | */
256 | static func writeFile<T>(on eventLoop : EventLoop? = nil,
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
257 | _ path : String,
258 | _ json : T,
:
270 | if case shouldRun = NIOThreadPool.WorkItemState.active {
271 | do {
272 | let data = try makeEncoder().encode(json)
| `- warning: capture of 'json' with non-sendable type 'T' in a '@Sendable' closure
273 | try data.write(to: URL(fileURLWithPath: path), options: [.atomic])
274 | resultError = nil
/Users/admin/builder/spi-builder-workspace/Sources/fs/JSONFile.swift:285:9: warning: capture of 'yield' with non-sendable type '((any Error)?) -> Void' in a '@Sendable' closure
283 |
284 | loop.execute {
285 | yield(resultError)
| |- warning: capture of 'yield' with non-sendable type '((any Error)?) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
286 | module.release()
287 | }
/Users/admin/builder/spi-builder-workspace/Sources/fs/JSONFile.swift:285:9: warning: capture of 'yield' with non-sendable type '((any Error)?) -> Void' in a '@Sendable' closure
283 |
284 | loop.execute {
285 | yield(resultError)
| |- warning: capture of 'yield' with non-sendable type '((any Error)?) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
286 | module.release()
287 | }
/Users/admin/builder/spi-builder-workspace/Sources/fs/File.swift:66:7: warning: capture of 'yield' with non-sendable type '((any Error)?, Buffer?) -> Void' in a '@Sendable' closure
64 |
65 | loop.execute {
66 | yield(result.jsError, result.jsValue)
| |- warning: capture of 'yield' with non-sendable type '((any Error)?, Buffer?) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
67 | module.release()
68 | }
/Users/admin/builder/spi-builder-workspace/Sources/fs/File.swift:66:7: warning: capture of 'yield' with non-sendable type '((any Error)?, Buffer?) -> Void' in a '@Sendable' closure
64 |
65 | loop.execute {
66 | yield(result.jsError, result.jsValue)
| |- warning: capture of 'yield' with non-sendable type '((any Error)?, Buffer?) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
67 | module.release()
68 | }
/Users/admin/builder/spi-builder-workspace/Sources/fs/File.swift:114:7: warning: capture of 'yield' with non-sendable type '((any Error)?, String?) -> Void' in a '@Sendable' closure
112 |
113 | loop.execute {
114 | yield(result.jsError, result.jsValue)
| |- warning: capture of 'yield' with non-sendable type '((any Error)?, String?) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
115 | module.release()
116 | }
/Users/admin/builder/spi-builder-workspace/Sources/fs/File.swift:114:7: warning: capture of 'yield' with non-sendable type '((any Error)?, String?) -> Void' in a '@Sendable' closure
112 |
113 | loop.execute {
114 | yield(result.jsError, result.jsValue)
| |- warning: capture of 'yield' with non-sendable type '((any Error)?, String?) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
115 | module.release()
116 | }
/Users/admin/builder/spi-builder-workspace/Sources/fs/File.swift:200:7: warning: capture of 'whenDone' with non-sendable type '((any Error)?) -> Void' in a '@Sendable' closure
198 |
199 | loop.execute {
200 | whenDone(yieldError)
| |- warning: capture of 'whenDone' with non-sendable type '((any Error)?) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
201 | module.release()
202 | }
/Users/admin/builder/spi-builder-workspace/Sources/fs/File.swift:200:7: warning: capture of 'whenDone' with non-sendable type '((any Error)?) -> Void' in a '@Sendable' closure
198 |
199 | loop.execute {
200 | whenDone(yieldError)
| |- warning: capture of 'whenDone' with non-sendable type '((any Error)?) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
201 | module.release()
202 | }
/Users/admin/builder/spi-builder-workspace/Sources/fs/JSONFile.swift:91:9: warning: capture of 'yield' with non-sendable type '((any Error)?, Any) -> Void' in a '@Sendable' closure
89 |
90 | loop.execute {
91 | yield(resultError, result)
| |- warning: capture of 'yield' with non-sendable type '((any Error)?, Any) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
92 | module.release()
93 | }
/Users/admin/builder/spi-builder-workspace/Sources/fs/JSONFile.swift:91:9: warning: capture of 'yield' with non-sendable type '((any Error)?, Any) -> Void' in a '@Sendable' closure
89 |
90 | loop.execute {
91 | yield(resultError, result)
| |- warning: capture of 'yield' with non-sendable type '((any Error)?, Any) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
92 | module.release()
93 | }
/Users/admin/builder/spi-builder-workspace/Sources/fs/JSONFile.swift:91:28: warning: capture of 'result' with non-sendable type 'Any' in a '@Sendable' closure
89 |
90 | loop.execute {
91 | yield(resultError, result)
| `- warning: capture of 'result' with non-sendable type 'Any' in a '@Sendable' closure
92 | module.release()
93 | }
/Users/admin/builder/spi-builder-workspace/Sources/fs/JSONFile.swift:162:9: warning: capture of 'yield' with non-sendable type '((any Error)?, T?) -> Void' in a '@Sendable' closure
160 |
161 | loop.execute {
162 | yield(resultError, result)
| |- warning: capture of 'yield' with non-sendable type '((any Error)?, T?) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
163 | module.release()
164 | }
/Users/admin/builder/spi-builder-workspace/Sources/fs/JSONFile.swift:162:9: warning: capture of 'yield' with non-sendable type '((any Error)?, T?) -> Void' in a '@Sendable' closure
160 |
161 | loop.execute {
162 | yield(resultError, result)
| |- warning: capture of 'yield' with non-sendable type '((any Error)?, T?) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
163 | module.release()
164 | }
/Users/admin/builder/spi-builder-workspace/Sources/fs/JSONFile.swift:162:28: warning: capture of 'result' with non-sendable type 'T?' in a '@Sendable' closure
126 | * error).
127 | */
128 | static func readFile<T>(on eventLoop : EventLoop? = nil,
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
129 | _ path : String,
130 | as type : T.Type,
:
160 |
161 | loop.execute {
162 | yield(resultError, result)
| `- warning: capture of 'result' with non-sendable type 'T?' in a '@Sendable' closure
163 | module.release()
164 | }
/Users/admin/builder/spi-builder-workspace/Sources/fs/JSONFile.swift:210:65: warning: capture of 'json' with non-sendable type 'Any' in a '@Sendable' closure
208 | if case shouldRun = NIOThreadPool.WorkItemState.active {
209 | do {
210 | let data = try JSONSerialization.data(withJSONObject: json,
| `- warning: capture of 'json' with non-sendable type 'Any' in a '@Sendable' closure
211 | options: options)
212 | try data.write(to: URL(fileURLWithPath: path), options: [.atomic])
/Users/admin/builder/spi-builder-workspace/Sources/fs/JSONFile.swift:224:9: warning: capture of 'yield' with non-sendable type '((any Error)?) -> Void' in a '@Sendable' closure
222 |
223 | loop.execute {
224 | yield(resultError)
| |- warning: capture of 'yield' with non-sendable type '((any Error)?) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
225 | module.release()
226 | }
/Users/admin/builder/spi-builder-workspace/Sources/fs/JSONFile.swift:224:9: warning: capture of 'yield' with non-sendable type '((any Error)?) -> Void' in a '@Sendable' closure
222 |
223 | loop.execute {
224 | yield(resultError)
| |- warning: capture of 'yield' with non-sendable type '((any Error)?) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
225 | module.release()
226 | }
/Users/admin/builder/spi-builder-workspace/Sources/fs/JSONFile.swift:272:47: warning: capture of 'json' with non-sendable type 'T' in a '@Sendable' closure
254 | * if one occurred, or nil.
255 | */
256 | static func writeFile<T>(on eventLoop : EventLoop? = nil,
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
257 | _ path : String,
258 | _ json : T,
:
270 | if case shouldRun = NIOThreadPool.WorkItemState.active {
271 | do {
272 | let data = try makeEncoder().encode(json)
| `- warning: capture of 'json' with non-sendable type 'T' in a '@Sendable' closure
273 | try data.write(to: URL(fileURLWithPath: path), options: [.atomic])
274 | resultError = nil
/Users/admin/builder/spi-builder-workspace/Sources/fs/JSONFile.swift:285:9: warning: capture of 'yield' with non-sendable type '((any Error)?) -> Void' in a '@Sendable' closure
283 |
284 | loop.execute {
285 | yield(resultError)
| |- warning: capture of 'yield' with non-sendable type '((any Error)?) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
286 | module.release()
287 | }
/Users/admin/builder/spi-builder-workspace/Sources/fs/JSONFile.swift:285:9: warning: capture of 'yield' with non-sendable type '((any Error)?) -> Void' in a '@Sendable' closure
283 |
284 | loop.execute {
285 | yield(resultError)
| |- warning: capture of 'yield' with non-sendable type '((any Error)?) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
286 | module.release()
287 | }
[333/344] Emitting module fs
/Users/admin/builder/spi-builder-workspace/Sources/fs/File.swift:200:7: warning: capture of 'whenDone' with non-sendable type '((any Error)?) -> Void' in a '@Sendable' closure
198 |
199 | loop.execute {
200 | whenDone(yieldError)
| |- warning: capture of 'whenDone' with non-sendable type '((any Error)?) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
201 | module.release()
202 | }
/Users/admin/builder/spi-builder-workspace/Sources/fs/File.swift:200:7: warning: capture of 'whenDone' with non-sendable type '((any Error)?) -> Void' in a '@Sendable' closure
198 |
199 | loop.execute {
200 | whenDone(yieldError)
| |- warning: capture of 'whenDone' with non-sendable type '((any Error)?) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
201 | module.release()
202 | }
/Users/admin/builder/spi-builder-workspace/Sources/fs/Streams/FileReadStream.swift:28:21: warning: static property 'defaultReadableHighWaterMark' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
26 | open class FileReadStream: ReadableByteStream, FileStream {
27 |
28 | public static var defaultReadableHighWaterMark = 64 * 1024
| |- warning: static property 'defaultReadableHighWaterMark' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultReadableHighWaterMark' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'defaultReadableHighWaterMark' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
29 |
30 | public let eventLoop : EventLoop
/Users/admin/builder/spi-builder-workspace/Sources/fs/Streams/FileWriteStream.swift:33:17: warning: var 'retainedStreams' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
31 |
32 | fileprivate let retainLock = NIOLock()
33 | fileprivate var retainedStreams = [ ObjectIdentifier : FileWriteStream ]()
| |- warning: var 'retainedStreams' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'retainedStreams' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'retainedStreams' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
34 |
35 | open class FileWriteStream: WritableByteStream, FileStream,
/Users/admin/builder/spi-builder-workspace/Sources/fs/Streams/FileWriteStream.swift:38:21: warning: static property 'defaultWritableHighWaterMark' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
36 | WritableStreamType, WritableByteStreamType
37 | {
38 | public static var defaultWritableHighWaterMark = 64 * 1024
| |- warning: static property 'defaultWritableHighWaterMark' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultWritableHighWaterMark' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'defaultWritableHighWaterMark' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
39 |
40 | enum StreamState: Equatable {
/Users/admin/builder/spi-builder-workspace/Sources/fs/Utils/AsyncWrapper.swift:39:15: warning: capture of 'f' with non-sendable type '(ArgT) throws -> Void' in a '@Sendable' closure
37 | if case shouldRun = NIOThreadPool.WorkItemState.active {
38 | do {
39 | try f(arg)
| |- warning: capture of 'f' with non-sendable type '(ArgT) throws -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
40 | returnError = nil
41 | }
/Users/admin/builder/spi-builder-workspace/Sources/fs/Utils/AsyncWrapper.swift:39:17: warning: capture of 'arg' with non-sendable type 'ArgT' in a '@Sendable' closure
25 |
26 | @inlinable static
27 | func _evalAsync<ArgT>(on eventLoop: EventLoop? = nil,
| `- note: consider making generic parameter 'ArgT' conform to the 'Sendable' protocol
28 | _ f : @escaping ( ArgT ) throws -> Void,
29 | _ arg : ArgT,
:
37 | if case shouldRun = NIOThreadPool.WorkItemState.active {
38 | do {
39 | try f(arg)
| `- warning: capture of 'arg' with non-sendable type 'ArgT' in a '@Sendable' closure
40 | returnError = nil
41 | }
/Users/admin/builder/spi-builder-workspace/Sources/fs/Utils/AsyncWrapper.swift:51:9: warning: capture of 'yield' with non-sendable type '((any Error)?) -> Void' in a '@Sendable' closure
49 |
50 | loop.execute {
51 | yield(returnError)
| |- warning: capture of 'yield' with non-sendable type '((any Error)?) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
52 | module.release()
53 | }
/Users/admin/builder/spi-builder-workspace/Sources/fs/Utils/AsyncWrapper.swift:51:9: warning: capture of 'yield' with non-sendable type '((any Error)?) -> Void' in a '@Sendable' closure
49 |
50 | loop.execute {
51 | yield(returnError)
| |- warning: capture of 'yield' with non-sendable type '((any Error)?) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
52 | module.release()
53 | }
/Users/admin/builder/spi-builder-workspace/Sources/fs/Utils/AsyncWrapper.swift:71:24: warning: capture of 'f' with non-sendable type '(ArgT) throws -> RT' in a '@Sendable' closure
69 | if case shouldRun = NIOThreadPool.WorkItemState.active {
70 | do {
71 | result = try f(arg)
| |- warning: capture of 'f' with non-sendable type '(ArgT) throws -> RT' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
72 | returnError = nil
73 | }
/Users/admin/builder/spi-builder-workspace/Sources/fs/Utils/AsyncWrapper.swift:71:26: warning: capture of 'arg' with non-sendable type 'ArgT' in a '@Sendable' closure
56 |
57 | @inlinable static
58 | func _evalAsync<ArgT, RT>(on eventLoop: EventLoop? = nil,
| `- note: consider making generic parameter 'ArgT' conform to the 'Sendable' protocol
59 | _ f : @escaping ( ArgT ) throws -> RT,
60 | _ arg : ArgT,
:
69 | if case shouldRun = NIOThreadPool.WorkItemState.active {
70 | do {
71 | result = try f(arg)
| `- warning: capture of 'arg' with non-sendable type 'ArgT' in a '@Sendable' closure
72 | returnError = nil
73 | }
/Users/admin/builder/spi-builder-workspace/Sources/fs/Utils/AsyncWrapper.swift:85:9: warning: capture of 'yield' with non-sendable type '((any Error)?, RT?) -> Void' in a '@Sendable' closure
83 |
84 | loop.execute {
85 | yield(returnError, result)
| |- warning: capture of 'yield' with non-sendable type '((any Error)?, RT?) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
86 | module.release()
87 | }
/Users/admin/builder/spi-builder-workspace/Sources/fs/Utils/AsyncWrapper.swift:85:9: warning: capture of 'yield' with non-sendable type '((any Error)?, RT?) -> Void' in a '@Sendable' closure
83 |
84 | loop.execute {
85 | yield(returnError, result)
| |- warning: capture of 'yield' with non-sendable type '((any Error)?, RT?) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
86 | module.release()
87 | }
/Users/admin/builder/spi-builder-workspace/Sources/fs/Utils/AsyncWrapper.swift:85:28: warning: capture of 'result' with non-sendable type 'RT?' in a '@Sendable' closure
56 |
57 | @inlinable static
58 | func _evalAsync<ArgT, RT>(on eventLoop: EventLoop? = nil,
| `- note: consider making generic parameter 'RT' conform to the 'Sendable' protocol
59 | _ f : @escaping ( ArgT ) throws -> RT,
60 | _ arg : ArgT,
:
83 |
84 | loop.execute {
85 | yield(returnError, result)
| `- warning: capture of 'result' with non-sendable type 'RT?' in a '@Sendable' closure
86 | module.release()
87 | }
[334/344] Compiling fs Directory.swift
[335/344] Compiling fs FSWatcher.swift
[336/344] Compiling fs fs.swift
[337/344] Compiling http ServerResponse.swift
/Users/admin/builder/spi-builder-workspace/Sources/http/Server/ServerResponse.swift:96:27: warning: converting non-sendable function value to '@Sendable (any Error) -> Void' may introduce data races
94 | if let channel = socket {
95 | channel.writeAndFlush(HTTPServerResponsePart.head(part))
96 | .whenFailure(handleError)
| `- warning: converting non-sendable function value to '@Sendable (any Error) -> Void' may introduce data races
97 | }
98 | else {
/Users/admin/builder/spi-builder-workspace/Sources/http/Server/ServerResponse.swift:151:18: warning: capture of 'self' with non-sendable type 'ServerResponse' in a '@Sendable' closure
42 | * ClientRequest
43 | */
44 | open class ServerResponse: OutgoingMessage, CustomStringConvertible {
| `- note: class 'ServerResponse' does not conform to the 'Sendable' protocol
45 |
46 | public var version = HTTPVersion(major: 1, minor: 1)
:
149 | .whenComplete { result in
150 | if case .failure(let error) = result {
151 | self.handleError(error)
| `- warning: capture of 'self' with non-sendable type 'ServerResponse' in a '@Sendable' closure
152 | }
153 | self.state = .finished
/Users/admin/builder/spi-builder-workspace/Sources/http/Server/ServerResponse.swift:234:25: warning: converting non-sendable function value to '@Sendable (any Error) -> Void' may introduce data races
232 | let head = HTTPResponseHead(version: version, status: .continue)
233 | channel.writeAndFlush(HTTPServerResponsePart.head(head))
234 | .whenFailure(handleError)
| `- warning: converting non-sendable function value to '@Sendable (any Error) -> Void' may introduce data races
235 | }
236 |
/Users/admin/builder/spi-builder-workspace/Sources/http/Server/ServerResponse.swift:269:16: warning: capture of 'self' with non-sendable type 'ServerResponse' in a '@Sendable' closure
42 | * ClientRequest
43 | */
44 | open class ServerResponse: OutgoingMessage, CustomStringConvertible {
| `- note: class 'ServerResponse' does not conform to the 'Sendable' protocol
45 |
46 | public var version = HTTPVersion(major: 1, minor: 1)
:
267 | .whenComplete { result in
268 | if case .failure(let error) = result {
269 | self.handleError(error)
| `- warning: capture of 'self' with non-sendable type 'ServerResponse' in a '@Sendable' closure
270 | whenDone(error)
271 | }
/Users/admin/builder/spi-builder-workspace/Sources/http/Server/ServerResponse.swift:270:16: warning: capture of 'whenDone' with non-sendable type '((any Error)?) -> Void' in a '@Sendable' closure
268 | if case .failure(let error) = result {
269 | self.handleError(error)
270 | whenDone(error)
| |- warning: capture of 'whenDone' with non-sendable type '((any Error)?) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
271 | }
272 | else {
/Users/admin/builder/spi-builder-workspace/Sources/http/Agent/Agent.swift:23:14: warning: static property 'globalAgent' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
21 | public extension HTTPModule {
22 |
23 | static var globalAgent = Agent(options: .init())
| |- warning: static property 'globalAgent' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'globalAgent' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'globalAgent' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 |
25 | }
/Users/admin/builder/spi-builder-workspace/Sources/http/Agent/Agent.swift:23:14: warning: static property 'globalAgent' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
21 | public extension HTTPModule {
22 |
23 | static var globalAgent = Agent(options: .init())
| |- warning: static property 'globalAgent' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'globalAgent' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'globalAgent' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 |
25 | }
[340/344] Compiling http QueryString.swift
[341/344] Compiling http Server.swift
/Users/admin/builder/spi-builder-workspace/Sources/http/Server/Server.swift:156:13: warning: capture of 'self' with non-sendable type 'Server' in a '@Sendable' closure
68 | * - ``Server/onListening(execute:)``
69 | */
70 | open class Server: ErrorEmitter, CustomStringConvertible {
| `- note: class 'Server' does not conform to the 'Sendable' protocol
71 |
72 | private static let serverID = Atomics.ManagedAtomic<Int>(0)
:
154 | switch result {
155 | case .success(let channel):
156 | self.registerChannel(channel)
| `- warning: capture of 'self' with non-sendable type 'Server' in a '@Sendable' closure
157 |
158 | case .failure(let error):
/Users/admin/builder/spi-builder-workspace/Sources/http/Server/Server.swift:360:59: warning: type 'any HTTPServerProtocolUpgrader' does not conform to the 'Sendable' protocol
358 | .childChannelInitializer { channel in
359 | return channel.pipeline
360 | .configureHTTPServerPipeline(withServerUpgrade: upgrade)
| `- warning: type 'any HTTPServerProtocolUpgrader' does not conform to the 'Sendable' protocol
361 | .flatMap {
362 | return channel.pipeline.addHandler(HTTPHandler(server: self),
/Users/admin/builder/spi-builder-workspace/Sources/http/Server/Server.swift:362:48: warning: type 'Server.HTTPHandler' does not conform to the 'Sendable' protocol
360 | .configureHTTPServerPipeline(withServerUpgrade: upgrade)
361 | .flatMap {
362 | return channel.pipeline.addHandler(HTTPHandler(server: self),
| `- warning: type 'Server.HTTPHandler' does not conform to the 'Sendable' protocol
363 | name: Server.httpHandlerName)
364 | }
:
379 | public static let httpHandlerName: String = "μ.http.server.handler"
380 |
381 | private final class HTTPHandler : ChannelInboundHandler,
| `- note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
382 | RemovableChannelHandler
383 | {
/Users/admin/builder/spi-builder-workspace/Sources/http/Server/Server.swift:360:59: warning: capture of 'upgrade' with non-sendable type 'NIOHTTPServerUpgradeConfiguration?' (aka 'Optional<(upgraders: Array<any HTTPServerProtocolUpgrader>, completionHandler: @Sendable (ChannelHandlerContext) -> ())>') in a '@Sendable' closure
358 | .childChannelInitializer { channel in
359 | return channel.pipeline
360 | .configureHTTPServerPipeline(withServerUpgrade: upgrade)
| `- warning: capture of 'upgrade' with non-sendable type 'NIOHTTPServerUpgradeConfiguration?' (aka 'Optional<(upgraders: Array<any HTTPServerProtocolUpgrader>, completionHandler: @Sendable (ChannelHandlerContext) -> ())>') in a '@Sendable' closure
361 | .flatMap {
362 | return channel.pipeline.addHandler(HTTPHandler(server: self),
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOHTTP1/HTTPServerUpgradeHandler.swift:31:17: note: protocol 'HTTPServerProtocolUpgrader' does not conform to the 'Sendable' protocol
29 | /// An object that implements `HTTPServerProtocolUpgrader` knows how to handle HTTP upgrade to
30 | /// a protocol on a server-side channel.
31 | public protocol HTTPServerProtocolUpgrader {
| `- note: protocol 'HTTPServerProtocolUpgrader' does not conform to the 'Sendable' protocol
32 | /// The protocol this upgrader knows how to support.
33 | var supportedProtocol: String { get }
/Users/admin/builder/spi-builder-workspace/Sources/http/Server/Server.swift:34:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'NIOHTTP1'
32 | import let NIO.IPPROTO_TCP
33 | import let NIO.TCP_NODELAY
34 | import enum NIOHTTP1.HTTPServerRequestPart
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'NIOHTTP1'
35 | import typealias NIOHTTP1.NIOHTTPServerUpgradeConfiguration
36 | import struct NIOConcurrencyHelpers.NIOLock
/Users/admin/builder/spi-builder-workspace/Sources/http/Server/Server.swift:362:68: warning: capture of 'self' with non-sendable type 'Server' in a '@Sendable' closure
68 | * - ``Server/onListening(execute:)``
69 | */
70 | open class Server: ErrorEmitter, CustomStringConvertible {
| `- note: class 'Server' does not conform to the 'Sendable' protocol
71 |
72 | private static let serverID = Atomics.ManagedAtomic<Int>(0)
:
360 | .configureHTTPServerPipeline(withServerUpgrade: upgrade)
361 | .flatMap {
362 | return channel.pipeline.addHandler(HTTPHandler(server: self),
| `- warning: capture of 'self' with non-sendable type 'Server' in a '@Sendable' closure
363 | name: Server.httpHandlerName)
364 | }
/Users/admin/builder/spi-builder-workspace/Sources/http/Server/Server.swift:362:68: warning: capture of 'self' with non-sendable type 'Server' in a '@Sendable' closure
68 | * - ``Server/onListening(execute:)``
69 | */
70 | open class Server: ErrorEmitter, CustomStringConvertible {
| `- note: class 'Server' does not conform to the 'Sendable' protocol
71 |
72 | private static let serverID = Atomics.ManagedAtomic<Int>(0)
:
360 | .configureHTTPServerPipeline(withServerUpgrade: upgrade)
361 | .flatMap {
362 | return channel.pipeline.addHandler(HTTPHandler(server: self),
| `- warning: capture of 'self' with non-sendable type 'Server' in a '@Sendable' closure
363 | name: Server.httpHandlerName)
364 | }
[342/344] Emitting module http
/Users/admin/builder/spi-builder-workspace/Sources/http/Agent/Agent.swift:23:14: warning: static property 'globalAgent' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
21 | public extension HTTPModule {
22 |
23 | static var globalAgent = Agent(options: .init())
| |- warning: static property 'globalAgent' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'globalAgent' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'globalAgent' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 |
25 | }
/Users/admin/builder/spi-builder-workspace/Sources/http/Globals.swift:17:14: warning: static property 'METHODS' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
15 | * `HTTPMethod` also supports a custom case.
16 | */
17 | static var METHODS : [ String ] = [
| |- warning: static property 'METHODS' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'METHODS' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'METHODS' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 | "GET",
19 | "PUT",
/Users/admin/builder/spi-builder-workspace/Sources/http/Globals.swift:58:14: warning: static property 'STATUS_CASES' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
56 | * `HTTPResponseStatus` also supports a custom case.
57 | */
58 | static var STATUS_CASES : [ HTTPResponseStatus ] = [
| |- warning: static property 'STATUS_CASES' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'STATUS_CASES' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'STATUS_CASES' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
59 | .`continue`,
60 | .switchingProtocols,
/Users/admin/builder/spi-builder-workspace/Sources/http/Globals.swift:124:14: warning: static property 'STATUS_CODES' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
122 | * A non-exhaustive collection of known HTTP response status codes.
123 | */
124 | static var STATUS_CODES = [ Int : String ](
| |- warning: static property 'STATUS_CODES' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'STATUS_CODES' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'STATUS_CODES' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
125 | uniqueKeysWithValues: STATUS_CASES.map { status in
126 | ( Int(status.code), status.reasonPhrase )
[345/346] Compiling Macro Macro.swift
[346/346] Emitting module Macro
[347/348] Emitting module MacroTestUtilities
[348/348] Compiling MacroTestUtilities TestServerResponse.swift
Build complete! (15.60s)
Build complete.
{
"dependencies" : [
{
"identity" : "swift-atomics",
"requirement" : {
"range" : [
{
"lower_bound" : "1.0.3",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-atomics.git"
},
{
"identity" : "swift-nio",
"requirement" : {
"range" : [
{
"lower_bound" : "2.80.0",
"upper_bound" : "3.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-nio.git"
},
{
"identity" : "swift-log",
"requirement" : {
"range" : [
{
"lower_bound" : "1.4.4",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-log.git"
}
],
"manifest_display_name" : "Macro",
"name" : "Macro",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "Macro",
"targets" : [
"Macro"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "MacroCore",
"targets" : [
"MacroCore"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "xsys",
"targets" : [
"xsys"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "http",
"targets" : [
"http"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "fs",
"targets" : [
"fs"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "MacroTestUtilities",
"targets" : [
"MacroTestUtilities"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "xsys",
"module_type" : "SwiftTarget",
"name" : "xsys",
"path" : "Sources/xsys",
"product_memberships" : [
"Macro",
"MacroCore",
"xsys",
"http",
"fs",
"MacroTestUtilities"
],
"sources" : [
"Module.swift",
"POSIXError.swift",
"SocketAddress.swift",
"UUID.swift",
"dylib.swift",
"fd.swift",
"ioctl.swift",
"misc.swift",
"ntohs.swift",
"sockaddr_any.swift",
"socket.swift",
"time.swift",
"timespec.swift",
"timeval_any.swift"
],
"type" : "library"
},
{
"c99name" : "http",
"module_type" : "SwiftTarget",
"name" : "http",
"path" : "Sources/http",
"product_dependencies" : [
"NIO",
"NIOConcurrencyHelpers",
"NIOHTTP1"
],
"product_memberships" : [
"Macro",
"http",
"MacroTestUtilities"
],
"sources" : [
"Agent/Agent.swift",
"Agent/ClientRequest.swift",
"Agent/Foundation/URLRequestInit.swift",
"Agent/Foundation/URLSessionAgent.swift",
"Agent/Foundation/URLSessionClientRequest.swift",
"BasicAuth.swift",
"Globals.swift",
"IncomingMessage.swift",
"QueryString.swift",
"Server/Server.swift",
"Server/ServerResponse.swift",
"Support/HTTPHeadersHolder.swift",
"Support/OutgoingMessage.swift",
"http.swift"
],
"target_dependencies" : [
"MacroCore"
],
"type" : "library"
},
{
"c99name" : "fs",
"module_type" : "SwiftTarget",
"name" : "fs",
"path" : "Sources/fs",
"product_dependencies" : [
"NIO"
],
"product_memberships" : [
"Macro",
"fs",
"MacroTestUtilities"
],
"sources" : [
"Directory.swift",
"FSWatcher.swift",
"File.swift",
"JSONFile.swift",
"Path.swift",
"PosixWrappers.swift",
"Promise.swift",
"Streams/FileReadStream.swift",
"Streams/FileStream.swift",
"Streams/FileWriteStream.swift",
"Utils/AsyncWrapper.swift",
"Utils/ResultExtensions.swift",
"Utils/StatStruct.swift",
"fs.swift"
],
"target_dependencies" : [
"MacroCore",
"xsys"
],
"type" : "library"
},
{
"c99name" : "MacroTests",
"module_type" : "SwiftTarget",
"name" : "MacroTests",
"path" : "Tests/MacroTests",
"sources" : [
"AgentTests.swift",
"BufferTests.swift",
"ByteBufferTests.swift",
"CollectionTests.swift",
"MacroTests.swift",
"PathTests.swift",
"XCTestManifests.swift"
],
"target_dependencies" : [
"MacroTestUtilities"
],
"type" : "test"
},
{
"c99name" : "MacroTestUtilities",
"module_type" : "SwiftTarget",
"name" : "MacroTestUtilities",
"path" : "Sources/MacroTestUtilities",
"product_memberships" : [
"MacroTestUtilities"
],
"sources" : [
"TestServerResponse.swift"
],
"target_dependencies" : [
"Macro"
],
"type" : "library"
},
{
"c99name" : "MacroCore",
"module_type" : "SwiftTarget",
"name" : "MacroCore",
"path" : "Sources/MacroCore",
"product_dependencies" : [
"Atomics",
"NIO",
"NIOConcurrencyHelpers",
"NIOFoundationCompat",
"Logging"
],
"product_memberships" : [
"Macro",
"MacroCore",
"http",
"fs",
"MacroTestUtilities"
],
"sources" : [
"Buffer/Buffer.swift",
"Buffer/BufferData.swift",
"Buffer/BufferDeprecations.swift",
"Buffer/BufferHexEncoding.swift",
"Buffer/BufferStrings.swift",
"Buffer/CollectionUtils.swift",
"Concurrency.swift",
"Console.swift",
"Dirname.swift",
"EnvironmentValues.swift",
"Events/ErrorEmitter.swift",
"Events/EventListenerSet.swift",
"Events/ListenerType.swift",
"JSError.swift",
"JSON.swift",
"JSStubs/CollectionStubs.swift",
"JSStubs/Math.swift",
"JSStubs/Object.swift",
"JSStubs/StringStubs.swift",
"JSStubs/ToString.swift",
"LeftPad.swift",
"MacroCore.swift",
"MacroError.swift",
"NextTick.swift",
"Process/CommandLine.swift",
"Process/DetectXcode.swift",
"Process/Environment.swift",
"Process/Process.swift",
"Process/Warnings.swift",
"Regex.swift",
"Streams/Concat.swift",
"Streams/DuplexStreamType.swift",
"Streams/Pipe.swift",
"Streams/ReadableByteStream.swift",
"Streams/ReadableByteStreamType.swift",
"Streams/ReadableStreamBase.swift",
"Streams/ReadableStreamType.swift",
"Streams/WritableByteStream.swift",
"Streams/WritableByteStreamType.swift",
"Streams/WritableStreamBase.swift",
"Streams/WritableStreamType.swift",
"StringEncoding.swift"
],
"target_dependencies" : [
"xsys"
],
"type" : "library"
},
{
"c99name" : "Macro",
"module_type" : "SwiftTarget",
"name" : "Macro",
"path" : "Sources/Macro",
"product_memberships" : [
"Macro",
"MacroTestUtilities"
],
"sources" : [
"Macro.swift"
],
"target_dependencies" : [
"MacroCore",
"xsys",
"http",
"fs"
],
"type" : "library"
}
],
"tools_version" : "5.5"
}
Done.