The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Failed to build swift-nio, reference main (eeda80), with Swift 6.0 for Linux on 20 Sep 2024 20:55:02 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1

Build Log

146 | /// from the `channelBuilderCallback` to the `resolve` methods return value.
147 | internal final class HappyEyeballsConnector<ChannelBuilderResult> {
    |                      `- note: generic class 'HappyEyeballsConnector' does not conform to the 'Sendable' protocol
148 |     /// An enum for keeping track of connection state.
149 |     private enum ConnectionState {
    :
682 |             self.targets.aaaaResultsAvailable(results)
683 |         }.recover { err in
684 |             self.error.dnsAAAAError = err
    |             `- warning: capture of 'self' with non-sendable type 'HappyEyeballsConnector<ChannelBuilderResult>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
685 |         }.whenComplete { (_: Result<Void, Error>) in
686 |             // It's possible that we were waiting to time out here, so if we were we should
/host/spi-builder-workspace/Sources/NIOPosix/HappyEyeballs.swift:688:13: warning: capture of 'self' with non-sendable type 'HappyEyeballsConnector<ChannelBuilderResult>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
145 | /// The `ChannelBuilderResult` generic type can used to tunnel an arbitrary type
146 | /// from the `channelBuilderCallback` to the `resolve` methods return value.
147 | internal final class HappyEyeballsConnector<ChannelBuilderResult> {
    |                      `- note: generic class 'HappyEyeballsConnector' does not conform to the 'Sendable' protocol
148 |     /// An enum for keeping track of connection state.
149 |     private enum ConnectionState {
    :
686 |             // It's possible that we were waiting to time out here, so if we were we should
687 |             // cancel that.
688 |             self.resolutionTask?.cancel()
    |             `- warning: capture of 'self' with non-sendable type 'HappyEyeballsConnector<ChannelBuilderResult>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
689 |             self.resolutionTask = nil
690 |
[285/347] Compiling NIOPosix HappyEyeballs.swift
/host/spi-builder-workspace/Sources/NIOPosix/BSDSocketAPICommon.swift:160:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'NIOBSDSocket.ProtocolSubtype' may have shared mutable state; this is an error in the Swift 6 language mode
143 |     /// is not. They act to modify the socket type instead: thus, ``mptcp`` acts
144 |     /// to modify `SOCK_STREAM` to ask for ``mptcp`` support.
145 |     public struct ProtocolSubtype: RawRepresentable, Hashable {
    |                   `- note: consider making struct 'ProtocolSubtype' conform to the 'Sendable' protocol
146 |         public typealias RawValue = CInt
147 |
    :
158 | extension NIOBSDSocket.ProtocolSubtype {
159 |     /// Refers to the "default" protocol subtype for a given socket type.
160 |     public static let `default` = Self(rawValue: 0)
    |                       |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'NIOBSDSocket.ProtocolSubtype' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'default' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
161 |
162 |     /// The protocol subtype for MPTCP.
/host/spi-builder-workspace/Sources/NIOPosix/Bootstrap.swift:420:17: warning: capture of 'register' with non-sendable type '(any EventLoop, ServerSocketChannel) -> EventLoopFuture<Void>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 418 |                 )
 419 |             }.flatMap {
 420 |                 register(eventLoop, serverChannel)
     |                 |- warning: capture of 'register' with non-sendable type '(any EventLoop, ServerSocketChannel) -> EventLoopFuture<Void>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
     |                 `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 421 |             }.map {
 422 |                 serverChannel as Channel
/host/spi-builder-workspace/Sources/NIOPosix/Bootstrap.swift:420:17: warning: capture of 'register' with non-sendable type '(any EventLoop, ServerSocketChannel) -> EventLoopFuture<Void>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 418 |                 )
 419 |             }.flatMap {
 420 |                 register(eventLoop, serverChannel)
     |                 |- warning: capture of 'register' with non-sendable type '(any EventLoop, ServerSocketChannel) -> EventLoopFuture<Void>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
     |                 `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 421 |             }.map {
 422 |                 serverChannel as Channel
/host/spi-builder-workspace/Sources/NIOPosix/Bootstrap.swift:449:21: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 447 |             if event is ChannelShouldQuiesceEvent {
 448 |                 context.channel.close().whenFailure { error in
 449 |                     context.fireErrorCaught(error)
     |                     `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 450 |                 }
 451 |             }
/host/spi-builder-workspace/Sources/NIOCore/ChannelPipeline.swift:1496:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1494 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1495 | /// `ChannelHandler`.
1496 | public final class ChannelHandlerContext: ChannelInvoker {
     |                    `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1497 |     // visible for ChannelPipeline to modify
1498 |     fileprivate var next: Optional<ChannelHandlerContext>
/host/spi-builder-workspace/Sources/NIOPosix/Bootstrap.swift:465:28: warning: capture of 'childChannelInit' with non-sendable type '(any Channel) -> EventLoopFuture<Void>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 463 |                 self.childChannelOptions.applyAllChannelOptions(to: accepted).flatMap { () -> EventLoopFuture<Void> in
 464 |                     childEventLoop.assertInEventLoop()
 465 |                     return childChannelInit(accepted)
     |                            |- warning: capture of 'childChannelInit' with non-sendable type '(any Channel) -> EventLoopFuture<Void>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
     |                            `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 466 |                 }
 467 |             }
/host/spi-builder-workspace/Sources/NIOPosix/Bootstrap.swift:474:27: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 472 |                 future.flatMap { (_) -> EventLoopFuture<Void> in
 473 |                     ctxEventLoop.assertInEventLoop()
 474 |                     guard context.channel.isActive else {
     |                           `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 475 |                         return context.eventLoop.makeFailedFuture(ChannelError._ioOnClosedChannel)
 476 |                     }
/host/spi-builder-workspace/Sources/NIOCore/ChannelPipeline.swift:1496:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1494 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1495 | /// `ChannelHandler`.
1496 | public final class ChannelHandlerContext: ChannelInvoker {
     |                    `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1497 |     // visible for ChannelPipeline to modify
1498 |     fileprivate var next: Optional<ChannelHandlerContext>
/host/spi-builder-workspace/Sources/NIOPosix/Bootstrap.swift:477:45: warning: capture of 'data' with non-sendable type 'NIOAny' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 475 |                         return context.eventLoop.makeFailedFuture(ChannelError._ioOnClosedChannel)
 476 |                     }
 477 |                     context.fireChannelRead(data)
     |                                             `- warning: capture of 'data' with non-sendable type 'NIOAny' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 478 |                     return context.eventLoop.makeSucceededFuture(())
 479 |                 }.whenFailure { error in
/host/spi-builder-workspace/Sources/NIOCore/NIOAny.swift:45:15: note: struct 'NIOAny' does not conform to the 'Sendable' protocol
 43 | ///         }
 44 | ///     }
 45 | public struct NIOAny {
    |               `- note: struct 'NIOAny' does not conform to the 'Sendable' protocol
 46 |     @usableFromInline
 47 |     let _storage: _NIOAny
/host/spi-builder-workspace/Sources/NIOPosix/Bootstrap.swift:481:21: warning: capture of 'self' with non-sendable type 'ServerBootstrap.AcceptHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 430 |     }
 431 |
 432 |     final class AcceptHandler: ChannelInboundHandler {
     |                 `- note: class 'AcceptHandler' does not conform to the 'Sendable' protocol
 433 |         public typealias InboundIn = SocketChannel
 434 |
     :
 479 |                 }.whenFailure { error in
 480 |                     ctxEventLoop.assertInEventLoop()
 481 |                     self.closeAndFire(context: context, accepted: accepted, err: error)
     |                     `- warning: capture of 'self' with non-sendable type 'ServerBootstrap.AcceptHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 482 |                 }
 483 |             }
/host/spi-builder-workspace/Sources/NIOPosix/Bootstrap.swift:481:48: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 479 |                 }.whenFailure { error in
 480 |                     ctxEventLoop.assertInEventLoop()
 481 |                     self.closeAndFire(context: context, accepted: accepted, err: error)
     |                                                `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 482 |                 }
 483 |             }
/host/spi-builder-workspace/Sources/NIOCore/ChannelPipeline.swift:1496:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1494 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1495 | /// `ChannelHandler`.
1496 | public final class ChannelHandlerContext: ChannelInvoker {
     |                    `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1497 |     // visible for ChannelPipeline to modify
1498 |     fileprivate var next: Optional<ChannelHandlerContext>
/host/spi-builder-workspace/Sources/NIOPosix/Bootstrap.swift:490:25: warning: capture of 'setupChildChannel()' with non-sendable type '() -> EventLoopFuture<Void>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 488 |                 fireThroughPipeline(
 489 |                     childEventLoop.flatSubmit {
 490 |                         setupChildChannel()
     |                         |- warning: capture of 'setupChildChannel()' with non-sendable type '() -> EventLoopFuture<Void>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
     |                         `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 491 |                     }.hop(to: ctxEventLoop)
 492 |                 )
/host/spi-builder-workspace/Sources/NIOPosix/Bootstrap.swift:462:18: warning: concurrently-executed local function 'setupChildChannel()' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
 460 |
 461 |             @inline(__always)
 462 |             func setupChildChannel() -> EventLoopFuture<Void> {
     |                  `- warning: concurrently-executed local function 'setupChildChannel()' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
 463 |                 self.childChannelOptions.applyAllChannelOptions(to: accepted).flatMap { () -> EventLoopFuture<Void> in
 464 |                     childEventLoop.assertInEventLoop()
/host/spi-builder-workspace/Sources/NIOPosix/Bootstrap.swift:502:21: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 500 |             } else {
 501 |                 context.eventLoop.execute {
 502 |                     context.fireErrorCaught(err)
     |                     `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 503 |                 }
 504 |             }
/host/spi-builder-workspace/Sources/NIOCore/ChannelPipeline.swift:1496:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1494 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1495 | /// `ChannelHandler`.
1496 | public final class ChannelHandlerContext: ChannelInvoker {
     |                    `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1497 |     // visible for ChannelPipeline to modify
1498 |     fileprivate var next: Optional<ChannelHandlerContext>
/host/spi-builder-workspace/Sources/NIOPosix/Bootstrap.swift:759:20: warning: capture of 'body' with non-sendable type '(any Channel) -> EventLoopFuture<Void>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 757 |         return self.register().flatMap {
 758 |             self.eventLoop.assertInEventLoop()
 759 |             return body(self)
     |                    |- warning: capture of 'body' with non-sendable type '(any Channel) -> EventLoopFuture<Void>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
     |                    `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 760 |         }
 761 |     }
/host/spi-builder-workspace/Sources/NIOPosix/Bootstrap.swift:996:61: warning: capture of 'self' with non-sendable type 'ClientBootstrap' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 788 | ///
 789 | /// The connected `SocketChannel` will operate on `ByteBuffer` as inbound and on `IOData` as outbound messages.
 790 | public final class ClientBootstrap: NIOClientTCPBootstrapProtocol {
     |                    `- note: class 'ClientBootstrap' does not conform to the 'Sendable' protocol
 791 |     private let group: EventLoopGroup
 792 |     private var protocolHandlers: Optional<@Sendable () -> [ChannelHandler]>
     :
 994 |         channel.connect(to: address, promise: connectPromise)
 995 |         let cancelTask = channel.eventLoop.scheduleTask(in: self.connectTimeout) {
 996 |             connectPromise.fail(ChannelError.connectTimeout(self.connectTimeout))
     |                                                             `- warning: capture of 'self' with non-sendable type 'ClientBootstrap' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 997 |             channel.close(promise: nil)
 998 |         }
/host/spi-builder-workspace/Sources/NIOPosix/Bootstrap.swift:1116:43: warning: capture of 'setupChannel()' with non-sendable type '() -> EventLoopFuture<any Channel>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
1114 |             return setupChannel()
1115 |         } else {
1116 |             return eventLoop.flatSubmit { setupChannel() }
     |                                           |- warning: capture of 'setupChannel()' with non-sendable type '() -> EventLoopFuture<any Channel>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
     |                                           `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
1117 |         }
1118 |     }
/host/spi-builder-workspace/Sources/NIOPosix/Bootstrap.swift:1096:14: warning: concurrently-executed local function 'setupChannel()' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
1094 |         }
1095 |
1096 |         func setupChannel() -> EventLoopFuture<Channel> {
     |              `- warning: concurrently-executed local function 'setupChannel()' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
1097 |             eventLoop.assertInEventLoop()
1098 |             return self._channelOptions.applyAllChannelOptions(to: channel).flatMap {
/host/spi-builder-workspace/Sources/NIOPosix/Bootstrap.swift:1146:37: warning: capture of 'self' with non-sendable type 'ClientBootstrap' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 788 | ///
 789 | /// The connected `SocketChannel` will operate on `ByteBuffer` as inbound and on `IOData` as outbound messages.
 790 | public final class ClientBootstrap: NIOClientTCPBootstrapProtocol {
     |                    `- note: class 'ClientBootstrap' does not conform to the 'Sendable' protocol
 791 |     private let group: EventLoopGroup
 792 |     private var protocolHandlers: Optional<@Sendable () -> [ChannelHandler]>
     :
1144 |             eventLoop.assertInEventLoop()
1145 |             return channelOptions.applyAllChannelOptions(to: channel).flatMap {
1146 |                 if let bindTarget = self.bindTarget {
     |                                     `- warning: capture of 'self' with non-sendable type 'ClientBootstrap' in a `@Sendable` closure; this is an error in the Swift 6 language mode
1147 |                     return channel.bind(to: bindTarget).flatMap {
1148 |                         channelInitializer(channel)
/host/spi-builder-workspace/Sources/NIOPosix/Bootstrap.swift:1155:59: warning: capture of 'body' with non-sendable type '(any Channel) -> EventLoopFuture<Void>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
1153 |             }.flatMap {
1154 |                 eventLoop.assertInEventLoop()
1155 |                 return channel.registerAndDoSynchronously(body)
     |                                                           |- warning: capture of 'body' with non-sendable type '(any Channel) -> EventLoopFuture<Void>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
     |                                                           `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
1156 |             }.map {
1157 |                 channel
/host/spi-builder-workspace/Sources/NIOPosix/Bootstrap.swift:1168:17: warning: capture of 'setupChannel()' with non-sendable type '() -> EventLoopFuture<any Channel>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
1166 |         } else {
1167 |             return eventLoop.flatSubmit {
1168 |                 setupChannel()
     |                 |- warning: capture of 'setupChannel()' with non-sendable type '() -> EventLoopFuture<any Channel>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
     |                 `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
1169 |             }
1170 |         }
/host/spi-builder-workspace/Sources/NIOPosix/Bootstrap.swift:1143:14: warning: concurrently-executed local function 'setupChannel()' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
1141 |
1142 |         @inline(__always)
1143 |         func setupChannel() -> EventLoopFuture<Channel> {
     |              `- warning: concurrently-executed local function 'setupChannel()' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
1144 |             eventLoop.assertInEventLoop()
1145 |             return channelOptions.applyAllChannelOptions(to: channel).flatMap {
/host/spi-builder-workspace/Sources/NIOPosix/Bootstrap.swift:1387:52: warning: capture of 'body' with non-sendable type '(any Channel) -> EventLoopFuture<Void>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
1385 |             channelInitializer: channelInitializer,
1386 |             registration: { channel in
1387 |                 channel.registerAndDoSynchronously(body)
     |                                                    |- warning: capture of 'body' with non-sendable type '(any Channel) -> EventLoopFuture<Void>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
     |                                                    `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
1388 |             },
1389 |             postRegisterTransformation: postRegisterTransformation
/host/spi-builder-workspace/Sources/NIOPosix/Bootstrap.swift:1423:33: warning: capture of 'channelInitializer' with non-sendable type '(any Channel) -> EventLoopFuture<ChannelInitializerResult>' in a `@Sendable` local function; this is an error in the Swift 6 language mode
1421 |                             .bind(to: bindTarget)
1422 |                             .flatMap {
1423 |                                 channelInitializer(channel)
     |                                 |- warning: capture of 'channelInitializer' with non-sendable type '(any Channel) -> EventLoopFuture<ChannelInitializerResult>' in a `@Sendable` local function; this is an error in the Swift 6 language mode
     |                                 `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
1424 |                             }
1425 |                     } else {
/host/spi-builder-workspace/Sources/NIOPosix/Bootstrap.swift:1423:33: warning: capture of 'channelInitializer' with non-sendable type '(any Channel) -> EventLoopFuture<ChannelInitializerResult>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
1421 |                             .bind(to: bindTarget)
1422 |                             .flatMap {
1423 |                                 channelInitializer(channel)
     |                                 |- warning: capture of 'channelInitializer' with non-sendable type '(any Channel) -> EventLoopFuture<ChannelInitializerResult>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
     |                                 `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
1424 |                             }
1425 |                     } else {
/host/spi-builder-workspace/Sources/NIOPosix/Bootstrap.swift:1423:33: warning: capture of 'channelInitializer' with non-sendable type '(any Channel) -> EventLoopFuture<ChannelInitializerResult>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
1421 |                             .bind(to: bindTarget)
1422 |                             .flatMap {
1423 |                                 channelInitializer(channel)
     |                                 |- warning: capture of 'channelInitializer' with non-sendable type '(any Channel) -> EventLoopFuture<ChannelInitializerResult>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
     |                                 `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
1424 |                             }
1425 |                     } else {
/host/spi-builder-workspace/Sources/NIOPosix/Bootstrap.swift:1431:25: warning: capture of 'result' with non-sendable type 'ChannelInitializerResult' in a `@Sendable` closure; this is an error in the Swift 6 language mode
1392 |
1393 |     @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
1394 |     private func initializeAndRegisterChannel<ChannelInitializerResult, PostRegistrationTransformationResult>(
     |                                               `- note: consider making generic parameter 'ChannelInitializerResult' conform to the 'Sendable' protocol
1395 |         channel: SocketChannel,
1396 |         channelInitializer: @escaping @Sendable (Channel) -> EventLoopFuture<ChannelInitializerResult>,
     :
1429 |                     eventLoop.assertInEventLoop()
1430 |                     return registration(channel).map {
1431 |                         result
     |                         `- warning: capture of 'result' with non-sendable type 'ChannelInitializerResult' in a `@Sendable` closure; this is an error in the Swift 6 language mode
1432 |                     }
1433 |                 }.flatMap {
/host/spi-builder-workspace/Sources/NIOPosix/Bootstrap.swift:1710:17: warning: capture of 'channelInitializer' with non-sendable type '(any Channel) -> EventLoopFuture<Void>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
1708 |             eventLoop.assertInEventLoop()
1709 |             return channelOptions.applyAllChannelOptions(to: channel).flatMap {
1710 |                 channelInitializer(channel)
     |                 |- warning: capture of 'channelInitializer' with non-sendable type '(any Channel) -> EventLoopFuture<Void>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
     |                 `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
1711 |             }.flatMap {
1712 |                 eventLoop.assertInEventLoop()
/host/spi-builder-workspace/Sources/NIOPosix/Bootstrap.swift:1713:24: warning: capture of 'bringup' with non-sendable type '(any EventLoop, DatagramChannel) -> EventLoopFuture<Void>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
1711 |             }.flatMap {
1712 |                 eventLoop.assertInEventLoop()
1713 |                 return bringup(eventLoop, channel)
     |                        |- warning: capture of 'bringup' with non-sendable type '(any EventLoop, DatagramChannel) -> EventLoopFuture<Void>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
     |                        `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
1714 |             }.map {
1715 |                 channel
/host/spi-builder-workspace/Sources/NIOPosix/Bootstrap.swift:1725:17: warning: capture of 'setupChannel()' with non-sendable type '() -> EventLoopFuture<any Channel>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
1723 |         } else {
1724 |             return eventLoop.flatSubmit {
1725 |                 setupChannel()
     |                 |- warning: capture of 'setupChannel()' with non-sendable type '() -> EventLoopFuture<any Channel>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
     |                 `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
1726 |             }
1727 |         }
/host/spi-builder-workspace/Sources/NIOPosix/Bootstrap.swift:1707:14: warning: concurrently-executed local function 'setupChannel()' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
1705 |         }
1706 |
1707 |         func setupChannel() -> EventLoopFuture<Channel> {
     |              `- warning: concurrently-executed local function 'setupChannel()' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
1708 |             eventLoop.assertInEventLoop()
1709 |             return channelOptions.applyAllChannelOptions(to: channel).flatMap {
/host/spi-builder-workspace/Sources/NIOPosix/Bootstrap.swift:2000:17: warning: capture of 'channelInitializer' with non-sendable type '(any Channel) -> EventLoopFuture<ChannelInitializerResult>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
1998 |             eventLoop.assertInEventLoop()
1999 |             return channelOptions.applyAllChannelOptions(to: channel).flatMap {
2000 |                 channelInitializer(channel)
     |                 |- warning: capture of 'channelInitializer' with non-sendable type '(any Channel) -> EventLoopFuture<ChannelInitializerResult>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
     |                 `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
2001 |             }.flatMap { (result: ChannelInitializerResult) in
2002 |                 eventLoop.assertInEventLoop()
/host/spi-builder-workspace/Sources/NIOPosix/Bootstrap.swift:2004:21: warning: capture of 'result' with non-sendable type 'ChannelInitializerResult' in a `@Sendable` closure; this is an error in the Swift 6 language mode
1973 |
1974 |     @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
1975 |     private func makeConfiguredChannel<ChannelInitializerResult, PostRegistrationTransformationResult>(
     |                                        `- note: consider making generic parameter 'ChannelInitializerResult' conform to the 'Sendable' protocol
1976 |         makeChannel: (_ eventLoop: SelectableEventLoop) throws -> DatagramChannel,
1977 |         channelInitializer: @escaping @Sendable (Channel) -> EventLoopFuture<ChannelInitializerResult>,
     :
2002 |                 eventLoop.assertInEventLoop()
2003 |                 return registration(channel).map {
2004 |                     result
     |                     `- warning: capture of 'result' with non-sendable type 'ChannelInitializerResult' in a `@Sendable` closure; this is an error in the Swift 6 language mode
2005 |                 }
2006 |             }.flatMap { (result: ChannelInitializerResult) -> EventLoopFuture<PostRegistrationTransformationResult> in
/host/spi-builder-workspace/Sources/NIOPosix/Bootstrap.swift:2019:17: warning: capture of 'setupChannel()' with non-sendable type '() -> EventLoopFuture<PostRegistrationTransformationResult>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
2017 |         } else {
2018 |             return eventLoop.flatSubmit {
2019 |                 setupChannel()
     |                 |- warning: capture of 'setupChannel()' with non-sendable type '() -> EventLoopFuture<PostRegistrationTransformationResult>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
     |                 `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
2020 |             }
2021 |         }
/host/spi-builder-workspace/Sources/NIOPosix/Bootstrap.swift:1997:14: warning: concurrently-executed local function 'setupChannel()' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
1995 |         }
1996 |
1997 |         func setupChannel() -> EventLoopFuture<PostRegistrationTransformationResult> {
     |              `- warning: concurrently-executed local function 'setupChannel()' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
1998 |             eventLoop.assertInEventLoop()
1999 |             return channelOptions.applyAllChannelOptions(to: channel).flatMap {
/host/spi-builder-workspace/Sources/NIOPosix/Bootstrap.swift:2445:20: warning: capture of 'inputFileHandle' with non-sendable type 'NIOFileHandle?' in a `@Sendable` local function; this is an error in the Swift 6 language mode
2443 |                 return promise.futureResult.map { result }
2444 |             }.flatMap { result -> EventLoopFuture<ChannelInitializerResult> in
2445 |                 if inputFileHandle == nil {
     |                    `- warning: capture of 'inputFileHandle' with non-sendable type 'NIOFileHandle?' in a `@Sendable` local function; this is an error in the Swift 6 language mode
2446 |                     return channel.close(mode: .input).map { result }
2447 |                 }
/host/spi-builder-workspace/Sources/NIOCore/FileHandle.swift:47:20: note: class 'NIOFileHandle' does not conform to the 'Sendable' protocol
 45 | ///
 46 | /// - warning: `NIOFileHandle` objects are not thread-safe and are mutable. They also cannot be fully thread-safe as they refer to a global underlying file descriptor.
 47 | public final class NIOFileHandle: FileDescriptor {
    |                    `- note: class 'NIOFileHandle' does not conform to the 'Sendable' protocol
 48 |     public private(set) var isOpen: Bool
 49 |     private let descriptor: CInt
/host/spi-builder-workspace/Sources/NIOPosix/Bootstrap.swift:14:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'NIOCore'
  12 | //
  13 | //===----------------------------------------------------------------------===//
  14 | import NIOCore
     | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'NIOCore'
  15 |
  16 | #if os(Windows)
/host/spi-builder-workspace/Sources/NIOPosix/Bootstrap.swift:2448:20: warning: capture of 'outputFileHandle' with non-sendable type 'NIOFileHandle?' in a `@Sendable` local function; this is an error in the Swift 6 language mode
2446 |                     return channel.close(mode: .input).map { result }
2447 |                 }
2448 |                 if outputFileHandle == nil {
     |                    `- warning: capture of 'outputFileHandle' with non-sendable type 'NIOFileHandle?' in a `@Sendable` local function; this is an error in the Swift 6 language mode
2449 |                     return channel.close(mode: .output).map { result }
2450 |                 }
/host/spi-builder-workspace/Sources/NIOCore/FileHandle.swift:47:20: note: class 'NIOFileHandle' does not conform to the 'Sendable' protocol
 45 | ///
 46 | /// - warning: `NIOFileHandle` objects are not thread-safe and are mutable. They also cannot be fully thread-safe as they refer to a global underlying file descriptor.
 47 | public final class NIOFileHandle: FileDescriptor {
    |                    `- note: class 'NIOFileHandle' does not conform to the 'Sendable' protocol
 48 |     public private(set) var isOpen: Bool
 49 |     private let descriptor: CInt
/host/spi-builder-workspace/Sources/NIOPosix/Bootstrap.swift:2445:20: warning: capture of 'inputFileHandle' with non-sendable type 'NIOFileHandle?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
2443 |                 return promise.futureResult.map { result }
2444 |             }.flatMap { result -> EventLoopFuture<ChannelInitializerResult> in
2445 |                 if inputFileHandle == nil {
     |                    `- warning: capture of 'inputFileHandle' with non-sendable type 'NIOFileHandle?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
2446 |                     return channel.close(mode: .input).map { result }
2447 |                 }
/host/spi-builder-workspace/Sources/NIOCore/FileHandle.swift:47:20: note: class 'NIOFileHandle' does not conform to the 'Sendable' protocol
 45 | ///
 46 | /// - warning: `NIOFileHandle` objects are not thread-safe and are mutable. They also cannot be fully thread-safe as they refer to a global underlying file descriptor.
 47 | public final class NIOFileHandle: FileDescriptor {
    |                    `- note: class 'NIOFileHandle' does not conform to the 'Sendable' protocol
 48 |     public private(set) var isOpen: Bool
 49 |     private let descriptor: CInt
/host/spi-builder-workspace/Sources/NIOPosix/Bootstrap.swift:2448:20: warning: capture of 'outputFileHandle' with non-sendable type 'NIOFileHandle?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
2446 |                     return channel.close(mode: .input).map { result }
2447 |                 }
2448 |                 if outputFileHandle == nil {
     |                    `- warning: capture of 'outputFileHandle' with non-sendable type 'NIOFileHandle?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
2449 |                     return channel.close(mode: .output).map { result }
2450 |                 }
/host/spi-builder-workspace/Sources/NIOCore/FileHandle.swift:47:20: note: class 'NIOFileHandle' does not conform to the 'Sendable' protocol
 45 | ///
 46 | /// - warning: `NIOFileHandle` objects are not thread-safe and are mutable. They also cannot be fully thread-safe as they refer to a global underlying file descriptor.
 47 | public final class NIOFileHandle: FileDescriptor {
    |                    `- note: class 'NIOFileHandle' does not conform to the 'Sendable' protocol
 48 |     public private(set) var isOpen: Bool
 49 |     private let descriptor: CInt
/host/spi-builder-workspace/Sources/NIOPosix/GetaddrinfoResolver.swift:101:13: warning: capture of 'self' with non-sendable type 'GetaddrinfoResolver' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 51 | let offloadQueueTSV = ThreadSpecificVariable<DispatchQueue>()
 52 |
 53 | internal class GetaddrinfoResolver: Resolver {
    |                `- note: class 'GetaddrinfoResolver' does not conform to the 'Sendable' protocol
 54 |     private let v4Future: EventLoopPromise<[SocketAddress]>
 55 |     private let v6Future: EventLoopPromise<[SocketAddress]>
    :
 99 |     func initiateAAAAQuery(host: String, port: Int) -> EventLoopFuture<[SocketAddress]> {
100 |         self.offloadQueue().async {
101 |             self.resolveBlocking(host: host, port: port)
    |             `- warning: capture of 'self' with non-sendable type 'GetaddrinfoResolver' in a `@Sendable` closure; this is an error in the Swift 6 language mode
102 |         }
103 |         return v6Future.futureResult
/host/spi-builder-workspace/Sources/NIOPosix/HappyEyeballs.swift:352:13: warning: capture of 'self' with non-sendable type 'HappyEyeballsConnector<ChannelBuilderResult>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
145 | /// The `ChannelBuilderResult` generic type can used to tunnel an arbitrary type
146 | /// from the `channelBuilderCallback` to the `resolve` methods return value.
147 | internal final class HappyEyeballsConnector<ChannelBuilderResult> {
    |                      `- note: generic class 'HappyEyeballsConnector' does not conform to the 'Sendable' protocol
148 |     /// An enum for keeping track of connection state.
149 |     private enum ConnectionState {
    :
350 |         // We dispatch ourselves onto the event loop, rather than do all the rest of our processing from outside it.
351 |         self.loop.execute {
352 |             self.timeoutTask = self.loop.scheduleTask(in: self.connectTimeout) {
    |             `- warning: capture of 'self' with non-sendable type 'HappyEyeballsConnector<ChannelBuilderResult>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
353 |                 self.processInput(.connectTimeoutElapsed)
354 |             }
/host/spi-builder-workspace/Sources/NIOPosix/HappyEyeballs.swift:353:17: warning: capture of 'self' with non-sendable type 'HappyEyeballsConnector<ChannelBuilderResult>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
145 | /// The `ChannelBuilderResult` generic type can used to tunnel an arbitrary type
146 | /// from the `channelBuilderCallback` to the `resolve` methods return value.
147 | internal final class HappyEyeballsConnector<ChannelBuilderResult> {
    |                      `- note: generic class 'HappyEyeballsConnector' does not conform to the 'Sendable' protocol
148 |     /// An enum for keeping track of connection state.
149 |     private enum ConnectionState {
    :
351 |         self.loop.execute {
352 |             self.timeoutTask = self.loop.scheduleTask(in: self.connectTimeout) {
353 |                 self.processInput(.connectTimeoutElapsed)
    |                 `- warning: capture of 'self' with non-sendable type 'HappyEyeballsConnector<ChannelBuilderResult>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
354 |             }
355 |             self.processInput(.resolve)
/host/spi-builder-workspace/Sources/NIOPosix/HappyEyeballs.swift:504:65: warning: converting non-sendable function value to '@Sendable () throws -> Void' may introduce data races
502 |     /// This method sets off a scheduled task for the resolution delay.
503 |     private func beginResolutionDelay() {
504 |         resolutionTask = loop.scheduleTask(in: resolutionDelay, resolutionDelayComplete)
    |                                                                 `- warning: converting non-sendable function value to '@Sendable () throws -> Void' may introduce data races
505 |     }
506 |
/host/spi-builder-workspace/Sources/NIOPosix/HappyEyeballs.swift:519:67: warning: capture of 'self' with non-sendable type 'HappyEyeballsConnector<ChannelBuilderResult>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
145 | /// The `ChannelBuilderResult` generic type can used to tunnel an arbitrary type
146 | /// from the `channelBuilderCallback` to the `resolve` methods return value.
147 | internal final class HappyEyeballsConnector<ChannelBuilderResult> {
    |                      `- note: generic class 'HappyEyeballsConnector' does not conform to the 'Sendable' protocol
148 |     /// An enum for keeping track of connection state.
149 |     private enum ConnectionState {
    :
517 |         }
518 |
519 |         connectionTask = loop.scheduleTask(in: connectionDelay) { self.processInput(.connectDelayElapsed) }
    |                                                                   `- warning: capture of 'self' with non-sendable type 'HappyEyeballsConnector<ChannelBuilderResult>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
520 |         connectToTarget(target)
521 |     }
/host/spi-builder-workspace/Sources/NIOPosix/HappyEyeballs.swift:596:33: warning: capture of 'self' with non-sendable type 'HappyEyeballsConnector<ChannelBuilderResult>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
145 | /// The `ChannelBuilderResult` generic type can used to tunnel an arbitrary type
146 | /// from the `channelBuilderCallback` to the `resolve` methods return value.
147 | internal final class HappyEyeballsConnector<ChannelBuilderResult> {
    |                      `- note: generic class 'HappyEyeballsConnector' does not conform to the 'Sendable' protocol
148 |     /// An enum for keeping track of connection state.
149 |     private enum ConnectionState {
    :
594 |             // If we are in the complete state then we want to abandon this channel. Otherwise, begin
595 |             // connecting.
596 |             if case .complete = self.state {
    |                                 `- warning: capture of 'self' with non-sendable type 'HappyEyeballsConnector<ChannelBuilderResult>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
597 |                 self.pendingConnections.removeAll { $0 === channelFuture }
598 |                 channel.close(promise: nil)
/host/spi-builder-workspace/Sources/NIOPosix/HappyEyeballs.swift:597:60: warning: capture of 'channelFuture' with non-sendable type 'EventLoopFuture<(any Channel, ChannelBuilderResult)>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
145 | /// The `ChannelBuilderResult` generic type can used to tunnel an arbitrary type
146 | /// from the `channelBuilderCallback` to the `resolve` methods return value.
147 | internal final class HappyEyeballsConnector<ChannelBuilderResult> {
    |                                             `- note: consider making generic parameter 'ChannelBuilderResult' conform to the 'Sendable' protocol
148 |     /// An enum for keeping track of connection state.
149 |     private enum ConnectionState {
    :
595 |             // connecting.
596 |             if case .complete = self.state {
597 |                 self.pendingConnections.removeAll { $0 === channelFuture }
    |                                                            `- warning: capture of 'channelFuture' with non-sendable type 'EventLoopFuture<(any Channel, ChannelBuilderResult)>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
598 |                 channel.close(promise: nil)
599 |             } else {
/host/spi-builder-workspace/Sources/NIOPosix/HappyEyeballs.swift:597:60: warning: capture of 'channelFuture' with non-sendable type 'EventLoopFuture<(any Channel, ChannelBuilderResult)>' in an isolated closure; this is an error in the Swift 6 language mode
145 | /// The `ChannelBuilderResult` generic type can used to tunnel an arbitrary type
146 | /// from the `channelBuilderCallback` to the `resolve` methods return value.
147 | internal final class HappyEyeballsConnector<ChannelBuilderResult> {
    |                                             `- note: consider making generic parameter 'ChannelBuilderResult' conform to the 'Sendable' protocol
148 |     /// An enum for keeping track of connection state.
149 |     private enum ConnectionState {
    :
595 |             // connecting.
596 |             if case .complete = self.state {
597 |                 self.pendingConnections.removeAll { $0 === channelFuture }
    |                                                            `- warning: capture of 'channelFuture' with non-sendable type 'EventLoopFuture<(any Channel, ChannelBuilderResult)>' in an isolated closure; this is an error in the Swift 6 language mode
598 |                 channel.close(promise: nil)
599 |             } else {
/host/spi-builder-workspace/Sources/NIOPosix/HappyEyeballs.swift:605:21: warning: capture of 'self' with non-sendable type 'HappyEyeballsConnector<ChannelBuilderResult>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
145 | /// The `ChannelBuilderResult` generic type can used to tunnel an arbitrary type
146 | /// from the `channelBuilderCallback` to the `resolve` methods return value.
147 | internal final class HappyEyeballsConnector<ChannelBuilderResult> {
    |                      `- note: generic class 'HappyEyeballsConnector' does not conform to the 'Sendable' protocol
148 |     /// An enum for keeping track of connection state.
149 |     private enum ConnectionState {
    :
603 |                     // be in our list of pending connections, so we don't either double close or close the connection
604 |                     // we want to use.
605 |                     self.pendingConnections.removeAll { $0 === channelFuture }
    |                     `- warning: capture of 'self' with non-sendable type 'HappyEyeballsConnector<ChannelBuilderResult>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
606 |
607 |                     if case .complete = self.state {
/host/spi-builder-workspace/Sources/NIOPosix/HappyEyeballs.swift:605:64: warning: capture of 'channelFuture' with non-sendable type 'EventLoopFuture<(any Channel, ChannelBuilderResult)>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
145 | /// The `ChannelBuilderResult` generic type can used to tunnel an arbitrary type
146 | /// from the `channelBuilderCallback` to the `resolve` methods return value.
147 | internal final class HappyEyeballsConnector<ChannelBuilderResult> {
    |                                             `- note: consider making generic parameter 'ChannelBuilderResult' conform to the 'Sendable' protocol
148 |     /// An enum for keeping track of connection state.
149 |     private enum ConnectionState {
    :
603 |                     // be in our list of pending connections, so we don't either double close or close the connection
604 |                     // we want to use.
605 |                     self.pendingConnections.removeAll { $0 === channelFuture }
    |                                                                `- warning: capture of 'channelFuture' with non-sendable type 'EventLoopFuture<(any Channel, ChannelBuilderResult)>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
606 |
607 |                     if case .complete = self.state {
/host/spi-builder-workspace/Sources/NIOPosix/HappyEyeballs.swift:611:66: warning: capture of 'result' with non-sendable type 'ChannelBuilderResult' in a `@Sendable` closure; this is an error in the Swift 6 language mode
145 | /// The `ChannelBuilderResult` generic type can used to tunnel an arbitrary type
146 | /// from the `channelBuilderCallback` to the `resolve` methods return value.
147 | internal final class HappyEyeballsConnector<ChannelBuilderResult> {
    |                                             `- note: consider making generic parameter 'ChannelBuilderResult' conform to the 'Sendable' protocol
148 |     /// An enum for keeping track of connection state.
149 |     private enum ConnectionState {
    :
609 |                     } else {
610 |                         self.processInput(.connectSuccess)
611 |                         self.resolutionPromise.succeed((channel, result))
    |                                                                  `- warning: capture of 'result' with non-sendable type 'ChannelBuilderResult' in a `@Sendable` closure; this is an error in the Swift 6 language mode
612 |                     }
613 |                 }.whenFailure { err in
/host/spi-builder-workspace/Sources/NIOPosix/HappyEyeballs.swift:605:64: warning: capture of 'channelFuture' with non-sendable type 'EventLoopFuture<(any Channel, ChannelBuilderResult)>' in an isolated closure; this is an error in the Swift 6 language mode
145 | /// The `ChannelBuilderResult` generic type can used to tunnel an arbitrary type
146 | /// from the `channelBuilderCallback` to the `resolve` methods return value.
147 | internal final class HappyEyeballsConnector<ChannelBuilderResult> {
    |                                             `- note: consider making generic parameter 'ChannelBuilderResult' conform to the 'Sendable' protocol
148 |     /// An enum for keeping track of connection state.
149 |     private enum ConnectionState {
    :
603 |                     // be in our list of pending connections, so we don't either double close or close the connection
604 |                     // we want to use.
605 |                     self.pendingConnections.removeAll { $0 === channelFuture }
    |                                                                `- warning: capture of 'channelFuture' with non-sendable type 'EventLoopFuture<(any Channel, ChannelBuilderResult)>' in an isolated closure; this is an error in the Swift 6 language mode
606 |
607 |                     if case .complete = self.state {
/host/spi-builder-workspace/Sources/NIOPosix/HappyEyeballs.swift:616:41: warning: capture of 'self' with non-sendable type 'HappyEyeballsConnector<ChannelBuilderResult>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
145 | /// The `ChannelBuilderResult` generic type can used to tunnel an arbitrary type
146 | /// from the `channelBuilderCallback` to the `resolve` methods return value.
147 | internal final class HappyEyeballsConnector<ChannelBuilderResult> {
    |                      `- note: generic class 'HappyEyeballsConnector' does not conform to the 'Sendable' protocol
148 |     /// An enum for keeping track of connection state.
149 |     private enum ConnectionState {
    :
614 |                     // The connection attempt failed. If we're in the complete state then there's nothing
615 |                     // to do. Otherwise, notify the state machine of the failure.
616 |                     if case .complete = self.state {
    |                                         `- warning: capture of 'self' with non-sendable type 'HappyEyeballsConnector<ChannelBuilderResult>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
617 |                         assert(
618 |                             self.pendingConnections.firstIndex { $0 === channelFuture } == nil,
/host/spi-builder-workspace/Sources/NIOPosix/HappyEyeballs.swift:618:73: warning: capture of 'channelFuture' with non-sendable type 'EventLoopFuture<(any Channel, ChannelBuilderResult)>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
145 | /// The `ChannelBuilderResult` generic type can used to tunnel an arbitrary type
146 | /// from the `channelBuilderCallback` to the `resolve` methods return value.
147 | internal final class HappyEyeballsConnector<ChannelBuilderResult> {
    |                                             `- note: consider making generic parameter 'ChannelBuilderResult' conform to the 'Sendable' protocol
148 |     /// An enum for keeping track of connection state.
149 |     private enum ConnectionState {
    :
616 |                     if case .complete = self.state {
617 |                         assert(
618 |                             self.pendingConnections.firstIndex { $0 === channelFuture } == nil,
    |                                                                         `- warning: capture of 'channelFuture' with non-sendable type 'EventLoopFuture<(any Channel, ChannelBuilderResult)>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
619 |                             "failed but was still in pending connections"
620 |                         )
/host/spi-builder-workspace/Sources/NIOPosix/HappyEyeballs.swift:618:29: warning: implicit capture of 'self' requires that 'HappyEyeballsConnector<ChannelBuilderResult>' conforms to `Sendable`; this is an error in the Swift 6 language mode
145 | /// The `ChannelBuilderResult` generic type can used to tunnel an arbitrary type
146 | /// from the `channelBuilderCallback` to the `resolve` methods return value.
147 | internal final class HappyEyeballsConnector<ChannelBuilderResult> {
    |                      `- note: generic class 'HappyEyeballsConnector' does not conform to the 'Sendable' protocol
148 |     /// An enum for keeping track of connection state.
149 |     private enum ConnectionState {
    :
616 |                     if case .complete = self.state {
617 |                         assert(
618 |                             self.pendingConnections.firstIndex { $0 === channelFuture } == nil,
    |                             `- warning: implicit capture of 'self' requires that 'HappyEyeballsConnector<ChannelBuilderResult>' conforms to `Sendable`; this is an error in the Swift 6 language mode
619 |                             "failed but was still in pending connections"
620 |                         )
/host/spi-builder-workspace/Sources/NIOPosix/HappyEyeballs.swift:618:73: warning: implicit capture of 'channelFuture' requires that 'EventLoopFuture<(any Channel, ChannelBuilderResult)>' conforms to `Sendable`; this is an error in the Swift 6 language mode
145 | /// The `ChannelBuilderResult` generic type can used to tunnel an arbitrary type
146 | /// from the `channelBuilderCallback` to the `resolve` methods return value.
147 | internal final class HappyEyeballsConnector<ChannelBuilderResult> {
    |                                             `- note: consider making generic parameter 'ChannelBuilderResult' conform to the 'Sendable' protocol
148 |     /// An enum for keeping track of connection state.
149 |     private enum ConnectionState {
    :
616 |                     if case .complete = self.state {
617 |                         assert(
618 |                             self.pendingConnections.firstIndex { $0 === channelFuture } == nil,
    |                                                                         `- warning: implicit capture of 'channelFuture' requires that 'EventLoopFuture<(any Channel, ChannelBuilderResult)>' conforms to `Sendable`; this is an error in the Swift 6 language mode
619 |                             "failed but was still in pending connections"
620 |                         )
/host/spi-builder-workspace/Sources/NIOPosix/HappyEyeballs.swift:618:73: warning: capture of 'channelFuture' with non-sendable type 'EventLoopFuture<(any Channel, ChannelBuilderResult)>' in an isolated closure; this is an error in the Swift 6 language mode
145 | /// The `ChannelBuilderResult` generic type can used to tunnel an arbitrary type
146 | /// from the `channelBuilderCallback` to the `resolve` methods return value.
147 | internal final class HappyEyeballsConnector<ChannelBuilderResult> {
    |                                             `- note: consider making generic parameter 'ChannelBuilderResult' conform to the 'Sendable' protocol
148 |     /// An enum for keeping track of connection state.
149 |     private enum ConnectionState {
    :
616 |                     if case .complete = self.state {
617 |                         assert(
618 |                             self.pendingConnections.firstIndex { $0 === channelFuture } == nil,
    |                                                                         `- warning: capture of 'channelFuture' with non-sendable type 'EventLoopFuture<(any Channel, ChannelBuilderResult)>' in an isolated closure; this is an error in the Swift 6 language mode
619 |                             "failed but was still in pending connections"
620 |                         )
/host/spi-builder-workspace/Sources/NIOPosix/HappyEyeballs.swift:623:68: warning: capture of 'channelFuture' with non-sendable type 'EventLoopFuture<(any Channel, ChannelBuilderResult)>' in an isolated closure; this is an error in the Swift 6 language mode
145 | /// The `ChannelBuilderResult` generic type can used to tunnel an arbitrary type
146 | /// from the `channelBuilderCallback` to the `resolve` methods return value.
147 | internal final class HappyEyeballsConnector<ChannelBuilderResult> {
    |                                             `- note: consider making generic parameter 'ChannelBuilderResult' conform to the 'Sendable' protocol
148 |     /// An enum for keeping track of connection state.
149 |     private enum ConnectionState {
    :
621 |                     } else {
622 |                         self.error.connectionErrors.append(SingleConnectionFailure(target: target, error: err))
623 |                         self.pendingConnections.removeAll { $0 === channelFuture }
    |                                                                    `- warning: capture of 'channelFuture' with non-sendable type 'EventLoopFuture<(any Channel, ChannelBuilderResult)>' in an isolated closure; this is an error in the Swift 6 language mode
624 |                         self.processInput(.connectFailed)
625 |                     }
/host/spi-builder-workspace/Sources/NIOPosix/HappyEyeballs.swift:630:13: warning: capture of 'self' with non-sendable type 'HappyEyeballsConnector<ChannelBuilderResult>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
145 | /// The `ChannelBuilderResult` generic type can used to tunnel an arbitrary type
146 | /// from the `channelBuilderCallback` to the `resolve` methods return value.
147 | internal final class HappyEyeballsConnector<ChannelBuilderResult> {
    |                      `- note: generic class 'HappyEyeballsConnector' does not conform to the 'Sendable' protocol
148 |     /// An enum for keeping track of connection state.
149 |     private enum ConnectionState {
    :
628 |         }
629 |         channelFuture.whenFailure { error in
630 |             self.error.connectionErrors.append(SingleConnectionFailure(target: target, error: error))
    |             `- warning: capture of 'self' with non-sendable type 'HappyEyeballsConnector<ChannelBuilderResult>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
631 |             self.pendingConnections.removeAll { $0 === channelFuture }
632 |             self.processInput(.connectFailed)
/host/spi-builder-workspace/Sources/NIOPosix/HappyEyeballs.swift:631:56: warning: capture of 'channelFuture' with non-sendable type 'EventLoopFuture<(any Channel, ChannelBuilderResult)>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
145 | /// The `ChannelBuilderResult` generic type can used to tunnel an arbitrary type
146 | /// from the `channelBuilderCallback` to the `resolve` methods return value.
147 | internal final class HappyEyeballsConnector<ChannelBuilderResult> {
    |                                             `- note: consider making generic parameter 'ChannelBuilderResult' conform to the 'Sendable' protocol
148 |     /// An enum for keeping track of connection state.
149 |     private enum ConnectionState {
    :
629 |         channelFuture.whenFailure { error in
630 |             self.error.connectionErrors.append(SingleConnectionFailure(target: target, error: error))
631 |             self.pendingConnections.removeAll { $0 === channelFuture }
    |                                                        `- warning: capture of 'channelFuture' with non-sendable type 'EventLoopFuture<(any Channel, ChannelBuilderResult)>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
632 |             self.processInput(.connectFailed)
633 |         }
/host/spi-builder-workspace/Sources/NIOPosix/HappyEyeballs.swift:631:56: warning: capture of 'channelFuture' with non-sendable type 'EventLoopFuture<(any Channel, ChannelBuilderResult)>' in an isolated closure; this is an error in the Swift 6 language mode
145 | /// The `ChannelBuilderResult` generic type can used to tunnel an arbitrary type
146 | /// from the `channelBuilderCallback` to the `resolve` methods return value.
147 | internal final class HappyEyeballsConnector<ChannelBuilderResult> {
    |                                             `- note: consider making generic parameter 'ChannelBuilderResult' conform to the 'Sendable' protocol
148 |     /// An enum for keeping track of connection state.
149 |     private enum ConnectionState {
    :
629 |         channelFuture.whenFailure { error in
630 |             self.error.connectionErrors.append(SingleConnectionFailure(target: target, error: error))
631 |             self.pendingConnections.removeAll { $0 === channelFuture }
    |                                                        `- warning: capture of 'channelFuture' with non-sendable type 'EventLoopFuture<(any Channel, ChannelBuilderResult)>' in an isolated closure; this is an error in the Swift 6 language mode
632 |             self.processInput(.connectFailed)
633 |         }
/host/spi-builder-workspace/Sources/NIOPosix/HappyEyeballs.swift:670:13: warning: capture of 'self' with non-sendable type 'HappyEyeballsConnector<ChannelBuilderResult>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
145 | /// The `ChannelBuilderResult` generic type can used to tunnel an arbitrary type
146 | /// from the `channelBuilderCallback` to the `resolve` methods return value.
147 | internal final class HappyEyeballsConnector<ChannelBuilderResult> {
    |                      `- note: generic class 'HappyEyeballsConnector' does not conform to the 'Sendable' protocol
148 |     /// An enum for keeping track of connection state.
149 |     private enum ConnectionState {
    :
668 |     private func whenALookupComplete(future: EventLoopFuture<[SocketAddress]>) {
669 |         future.map { results in
670 |             self.targets.aResultsAvailable(results)
    |             `- warning: capture of 'self' with non-sendable type 'HappyEyeballsConnector<ChannelBuilderResult>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
671 |         }.recover { err in
672 |             self.error.dnsAError = err
/host/spi-builder-workspace/Sources/NIOPosix/HappyEyeballs.swift:672:13: warning: capture of 'self' with non-sendable type 'HappyEyeballsConnector<ChannelBuilderResult>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
145 | /// The `ChannelBuilderResult` generic type can used to tunnel an arbitrary type
146 | /// from the `channelBuilderCallback` to the `resolve` methods return value.
147 | internal final class HappyEyeballsConnector<ChannelBuilderResult> {
    |                      `- note: generic class 'HappyEyeballsConnector' does not conform to the 'Sendable' protocol
148 |     /// An enum for keeping track of connection state.
149 |     private enum ConnectionState {
    :
670 |             self.targets.aResultsAvailable(results)
671 |         }.recover { err in
672 |             self.error.dnsAError = err
    |             `- warning: capture of 'self' with non-sendable type 'HappyEyeballsConnector<ChannelBuilderResult>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
673 |         }.whenComplete { (_: Result<Void, Error>) in
674 |             self.dnsResolutions += 1
/host/spi-builder-workspace/Sources/NIOPosix/HappyEyeballs.swift:674:13: warning: capture of 'self' with non-sendable type 'HappyEyeballsConnector<ChannelBuilderResult>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
145 | /// The `ChannelBuilderResult` generic type can used to tunnel an arbitrary type
146 | /// from the `channelBuilderCallback` to the `resolve` methods return value.
147 | internal final class HappyEyeballsConnector<ChannelBuilderResult> {
    |                      `- note: generic class 'HappyEyeballsConnector' does not conform to the 'Sendable' protocol
148 |     /// An enum for keeping track of connection state.
149 |     private enum ConnectionState {
    :
672 |             self.error.dnsAError = err
673 |         }.whenComplete { (_: Result<Void, Error>) in
674 |             self.dnsResolutions += 1
    |             `- warning: capture of 'self' with non-sendable type 'HappyEyeballsConnector<ChannelBuilderResult>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
675 |             self.processInput(.resolverACompleted)
676 |         }
/host/spi-builder-workspace/Sources/NIOPosix/HappyEyeballs.swift:682:13: warning: capture of 'self' with non-sendable type 'HappyEyeballsConnector<ChannelBuilderResult>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
145 | /// The `ChannelBuilderResult` generic type can used to tunnel an arbitrary type
146 | /// from the `channelBuilderCallback` to the `resolve` methods return value.
147 | internal final class HappyEyeballsConnector<ChannelBuilderResult> {
    |                      `- note: generic class 'HappyEyeballsConnector' does not conform to the 'Sendable' protocol
148 |     /// An enum for keeping track of connection state.
149 |     private enum ConnectionState {
    :
680 |     private func whenAAAALookupComplete(future: EventLoopFuture<[SocketAddress]>) {
681 |         future.map { results in
682 |             self.targets.aaaaResultsAvailable(results)
    |             `- warning: capture of 'self' with non-sendable type 'HappyEyeballsConnector<ChannelBuilderResult>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
683 |         }.recover { err in
684 |             self.error.dnsAAAAError = err
/host/spi-builder-workspace/Sources/NIOPosix/HappyEyeballs.swift:684:13: warning: capture of 'self' with non-sendable type 'HappyEyeballsConnector<ChannelBuilderResult>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
145 | /// The `ChannelBuilderResult` generic type can used to tunnel an arbitrary type
146 | /// from the `channelBuilderCallback` to the `resolve` methods return value.
147 | internal final class HappyEyeballsConnector<ChannelBuilderResult> {
    |                      `- note: generic class 'HappyEyeballsConnector' does not conform to the 'Sendable' protocol
148 |     /// An enum for keeping track of connection state.
149 |     private enum ConnectionState {
    :
682 |             self.targets.aaaaResultsAvailable(results)
683 |         }.recover { err in
684 |             self.error.dnsAAAAError = err
    |             `- warning: capture of 'self' with non-sendable type 'HappyEyeballsConnector<ChannelBuilderResult>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
685 |         }.whenComplete { (_: Result<Void, Error>) in
686 |             // It's possible that we were waiting to time out here, so if we were we should
/host/spi-builder-workspace/Sources/NIOPosix/HappyEyeballs.swift:688:13: warning: capture of 'self' with non-sendable type 'HappyEyeballsConnector<ChannelBuilderResult>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
145 | /// The `ChannelBuilderResult` generic type can used to tunnel an arbitrary type
146 | /// from the `channelBuilderCallback` to the `resolve` methods return value.
147 | internal final class HappyEyeballsConnector<ChannelBuilderResult> {
    |                      `- note: generic class 'HappyEyeballsConnector' does not conform to the 'Sendable' protocol
148 |     /// An enum for keeping track of connection state.
149 |     private enum ConnectionState {
    :
686 |             // It's possible that we were waiting to time out here, so if we were we should
687 |             // cancel that.
688 |             self.resolutionTask?.cancel()
    |             `- warning: capture of 'self' with non-sendable type 'HappyEyeballsConnector<ChannelBuilderResult>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
689 |             self.resolutionTask = nil
690 |
[287/392] Compiling NIOEchoClient main.swift
[288/392] Emitting module NIOEchoClient
[290/393] Compiling NIOUDPEchoServer main.swift
[291/393] Emitting module NIOUDPEchoServer
[292/393] Emitting module NIOUDPEchoClient
/host/spi-builder-workspace/Sources/NIOUDPEchoClient/main.swift:132:75: warning: main actor-isolated let 'remoteAddress' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
116 | }
117 |
118 | let remoteAddress = { () -> SocketAddress in
    |     `- note: let declared here
119 |     switch connectTarget {
120 |     case .ip(let host, let sendPort, _):
    :
130 |     .channelOption(.socketOption(.so_reuseaddr), value: 1)
131 |     .channelInitializer { channel in
132 |         channel.pipeline.addHandler(EchoHandler(remoteAddressInitializer: remoteAddress))
    |                                                                           `- warning: main actor-isolated let 'remoteAddress' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
133 |     }
134 | defer {
[293/393] Compiling NIOUDPEchoClient main.swift
/host/spi-builder-workspace/Sources/NIOUDPEchoClient/main.swift:132:75: warning: main actor-isolated let 'remoteAddress' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
116 | }
117 |
118 | let remoteAddress = { () -> SocketAddress in
    |     `- note: let declared here
119 |     switch connectTarget {
120 |     case .ip(let host, let sendPort, _):
    :
130 |     .channelOption(.socketOption(.so_reuseaddr), value: 1)
131 |     .channelInitializer { channel in
132 |         channel.pipeline.addHandler(EchoHandler(remoteAddressInitializer: remoteAddress))
    |                                                                           `- warning: main actor-isolated let 'remoteAddress' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
133 |     }
134 | defer {
[294/393] Compiling NIOMulticastChat main.swift
[295/393] Emitting module NIOMulticastChat
[296/395] Emitting module NIOTCPEchoClient
[297/395] Compiling NIOTCPEchoClient Client.swift
[300/399] Emitting module NIOEchoServer
[301/399] Compiling NIOEchoServer main.swift
[304/400] Emitting module NIOTCPEchoServer
[305/400] Compiling NIOTCPEchoServer Server.swift
[306/400] Wrapping AST for NIOUDPEchoClient for debugging
[307/400] Wrapping AST for NIOUDPEchoServer for debugging
[308/405] Wrapping AST for NIOTCPEchoClient for debugging
[309/405] Wrapping AST for NIOPosix for debugging
[310/405] Wrapping AST for NIOMulticastChat for debugging
[311/405] Write Objects.LinkFileList
[315/405] Emitting module NIO
[316/405] Compiling NIO Exports.swift
[316/405] Wrapping AST for NIOEchoClient for debugging
[317/405] Wrapping AST for NIOEchoServer for debugging
[318/405] Write Objects.LinkFileList
[321/406] Compiling NIOChatServer main.swift
[322/406] Emitting module NIOChatServer
[322/406] Wrapping AST for NIOTCPEchoServer for debugging
[324/407] Write Objects.LinkFileList
[327/407] Emitting module NIOChatClient
[328/407] Compiling NIOChatClient main.swift
/host/spi-builder-workspace/Sources/NIOChatClient/main.swift:25:28: warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 23 |         print(Character(UnicodeScalar(byte)), terminator: "")
 24 |         #else
 25 |         fputc(Int32(byte), stdout)
    |                            `- warning: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 26 |         #endif
 27 |     }
SwiftGlibc.stdout:1:12: note: var declared here
1 | public var stdout: UnsafeMutablePointer<FILE>!
  |            `- note: var declared here
[328/408] Linking NIOUDPEchoServer
[329/410] Linking NIOTCPEchoClient
[332/410] Compiling _NIOConcurrency Empty.swift
[333/410] Emitting module _NIOFileSystem
/host/spi-builder-workspace/Sources/NIOFileSystem/FileChunks.swift:32:17: warning: stored property 'stream' of 'Sendable'-conforming struct 'FileChunks' has non-sendable type 'BufferedOrAnyStream<ByteBuffer>'; this is an error in the Swift 6 language mode
 30 |
 31 |     /// The underlying buffered stream.
 32 |     private let stream: BufferedOrAnyStream<ByteBuffer>
    |                 `- warning: stored property 'stream' of 'Sendable'-conforming struct 'FileChunks' has non-sendable type 'BufferedOrAnyStream<ByteBuffer>'; this is an error in the Swift 6 language mode
 33 |
 34 |     /// Create a ``FileChunks`` sequence backed by wrapping an `AsyncSequence`.
/host/spi-builder-workspace/Sources/NIOFileSystem/Internal/BufferedOrAnyStream.swift:18:15: note: consider making generic enum 'BufferedOrAnyStream' conform to the 'Sendable' protocol
16 | /// Wraps a ``BufferedStream<Element>`` or ``AnyAsyncSequence<Element>``.
17 | @available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *)
18 | internal enum BufferedOrAnyStream<Element> {
   |               `- note: consider making generic enum 'BufferedOrAnyStream' conform to the 'Sendable' protocol
19 |     case bufferedStream(BufferedStream<Element>)
20 |     case anyAsyncSequence(AnyAsyncSequence<Element>)
/host/spi-builder-workspace/Sources/NIOFileSystem/Internal/BufferedStream.swift:247:9: warning: @frozen has no effect on non-public enums
 245 |
 246 |         /// A type that indicates the result of writing elements to the source.
 247 |         @frozen
     |         `- warning: @frozen has no effect on non-public enums
 248 |         internal enum WriteResult: Sendable {
 249 |             /// A token that is returned when the asynchronous stream's backpressure strategy indicated that production should
[334/419] Emitting module _NIOConcurrency
[334/421] Linking NIOUDPEchoClient
[335/421] Write Objects.LinkFileList
[338/441] Linking NIOMulticastChat
[340/441] Compiling NIOHTTP1 ByteCollectionUtils.swift
[341/441] Compiling NIOHTTP1 HTTPDecoder.swift
[342/441] Compiling NIOHTTP1 HTTPEncoder.swift
[343/441] Compiling NIOHTTP1 HTTPHeaderValidator.swift
[344/441] Compiling NIOHTTP1 HTTPHeaders+Validation.swift
[345/441] Compiling NIOTLS TLSEvents.swift
error: compile command failed due to signal 6 (use -v to see invocation)
/host/spi-builder-workspace/Sources/NIOFileSystem/Internal/ParallelDirCopy.swift:57:17: warning: capture of 'copyRequiredQueue' with non-sendable type 'NIOAsyncSequenceProducer<FileSystem.DirCopyItem, NoBackPressureStrategy, DirCopyDelegate>.NewSequence' in a `@Sendable` local function; this is an error in the Swift 6 language mode
 55 |         // and cancellation is dealt with separately.
 56 |         @Sendable func yield(_ contentsOf: [DirCopyItem]) {
 57 |             _ = copyRequiredQueue.source.yield(contentsOf: contentsOf)
    |                 `- warning: capture of 'copyRequiredQueue' with non-sendable type 'NIOAsyncSequenceProducer<FileSystem.DirCopyItem, NoBackPressureStrategy, DirCopyDelegate>.NewSequence' in a `@Sendable` local function; this is an error in the Swift 6 language mode
 58 |         }
 59 |
/host/spi-builder-workspace/Sources/NIOCore/AsyncSequences/NIOAsyncSequenceProducer.swift:108:19: note: struct 'NewSequence' does not conform to the 'Sendable' protocol
106 |     /// 2. The ``sequence`` which is the actual `AsyncSequence` and
107 |     /// should be passed to the consumer.
108 |     public struct NewSequence {
    |                   `- note: struct 'NewSequence' does not conform to the 'Sendable' protocol
109 |         /// The source of the ``NIOAsyncSequenceProducer`` used to yield and finish.
110 |         public let source: Source
swift-frontend: /home/build-user/swift/include/swift/SIL/SILType.h:114: swift::SILType::SILType(swift::CanType, swift::SILValueCategory): Assertion `ty->isLegalSILType() && "constructing SILType with type that should have been " "eliminated by SIL lowering"' failed.
Please submit a bug report (https://swift.org/contributing/#reporting-bugs) and include the crash backtrace.
Stack dump:
0.	Program arguments: /usr/bin/swift-frontend -frontend -c /host/spi-builder-workspace/Sources/NIOFileSystem/BufferedReader.swift /host/spi-builder-workspace/Sources/NIOFileSystem/BufferedWriter.swift /host/spi-builder-workspace/Sources/NIOFileSystem/ByteBuffer+FileSystem.swift /host/spi-builder-workspace/Sources/NIOFileSystem/ByteCount.swift /host/spi-builder-workspace/Sources/NIOFileSystem/Convenience.swift /host/spi-builder-workspace/Sources/NIOFileSystem/CopyStrategy.swift /host/spi-builder-workspace/Sources/NIOFileSystem/DirectoryEntries.swift /host/spi-builder-workspace/Sources/NIOFileSystem/DirectoryEntry.swift /host/spi-builder-workspace/Sources/NIOFileSystem/Exports.swift /host/spi-builder-workspace/Sources/NIOFileSystem/FileChunks.swift /host/spi-builder-workspace/Sources/NIOFileSystem/FileHandle.swift /host/spi-builder-workspace/Sources/NIOFileSystem/FileHandleProtocol.swift /host/spi-builder-workspace/Sources/NIOFileSystem/FileInfo.swift /host/spi-builder-workspace/Sources/NIOFileSystem/FileSystem.swift /host/spi-builder-workspace/Sources/NIOFileSystem/FileSystemError+Syscall.swift /host/spi-builder-workspace/Sources/NIOFileSystem/FileSystemError.swift /host/spi-builder-workspace/Sources/NIOFileSystem/FileSystemProtocol.swift /host/spi-builder-workspace/Sources/NIOFileSystem/FileType.swift /host/spi-builder-workspace/Sources/NIOFileSystem/Internal/BufferedOrAnyStream.swift /host/spi-builder-workspace/Sources/NIOFileSystem/Internal/BufferedStream.swift /host/spi-builder-workspace/Sources/NIOFileSystem/Internal/Cancellation.swift -primary-file "/host/spi-builder-workspace/Sources/NIOFileSystem/Internal/Concurrency Primitives/UnsafeTransfer.swift" -primary-file /host/spi-builder-workspace/Sources/NIOFileSystem/Internal/ParallelDirCopy.swift -primary-file /host/spi-builder-workspace/Sources/NIOFileSystem/Internal/String+UnsafeUnititializedCapacity.swift -primary-file "/host/spi-builder-workspace/Sources/NIOFileSystem/Internal/System Calls/CInterop.swift" "/host/spi-builder-workspace/Sources/NIOFileSystem/Internal/System Calls/Errno.swift" "/host/spi-builder-workspace/Sources/NIOFileSystem/Internal/System Calls/FileDescriptor+Syscalls.swift" "/host/spi-builder-workspace/Sources/NIOFileSystem/Internal/System Calls/Mocking.swift" "/host/spi-builder-workspace/Sources/NIOFileSystem/Internal/System Calls/Syscall.swift" "/host/spi-builder-workspace/Sources/NIOFileSystem/Internal/System Calls/Syscalls.swift" /host/spi-builder-workspace/Sources/NIOFileSystem/Internal/SystemFileHandle.swift /host/spi-builder-workspace/Sources/NIOFileSystem/Internal/Utilities.swift /host/spi-builder-workspace/Sources/NIOFileSystem/OpenOptions.swift -supplementary-output-file-map /tmp/TemporaryDirectory.Zrhivz/supplementaryOutputs-6 -target x86_64-unknown-linux-gnu -disable-objc-interop -I /host/spi-builder-workspace/.build/x86_64-unknown-linux-gnu/debug/Modules -enable-testing -g -debug-info-format=dwarf -dwarf-version=4 -module-cache-path /host/spi-builder-workspace/.build/x86_64-unknown-linux-gnu/debug/ModuleCache -swift-version 5 -Onone -D SWIFT_PACKAGE -D DEBUG -D ENABLE_MOCKING -stats-output-dir .stats -strict-concurrency=complete -empty-abi-descriptor -resource-dir /usr/lib/swift -enable-anonymous-context-mangled-names -file-compilation-dir /host/spi-builder-workspace -Xcc -fmodule-map-file=/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/CSystem/include/module.modulemap -Xcc -I -Xcc /host/spi-builder-workspace/.build/checkouts/swift-system/Sources/CSystem/include -Xcc -fmodule-map-file=/host/spi-builder-workspace/.build/checkouts/swift-atomics/Sources/_AtomicsShims/include/module.modulemap -Xcc -I -Xcc /host/spi-builder-workspace/.build/checkouts/swift-atomics/Sources/_AtomicsShims/include -Xcc -fmodule-map-file=/host/spi-builder-workspace/.build/x86_64-unknown-linux-gnu/debug/CNIOWASI.build/module.modulemap -Xcc -I -Xcc /host/spi-builder-workspace/Sources/CNIOWASI/include -Xcc -fmodule-map-file=/host/spi-builder-workspace/Sources/CNIOWindows/include/module.modulemap -Xcc -I -Xcc /host/spi-builder-workspace/Sources/CNIOWindows/include -Xcc -fmodule-map-file=/host/spi-builder-workspace/.build/x86_64-unknown-linux-gnu/debug/CNIOLinux.build/module.modulemap -Xcc -I -Xcc /host/spi-builder-workspace/Sources/CNIOLinux/include -Xcc -fmodule-map-file=/host/spi-builder-workspace/.build/x86_64-unknown-linux-gnu/debug/CNIODarwin.build/module.modulemap -Xcc -I -Xcc /host/spi-builder-workspace/Sources/CNIODarwin/include -Xcc -fmodule-map-file=/host/spi-builder-workspace/.build/x86_64-unknown-linux-gnu/debug/CNIOAtomics.build/module.modulemap -Xcc -I -Xcc /host/spi-builder-workspace/Sources/CNIOAtomics/include -Xcc -fPIC -Xcc -g -Xcc -fno-omit-frame-pointer -module-name _NIOFileSystem -plugin-path /usr/lib/swift/host/plugins -plugin-path /usr/local/lib/swift/host/plugins -parse-as-library -o /host/spi-builder-workspace/.build/x86_64-unknown-linux-gnu/debug/_NIOFileSystem.build/UnsafeTransfer.swift.o -o /host/spi-builder-workspace/.build/x86_64-unknown-linux-gnu/debug/_NIOFileSystem.build/ParallelDirCopy.swift.o -o /host/spi-builder-workspace/.build/x86_64-unknown-linux-gnu/debug/_NIOFileSystem.build/String+UnsafeUnititializedCapacity.swift.o -o /host/spi-builder-workspace/.build/x86_64-unknown-linux-gnu/debug/_NIOFileSystem.build/CInterop.swift.o -index-store-path /host/spi-builder-workspace/.build/x86_64-unknown-linux-gnu/debug/index/store -index-system-modules
1.	Swift version 6.0-dev (LLVM c3efe9282719c35, Swift b163fed2b3101e0)
2.	Compiling with effective version 5.10
3.	While evaluating request ExecuteSILPipelineRequest(Run pipelines { Mandatory Diagnostic Passes + Enabling Optimization Passes } on SIL for _NIOFileSystem)
4.	While running pass #157 SILFunctionTransform "TransferNonSendable" on SILFunction "@$s14_NIOFileSystem04FileB0V21copyDirectoryParallel4from2to23maxConcurrentOperations23shouldProceedAfterError0L8CopyItemy0B7Package0C4PathV_ALSiyAA0E5EntryV_s0O0_ptYaYbKcSbAN_ALtYaYbctYaKFyScgyytsAO_pGzYaKXEfU_06onNextQ0L_ySbAC03DirpQ0OF".
 for 'onNextItem(_:)' (at /host/spi-builder-workspace/Sources/NIOFileSystem/Internal/ParallelDirCopy.swift:82:13)
Stack dump without symbol names (ensure you have llvm-symbolizer in your PATH or set the environment var `LLVM_SYMBOLIZER_PATH` to point to it):
0  swift-frontend 0x000055fbd86032b7
1  swift-frontend 0x000055fbd860100e
2  swift-frontend 0x000055fbd860392a
3  libc.so.6      0x00007f82de212520
4  libc.so.6      0x00007f82de2669fc pthread_kill + 300
5  libc.so.6      0x00007f82de212476 raise + 22
6  libc.so.6      0x00007f82de1f87f3 abort + 211
7  libc.so.6      0x00007f82de1f871b
8  libc.so.6      0x00007f82de209e96
9  swift-frontend 0x000055fbd26d812b
10 swift-frontend 0x000055fbd26d3ca7
11 swift-frontend 0x000055fbd217a3f8
12 swift-frontend 0x000055fbd217b6e1
13 swift-frontend 0x000055fbd217e8ec
14 swift-frontend 0x000055fbd2178208
15 swift-frontend 0x000055fbd21781bd
16 swift-frontend 0x000055fbd21b54ba
17 swift-frontend 0x000055fbd21a0fe6
18 swift-frontend 0x000055fbd21783fd
19 swift-frontend 0x000055fbd21a2a31
20 swift-frontend 0x000055fbd1b3f767
21 swift-frontend 0x000055fbd180dd53
22 swift-frontend 0x000055fbd180cd7b
23 swift-frontend 0x000055fbd181d905
24 swift-frontend 0x000055fbd1810127
25 swift-frontend 0x000055fbd180ee7a
26 swift-frontend 0x000055fbd15c4fce
27 libc.so.6      0x00007f82de1f9d90
28 libc.so.6      0x00007f82de1f9e40 __libc_start_main + 128
29 swift-frontend 0x000055fbd15c4075
[345/441] Wrapping AST for _NIOConcurrency for debugging
[346/441] Wrapping AST for NIOChatServer for debugging
[347/441] Linking NIOTCPEchoServer
[347/441] Write Objects.LinkFileList
[349/441] Wrapping AST for NIOChatClient for debugging
[350/441] Wrapping AST for NIO for debugging
[350/441] Write Objects.LinkFileList
[353/441] Compiling NIOTLS ProtocolNegotiationHandlerStateMachine.swift
[353/441] Linking NIOEchoServer
[355/441] Compiling NIOTLS ApplicationProtocolNegotiationHandler.swift
/host/spi-builder-workspace/Sources/NIOTLS/ApplicationProtocolNegotiationHandler.swift:126:17: warning: capture of 'self' with non-sendable type 'ApplicationProtocolNegotiationHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 65 | /// itself from the channel pipeline, leaving the pipeline in its final
 66 | /// configuration.
 67 | public final class ApplicationProtocolNegotiationHandler: ChannelInboundHandler, RemovableChannelHandler {
    |                    `- note: class 'ApplicationProtocolNegotiationHandler' does not conform to the 'Sendable' protocol
 68 |     public typealias InboundIn = Any
 69 |     public typealias InboundOut = Any
    :
124 |             .hop(to: context.eventLoop)
125 |             .whenComplete { result in
126 |                 self.userFutureCompleted(context: context, result: result)
    |                 `- warning: capture of 'self' with non-sendable type 'ApplicationProtocolNegotiationHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
127 |             }
128 |     }
/host/spi-builder-workspace/Sources/NIOTLS/ApplicationProtocolNegotiationHandler.swift:126:51: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
124 |             .hop(to: context.eventLoop)
125 |             .whenComplete { result in
126 |                 self.userFutureCompleted(context: context, result: result)
    |                                                   `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
127 |             }
128 |     }
/host/spi-builder-workspace/Sources/NIOCore/ChannelPipeline.swift:1496:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1494 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1495 | /// `ChannelHandler`.
1496 | public final class ChannelHandlerContext: ChannelInvoker {
     |                    `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1497 |     // visible for ChannelPipeline to modify
1498 |     fileprivate var next: Optional<ChannelHandlerContext>
[356/441] Emitting module NIOTLS
[356/441] Linking NIOEchoClient
[357/441] Linking NIOChatServer
[358/441] Linking NIOChatClient
[360/441] Compiling NIOTLS NIOTypedApplicationProtocolNegotiationHandler.swift
/host/spi-builder-workspace/Sources/NIOTLS/NIOTypedApplicationProtocolNegotiationHandler.swift:132:17: warning: capture of 'self' with non-sendable type 'NIOTypedApplicationProtocolNegotiationHandler<NegotiationResult>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 40 | /// promise. This allows us to construct pipelines that include protocol negotiation handlers and be able to bridge them into `NIOAsyncChannel`
 41 | /// based bootstraps.
 42 | public final class NIOTypedApplicationProtocolNegotiationHandler<NegotiationResult>: ChannelInboundHandler,
    |                    `- note: generic class 'NIOTypedApplicationProtocolNegotiationHandler' does not conform to the 'Sendable' protocol
 43 |     RemovableChannelHandler
 44 | {
    :
130 |             .hop(to: context.eventLoop)
131 |             .whenComplete { result in
132 |                 self.userFutureCompleted(context: context, result: result)
    |                 `- warning: capture of 'self' with non-sendable type 'NIOTypedApplicationProtocolNegotiationHandler<NegotiationResult>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
133 |             }
134 |     }
/host/spi-builder-workspace/Sources/NIOTLS/NIOTypedApplicationProtocolNegotiationHandler.swift:132:51: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
130 |             .hop(to: context.eventLoop)
131 |             .whenComplete { result in
132 |                 self.userFutureCompleted(context: context, result: result)
    |                                                   `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
133 |             }
134 |     }
/host/spi-builder-workspace/Sources/NIOCore/ChannelPipeline.swift:1496:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1494 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1495 | /// `ChannelHandler`.
1496 | public final class ChannelHandlerContext: ChannelInvoker {
     |                    `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1497 |     // visible for ChannelPipeline to modify
1498 |     fileprivate var next: Optional<ChannelHandlerContext>
[361/441] Compiling NIOTLS SNIHandler.swift
/host/spi-builder-workspace/Sources/NIOTLS/SNIHandler.swift:431:13: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
429 |         waitingForUser = true
430 |         completionHandler(result).whenSuccess {
431 |             context.pipeline.removeHandler(context: context, promise: nil)
    |             `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
432 |         }
433 |     }
/host/spi-builder-workspace/Sources/NIOCore/ChannelPipeline.swift:1496:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1494 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1495 | /// `ChannelHandler`.
1496 | public final class ChannelHandlerContext: ChannelInvoker {
     |                    `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1497 |     // visible for ChannelPipeline to modify
1498 |     fileprivate var next: Optional<ChannelHandlerContext>
[363/442] Compiling NIOHTTP1 NIOTypedHTTPClientUpgradeHandler.swift
/host/spi-builder-workspace/Sources/NIOHTTP1/NIOTypedHTTPClientUpgradeHandler.swift:204:21: warning: capture of 'self' with non-sendable type 'NIOTypedHTTPClientUpgradeHandler<UpgradeResult>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 76 | /// have the capability to upgrade to multiple simultaneous layered protocols.
 77 | @available(macOS 13, iOS 16, tvOS 16, watchOS 9, *)
 78 | public final class NIOTypedHTTPClientUpgradeHandler<UpgradeResult: Sendable>: ChannelDuplexHandler,
    |                    `- note: generic class 'NIOTypedHTTPClientUpgradeHandler' does not conform to the 'Sendable' protocol
 79 |     RemovableChannelHandler
 80 | {
    :
202 |                 .hop(to: context.eventLoop)
203 |                 .whenComplete { result in
204 |                     self.upgradingHandlerCompleted(context: context, result)
    |                     `- warning: capture of 'self' with non-sendable type 'NIOTypedHTTPClientUpgradeHandler<UpgradeResult>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
205 |                 }
206 |
/host/spi-builder-workspace/Sources/NIOHTTP1/NIOTypedHTTPClientUpgradeHandler.swift:204:61: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
202 |                 .hop(to: context.eventLoop)
203 |                 .whenComplete { result in
204 |                     self.upgradingHandlerCompleted(context: context, result)
    |                                                             `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
205 |                 }
206 |
/host/spi-builder-workspace/Sources/NIOCore/ChannelPipeline.swift:1496:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1494 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1495 | /// `ChannelHandler`.
1496 | public final class ChannelHandlerContext: ChannelInvoker {
     |                    `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1497 |     // visible for ChannelPipeline to modify
1498 |     fileprivate var next: Optional<ChannelHandlerContext>
/host/spi-builder-workspace/Sources/NIOHTTP1/NIOTypedHTTPClientUpgradeHandler.swift:228:17: warning: capture of 'upgrader' with non-sendable type 'any NIOTypedHTTPClientProtocolUpgrader<UpgradeResult>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 18 | /// a protocol on a client-side channel.
 19 | /// It has the option of denying this upgrade based upon the server response.
 20 | public protocol NIOTypedHTTPClientProtocolUpgrader<UpgradeResult> {
    |                 `- note: protocol 'NIOTypedHTTPClientProtocolUpgrader' does not conform to the 'Sendable' protocol
 21 |     associatedtype UpgradeResult: Sendable
 22 |
    :
226 |         self.removeHTTPHandlers(context: context)
227 |             .flatMap {
228 |                 upgrader.upgrade(channel: context.channel, upgradeResponse: responseHead)
    |                 `- warning: capture of 'upgrader' with non-sendable type 'any NIOTypedHTTPClientProtocolUpgrader<UpgradeResult>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
229 |             }.hop(to: context.eventLoop)
230 |             .whenComplete { result in
/host/spi-builder-workspace/Sources/NIOHTTP1/NIOTypedHTTPClientUpgradeHandler.swift:228:43: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
226 |         self.removeHTTPHandlers(context: context)
227 |             .flatMap {
228 |                 upgrader.upgrade(channel: context.channel, upgradeResponse: responseHead)
    |                                           `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
229 |             }.hop(to: context.eventLoop)
230 |             .whenComplete { result in
/host/spi-builder-workspace/Sources/NIOCore/ChannelPipeline.swift:1496:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1494 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1495 | /// `ChannelHandler`.
1496 | public final class ChannelHandlerContext: ChannelInvoker {
     |                    `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1497 |     // visible for ChannelPipeline to modify
1498 |     fileprivate var next: Optional<ChannelHandlerContext>
/host/spi-builder-workspace/Sources/NIOHTTP1/NIOTypedHTTPClientUpgradeHandler.swift:231:17: warning: capture of 'self' with non-sendable type 'NIOTypedHTTPClientUpgradeHandler<UpgradeResult>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 76 | /// have the capability to upgrade to multiple simultaneous layered protocols.
 77 | @available(macOS 13, iOS 16, tvOS 16, watchOS 9, *)
 78 | public final class NIOTypedHTTPClientUpgradeHandler<UpgradeResult: Sendable>: ChannelDuplexHandler,
    |                    `- note: generic class 'NIOTypedHTTPClientUpgradeHandler' does not conform to the 'Sendable' protocol
 79 |     RemovableChannelHandler
 80 | {
    :
229 |             }.hop(to: context.eventLoop)
230 |             .whenComplete { result in
231 |                 self.upgradingHandlerCompleted(context: context, result)
    |                 `- warning: capture of 'self' with non-sendable type 'NIOTypedHTTPClientUpgradeHandler<UpgradeResult>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
232 |             }
233 |     }
/host/spi-builder-workspace/Sources/NIOHTTP1/NIOTypedHTTPClientUpgradeHandler.swift:231:57: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
229 |             }.hop(to: context.eventLoop)
230 |             .whenComplete { result in
231 |                 self.upgradingHandlerCompleted(context: context, result)
    |                                                         `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
232 |             }
233 |     }
/host/spi-builder-workspace/Sources/NIOCore/ChannelPipeline.swift:1496:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1494 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1495 | /// `ChannelHandler`.
1496 | public final class ChannelHandlerContext: ChannelInvoker {
     |                    `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1497 |     // visible for ChannelPipeline to modify
1498 |     fileprivate var next: Optional<ChannelHandlerContext>
[364/442] Compiling NIOHTTP1 NIOTypedHTTPClientUpgraderStateMachine.swift
/host/spi-builder-workspace/Sources/NIOHTTP1/NIOTypedHTTPClientUpgradeHandler.swift:204:21: warning: capture of 'self' with non-sendable type 'NIOTypedHTTPClientUpgradeHandler<UpgradeResult>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 76 | /// have the capability to upgrade to multiple simultaneous layered protocols.
 77 | @available(macOS 13, iOS 16, tvOS 16, watchOS 9, *)
 78 | public final class NIOTypedHTTPClientUpgradeHandler<UpgradeResult: Sendable>: ChannelDuplexHandler,
    |                    `- note: generic class 'NIOTypedHTTPClientUpgradeHandler' does not conform to the 'Sendable' protocol
 79 |     RemovableChannelHandler
 80 | {
    :
202 |                 .hop(to: context.eventLoop)
203 |                 .whenComplete { result in
204 |                     self.upgradingHandlerCompleted(context: context, result)
    |                     `- warning: capture of 'self' with non-sendable type 'NIOTypedHTTPClientUpgradeHandler<UpgradeResult>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
205 |                 }
206 |
/host/spi-builder-workspace/Sources/NIOHTTP1/NIOTypedHTTPClientUpgradeHandler.swift:204:61: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
202 |                 .hop(to: context.eventLoop)
203 |                 .whenComplete { result in
204 |                     self.upgradingHandlerCompleted(context: context, result)
    |                                                             `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
205 |                 }
206 |
/host/spi-builder-workspace/Sources/NIOCore/ChannelPipeline.swift:1496:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1494 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1495 | /// `ChannelHandler`.
1496 | public final class ChannelHandlerContext: ChannelInvoker {
     |                    `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1497 |     // visible for ChannelPipeline to modify
1498 |     fileprivate var next: Optional<ChannelHandlerContext>
/host/spi-builder-workspace/Sources/NIOHTTP1/NIOTypedHTTPClientUpgradeHandler.swift:228:17: warning: capture of 'upgrader' with non-sendable type 'any NIOTypedHTTPClientProtocolUpgrader<UpgradeResult>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 18 | /// a protocol on a client-side channel.
 19 | /// It has the option of denying this upgrade based upon the server response.
 20 | public protocol NIOTypedHTTPClientProtocolUpgrader<UpgradeResult> {
    |                 `- note: protocol 'NIOTypedHTTPClientProtocolUpgrader' does not conform to the 'Sendable' protocol
 21 |     associatedtype UpgradeResult: Sendable
 22 |
    :
226 |         self.removeHTTPHandlers(context: context)
227 |             .flatMap {
228 |                 upgrader.upgrade(channel: context.channel, upgradeResponse: responseHead)
    |                 `- warning: capture of 'upgrader' with non-sendable type 'any NIOTypedHTTPClientProtocolUpgrader<UpgradeResult>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
229 |             }.hop(to: context.eventLoop)
230 |             .whenComplete { result in
/host/spi-builder-workspace/Sources/NIOHTTP1/NIOTypedHTTPClientUpgradeHandler.swift:228:43: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
226 |         self.removeHTTPHandlers(context: context)
227 |             .flatMap {
228 |                 upgrader.upgrade(channel: context.channel, upgradeResponse: responseHead)
    |                                           `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
229 |             }.hop(to: context.eventLoop)
230 |             .whenComplete { result in
/host/spi-builder-workspace/Sources/NIOCore/ChannelPipeline.swift:1496:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1494 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1495 | /// `ChannelHandler`.
1496 | public final class ChannelHandlerContext: ChannelInvoker {
     |                    `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1497 |     // visible for ChannelPipeline to modify
1498 |     fileprivate var next: Optional<ChannelHandlerContext>
/host/spi-builder-workspace/Sources/NIOHTTP1/NIOTypedHTTPClientUpgradeHandler.swift:231:17: warning: capture of 'self' with non-sendable type 'NIOTypedHTTPClientUpgradeHandler<UpgradeResult>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 76 | /// have the capability to upgrade to multiple simultaneous layered protocols.
 77 | @available(macOS 13, iOS 16, tvOS 16, watchOS 9, *)
 78 | public final class NIOTypedHTTPClientUpgradeHandler<UpgradeResult: Sendable>: ChannelDuplexHandler,
    |                    `- note: generic class 'NIOTypedHTTPClientUpgradeHandler' does not conform to the 'Sendable' protocol
 79 |     RemovableChannelHandler
 80 | {
    :
229 |             }.hop(to: context.eventLoop)
230 |             .whenComplete { result in
231 |                 self.upgradingHandlerCompleted(context: context, result)
    |                 `- warning: capture of 'self' with non-sendable type 'NIOTypedHTTPClientUpgradeHandler<UpgradeResult>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
232 |             }
233 |     }
/host/spi-builder-workspace/Sources/NIOHTTP1/NIOTypedHTTPClientUpgradeHandler.swift:231:57: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
229 |             }.hop(to: context.eventLoop)
230 |             .whenComplete { result in
231 |                 self.upgradingHandlerCompleted(context: context, result)
    |                                                         `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
232 |             }
233 |     }
/host/spi-builder-workspace/Sources/NIOCore/ChannelPipeline.swift:1496:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1494 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1495 | /// `ChannelHandler`.
1496 | public final class ChannelHandlerContext: ChannelInvoker {
     |                    `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1497 |     // visible for ChannelPipeline to modify
1498 |     fileprivate var next: Optional<ChannelHandlerContext>
[364/444] Wrapping AST for NIOTLS for debugging
[366/444] Compiling NIOHTTP1 NIOHTTPClientUpgradeHandler.swift
/host/spi-builder-workspace/Sources/NIOHTTP1/NIOHTTPClientUpgradeHandler.swift:334:51: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
332 |                 .map {
333 |                     // Let the other handlers be removed before continuing with upgrade.
334 |                     self.upgradeCompletionHandler(context)
    |                                                   `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
335 |                     self.upgradeState = .upgradingAddingHandlers
336 |                 }
/host/spi-builder-workspace/Sources/NIOCore/ChannelPipeline.swift:1496:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1494 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1495 | /// `ChannelHandler`.
1496 | public final class ChannelHandlerContext: ChannelInvoker {
     |                    `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1497 |     // visible for ChannelPipeline to modify
1498 |     fileprivate var next: Optional<ChannelHandlerContext>
/host/spi-builder-workspace/Sources/NIOHTTP1/NIOHTTPClientUpgradeHandler.swift:338:21: warning: capture of 'upgrader' with non-sendable type 'any NIOHTTPClientProtocolUpgrader' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 60 | /// a protocol on a client-side channel.
 61 | /// It has the option of denying this upgrade based upon the server response.
 62 | public protocol NIOHTTPClientProtocolUpgrader {
    |                 `- note: protocol 'NIOHTTPClientProtocolUpgrader' does not conform to the 'Sendable' protocol
 63 |
 64 |     /// The protocol this upgrader knows how to support.
    :
336 |                 }
337 |                 .flatMap {
338 |                     upgrader.upgrade(context: context, upgradeResponse: response)
    |                     `- warning: capture of 'upgrader' with non-sendable type 'any NIOHTTPClientProtocolUpgrader' in a `@Sendable` closure; this is an error in the Swift 6 language mode
339 |                 }
340 |                 .map {
/host/spi-builder-workspace/Sources/NIOHTTP1/NIOHTTPClientUpgradeHandler.swift:338:47: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
336 |                 }
337 |                 .flatMap {
338 |                     upgrader.upgrade(context: context, upgradeResponse: response)
    |                                               `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
339 |                 }
340 |                 .map {
/host/spi-builder-workspace/Sources/NIOCore/ChannelPipeline.swift:1496:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1494 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1495 | /// `ChannelHandler`.
1496 | public final class ChannelHandlerContext: ChannelInvoker {
     |                    `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1497 |     // visible for ChannelPipeline to modify
1498 |     fileprivate var next: Optional<ChannelHandlerContext>
/host/spi-builder-workspace/Sources/NIOHTTP1/NIOHTTPClientUpgradeHandler.swift:347:25: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
345 |                     while self.receivedMessages.count > 0 {
346 |                         let bufferedPart = self.receivedMessages.removeFirst()
347 |                         context.fireChannelRead(bufferedPart)
    |                         `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
348 |                     }
349 |                     if fireReadComplete {
/host/spi-builder-workspace/Sources/NIOCore/ChannelPipeline.swift:1496:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1494 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1495 | /// `ChannelHandler`.
1496 | public final class ChannelHandlerContext: ChannelInvoker {
     |                    `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1497 |     // visible for ChannelPipeline to modify
1498 |     fileprivate var next: Optional<ChannelHandlerContext>
/host/spi-builder-workspace/Sources/NIOHTTP1/NIOHTTPClientUpgradeHandler.swift:359:21: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
357 |                 }
358 |                 .whenComplete { _ in
359 |                     context.pipeline.removeHandler(context: context, promise: nil)
    |                     `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
360 |                 }
361 |         }
/host/spi-builder-workspace/Sources/NIOCore/ChannelPipeline.swift:1496:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1494 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1495 | /// `ChannelHandler`.
1496 | public final class ChannelHandlerContext: ChannelInvoker {
     |                    `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1497 |     // visible for ChannelPipeline to modify
1498 |     fileprivate var next: Optional<ChannelHandlerContext>
[367/444] Compiling NIOHTTP1 NIOHTTPObjectAggregator.swift
/host/spi-builder-workspace/Sources/NIOHTTP1/NIOHTTPClientUpgradeHandler.swift:334:51: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
332 |                 .map {
333 |                     // Let the other handlers be removed before continuing with upgrade.
334 |                     self.upgradeCompletionHandler(context)
    |                                                   `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
335 |                     self.upgradeState = .upgradingAddingHandlers
336 |                 }
/host/spi-builder-workspace/Sources/NIOCore/ChannelPipeline.swift:1496:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1494 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1495 | /// `ChannelHandler`.
1496 | public final class ChannelHandlerContext: ChannelInvoker {
     |                    `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1497 |     // visible for ChannelPipeline to modify
1498 |     fileprivate var next: Optional<ChannelHandlerContext>
/host/spi-builder-workspace/Sources/NIOHTTP1/NIOHTTPClientUpgradeHandler.swift:338:21: warning: capture of 'upgrader' with non-sendable type 'any NIOHTTPClientProtocolUpgrader' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 60 | /// a protocol on a client-side channel.
 61 | /// It has the option of denying this upgrade based upon the server response.
 62 | public protocol NIOHTTPClientProtocolUpgrader {
    |                 `- note: protocol 'NIOHTTPClientProtocolUpgrader' does not conform to the 'Sendable' protocol
 63 |
 64 |     /// The protocol this upgrader knows how to support.
    :
336 |                 }
337 |                 .flatMap {
338 |                     upgrader.upgrade(context: context, upgradeResponse: response)
    |                     `- warning: capture of 'upgrader' with non-sendable type 'any NIOHTTPClientProtocolUpgrader' in a `@Sendable` closure; this is an error in the Swift 6 language mode
339 |                 }
340 |                 .map {
/host/spi-builder-workspace/Sources/NIOHTTP1/NIOHTTPClientUpgradeHandler.swift:338:47: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
336 |                 }
337 |                 .flatMap {
338 |                     upgrader.upgrade(context: context, upgradeResponse: response)
    |                                               `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
339 |                 }
340 |                 .map {
/host/spi-builder-workspace/Sources/NIOCore/ChannelPipeline.swift:1496:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1494 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1495 | /// `ChannelHandler`.
1496 | public final class ChannelHandlerContext: ChannelInvoker {
     |                    `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1497 |     // visible for ChannelPipeline to modify
1498 |     fileprivate var next: Optional<ChannelHandlerContext>
/host/spi-builder-workspace/Sources/NIOHTTP1/NIOHTTPClientUpgradeHandler.swift:347:25: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
345 |                     while self.receivedMessages.count > 0 {
346 |                         let bufferedPart = self.receivedMessages.removeFirst()
347 |                         context.fireChannelRead(bufferedPart)
    |                         `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
348 |                     }
349 |                     if fireReadComplete {
/host/spi-builder-workspace/Sources/NIOCore/ChannelPipeline.swift:1496:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1494 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1495 | /// `ChannelHandler`.
1496 | public final class ChannelHandlerContext: ChannelInvoker {
     |                    `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1497 |     // visible for ChannelPipeline to modify
1498 |     fileprivate var next: Optional<ChannelHandlerContext>
/host/spi-builder-workspace/Sources/NIOHTTP1/NIOHTTPClientUpgradeHandler.swift:359:21: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
357 |                 }
358 |                 .whenComplete { _ in
359 |                     context.pipeline.removeHandler(context: context, promise: nil)
    |                     `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
360 |                 }
361 |         }
/host/spi-builder-workspace/Sources/NIOCore/ChannelPipeline.swift:1496:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1494 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1495 | /// `ChannelHandler`.
1496 | public final class ChannelHandlerContext: ChannelInvoker {
     |                    `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1497 |     // visible for ChannelPipeline to modify
1498 |     fileprivate var next: Optional<ChannelHandlerContext>
[370/444] Compiling NIOHTTP1 HTTPPipelineSetup.swift
/host/spi-builder-workspace/Sources/NIOHTTP1/HTTPPipelineSetup.swift:98:31: warning: capture of 'position' with non-sendable type 'ChannelPipeline.Position' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 96 |             future = self.eventLoop.submit {
 97 |                 try self.syncOperations.addHTTPClientHandlers(
 98 |                     position: position,
    |                               `- warning: capture of 'position' with non-sendable type 'ChannelPipeline.Position' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 99 |                     leftOverBytesStrategy: leftOverBytesStrategy,
100 |                     withClientUpgrade: upgrade
/host/spi-builder-workspace/Sources/NIOCore/ChannelPipeline.swift:1359:17: note: enum 'Position' does not conform to the 'Sendable' protocol
1357 | extension ChannelPipeline {
1358 |     /// A `Position` within the `ChannelPipeline` used to insert handlers into the `ChannelPipeline`.
1359 |     public enum Position {
     |                 `- note: enum 'Position' does not conform to the 'Sendable' protocol
1360 |         /// The first `ChannelHandler` -- the front of the `ChannelPipeline`.
1361 |         case first
/host/spi-builder-workspace/Sources/NIOHTTP1/HTTPPipelineSetup.swift:100:40: warning: capture of 'upgrade' with non-sendable type 'NIOHTTPClientUpgradeConfiguration?' (aka 'Optional<(upgraders: Array<any NIOHTTPClientProtocolUpgrader>, completionHandler: @Sendable (ChannelHandlerContext) -> ())>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
 98 |                     position: position,
 99 |                     leftOverBytesStrategy: leftOverBytesStrategy,
100 |                     withClientUpgrade: upgrade
    |                                        `- warning: capture of 'upgrade' with non-sendable type 'NIOHTTPClientUpgradeConfiguration?' (aka 'Optional<(upgraders: Array<any NIOHTTPClientProtocolUpgrader>, completionHandler: @Sendable (ChannelHandlerContext) -> ())>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
101 |                 )
102 |             }
/host/spi-builder-workspace/Sources/NIOHTTP1/NIOHTTPClientUpgradeHandler.swift:62:17: note: protocol 'NIOHTTPClientProtocolUpgrader' does not conform to the 'Sendable' protocol
 60 | /// a protocol on a client-side channel.
 61 | /// It has the option of denying this upgrade based upon the server response.
 62 | public protocol NIOHTTPClientProtocolUpgrader {
    |                 `- note: protocol 'NIOHTTPClientProtocolUpgrader' does not conform to the 'Sendable' protocol
 63 |
 64 |     /// The protocol this upgrader knows how to support.
/host/spi-builder-workspace/Sources/NIOHTTP1/HTTPPipelineSetup.swift:142:31: warning: capture of 'position' with non-sendable type 'ChannelPipeline.Position' in a `@Sendable` closure; this is an error in the Swift 6 language mode
140 |             future = self.eventLoop.submit {
141 |                 try self.syncOperations.addHTTPClientHandlers(
142 |                     position: position,
    |                               `- warning: capture of 'position' with non-sendable type 'ChannelPipeline.Position' in a `@Sendable` closure; this is an error in the Swift 6 language mode
143 |                     leftOverBytesStrategy: leftOverBytesStrategy,
144 |                     enableOutboundHeaderValidation: enableOutboundHeaderValidation,
/host/spi-builder-workspace/Sources/NIOCore/ChannelPipeline.swift:1359:17: note: enum 'Position' does not conform to the 'Sendable' protocol
1357 | extension ChannelPipeline {
1358 |     /// A `Position` within the `ChannelPipeline` used to insert handlers into the `ChannelPipeline`.
1359 |     public enum Position {
     |                 `- note: enum 'Position' does not conform to the 'Sendable' protocol
1360 |         /// The first `ChannelHandler` -- the front of the `ChannelPipeline`.
1361 |         case first
/host/spi-builder-workspace/Sources/NIOHTTP1/HTTPPipelineSetup.swift:145:40: warning: capture of 'upgrade' with non-sendable type 'NIOHTTPClientUpgradeConfiguration?' (aka 'Optional<(upgraders: Array<any NIOHTTPClientProtocolUpgrader>, completionHandler: @Sendable (ChannelHandlerContext) -> ())>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
143 |                     leftOverBytesStrategy: leftOverBytesStrategy,
144 |                     enableOutboundHeaderValidation: enableOutboundHeaderValidation,
145 |                     withClientUpgrade: upgrade
    |                                        `- warning: capture of 'upgrade' with non-sendable type 'NIOHTTPClientUpgradeConfiguration?' (aka 'Optional<(upgraders: Array<any NIOHTTPClientProtocolUpgrader>, completionHandler: @Sendable (ChannelHandlerContext) -> ())>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
146 |                 )
147 |             }
/host/spi-builder-workspace/Sources/NIOHTTP1/NIOHTTPClientUpgradeHandler.swift:62:17: note: protocol 'NIOHTTPClientProtocolUpgrader' does not conform to the 'Sendable' protocol
 60 | /// a protocol on a client-side channel.
 61 | /// It has the option of denying this upgrade based upon the server response.
 62 | public protocol NIOHTTPClientProtocolUpgrader {
    |                 `- note: protocol 'NIOHTTPClientProtocolUpgrader' does not conform to the 'Sendable' protocol
 63 |
 64 |     /// The protocol this upgrader knows how to support.
/host/spi-builder-workspace/Sources/NIOHTTP1/HTTPPipelineSetup.swift:190:31: warning: capture of 'position' with non-sendable type 'ChannelPipeline.Position' in a `@Sendable` closure; this is an error in the Swift 6 language mode
188 |             future = self.eventLoop.submit {
189 |                 try self.syncOperations.addHTTPClientHandlers(
190 |                     position: position,
    |                               `- warning: capture of 'position' with non-sendable type 'ChannelPipeline.Position' in a `@Sendable` closure; this is an error in the Swift 6 language mode
191 |                     leftOverBytesStrategy: leftOverBytesStrategy,
192 |                     enableOutboundHeaderValidation: enableOutboundHeaderValidation,
/host/spi-builder-workspace/Sources/NIOCore/ChannelPipeline.swift:1359:17: note: enum 'Position' does not conform to the 'Sendable' protocol
1357 | extension ChannelPipeline {
1358 |     /// A `Position` within the `ChannelPipeline` used to insert handlers into the `ChannelPipeline`.
1359 |     public enum Position {
     |                 `- note: enum 'Position' does not conform to the 'Sendable' protocol
1360 |         /// The first `ChannelHandler` -- the front of the `ChannelPipeline`.
1361 |         case first
/host/spi-builder-workspace/Sources/NIOHTTP1/HTTPPipelineSetup.swift:194:40: warning: capture of 'upgrade' with non-sendable type 'NIOHTTPClientUpgradeConfiguration?' (aka 'Optional<(upgraders: Array<any NIOHTTPClientProtocolUpgrader>, completionHandler: @Sendable (ChannelHandlerContext) -> ())>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
192 |                     enableOutboundHeaderValidation: enableOutboundHeaderValidation,
193 |                     encoderConfiguration: encoderConfiguration,
194 |                     withClientUpgrade: upgrade
    |                                        `- warning: capture of 'upgrade' with non-sendable type 'NIOHTTPClientUpgradeConfiguration?' (aka 'Optional<(upgraders: Array<any NIOHTTPClientProtocolUpgrader>, completionHandler: @Sendable (ChannelHandlerContext) -> ())>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
195 |                 )
196 |             }
/host/spi-builder-workspace/Sources/NIOHTTP1/NIOHTTPClientUpgradeHandler.swift:62:17: note: protocol 'NIOHTTPClientProtocolUpgrader' does not conform to the 'Sendable' protocol
 60 | /// a protocol on a client-side channel.
 61 | /// It has the option of denying this upgrade based upon the server response.
 62 | public protocol NIOHTTPClientProtocolUpgrader {
    |                 `- note: protocol 'NIOHTTPClientProtocolUpgrader' does not conform to the 'Sendable' protocol
 63 |
 64 |     /// The protocol this upgrader knows how to support.
/host/spi-builder-workspace/Sources/NIOHTTP1/HTTPPipelineSetup.swift:360:31: warning: capture of 'position' with non-sendable type 'ChannelPipeline.Position' in a `@Sendable` closure; this is an error in the Swift 6 language mode
358 |             future = self.eventLoop.submit {
359 |                 try self.syncOperations.configureHTTPServerPipeline(
360 |                     position: position,
    |                               `- warning: capture of 'position' with non-sendable type 'ChannelPipeline.Position' in a `@Sendable` closure; this is an error in the Swift 6 language mode
361 |                     withPipeliningAssistance: pipelining,
362 |                     withServerUpgrade: upgrade,
/host/spi-builder-workspace/Sources/NIOCore/ChannelPipeline.swift:1359:17: note: enum 'Position' does not conform to the 'Sendable' protocol
1357 | extension ChannelPipeline {
1358 |     /// A `Position` within the `ChannelPipeline` used to insert handlers into the `ChannelPipeline`.
1359 |     public enum Position {
     |                 `- note: enum 'Position' does not conform to the 'Sendable' protocol
1360 |         /// The first `ChannelHandler` -- the front of the `ChannelPipeline`.
1361 |         case first
/host/spi-builder-workspace/Sources/NIOHTTP1/HTTPPipelineSetup.swift:362:40: warning: capture of 'upgrade' with non-sendable type 'NIOHTTPServerUpgradeConfiguration?' (aka 'Optional<(upgraders: Array<any HTTPServerProtocolUpgrader>, completionHandler: @Sendable (ChannelHandlerContext) -> ())>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
360 |                     position: position,
361 |                     withPipeliningAssistance: pipelining,
362 |                     withServerUpgrade: upgrade,
    |                                        `- warning: capture of 'upgrade' with non-sendable type 'NIOHTTPServerUpgradeConfiguration?' (aka 'Optional<(upgraders: Array<any HTTPServerProtocolUpgrader>, completionHandler: @Sendable (ChannelHandlerContext) -> ())>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
363 |                     withErrorHandling: errorHandling,
364 |                     withOutboundHeaderValidation: headerValidation,
/host/spi-builder-workspace/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 }
/host/spi-builder-workspace/Sources/NIOHTTP1/HTTPServerPipelineHandler.swift:444:21: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
442 |                 self.lifecycleState = .quiescingCompleted
443 |                 context.write(data).flatMap {
444 |                     context.close()
    |                     `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
445 |                 }.cascade(to: promise)
446 |             case .acceptingEvents, .quiescingWaitingForRequestEnd:
/host/spi-builder-workspace/Sources/NIOCore/ChannelPipeline.swift:1496:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1494 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1495 | /// `ChannelHandler`.
1496 | public final class ChannelHandlerContext: ChannelInvoker {
     |                    `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1497 |     // visible for ChannelPipeline to modify
1498 |     fileprivate var next: Optional<ChannelHandlerContext>
[371/444] Compiling NIOHTTP1 HTTPServerPipelineHandler.swift
/host/spi-builder-workspace/Sources/NIOHTTP1/HTTPPipelineSetup.swift:98:31: warning: capture of 'position' with non-sendable type 'ChannelPipeline.Position' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 96 |             future = self.eventLoop.submit {
 97 |                 try self.syncOperations.addHTTPClientHandlers(
 98 |                     position: position,
    |                               `- warning: capture of 'position' with non-sendable type 'ChannelPipeline.Position' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 99 |                     leftOverBytesStrategy: leftOverBytesStrategy,
100 |                     withClientUpgrade: upgrade
/host/spi-builder-workspace/Sources/NIOCore/ChannelPipeline.swift:1359:17: note: enum 'Position' does not conform to the 'Sendable' protocol
1357 | extension ChannelPipeline {
1358 |     /// A `Position` within the `ChannelPipeline` used to insert handlers into the `ChannelPipeline`.
1359 |     public enum Position {
     |                 `- note: enum 'Position' does not conform to the 'Sendable' protocol
1360 |         /// The first `ChannelHandler` -- the front of the `ChannelPipeline`.
1361 |         case first
/host/spi-builder-workspace/Sources/NIOHTTP1/HTTPPipelineSetup.swift:100:40: warning: capture of 'upgrade' with non-sendable type 'NIOHTTPClientUpgradeConfiguration?' (aka 'Optional<(upgraders: Array<any NIOHTTPClientProtocolUpgrader>, completionHandler: @Sendable (ChannelHandlerContext) -> ())>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
 98 |                     position: position,
 99 |                     leftOverBytesStrategy: leftOverBytesStrategy,
100 |                     withClientUpgrade: upgrade
    |                                        `- warning: capture of 'upgrade' with non-sendable type 'NIOHTTPClientUpgradeConfiguration?' (aka 'Optional<(upgraders: Array<any NIOHTTPClientProtocolUpgrader>, completionHandler: @Sendable (ChannelHandlerContext) -> ())>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
101 |                 )
102 |             }
/host/spi-builder-workspace/Sources/NIOHTTP1/NIOHTTPClientUpgradeHandler.swift:62:17: note: protocol 'NIOHTTPClientProtocolUpgrader' does not conform to the 'Sendable' protocol
 60 | /// a protocol on a client-side channel.
 61 | /// It has the option of denying this upgrade based upon the server response.
 62 | public protocol NIOHTTPClientProtocolUpgrader {
    |                 `- note: protocol 'NIOHTTPClientProtocolUpgrader' does not conform to the 'Sendable' protocol
 63 |
 64 |     /// The protocol this upgrader knows how to support.
/host/spi-builder-workspace/Sources/NIOHTTP1/HTTPPipelineSetup.swift:142:31: warning: capture of 'position' with non-sendable type 'ChannelPipeline.Position' in a `@Sendable` closure; this is an error in the Swift 6 language mode
140 |             future = self.eventLoop.submit {
141 |                 try self.syncOperations.addHTTPClientHandlers(
142 |                     position: position,
    |                               `- warning: capture of 'position' with non-sendable type 'ChannelPipeline.Position' in a `@Sendable` closure; this is an error in the Swift 6 language mode
143 |                     leftOverBytesStrategy: leftOverBytesStrategy,
144 |                     enableOutboundHeaderValidation: enableOutboundHeaderValidation,
/host/spi-builder-workspace/Sources/NIOCore/ChannelPipeline.swift:1359:17: note: enum 'Position' does not conform to the 'Sendable' protocol
1357 | extension ChannelPipeline {
1358 |     /// A `Position` within the `ChannelPipeline` used to insert handlers into the `ChannelPipeline`.
1359 |     public enum Position {
     |                 `- note: enum 'Position' does not conform to the 'Sendable' protocol
1360 |         /// The first `ChannelHandler` -- the front of the `ChannelPipeline`.
1361 |         case first
/host/spi-builder-workspace/Sources/NIOHTTP1/HTTPPipelineSetup.swift:145:40: warning: capture of 'upgrade' with non-sendable type 'NIOHTTPClientUpgradeConfiguration?' (aka 'Optional<(upgraders: Array<any NIOHTTPClientProtocolUpgrader>, completionHandler: @Sendable (ChannelHandlerContext) -> ())>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
143 |                     leftOverBytesStrategy: leftOverBytesStrategy,
144 |                     enableOutboundHeaderValidation: enableOutboundHeaderValidation,
145 |                     withClientUpgrade: upgrade
    |                                        `- warning: capture of 'upgrade' with non-sendable type 'NIOHTTPClientUpgradeConfiguration?' (aka 'Optional<(upgraders: Array<any NIOHTTPClientProtocolUpgrader>, completionHandler: @Sendable (ChannelHandlerContext) -> ())>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
146 |                 )
147 |             }
/host/spi-builder-workspace/Sources/NIOHTTP1/NIOHTTPClientUpgradeHandler.swift:62:17: note: protocol 'NIOHTTPClientProtocolUpgrader' does not conform to the 'Sendable' protocol
 60 | /// a protocol on a client-side channel.
 61 | /// It has the option of denying this upgrade based upon the server response.
 62 | public protocol NIOHTTPClientProtocolUpgrader {
    |                 `- note: protocol 'NIOHTTPClientProtocolUpgrader' does not conform to the 'Sendable' protocol
 63 |
 64 |     /// The protocol this upgrader knows how to support.
/host/spi-builder-workspace/Sources/NIOHTTP1/HTTPPipelineSetup.swift:190:31: warning: capture of 'position' with non-sendable type 'ChannelPipeline.Position' in a `@Sendable` closure; this is an error in the Swift 6 language mode
188 |             future = self.eventLoop.submit {
189 |                 try self.syncOperations.addHTTPClientHandlers(
190 |                     position: position,
    |                               `- warning: capture of 'position' with non-sendable type 'ChannelPipeline.Position' in a `@Sendable` closure; this is an error in the Swift 6 language mode
191 |                     leftOverBytesStrategy: leftOverBytesStrategy,
192 |                     enableOutboundHeaderValidation: enableOutboundHeaderValidation,
/host/spi-builder-workspace/Sources/NIOCore/ChannelPipeline.swift:1359:17: note: enum 'Position' does not conform to the 'Sendable' protocol
1357 | extension ChannelPipeline {
1358 |     /// A `Position` within the `ChannelPipeline` used to insert handlers into the `ChannelPipeline`.
1359 |     public enum Position {
     |                 `- note: enum 'Position' does not conform to the 'Sendable' protocol
1360 |         /// The first `ChannelHandler` -- the front of the `ChannelPipeline`.
1361 |         case first
/host/spi-builder-workspace/Sources/NIOHTTP1/HTTPPipelineSetup.swift:194:40: warning: capture of 'upgrade' with non-sendable type 'NIOHTTPClientUpgradeConfiguration?' (aka 'Optional<(upgraders: Array<any NIOHTTPClientProtocolUpgrader>, completionHandler: @Sendable (ChannelHandlerContext) -> ())>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
192 |                     enableOutboundHeaderValidation: enableOutboundHeaderValidation,
193 |                     encoderConfiguration: encoderConfiguration,
194 |                     withClientUpgrade: upgrade
    |                                        `- warning: capture of 'upgrade' with non-sendable type 'NIOHTTPClientUpgradeConfiguration?' (aka 'Optional<(upgraders: Array<any NIOHTTPClientProtocolUpgrader>, completionHandler: @Sendable (ChannelHandlerContext) -> ())>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
195 |                 )
196 |             }
/host/spi-builder-workspace/Sources/NIOHTTP1/NIOHTTPClientUpgradeHandler.swift:62:17: note: protocol 'NIOHTTPClientProtocolUpgrader' does not conform to the 'Sendable' protocol
 60 | /// a protocol on a client-side channel.
 61 | /// It has the option of denying this upgrade based upon the server response.
 62 | public protocol NIOHTTPClientProtocolUpgrader {
    |                 `- note: protocol 'NIOHTTPClientProtocolUpgrader' does not conform to the 'Sendable' protocol
 63 |
 64 |     /// The protocol this upgrader knows how to support.
/host/spi-builder-workspace/Sources/NIOHTTP1/HTTPPipelineSetup.swift:360:31: warning: capture of 'position' with non-sendable type 'ChannelPipeline.Position' in a `@Sendable` closure; this is an error in the Swift 6 language mode
358 |             future = self.eventLoop.submit {
359 |                 try self.syncOperations.configureHTTPServerPipeline(
360 |                     position: position,
    |                               `- warning: capture of 'position' with non-sendable type 'ChannelPipeline.Position' in a `@Sendable` closure; this is an error in the Swift 6 language mode
361 |                     withPipeliningAssistance: pipelining,
362 |                     withServerUpgrade: upgrade,
/host/spi-builder-workspace/Sources/NIOCore/ChannelPipeline.swift:1359:17: note: enum 'Position' does not conform to the 'Sendable' protocol
1357 | extension ChannelPipeline {
1358 |     /// A `Position` within the `ChannelPipeline` used to insert handlers into the `ChannelPipeline`.
1359 |     public enum Position {
     |                 `- note: enum 'Position' does not conform to the 'Sendable' protocol
1360 |         /// The first `ChannelHandler` -- the front of the `ChannelPipeline`.
1361 |         case first
/host/spi-builder-workspace/Sources/NIOHTTP1/HTTPPipelineSetup.swift:362:40: warning: capture of 'upgrade' with non-sendable type 'NIOHTTPServerUpgradeConfiguration?' (aka 'Optional<(upgraders: Array<any HTTPServerProtocolUpgrader>, completionHandler: @Sendable (ChannelHandlerContext) -> ())>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
360 |                     position: position,
361 |                     withPipeliningAssistance: pipelining,
362 |                     withServerUpgrade: upgrade,
    |                                        `- warning: capture of 'upgrade' with non-sendable type 'NIOHTTPServerUpgradeConfiguration?' (aka 'Optional<(upgraders: Array<any HTTPServerProtocolUpgrader>, completionHandler: @Sendable (ChannelHandlerContext) -> ())>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
363 |                     withErrorHandling: errorHandling,
364 |                     withOutboundHeaderValidation: headerValidation,
/host/spi-builder-workspace/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 }
/host/spi-builder-workspace/Sources/NIOHTTP1/HTTPServerPipelineHandler.swift:444:21: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
442 |                 self.lifecycleState = .quiescingCompleted
443 |                 context.write(data).flatMap {
444 |                     context.close()
    |                     `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
445 |                 }.cascade(to: promise)
446 |             case .acceptingEvents, .quiescingWaitingForRequestEnd:
/host/spi-builder-workspace/Sources/NIOCore/ChannelPipeline.swift:1496:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1494 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1495 | /// `ChannelHandler`.
1496 | public final class ChannelHandlerContext: ChannelInvoker {
     |                    `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1497 |     // visible for ChannelPipeline to modify
1498 |     fileprivate var next: Optional<ChannelHandlerContext>
[372/444] Compiling NIOHTTP1 HTTPServerProtocolErrorHandler.swift
/host/spi-builder-workspace/Sources/NIOHTTP1/HTTPServerUpgradeHandler.swift:186:17: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
184 |             .hop(to: context.eventLoop)  // the user might return a future from another EventLoop.
185 |             .whenSuccess { callback in
186 |                 context.eventLoop.assertInEventLoop()
    |                 `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
187 |                 if let callback = callback {
188 |                     self.gotUpgrader(upgrader: callback)
/host/spi-builder-workspace/Sources/NIOCore/ChannelPipeline.swift:1496:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1494 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1495 | /// `ChannelHandler`.
1496 | public final class ChannelHandlerContext: ChannelInvoker {
     |                    `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1497 |     // visible for ChannelPipeline to modify
1498 |     fileprivate var next: Optional<ChannelHandlerContext>
/host/spi-builder-workspace/Sources/NIOHTTP1/HTTPServerUpgradeHandler.swift:274:51: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
272 |                 // our final cleanup steps, namely we replay the received data we buffered in the meantime and
273 |                 // then remove ourselves from the pipeline.
274 |                 self.removeExtraHandlers(context: context).flatMap {
    |                                                   `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
275 |                     self.sendUpgradeResponse(
276 |                         context: context,
/host/spi-builder-workspace/Sources/NIOCore/ChannelPipeline.swift:1496:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1494 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1495 | /// `ChannelHandler`.
1496 | public final class ChannelHandlerContext: ChannelInvoker {
     |                    `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1497 |     // visible for ChannelPipeline to modify
1498 |     fileprivate var next: Optional<ChannelHandlerContext>
/host/spi-builder-workspace/Sources/NIOHTTP1/HTTPServerUpgradeHandler.swift:284:28: warning: capture of 'upgrader' with non-sendable type 'any HTTPServerProtocolUpgrader' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 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 }
    :
282 |                 }.flatMap { () -> EventLoopFuture<Void> in
283 |                     self.upgradeCompletionHandler(context)
284 |                     return upgrader.upgrade(context: context, upgradeRequest: request)
    |                            `- warning: capture of 'upgrader' with non-sendable type 'any HTTPServerProtocolUpgrader' in a `@Sendable` closure; this is an error in the Swift 6 language mode
285 |                 }.whenComplete { result in
286 |                     switch result {
/host/spi-builder-workspace/Sources/NIOHTTP1/HTTPServerUpgradeHandler.swift:274:51: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in an isolated closure; this is an error in the Swift 6 language mode
272 |                 // our final cleanup steps, namely we replay the received data we buffered in the meantime and
273 |                 // then remove ourselves from the pipeline.
274 |                 self.removeExtraHandlers(context: context).flatMap {
    |                                                   `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in an isolated closure; this is an error in the Swift 6 language mode
275 |                     self.sendUpgradeResponse(
276 |                         context: context,
/host/spi-builder-workspace/Sources/NIOCore/ChannelPipeline.swift:1496:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1494 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1495 | /// `ChannelHandler`.
1496 | public final class ChannelHandlerContext: ChannelInvoker {
     |                    `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1497 |     // visible for ChannelPipeline to modify
1498 |     fileprivate var next: Optional<ChannelHandlerContext>
/host/spi-builder-workspace/Sources/NIOHTTP1/HTTPServerUpgradeHandler.swift:284:28: warning: capture of 'upgrader' with non-sendable type 'any HTTPServerProtocolUpgrader' in an isolated closure; this is an error in the Swift 6 language mode
 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 }
    :
282 |                 }.flatMap { () -> EventLoopFuture<Void> in
283 |                     self.upgradeCompletionHandler(context)
284 |                     return upgrader.upgrade(context: context, upgradeRequest: request)
    |                            `- warning: capture of 'upgrader' with non-sendable type 'any HTTPServerProtocolUpgrader' in an isolated closure; this is an error in the Swift 6 language mode
285 |                 }.whenComplete { result in
286 |                     switch result {
/host/spi-builder-workspace/Sources/NIOHTTP1/HTTPServerUpgradeHandler.swift:276:34: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
274 |                 self.removeExtraHandlers(context: context).flatMap {
275 |                     self.sendUpgradeResponse(
276 |                         context: context,
    |                                  `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
277 |                         upgradeRequest: request,
278 |                         responseHeaders: finalResponseHeaders
/host/spi-builder-workspace/Sources/NIOCore/ChannelPipeline.swift:1496:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1494 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1495 | /// `ChannelHandler`.
1496 | public final class ChannelHandlerContext: ChannelInvoker {
     |                    `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1497 |     // visible for ChannelPipeline to modify
1498 |     fileprivate var next: Optional<ChannelHandlerContext>
/host/spi-builder-workspace/Sources/NIOHTTP1/HTTPServerUpgradeHandler.swift:281:21: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
279 |                     )
280 |                 }.flatMap {
281 |                     context.pipeline.syncOperations.removeHandler(self.httpEncoder)
    |                     `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
282 |                 }.flatMap { () -> EventLoopFuture<Void> in
283 |                     self.upgradeCompletionHandler(context)
/host/spi-builder-workspace/Sources/NIOCore/ChannelPipeline.swift:1496:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1494 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1495 | /// `ChannelHandler`.
1496 | public final class ChannelHandlerContext: ChannelInvoker {
     |                    `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1497 |     // visible for ChannelPipeline to modify
1498 |     fileprivate var next: Optional<ChannelHandlerContext>
/host/spi-builder-workspace/Sources/NIOHTTP1/HTTPServerUpgradeHandler.swift:283:51: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
281 |                     context.pipeline.syncOperations.removeHandler(self.httpEncoder)
282 |                 }.flatMap { () -> EventLoopFuture<Void> in
283 |                     self.upgradeCompletionHandler(context)
    |                                                   `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
284 |                     return upgrader.upgrade(context: context, upgradeRequest: request)
285 |                 }.whenComplete { result in
/host/spi-builder-workspace/Sources/NIOCore/ChannelPipeline.swift:1496:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1494 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1495 | /// `ChannelHandler`.
1496 | public final class ChannelHandlerContext: ChannelInvoker {
     |                    `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1497 |     // visible for ChannelPipeline to modify
1498 |     fileprivate var next: Optional<ChannelHandlerContext>
/host/spi-builder-workspace/Sources/NIOHTTP1/HTTPServerUpgradeHandler.swift:284:28: warning: capture of 'upgrader' with non-sendable type 'any HTTPServerProtocolUpgrader' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 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 }
    :
282 |                 }.flatMap { () -> EventLoopFuture<Void> in
283 |                     self.upgradeCompletionHandler(context)
284 |                     return upgrader.upgrade(context: context, upgradeRequest: request)
    |                            `- warning: capture of 'upgrader' with non-sendable type 'any HTTPServerProtocolUpgrader' in a `@Sendable` closure; this is an error in the Swift 6 language mode
285 |                 }.whenComplete { result in
286 |                     switch result {
/host/spi-builder-workspace/Sources/NIOHTTP1/HTTPServerUpgradeHandler.swift:288:25: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
286 |                     switch result {
287 |                     case .success:
288 |                         context.fireUserInboundEventTriggered(
    |                         `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
289 |                             HTTPServerUpgradeEvents.upgradeComplete(toProtocol: proto, upgradeRequest: request)
290 |                         )
/host/spi-builder-workspace/Sources/NIOCore/ChannelPipeline.swift:1496:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1494 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1495 | /// `ChannelHandler`.
1496 | public final class ChannelHandlerContext: ChannelInvoker {
     |                    `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1497 |     // visible for ChannelPipeline to modify
1498 |     fileprivate var next: Optional<ChannelHandlerContext>
/host/spi-builder-workspace/Sources/NIOHTTP1/HTTPServerUpgradeHandler.swift:303:13: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
301 |         }.flatMapError { error in
302 |             // No upgrade here. We want to fire the error down the pipeline, and then try another loop iteration.
303 |             context.fireErrorCaught(error)
    |             `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
304 |             return self.handleUpgradeForProtocol(
305 |                 context: context,
/host/spi-builder-workspace/Sources/NIOCore/ChannelPipeline.swift:1496:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1494 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1495 | /// `ChannelHandler`.
1496 | public final class ChannelHandlerContext: ChannelInvoker {
     |                    `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1497 |     // visible for ChannelPipeline to modify
1498 |     fileprivate var next: Optional<ChannelHandlerContext>
/host/spi-builder-workspace/Sources/NIOHTTP1/HTTPServerUpgradeHandler.swift:306:35: warning: reference to captured var 'protocolIterator' in concurrently-executing code; this is an error in the Swift 6 language mode
304 |             return self.handleUpgradeForProtocol(
305 |                 context: context,
306 |                 protocolIterator: protocolIterator,
    |                                   `- warning: reference to captured var 'protocolIterator' in concurrently-executing code; this is an error in the Swift 6 language mode
307 |                 request: request,
308 |                 allHeaderNames: allHeaderNames,
[373/444] Compiling NIOHTTP1 HTTPServerUpgradeHandler.swift
/host/spi-builder-workspace/Sources/NIOHTTP1/HTTPServerUpgradeHandler.swift:186:17: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
184 |             .hop(to: context.eventLoop)  // the user might return a future from another EventLoop.
185 |             .whenSuccess { callback in
186 |                 context.eventLoop.assertInEventLoop()
    |                 `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
187 |                 if let callback = callback {
188 |                     self.gotUpgrader(upgrader: callback)
/host/spi-builder-workspace/Sources/NIOCore/ChannelPipeline.swift:1496:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1494 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1495 | /// `ChannelHandler`.
1496 | public final class ChannelHandlerContext: ChannelInvoker {
     |                    `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1497 |     // visible for ChannelPipeline to modify
1498 |     fileprivate var next: Optional<ChannelHandlerContext>
/host/spi-builder-workspace/Sources/NIOHTTP1/HTTPServerUpgradeHandler.swift:274:51: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
272 |                 // our final cleanup steps, namely we replay the received data we buffered in the meantime and
273 |                 // then remove ourselves from the pipeline.
274 |                 self.removeExtraHandlers(context: context).flatMap {
    |                                                   `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
275 |                     self.sendUpgradeResponse(
276 |                         context: context,
/host/spi-builder-workspace/Sources/NIOCore/ChannelPipeline.swift:1496:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1494 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1495 | /// `ChannelHandler`.
1496 | public final class ChannelHandlerContext: ChannelInvoker {
     |                    `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1497 |     // visible for ChannelPipeline to modify
1498 |     fileprivate var next: Optional<ChannelHandlerContext>
/host/spi-builder-workspace/Sources/NIOHTTP1/HTTPServerUpgradeHandler.swift:284:28: warning: capture of 'upgrader' with non-sendable type 'any HTTPServerProtocolUpgrader' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 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 }
    :
282 |                 }.flatMap { () -> EventLoopFuture<Void> in
283 |                     self.upgradeCompletionHandler(context)
284 |                     return upgrader.upgrade(context: context, upgradeRequest: request)
    |                            `- warning: capture of 'upgrader' with non-sendable type 'any HTTPServerProtocolUpgrader' in a `@Sendable` closure; this is an error in the Swift 6 language mode
285 |                 }.whenComplete { result in
286 |                     switch result {
/host/spi-builder-workspace/Sources/NIOHTTP1/HTTPServerUpgradeHandler.swift:274:51: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in an isolated closure; this is an error in the Swift 6 language mode
272 |                 // our final cleanup steps, namely we replay the received data we buffered in the meantime and
273 |                 // then remove ourselves from the pipeline.
274 |                 self.removeExtraHandlers(context: context).flatMap {
    |                                                   `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in an isolated closure; this is an error in the Swift 6 language mode
275 |                     self.sendUpgradeResponse(
276 |                         context: context,
/host/spi-builder-workspace/Sources/NIOCore/ChannelPipeline.swift:1496:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1494 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1495 | /// `ChannelHandler`.
1496 | public final class ChannelHandlerContext: ChannelInvoker {
     |                    `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1497 |     // visible for ChannelPipeline to modify
1498 |     fileprivate var next: Optional<ChannelHandlerContext>
/host/spi-builder-workspace/Sources/NIOHTTP1/HTTPServerUpgradeHandler.swift:284:28: warning: capture of 'upgrader' with non-sendable type 'any HTTPServerProtocolUpgrader' in an isolated closure; this is an error in the Swift 6 language mode
 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 }
    :
282 |                 }.flatMap { () -> EventLoopFuture<Void> in
283 |                     self.upgradeCompletionHandler(context)
284 |                     return upgrader.upgrade(context: context, upgradeRequest: request)
    |                            `- warning: capture of 'upgrader' with non-sendable type 'any HTTPServerProtocolUpgrader' in an isolated closure; this is an error in the Swift 6 language mode
285 |                 }.whenComplete { result in
286 |                     switch result {
/host/spi-builder-workspace/Sources/NIOHTTP1/HTTPServerUpgradeHandler.swift:276:34: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
274 |                 self.removeExtraHandlers(context: context).flatMap {
275 |                     self.sendUpgradeResponse(
276 |                         context: context,
    |                                  `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
277 |                         upgradeRequest: request,
278 |                         responseHeaders: finalResponseHeaders
/host/spi-builder-workspace/Sources/NIOCore/ChannelPipeline.swift:1496:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1494 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1495 | /// `ChannelHandler`.
1496 | public final class ChannelHandlerContext: ChannelInvoker {
     |                    `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1497 |     // visible for ChannelPipeline to modify
1498 |     fileprivate var next: Optional<ChannelHandlerContext>
/host/spi-builder-workspace/Sources/NIOHTTP1/HTTPServerUpgradeHandler.swift:281:21: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
279 |                     )
280 |                 }.flatMap {
281 |                     context.pipeline.syncOperations.removeHandler(self.httpEncoder)
    |                     `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
282 |                 }.flatMap { () -> EventLoopFuture<Void> in
283 |                     self.upgradeCompletionHandler(context)
/host/spi-builder-workspace/Sources/NIOCore/ChannelPipeline.swift:1496:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1494 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1495 | /// `ChannelHandler`.
1496 | public final class ChannelHandlerContext: ChannelInvoker {
     |                    `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1497 |     // visible for ChannelPipeline to modify
1498 |     fileprivate var next: Optional<ChannelHandlerContext>
/host/spi-builder-workspace/Sources/NIOHTTP1/HTTPServerUpgradeHandler.swift:283:51: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
281 |                     context.pipeline.syncOperations.removeHandler(self.httpEncoder)
282 |                 }.flatMap { () -> EventLoopFuture<Void> in
283 |                     self.upgradeCompletionHandler(context)
    |                                                   `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
284 |                     return upgrader.upgrade(context: context, upgradeRequest: request)
285 |                 }.whenComplete { result in
/host/spi-builder-workspace/Sources/NIOCore/ChannelPipeline.swift:1496:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1494 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1495 | /// `ChannelHandler`.
1496 | public final class ChannelHandlerContext: ChannelInvoker {
     |                    `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1497 |     // visible for ChannelPipeline to modify
1498 |     fileprivate var next: Optional<ChannelHandlerContext>
/host/spi-builder-workspace/Sources/NIOHTTP1/HTTPServerUpgradeHandler.swift:284:28: warning: capture of 'upgrader' with non-sendable type 'any HTTPServerProtocolUpgrader' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 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 }
    :
282 |                 }.flatMap { () -> EventLoopFuture<Void> in
283 |                     self.upgradeCompletionHandler(context)
284 |                     return upgrader.upgrade(context: context, upgradeRequest: request)
    |                            `- warning: capture of 'upgrader' with non-sendable type 'any HTTPServerProtocolUpgrader' in a `@Sendable` closure; this is an error in the Swift 6 language mode
285 |                 }.whenComplete { result in
286 |                     switch result {
/host/spi-builder-workspace/Sources/NIOHTTP1/HTTPServerUpgradeHandler.swift:288:25: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
286 |                     switch result {
287 |                     case .success:
288 |                         context.fireUserInboundEventTriggered(
    |                         `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
289 |                             HTTPServerUpgradeEvents.upgradeComplete(toProtocol: proto, upgradeRequest: request)
290 |                         )
/host/spi-builder-workspace/Sources/NIOCore/ChannelPipeline.swift:1496:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1494 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1495 | /// `ChannelHandler`.
1496 | public final class ChannelHandlerContext: ChannelInvoker {
     |                    `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1497 |     // visible for ChannelPipeline to modify
1498 |     fileprivate var next: Optional<ChannelHandlerContext>
/host/spi-builder-workspace/Sources/NIOHTTP1/HTTPServerUpgradeHandler.swift:303:13: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
301 |         }.flatMapError { error in
302 |             // No upgrade here. We want to fire the error down the pipeline, and then try another loop iteration.
303 |             context.fireErrorCaught(error)
    |             `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
304 |             return self.handleUpgradeForProtocol(
305 |                 context: context,
/host/spi-builder-workspace/Sources/NIOCore/ChannelPipeline.swift:1496:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1494 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1495 | /// `ChannelHandler`.
1496 | public final class ChannelHandlerContext: ChannelInvoker {
     |                    `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1497 |     // visible for ChannelPipeline to modify
1498 |     fileprivate var next: Optional<ChannelHandlerContext>
/host/spi-builder-workspace/Sources/NIOHTTP1/HTTPServerUpgradeHandler.swift:306:35: warning: reference to captured var 'protocolIterator' in concurrently-executing code; this is an error in the Swift 6 language mode
304 |             return self.handleUpgradeForProtocol(
305 |                 context: context,
306 |                 protocolIterator: protocolIterator,
    |                                   `- warning: reference to captured var 'protocolIterator' in concurrently-executing code; this is an error in the Swift 6 language mode
307 |                 request: request,
308 |                 allHeaderNames: allHeaderNames,
[374/444] Compiling NIOHTTP1 HTTPTypedPipelineSetup.swift
/host/spi-builder-workspace/Sources/NIOHTTP1/HTTPTypedPipelineSetup.swift:85:36: warning: capture of 'configuration' with non-sendable type 'NIOUpgradableHTTPServerPipelineConfiguration<UpgradeResult>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 19 | /// Configuration for an upgradable HTTP pipeline.
 20 | @available(macOS 13, iOS 16, tvOS 16, watchOS 9, *)
 21 | public struct NIOUpgradableHTTPServerPipelineConfiguration<UpgradeResult: Sendable> {
    |               `- note: consider making generic struct 'NIOUpgradableHTTPServerPipelineConfiguration' conform to the 'Sendable' protocol
 22 |     /// Whether to provide assistance handling HTTP clients that pipeline
 23 |     /// their requests. Defaults to `true`. If `false`, users will need to handle clients that pipeline themselves.
    :
 83 |             future = self.eventLoop.submit {
 84 |                 try self.syncOperations.configureUpgradableHTTPServerPipeline(
 85 |                     configuration: configuration
    |                                    `- warning: capture of 'configuration' with non-sendable type 'NIOUpgradableHTTPServerPipelineConfiguration<UpgradeResult>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 86 |                 )
 87 |             }
/host/spi-builder-workspace/Sources/NIOHTTP1/HTTPTypedPipelineSetup.swift:204:36: warning: capture of 'configuration' with non-sendable type 'NIOUpgradableHTTPClientPipelineConfiguration<UpgradeResult>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
147 | /// Configuration for an upgradable HTTP pipeline.
148 | @available(macOS 13, iOS 16, tvOS 16, watchOS 9, *)
149 | public struct NIOUpgradableHTTPClientPipelineConfiguration<UpgradeResult: Sendable> {
    |               `- note: consider making generic struct 'NIOUpgradableHTTPClientPipelineConfiguration' conform to the 'Sendable' protocol
150 |     /// The strategy to use when dealing with leftover bytes after removing the ``HTTPDecoder`` from the pipeline.
151 |     public var leftOverBytesStrategy = RemoveAfterUpgradeStrategy.dropBytes
    :
202 |             future = self.eventLoop.submit {
203 |                 try self.syncOperations.configureUpgradableHTTPClientPipeline(
204 |                     configuration: configuration
    |                                    `- warning: capture of 'configuration' with non-sendable type 'NIOUpgradableHTTPClientPipelineConfiguration<UpgradeResult>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
205 |                 )
206 |             }
[375/444] Compiling NIOHTTP1 HTTPTypes.swift
/host/spi-builder-workspace/Sources/NIOHTTP1/HTTPTypedPipelineSetup.swift:85:36: warning: capture of 'configuration' with non-sendable type 'NIOUpgradableHTTPServerPipelineConfiguration<UpgradeResult>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 19 | /// Configuration for an upgradable HTTP pipeline.
 20 | @available(macOS 13, iOS 16, tvOS 16, watchOS 9, *)
 21 | public struct NIOUpgradableHTTPServerPipelineConfiguration<UpgradeResult: Sendable> {
    |               `- note: consider making generic struct 'NIOUpgradableHTTPServerPipelineConfiguration' conform to the 'Sendable' protocol
 22 |     /// Whether to provide assistance handling HTTP clients that pipeline
 23 |     /// their requests. Defaults to `true`. If `false`, users will need to handle clients that pipeline themselves.
    :
 83 |             future = self.eventLoop.submit {
 84 |                 try self.syncOperations.configureUpgradableHTTPServerPipeline(
 85 |                     configuration: configuration
    |                                    `- warning: capture of 'configuration' with non-sendable type 'NIOUpgradableHTTPServerPipelineConfiguration<UpgradeResult>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 86 |                 )
 87 |             }
/host/spi-builder-workspace/Sources/NIOHTTP1/HTTPTypedPipelineSetup.swift:204:36: warning: capture of 'configuration' with non-sendable type 'NIOUpgradableHTTPClientPipelineConfiguration<UpgradeResult>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
147 | /// Configuration for an upgradable HTTP pipeline.
148 | @available(macOS 13, iOS 16, tvOS 16, watchOS 9, *)
149 | public struct NIOUpgradableHTTPClientPipelineConfiguration<UpgradeResult: Sendable> {
    |               `- note: consider making generic struct 'NIOUpgradableHTTPClientPipelineConfiguration' conform to the 'Sendable' protocol
150 |     /// The strategy to use when dealing with leftover bytes after removing the ``HTTPDecoder`` from the pipeline.
151 |     public var leftOverBytesStrategy = RemoveAfterUpgradeStrategy.dropBytes
    :
202 |             future = self.eventLoop.submit {
203 |                 try self.syncOperations.configureUpgradableHTTPClientPipeline(
204 |                     configuration: configuration
    |                                    `- warning: capture of 'configuration' with non-sendable type 'NIOUpgradableHTTPClientPipelineConfiguration<UpgradeResult>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
205 |                 )
206 |             }
/host/spi-builder-workspace/Sources/NIOHTTP1/NIOTypedHTTPServerUpgradeHandler.swift:166:21: warning: capture of 'self' with non-sendable type 'NIOTypedHTTPServerUpgradeHandler<UpgradeResult>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 76 | /// the odds of someone needing to upgrade midway through the lifetime of a connection are very low.
 77 | @available(macOS 13, iOS 16, tvOS 16, watchOS 9, *)
 78 | public final class NIOTypedHTTPServerUpgradeHandler<UpgradeResult: Sendable>: ChannelInboundHandler,
    |                    `- note: generic class 'NIOTypedHTTPServerUpgradeHandler' does not conform to the 'Sendable' protocol
 79 |     RemovableChannelHandler
 80 | {
    :
164 |                 .hop(to: context.eventLoop)
165 |                 .whenComplete { result in
166 |                     self.upgradingHandlerCompleted(context: context, result, requestHeadAndProtocol: nil)
    |                     `- warning: capture of 'self' with non-sendable type 'NIOTypedHTTPServerUpgradeHandler<UpgradeResult>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
167 |                 }
168 |
/host/spi-builder-workspace/Sources/NIOHTTP1/NIOTypedHTTPServerUpgradeHandler.swift:166:61: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
164 |                 .hop(to: context.eventLoop)
165 |                 .whenComplete { result in
166 |                     self.upgradingHandlerCompleted(context: context, result, requestHeadAndProtocol: nil)
    |                                                             `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
167 |                 }
168 |
/host/spi-builder-workspace/Sources/NIOCore/ChannelPipeline.swift:1496:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1494 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1495 | /// `ChannelHandler`.
1496 | public final class ChannelHandlerContext: ChannelInvoker {
     |                    `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1497 |     // visible for ChannelPipeline to modify
1498 |     fileprivate var next: Optional<ChannelHandlerContext>
/host/spi-builder-workspace/Sources/NIOHTTP1/NIOTypedHTTPServerUpgradeHandler.swift:178:17: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
176 |                 connectionHeader: connectionHeader
177 |             ).whenComplete { result in
178 |                 context.eventLoop.assertInEventLoop()
    |                 `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
179 |                 self.findingUpgradeCompleted(context: context, requestHead: head, result)
180 |             }
/host/spi-builder-workspace/Sources/NIOCore/ChannelPipeline.swift:1496:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1494 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1495 | /// `ChannelHandler`.
1496 | public final class ChannelHandlerContext: ChannelInvoker {
     |                    `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1497 |     // visible for ChannelPipeline to modify
1498 |     fileprivate var next: Optional<ChannelHandlerContext>
/host/spi-builder-workspace/Sources/NIOHTTP1/NIOTypedHTTPServerUpgradeHandler.swift:179:17: warning: capture of 'self' with non-sendable type 'NIOTypedHTTPServerUpgradeHandler<UpgradeResult>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 76 | /// the odds of someone needing to upgrade midway through the lifetime of a connection are very low.
 77 | @available(macOS 13, iOS 16, tvOS 16, watchOS 9, *)
 78 | public final class NIOTypedHTTPServerUpgradeHandler<UpgradeResult: Sendable>: ChannelInboundHandler,
    |                    `- note: generic class 'NIOTypedHTTPServerUpgradeHandler' does not conform to the 'Sendable' protocol
 79 |     RemovableChannelHandler
 80 | {
    :
177 |             ).whenComplete { result in
178 |                 context.eventLoop.assertInEventLoop()
179 |                 self.findingUpgradeCompleted(context: context, requestHead: head, result)
    |                 `- warning: capture of 'self' with non-sendable type 'NIOTypedHTTPServerUpgradeHandler<UpgradeResult>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
180 |             }
181 |
/host/spi-builder-workspace/Sources/NIOHTTP1/NIOTypedHTTPServerUpgradeHandler.swift:288:17: warning: capture of 'upgrader' with non-sendable type 'any NIOTypedHTTPServerProtocolUpgrader<UpgradeResult>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 17 | /// An object that implements `NIOTypedHTTPServerProtocolUpgrader` knows how to handle HTTP upgrade to
 18 | /// a protocol on a server-side channel.
 19 | public protocol NIOTypedHTTPServerProtocolUpgrader<UpgradeResult> {
    |                 `- note: protocol 'NIOTypedHTTPServerProtocolUpgrader' does not conform to the 'Sendable' protocol
 20 |     associatedtype UpgradeResult: Sendable
 21 |
    :
286 |         )
287 |         .hop(to: context.eventLoop)
288 |         .map { (upgrader, $0, proto) }
    |                 `- warning: capture of 'upgrader' with non-sendable type 'any NIOTypedHTTPServerProtocolUpgrader<UpgradeResult>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
289 |         .flatMapError { error in
290 |             // No upgrade here. We want to fire the error down the pipeline, and then try another loop iteration.
/host/spi-builder-workspace/Sources/NIOHTTP1/NIOTypedHTTPServerUpgradeHandler.swift:291:13: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
289 |         .flatMapError { error in
290 |             // No upgrade here. We want to fire the error down the pipeline, and then try another loop iteration.
291 |             context.fireErrorCaught(error)
    |             `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
292 |             return self.handleUpgradeForProtocol(
293 |                 context: context,
/host/spi-builder-workspace/Sources/NIOCore/ChannelPipeline.swift:1496:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1494 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1495 | /// `ChannelHandler`.
1496 | public final class ChannelHandlerContext: ChannelInvoker {
     |                    `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1497 |     // visible for ChannelPipeline to modify
1498 |     fileprivate var next: Optional<ChannelHandlerContext>
/host/spi-builder-workspace/Sources/NIOHTTP1/NIOTypedHTTPServerUpgradeHandler.swift:292:20: warning: capture of 'self' with non-sendable type 'NIOTypedHTTPServerUpgradeHandler<UpgradeResult>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 76 | /// the odds of someone needing to upgrade midway through the lifetime of a connection are very low.
 77 | @available(macOS 13, iOS 16, tvOS 16, watchOS 9, *)
 78 | public final class NIOTypedHTTPServerUpgradeHandler<UpgradeResult: Sendable>: ChannelInboundHandler,
    |                    `- note: generic class 'NIOTypedHTTPServerUpgradeHandler' does not conform to the 'Sendable' protocol
 79 |     RemovableChannelHandler
 80 | {
    :
290 |             // No upgrade here. We want to fire the error down the pipeline, and then try another loop iteration.
291 |             context.fireErrorCaught(error)
292 |             return self.handleUpgradeForProtocol(
    |                    `- warning: capture of 'self' with non-sendable type 'NIOTypedHTTPServerUpgradeHandler<UpgradeResult>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
293 |                 context: context,
294 |                 protocolIterator: protocolIterator,
/host/spi-builder-workspace/Sources/NIOHTTP1/NIOTypedHTTPServerUpgradeHandler.swift:294:35: warning: reference to captured var 'protocolIterator' in concurrently-executing code; this is an error in the Swift 6 language mode
292 |             return self.handleUpgradeForProtocol(
293 |                 context: context,
294 |                 protocolIterator: protocolIterator,
    |                                   `- warning: reference to captured var 'protocolIterator' in concurrently-executing code; this is an error in the Swift 6 language mode
295 |                 request: request,
296 |                 allHeaderNames: allHeaderNames,
/host/spi-builder-workspace/Sources/NIOHTTP1/NIOTypedHTTPServerUpgradeHandler.swift:326:21: warning: capture of 'self' with non-sendable type 'NIOTypedHTTPServerUpgradeHandler<UpgradeResult>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 76 | /// the odds of someone needing to upgrade midway through the lifetime of a connection are very low.
 77 | @available(macOS 13, iOS 16, tvOS 16, watchOS 9, *)
 78 | public final class NIOTypedHTTPServerUpgradeHandler<UpgradeResult: Sendable>: ChannelInboundHandler,
    |                    `- note: generic class 'NIOTypedHTTPServerUpgradeHandler' does not conform to the 'Sendable' protocol
 79 |     RemovableChannelHandler
 80 | {
    :
324 |                 .hop(to: context.eventLoop)
325 |                 .whenComplete { result in
326 |                     self.upgradingHandlerCompleted(context: context, result, requestHeadAndProtocol: nil)
    |                     `- warning: capture of 'self' with non-sendable type 'NIOTypedHTTPServerUpgradeHandler<UpgradeResult>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
327 |                 }
328 |
/host/spi-builder-workspace/Sources/NIOHTTP1/NIOTypedHTTPServerUpgradeHandler.swift:326:61: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
324 |                 .hop(to: context.eventLoop)
325 |                 .whenComplete { result in
326 |                     self.upgradingHandlerCompleted(context: context, result, requestHeadAndProtocol: nil)
    |                                                             `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
327 |                 }
328 |
/host/spi-builder-workspace/Sources/NIOCore/ChannelPipeline.swift:1496:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1494 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1495 | /// `ChannelHandler`.
1496 | public final class ChannelHandlerContext: ChannelInvoker {
     |                    `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1497 |     // visible for ChannelPipeline to modify
1498 |     fileprivate var next: Optional<ChannelHandlerContext>
/host/spi-builder-workspace/Sources/NIOHTTP1/NIOTypedHTTPServerUpgradeHandler.swift:361:13: warning: capture of 'self' with non-sendable type 'NIOTypedHTTPServerUpgradeHandler<UpgradeResult>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 76 | /// the odds of someone needing to upgrade midway through the lifetime of a connection are very low.
 77 | @available(macOS 13, iOS 16, tvOS 16, watchOS 9, *)
 78 | public final class NIOTypedHTTPServerUpgradeHandler<UpgradeResult: Sendable>: ChannelInboundHandler,
    |                    `- note: generic class 'NIOTypedHTTPServerUpgradeHandler' does not conform to the 'Sendable' protocol
 79 |     RemovableChannelHandler
 80 | {
    :
359 |         // then remove ourselves from the pipeline.
360 |         self.removeExtraHandlers(context: context).flatMap {
361 |             self.sendUpgradeResponse(context: context, responseHeaders: responseHeaders)
    |             `- warning: capture of 'self' with non-sendable type 'NIOTypedHTTPServerUpgradeHandler<UpgradeResult>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
362 |         }.flatMap {
363 |             context.pipeline.syncOperations.removeHandler(self.httpEncoder)
/host/spi-builder-workspace/Sources/NIOHTTP1/NIOTypedHTTPServerUpgradeHandler.swift:361:47: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
359 |         // then remove ourselves from the pipeline.
360 |         self.removeExtraHandlers(context: context).flatMap {
361 |             self.sendUpgradeResponse(context: context, responseHeaders: responseHeaders)
    |                                               `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
362 |         }.flatMap {
363 |             context.pipeline.syncOperations.removeHandler(self.httpEncoder)
/host/spi-builder-workspace/Sources/NIOCore/ChannelPipeline.swift:1496:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1494 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1495 | /// `ChannelHandler`.
1496 | public final class ChannelHandlerContext: ChannelInvoker {
     |                    `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1497 |     // visible for ChannelPipeline to modify
1498 |     fileprivate var next: Optional<ChannelHandlerContext>
/host/spi-builder-workspace/Sources/NIOHTTP1/NIOTypedHTTPServerUpgradeHandler.swift:363:13: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
361 |             self.sendUpgradeResponse(context: context, responseHeaders: responseHeaders)
362 |         }.flatMap {
363 |             context.pipeline.syncOperations.removeHandler(self.httpEncoder)
    |             `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
364 |         }.flatMap { () -> EventLoopFuture<UpgradeResult> in
365 |             upgrader.upgrade(channel: context.channel, upgradeRequest: requestHead)
/host/spi-builder-workspace/Sources/NIOCore/ChannelPipeline.swift:1496:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1494 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1495 | /// `ChannelHandler`.
1496 | public final class ChannelHandlerContext: ChannelInvoker {
     |                    `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1497 |     // visible for ChannelPipeline to modify
1498 |     fileprivate var next: Optional<ChannelHandlerContext>
/host/spi-builder-workspace/Sources/NIOHTTP1/NIOTypedHTTPServerUpgradeHandler.swift:363:59: warning: capture of 'self' with non-sendable type 'NIOTypedHTTPServerUpgradeHandler<UpgradeResult>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 76 | /// the odds of someone needing to upgrade midway through the lifetime of a connection are very low.
 77 | @available(macOS 13, iOS 16, tvOS 16, watchOS 9, *)
 78 | public final class NIOTypedHTTPServerUpgradeHandler<UpgradeResult: Sendable>: ChannelInboundHandler,
    |                    `- note: generic class 'NIOTypedHTTPServerUpgradeHandler' does not conform to the 'Sendable' protocol
 79 |     RemovableChannelHandler
 80 | {
    :
361 |             self.sendUpgradeResponse(context: context, responseHeaders: responseHeaders)
362 |         }.flatMap {
363 |             context.pipeline.syncOperations.removeHandler(self.httpEncoder)
    |                                                           `- warning: capture of 'self' with non-sendable type 'NIOTypedHTTPServerUpgradeHandler<UpgradeResult>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
364 |         }.flatMap { () -> EventLoopFuture<UpgradeResult> in
365 |             upgrader.upgrade(channel: context.channel, upgradeRequest: requestHead)
/host/spi-builder-workspace/Sources/NIOHTTP1/NIOTypedHTTPServerUpgradeHandler.swift:365:13: warning: capture of 'upgrader' with non-sendable type 'any NIOTypedHTTPServerProtocolUpgrader<UpgradeResult>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 17 | /// An object that implements `NIOTypedHTTPServerProtocolUpgrader` knows how to handle HTTP upgrade to
 18 | /// a protocol on a server-side channel.
 19 | public protocol NIOTypedHTTPServerProtocolUpgrader<UpgradeResult> {
    |                 `- note: protocol 'NIOTypedHTTPServerProtocolUpgrader' does not conform to the 'Sendable' protocol
 20 |     associatedtype UpgradeResult: Sendable
 21 |
    :
363 |             context.pipeline.syncOperations.removeHandler(self.httpEncoder)
364 |         }.flatMap { () -> EventLoopFuture<UpgradeResult> in
365 |             upgrader.upgrade(channel: context.channel, upgradeRequest: requestHead)
    |             `- warning: capture of 'upgrader' with non-sendable type 'any NIOTypedHTTPServerProtocolUpgrader<UpgradeResult>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
366 |         }.hop(to: context.eventLoop)
367 |             .whenComplete { result in
/host/spi-builder-workspace/Sources/NIOHTTP1/NIOTypedHTTPServerUpgradeHandler.swift:365:39: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
363 |             context.pipeline.syncOperations.removeHandler(self.httpEncoder)
364 |         }.flatMap { () -> EventLoopFuture<UpgradeResult> in
365 |             upgrader.upgrade(channel: context.channel, upgradeRequest: requestHead)
    |                                       `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
366 |         }.hop(to: context.eventLoop)
367 |             .whenComplete { result in
/host/spi-builder-workspace/Sources/NIOCore/ChannelPipeline.swift:1496:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1494 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1495 | /// `ChannelHandler`.
1496 | public final class ChannelHandlerContext: ChannelInvoker {
     |                    `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1497 |     // visible for ChannelPipeline to modify
1498 |     fileprivate var next: Optional<ChannelHandlerContext>
/host/spi-builder-workspace/Sources/NIOHTTP1/NIOTypedHTTPServerUpgradeHandler.swift:368:17: warning: capture of 'self' with non-sendable type 'NIOTypedHTTPServerUpgradeHandler<UpgradeResult>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 76 | /// the odds of someone needing to upgrade midway through the lifetime of a connection are very low.
 77 | @available(macOS 13, iOS 16, tvOS 16, watchOS 9, *)
 78 | public final class NIOTypedHTTPServerUpgradeHandler<UpgradeResult: Sendable>: ChannelInboundHandler,
    |                    `- note: generic class 'NIOTypedHTTPServerUpgradeHandler' does not conform to the 'Sendable' protocol
 79 |     RemovableChannelHandler
 80 | {
    :
366 |         }.hop(to: context.eventLoop)
367 |             .whenComplete { result in
368 |                 self.upgradingHandlerCompleted(context: context, result, requestHeadAndProtocol: (requestHead, proto))
    |                 `- warning: capture of 'self' with non-sendable type 'NIOTypedHTTPServerUpgradeHandler<UpgradeResult>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
369 |             }
370 |     }
BUILD FAILURE 6.0 linux