Build Information
Failed to build swift-nio, reference 2.76.1 (914081
), with Swift 6.0 for Linux on 31 Oct 2024 18:25:45 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
1506 | /// `ChannelHandler`.
1507 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1508 | // visible for ChannelPipeline to modify
1509 | 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:1507:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1505 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1506 | /// `ChannelHandler`.
1507 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1508 | // visible for ChannelPipeline to modify
1509 | 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,
/host/spi-builder-workspace/Sources/NIOHTTP1/HTTPServerUpgradeHandler.swift:184:14: warning: type '() -> Void' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
182 |
183 | self.handleUpgrade(context: context, request: request, requestedProtocols: requestedProtocols)
184 | .hop(to: context.eventLoop) // the user might return a future from another EventLoop.
| |- warning: type '() -> Void' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
185 | .whenSuccess { callback in
186 | context.eventLoop.assertInEventLoop()
/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:1507:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1505 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1506 | /// `ChannelHandler`.
1507 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1508 | // visible for ChannelPipeline to modify
1509 | fileprivate var next: Optional<ChannelHandlerContext>
/host/spi-builder-workspace/Sources/NIOHTTP1/HTTPServerUpgradeHandler.swift:231:38: warning: type '() -> Void' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
229 | guard let proto = protocolIterator.next() else {
230 | // We're done! No suitable protocol for upgrade.
231 | return context.eventLoop.makeSucceededFuture(nil)
| |- warning: type '() -> Void' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
232 | }
233 |
/host/spi-builder-workspace/Sources/NIOHTTP1/HTTPServerUpgradeHandler.swift:301:11: warning: type '() -> Void' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
299 | }
300 | }
301 | }.flatMapError { error in
| |- warning: type '() -> Void' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
302 | // No upgrade here. We want to fire the error down the pipeline, and then try another loop iteration.
303 | context.fireErrorCaught(error)
/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:1507:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1505 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1506 | /// `ChannelHandler`.
1507 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1508 | // visible for ChannelPipeline to modify
1509 | 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:1507:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1505 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1506 | /// `ChannelHandler`.
1507 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1508 | // visible for ChannelPipeline to modify
1509 | 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:1507:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1505 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1506 | /// `ChannelHandler`.
1507 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1508 | // visible for ChannelPipeline to modify
1509 | 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:1507:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1505 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1506 | /// `ChannelHandler`.
1507 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1508 | // visible for ChannelPipeline to modify
1509 | 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:1507:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1505 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1506 | /// `ChannelHandler`.
1507 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1508 | // visible for ChannelPipeline to modify
1509 | 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:1507:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1505 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1506 | /// `ChannelHandler`.
1507 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1508 | // visible for ChannelPipeline to modify
1509 | 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:1507:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1505 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1506 | /// `ChannelHandler`.
1507 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1508 | // visible for ChannelPipeline to modify
1509 | 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,
[422/460] Compiling NIOHTTP1 HTTPHeaders+Validation.swift
[423/460] Compiling NIOFileSystem Exports.swift
[424/460] Emitting module NIOFileSystem
/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:1507:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1505 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1506 | /// `ChannelHandler`.
1507 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1508 | // visible for ChannelPipeline to modify
1509 | 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:1507:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1505 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1506 | /// `ChannelHandler`.
1507 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1508 | // visible for ChannelPipeline to modify
1509 | 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:257:38: warning: type 'any NIOTypedHTTPServerProtocolUpgrader<UpgradeResult>' does not conform to the 'Sendable' protocol; 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 |
:
255 | guard let proto = protocolIterator.next() else {
256 | // We're done! No suitable protocol for upgrade.
257 | return context.eventLoop.makeSucceededFuture(nil)
| `- warning: type 'any NIOTypedHTTPServerProtocolUpgrader<UpgradeResult>' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
258 | }
259 |
/host/spi-builder-workspace/Sources/NIOHTTP1/NIOTypedHTTPServerUpgradeHandler.swift:289:10: warning: type 'any NIOTypedHTTPServerProtocolUpgrader<UpgradeResult>' does not conform to the 'Sendable' protocol; 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 |
:
287 | .hop(to: context.eventLoop)
288 | .map { (upgrader, $0, proto) }
289 | .flatMapError { error in
| `- warning: type 'any NIOTypedHTTPServerProtocolUpgrader<UpgradeResult>' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
290 | // No upgrade here. We want to fire the error down the pipeline, and then try another loop iteration.
291 | context.fireErrorCaught(error)
/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:1507:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1505 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1506 | /// `ChannelHandler`.
1507 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1508 | // visible for ChannelPipeline to modify
1509 | 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:1507:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1505 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1506 | /// `ChannelHandler`.
1507 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1508 | // visible for ChannelPipeline to modify
1509 | 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:1507:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1505 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1506 | /// `ChannelHandler`.
1507 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1508 | // visible for ChannelPipeline to modify
1509 | 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:1507:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1505 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1506 | /// `ChannelHandler`.
1507 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1508 | // visible for ChannelPipeline to modify
1509 | 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:1507:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1505 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1506 | /// `ChannelHandler`.
1507 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1508 | // visible for ChannelPipeline to modify
1509 | 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 | }
/host/spi-builder-workspace/Sources/NIOHTTP1/NIOTypedHTTPServerUpgradeHandler.swift:368:57: 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
368 | self.upgradingHandlerCompleted(context: context, result, requestHeadAndProtocol: (requestHead, proto))
| `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
369 | }
370 | }
/host/spi-builder-workspace/Sources/NIOCore/ChannelPipeline.swift:1507:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1505 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1506 | /// `ChannelHandler`.
1507 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1508 | // visible for ChannelPipeline to modify
1509 | fileprivate var next: Optional<ChannelHandlerContext>
/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:1507:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1505 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1506 | /// `ChannelHandler`.
1507 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1508 | // visible for ChannelPipeline to modify
1509 | 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:1507:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1505 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1506 | /// `ChannelHandler`.
1507 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1508 | // visible for ChannelPipeline to modify
1509 | 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:257:38: warning: type 'any NIOTypedHTTPServerProtocolUpgrader<UpgradeResult>' does not conform to the 'Sendable' protocol; 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 |
:
255 | guard let proto = protocolIterator.next() else {
256 | // We're done! No suitable protocol for upgrade.
257 | return context.eventLoop.makeSucceededFuture(nil)
| `- warning: type 'any NIOTypedHTTPServerProtocolUpgrader<UpgradeResult>' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
258 | }
259 |
/host/spi-builder-workspace/Sources/NIOHTTP1/NIOTypedHTTPServerUpgradeHandler.swift:289:10: warning: type 'any NIOTypedHTTPServerProtocolUpgrader<UpgradeResult>' does not conform to the 'Sendable' protocol; 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 |
:
287 | .hop(to: context.eventLoop)
288 | .map { (upgrader, $0, proto) }
289 | .flatMapError { error in
| `- warning: type 'any NIOTypedHTTPServerProtocolUpgrader<UpgradeResult>' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
290 | // No upgrade here. We want to fire the error down the pipeline, and then try another loop iteration.
291 | context.fireErrorCaught(error)
/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:1507:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1505 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1506 | /// `ChannelHandler`.
1507 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1508 | // visible for ChannelPipeline to modify
1509 | 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:1507:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1505 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1506 | /// `ChannelHandler`.
1507 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1508 | // visible for ChannelPipeline to modify
1509 | 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:1507:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1505 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1506 | /// `ChannelHandler`.
1507 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1508 | // visible for ChannelPipeline to modify
1509 | 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:1507:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1505 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1506 | /// `ChannelHandler`.
1507 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1508 | // visible for ChannelPipeline to modify
1509 | 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:1507:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1505 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1506 | /// `ChannelHandler`.
1507 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1508 | // visible for ChannelPipeline to modify
1509 | 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 | }
/host/spi-builder-workspace/Sources/NIOHTTP1/NIOTypedHTTPServerUpgradeHandler.swift:368:57: 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
368 | self.upgradingHandlerCompleted(context: context, result, requestHeadAndProtocol: (requestHead, proto))
| `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
369 | }
370 | }
/host/spi-builder-workspace/Sources/NIOCore/ChannelPipeline.swift:1507:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1505 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1506 | /// `ChannelHandler`.
1507 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1508 | // visible for ChannelPipeline to modify
1509 | fileprivate var next: Optional<ChannelHandlerContext>
[428/462] Wrapping AST for NIOFileSystem for debugging
[429/463] Wrapping AST for NIOHTTP1 for debugging
[431/484] Emitting module NIOHTTP1Client
[432/484] Compiling NIOHTTP1Client main.swift
[433/485] Compiling NIOAsyncAwaitDemo AsyncChannelIO.swift
/host/spi-builder-workspace/Sources/NIOAsyncAwaitDemo/AsyncChannelIO.swift:35:55: warning: type 'Response' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
17 |
18 | @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
19 | struct AsyncChannelIO<Request, Response> {
| `- note: consider making generic parameter 'Response' conform to the 'Sendable' protocol
20 | let channel: Channel
21 |
:
33 | let responsePromise: EventLoopPromise<Response> = channel.eventLoop.makePromise()
34 | try await self.channel.writeAndFlush((request, responsePromise)).get()
35 | return try await responsePromise.futureResult.get()
| `- warning: type 'Response' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
36 | }
37 |
[434/485] Compiling NIOWebSocket WebSocketOpcode.swift
/host/spi-builder-workspace/Sources/NIOWebSocket/WebSocketOpcode.swift:60:23: warning: static property 'allCases' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
58 |
59 | extension WebSocketOpcode: CaseIterable {
60 | public static var allCases = (0..<0x10).map { WebSocketOpcode(rawValue: $0) }
| |- warning: static property 'allCases' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'allCases' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'allCases' 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
61 | }
62 |
[436/486] Compiling NIOWebSocket WebSocketFrameEncoder.swift
[437/486] Compiling NIOAsyncAwaitDemo FullRequestResponse.swift
/host/spi-builder-workspace/Sources/NIOAsyncAwaitDemo/FullRequestResponse.swift:102:17: warning: type 'Response' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
41 | /// `RequestResponseHandler` requires that the `Response`s arrive on `Channel` in the same order as the `Request`s
42 | /// were submitted.
43 | public final class RequestResponseHandler<Request, Response>: ChannelDuplexHandler {
| `- note: consider making generic parameter 'Response' conform to the 'Sendable' protocol
44 | public typealias InboundIn = Response
45 | public typealias InboundOut = Never
:
100 | let promise = self.promiseBuffer.removeFirst()
101 |
102 | promise.succeed(response)
| `- warning: type 'Response' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
103 | }
104 |
[438/486] Compiling NIOAsyncAwaitDemo main.swift
[439/486] Emitting module NIOAsyncAwaitDemo
[440/487] Compiling NIOTestUtils EventCounterHandler.swift
[441/487] Compiling NIOWebSocket WebSocketFrameDecoder.swift
[443/487] Emitting module NIOTestUtils
[444/487] Compiling NIOTestUtils ByteToMessageDecoderVerifier.swift
[444/487] Wrapping AST for NIOHTTP1Client for debugging
[445/487] Write Objects.LinkFileList
[447/487] Compiling NIOWebSocket NIOWebSocketClientUpgrader.swift
/host/spi-builder-workspace/Sources/NIOWebSocket/NIOWebSocketClientUpgrader.swift:205:6: warning: type 'UpgradeResult' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
187 | /// Called when the upgrade response has been flushed and it is safe to mutate the channel
188 | /// pipeline. Adds channel handlers for websocket frame encoding, decoding and errors.
189 | private func _upgrade<UpgradeResult>(
| `- note: consider making generic parameter 'UpgradeResult' conform to the 'Sendable' protocol
190 | channel: Channel,
191 | upgradeResponse: HTTPResponseHead,
:
203 | }
204 | }
205 | .flatMap {
| `- warning: type 'UpgradeResult' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
206 | upgradePipelineHandler(channel, upgradeResponse)
207 | }
[448/487] Compiling NIOWebSocket NIOWebSocketFrameAggregator.swift
/host/spi-builder-workspace/Sources/NIOWebSocket/NIOWebSocketClientUpgrader.swift:205:6: warning: type 'UpgradeResult' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
187 | /// Called when the upgrade response has been flushed and it is safe to mutate the channel
188 | /// pipeline. Adds channel handlers for websocket frame encoding, decoding and errors.
189 | private func _upgrade<UpgradeResult>(
| `- note: consider making generic parameter 'UpgradeResult' conform to the 'Sendable' protocol
190 | channel: Channel,
191 | upgradeResponse: HTTPResponseHead,
:
203 | }
204 | }
205 | .flatMap {
| `- warning: type 'UpgradeResult' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
206 | upgradePipelineHandler(channel, upgradeResponse)
207 | }
[449/487] Compiling NIOWebSocket WebSocketErrorCodes.swift
[450/487] Compiling NIOWebSocket WebSocketFrame.swift
[451/487] Compiling NIOWebSocket NIOWebSocketServerUpgrader.swift
/host/spi-builder-workspace/Sources/NIOWebSocket/NIOWebSocketServerUpgrader.swift:337:7: warning: type 'UpgradeResult' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
317 | }
318 |
319 | private func _upgrade<UpgradeResult>(
| `- note: consider making generic parameter 'UpgradeResult' conform to the 'Sendable' protocol
320 | channel: Channel,
321 | upgradeRequest: HTTPRequestHead,
:
335 | try channel.pipeline.syncOperations.addHandler(WebSocketProtocolErrorHandler())
336 | }
337 | }.flatMap {
| `- warning: type 'UpgradeResult' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
338 | upgradePipelineHandler(channel, upgradeRequest)
339 | }
[452/487] Compiling NIOWebSocket SHA1.swift
/host/spi-builder-workspace/Sources/NIOWebSocket/NIOWebSocketServerUpgrader.swift:337:7: warning: type 'UpgradeResult' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
317 | }
318 |
319 | private func _upgrade<UpgradeResult>(
| `- note: consider making generic parameter 'UpgradeResult' conform to the 'Sendable' protocol
320 | channel: Channel,
321 | upgradeRequest: HTTPRequestHead,
:
335 | try channel.pipeline.syncOperations.addHandler(WebSocketProtocolErrorHandler())
336 | }
337 | }.flatMap {
| `- warning: type 'UpgradeResult' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
338 | upgradePipelineHandler(channel, upgradeRequest)
339 | }
[453/487] Emitting module NIOWebSocket
/host/spi-builder-workspace/Sources/NIOWebSocket/WebSocketOpcode.swift:60:23: warning: static property 'allCases' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
58 |
59 | extension WebSocketOpcode: CaseIterable {
60 | public static var allCases = (0..<0x10).map { WebSocketOpcode(rawValue: $0) }
| |- warning: static property 'allCases' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'allCases' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'allCases' 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
61 | }
62 |
[453/487] Wrapping AST for NIOAsyncAwaitDemo for debugging
[454/487] Write Objects.LinkFileList
[456/487] Compiling NIOWebSocket WebSocketProtocolErrorHandler.swift
/host/spi-builder-workspace/Sources/NIOWebSocket/WebSocketProtocolErrorHandler.swift:37:17: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
35 | )
36 | context.writeAndFlush(Self.wrapOutboundOut(frame)).whenComplete { (_: Result<Void, Error>) in
37 | context.close(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
38 | }
39 | }
/host/spi-builder-workspace/Sources/NIOCore/ChannelPipeline.swift:1507:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1505 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1506 | /// `ChannelHandler`.
1507 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1508 | // visible for ChannelPipeline to modify
1509 | fileprivate var next: Optional<ChannelHandlerContext>
[458/488] Compiling NIOTestUtils NIOHTTP1TestServer.swift
/host/spi-builder-workspace/Sources/NIOTestUtils/NIOHTTP1TestServer.swift:86:17: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
84 | case .end:
85 | context.write(data).map {
86 | context.close(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
87 | }.cascade(to: promise)
88 | }
/host/spi-builder-workspace/Sources/NIOCore/ChannelPipeline.swift:1507:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1505 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1506 | /// `ChannelHandler`.
1507 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1508 | // visible for ChannelPipeline to modify
1509 | fileprivate var next: Optional<ChannelHandlerContext>
/host/spi-builder-workspace/Sources/NIOTestUtils/NIOHTTP1TestServer.swift:310:46: warning: capture of 'data' with non-sendable type 'HTTPServerResponsePart' (aka 'HTTPPart<HTTPResponseHead, IOData>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
308 | try self.eventLoop.flatSubmit { () -> EventLoopFuture<Void> in
309 | if let channel = self.currentClientChannel {
310 | return channel.writeAndFlush(data)
| `- warning: capture of 'data' with non-sendable type 'HTTPServerResponsePart' (aka 'HTTPPart<HTTPResponseHead, IOData>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
311 | } else {
312 | return self.eventLoop.makeFailedFuture(ChannelError.ioOnClosedChannel)
/host/spi-builder-workspace/Sources/NIOHTTP1/HTTPTypes.swift:137:13: note: generic enum 'HTTPPart' does not conform to the 'Sendable' protocol
135 | /// To indicate that a complete HTTP message has been sent or received,
136 | /// an ``HTTPPart/end(_:)`` part must be used, even when no trailers are included.
137 | public enum HTTPPart<HeadT: Equatable, BodyT: Equatable> {
| `- note: generic enum 'HTTPPart' does not conform to the 'Sendable' protocol
138 | /// The headers of an HTTP request or response.
139 | ///
[459/489] Compiling NIOFoundationCompat JSONSerialization+ByteBuffer.swift
[460/489] Wrapping AST for NIOWebSocket for debugging
[461/489] Linking NIOHTTP1Client
[463/493] Compiling NIOFoundationCompat Codable+ByteBuffer.swift
[463/493] Linking NIOAsyncAwaitDemo
[464/493] Wrapping AST for NIOTestUtils for debugging
[466/493] Emitting module NIOWebSocketClient
[467/493] Emitting module NIOFoundationCompat
/host/spi-builder-workspace/Sources/NIOFoundationCompat/ByteBuffer-foundation.swift:381:27: warning: 'retroactive' attribute does not apply; 'ContiguousBytes' is declared in this module; this is an error in the Swift 6 language mode
379 | // MARK: - Conformances
380 | #if compiler(>=6.0)
381 | extension ByteBufferView: @retroactive ContiguousBytes {}
| `- warning: 'retroactive' attribute does not apply; 'ContiguousBytes' is declared in this module; this is an error in the Swift 6 language mode
382 | extension ByteBufferView: @retroactive DataProtocol {}
383 | extension ByteBufferView: @retroactive MutableDataProtocol {}
/host/spi-builder-workspace/Sources/NIOFoundationCompat/ByteBuffer-foundation.swift:382:27: warning: 'retroactive' attribute does not apply; 'DataProtocol' is declared in this module; this is an error in the Swift 6 language mode
380 | #if compiler(>=6.0)
381 | extension ByteBufferView: @retroactive ContiguousBytes {}
382 | extension ByteBufferView: @retroactive DataProtocol {}
| `- warning: 'retroactive' attribute does not apply; 'DataProtocol' is declared in this module; this is an error in the Swift 6 language mode
383 | extension ByteBufferView: @retroactive MutableDataProtocol {}
384 | #else
/host/spi-builder-workspace/Sources/NIOFoundationCompat/ByteBuffer-foundation.swift:383:27: warning: 'retroactive' attribute does not apply; 'MutableDataProtocol' is declared in this module; this is an error in the Swift 6 language mode
381 | extension ByteBufferView: @retroactive ContiguousBytes {}
382 | extension ByteBufferView: @retroactive DataProtocol {}
383 | extension ByteBufferView: @retroactive MutableDataProtocol {}
| `- warning: 'retroactive' attribute does not apply; 'MutableDataProtocol' is declared in this module; this is an error in the Swift 6 language mode
384 | #else
385 | extension ByteBufferView: ContiguousBytes {}
[468/493] Compiling NIOFoundationCompat ByteBuffer-foundation.swift
/host/spi-builder-workspace/Sources/NIOFoundationCompat/ByteBuffer-foundation.swift:381:27: warning: 'retroactive' attribute does not apply; 'ContiguousBytes' is declared in this module; this is an error in the Swift 6 language mode
379 | // MARK: - Conformances
380 | #if compiler(>=6.0)
381 | extension ByteBufferView: @retroactive ContiguousBytes {}
| `- warning: 'retroactive' attribute does not apply; 'ContiguousBytes' is declared in this module; this is an error in the Swift 6 language mode
382 | extension ByteBufferView: @retroactive DataProtocol {}
383 | extension ByteBufferView: @retroactive MutableDataProtocol {}
/host/spi-builder-workspace/Sources/NIOFoundationCompat/ByteBuffer-foundation.swift:382:27: warning: 'retroactive' attribute does not apply; 'DataProtocol' is declared in this module; this is an error in the Swift 6 language mode
380 | #if compiler(>=6.0)
381 | extension ByteBufferView: @retroactive ContiguousBytes {}
382 | extension ByteBufferView: @retroactive DataProtocol {}
| `- warning: 'retroactive' attribute does not apply; 'DataProtocol' is declared in this module; this is an error in the Swift 6 language mode
383 | extension ByteBufferView: @retroactive MutableDataProtocol {}
384 | #else
/host/spi-builder-workspace/Sources/NIOFoundationCompat/ByteBuffer-foundation.swift:383:27: warning: 'retroactive' attribute does not apply; 'MutableDataProtocol' is declared in this module; this is an error in the Swift 6 language mode
381 | extension ByteBufferView: @retroactive ContiguousBytes {}
382 | extension ByteBufferView: @retroactive DataProtocol {}
383 | extension ByteBufferView: @retroactive MutableDataProtocol {}
| `- warning: 'retroactive' attribute does not apply; 'MutableDataProtocol' is declared in this module; this is an error in the Swift 6 language mode
384 | #else
385 | extension ByteBufferView: ContiguousBytes {}
[470/494] Emitting module NIOHTTP1Server
/host/spi-builder-workspace/Sources/NIOHTTP1Server/main.swift:611:30: warning: converting non-sendable function value to '@Sendable (any Channel) -> EventLoopFuture<Void>' may introduce data races
609 |
610 | // Set the handlers that are applied to the accepted Channels
611 | .childChannelInitializer(childChannelInitializer(channel:))
| `- warning: converting non-sendable function value to '@Sendable (any Channel) -> EventLoopFuture<Void>' may introduce data races
612 |
613 | // Enable SO_REUSEADDR for the accepted Channels
/host/spi-builder-workspace/Sources/NIOHTTP1Server/main.swift:619:25: warning: converting non-sendable function value to '@Sendable (any Channel) -> EventLoopFuture<Void>' may introduce data races
617 | let pipeBootstrap = NIOPipeBootstrap(group: MultiThreadedEventLoopGroup.singleton)
618 | // Set the handlers that are applied to the accepted Channels
619 | .channelInitializer(childChannelInitializer(channel:))
| `- warning: converting non-sendable function value to '@Sendable (any Channel) -> EventLoopFuture<Void>' may introduce data races
620 |
621 | .channelOption(.maxMessagesPerRead, value: 1)
[471/494] Compiling NIOHTTP1Server main.swift
/host/spi-builder-workspace/Sources/NIOHTTP1Server/main.swift:611:30: warning: converting non-sendable function value to '@Sendable (any Channel) -> EventLoopFuture<Void>' may introduce data races
609 |
610 | // Set the handlers that are applied to the accepted Channels
611 | .childChannelInitializer(childChannelInitializer(channel:))
| `- warning: converting non-sendable function value to '@Sendable (any Channel) -> EventLoopFuture<Void>' may introduce data races
612 |
613 | // Enable SO_REUSEADDR for the accepted Channels
/host/spi-builder-workspace/Sources/NIOHTTP1Server/main.swift:619:25: warning: converting non-sendable function value to '@Sendable (any Channel) -> EventLoopFuture<Void>' may introduce data races
617 | let pipeBootstrap = NIOPipeBootstrap(group: MultiThreadedEventLoopGroup.singleton)
618 | // Set the handlers that are applied to the accepted Channels
619 | .channelInitializer(childChannelInitializer(channel:))
| `- warning: converting non-sendable function value to '@Sendable (any Channel) -> EventLoopFuture<Void>' may introduce data races
620 |
621 | .channelOption(.maxMessagesPerRead, value: 1)
/host/spi-builder-workspace/Sources/NIOHTTP1Server/main.swift:210:27: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
208 | self.state.requestComplete()
209 | context.eventLoop.scheduleTask(in: delay) { () -> Void in
210 | var buf = context.channel.allocator.buffer(capacity: string.utf8.count)
| `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
211 | buf.writeString(string)
212 | context.writeAndFlush(Self.wrapOutboundOut(.body(.byteBuffer(buf))), promise: nil)
/host/spi-builder-workspace/Sources/NIOCore/ChannelPipeline.swift:1507:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1505 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1506 | /// `ChannelHandler`.
1507 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1508 | // visible for ChannelPipeline to modify
1509 | fileprivate var next: Optional<ChannelHandlerContext>
/host/spi-builder-workspace/Sources/NIOHTTP1Server/main.swift:219:17: warning: capture of 'self' with non-sendable type 'HTTPHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
61 | }
62 |
63 | private final class HTTPHandler: ChannelInboundHandler {
| `- note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
64 | private enum FileIOMethod {
65 | case sendfile
:
217 | }
218 |
219 | self.completeResponse(context, trailers: trailers, promise: nil)
| `- warning: capture of 'self' with non-sendable type 'HTTPHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
220 | }
221 | }
/host/spi-builder-workspace/Sources/NIOHTTP1Server/main.swift:235:76: warning: converting non-sendable function value to '@Sendable () throws -> ()' may introduce data races
233 | self.buffer.writeString("line \(self.continuousCount)\n")
234 | context.writeAndFlush(Self.wrapOutboundOut(.body(.byteBuffer(self.buffer)))).map {
235 | context.eventLoop.scheduleTask(in: .milliseconds(400), doNext)
| `- warning: converting non-sendable function value to '@Sendable () throws -> ()' may introduce data races
236 | }.whenFailure { (_: Error) in
237 | self.completeResponse(context, trailers: nil, promise: nil)
/host/spi-builder-workspace/Sources/NIOHTTP1Server/main.swift:235:21: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
233 | self.buffer.writeString("line \(self.continuousCount)\n")
234 | context.writeAndFlush(Self.wrapOutboundOut(.body(.byteBuffer(self.buffer)))).map {
235 | context.eventLoop.scheduleTask(in: .milliseconds(400), doNext)
| `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
236 | }.whenFailure { (_: Error) in
237 | self.completeResponse(context, trailers: nil, promise: nil)
/host/spi-builder-workspace/Sources/NIOCore/ChannelPipeline.swift:1507:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1505 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1506 | /// `ChannelHandler`.
1507 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1508 | // visible for ChannelPipeline to modify
1509 | fileprivate var next: Optional<ChannelHandlerContext>
/host/spi-builder-workspace/Sources/NIOHTTP1Server/main.swift:235:76: warning: capture of 'doNext()' with non-sendable type '() -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
233 | self.buffer.writeString("line \(self.continuousCount)\n")
234 | context.writeAndFlush(Self.wrapOutboundOut(.body(.byteBuffer(self.buffer)))).map {
235 | context.eventLoop.scheduleTask(in: .milliseconds(400), doNext)
| |- warning: capture of 'doNext()' with non-sendable type '() -> ()' 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'
236 | }.whenFailure { (_: Error) in
237 | self.completeResponse(context, trailers: nil, promise: nil)
/host/spi-builder-workspace/Sources/NIOHTTP1Server/main.swift:230:18: warning: concurrently-executed local function 'doNext()' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
228 | self.continuousCount = 0
229 | self.state.requestReceived()
230 | func doNext() {
| `- warning: concurrently-executed local function 'doNext()' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
231 | self.buffer.clear()
232 | self.continuousCount += 1
/host/spi-builder-workspace/Sources/NIOHTTP1Server/main.swift:237:21: warning: capture of 'self' with non-sendable type 'HTTPHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
61 | }
62 |
63 | private final class HTTPHandler: ChannelInboundHandler {
| `- note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
64 | private enum FileIOMethod {
65 | case sendfile
:
235 | context.eventLoop.scheduleTask(in: .milliseconds(400), doNext)
236 | }.whenFailure { (_: Error) in
237 | self.completeResponse(context, trailers: nil, promise: nil)
| `- warning: capture of 'self' with non-sendable type 'HTTPHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
238 | }
239 | }
/host/spi-builder-workspace/Sources/NIOHTTP1Server/main.swift:237:43: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
235 | context.eventLoop.scheduleTask(in: .milliseconds(400), doNext)
236 | }.whenFailure { (_: Error) in
237 | self.completeResponse(context, trailers: nil, 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
238 | }
239 | }
/host/spi-builder-workspace/Sources/NIOCore/ChannelPipeline.swift:1507:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1505 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1506 | /// `ChannelHandler`.
1507 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1508 | // visible for ChannelPipeline to modify
1509 | fileprivate var next: Optional<ChannelHandlerContext>
/host/spi-builder-workspace/Sources/NIOHTTP1Server/main.swift:269:67: warning: converting non-sendable function value to '@Sendable () throws -> ()' may introduce data races
267 | context.writeAndFlush(Self.wrapOutboundOut(.body(.byteBuffer(self.buffer)))).whenSuccess {
268 | if self.continuousCount < strings.count {
269 | context.eventLoop.scheduleTask(in: delay, doNext)
| `- warning: converting non-sendable function value to '@Sendable () throws -> ()' may introduce data races
270 | } else {
271 | self.completeResponse(context, trailers: nil, promise: nil)
/host/spi-builder-workspace/Sources/NIOHTTP1Server/main.swift:268:24: warning: capture of 'self' with non-sendable type 'HTTPHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
61 | }
62 |
63 | private final class HTTPHandler: ChannelInboundHandler {
| `- note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
64 | private enum FileIOMethod {
65 | case sendfile
:
266 | self.continuousCount += 1
267 | context.writeAndFlush(Self.wrapOutboundOut(.body(.byteBuffer(self.buffer)))).whenSuccess {
268 | if self.continuousCount < strings.count {
| `- warning: capture of 'self' with non-sendable type 'HTTPHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
269 | context.eventLoop.scheduleTask(in: delay, doNext)
270 | } else {
/host/spi-builder-workspace/Sources/NIOHTTP1Server/main.swift:269:25: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
267 | context.writeAndFlush(Self.wrapOutboundOut(.body(.byteBuffer(self.buffer)))).whenSuccess {
268 | if self.continuousCount < strings.count {
269 | context.eventLoop.scheduleTask(in: delay, doNext)
| `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
270 | } else {
271 | self.completeResponse(context, trailers: nil, promise: nil)
/host/spi-builder-workspace/Sources/NIOCore/ChannelPipeline.swift:1507:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1505 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1506 | /// `ChannelHandler`.
1507 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1508 | // visible for ChannelPipeline to modify
1509 | fileprivate var next: Optional<ChannelHandlerContext>
/host/spi-builder-workspace/Sources/NIOHTTP1Server/main.swift:269:67: warning: capture of 'doNext()' with non-sendable type '() -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
267 | context.writeAndFlush(Self.wrapOutboundOut(.body(.byteBuffer(self.buffer)))).whenSuccess {
268 | if self.continuousCount < strings.count {
269 | context.eventLoop.scheduleTask(in: delay, doNext)
| |- warning: capture of 'doNext()' with non-sendable type '() -> ()' 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'
270 | } else {
271 | self.completeResponse(context, trailers: nil, promise: nil)
/host/spi-builder-workspace/Sources/NIOHTTP1Server/main.swift:263:18: warning: concurrently-executed local function 'doNext()' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
261 | self.continuousCount = 0
262 | self.state.requestReceived()
263 | func doNext() {
| `- warning: concurrently-executed local function 'doNext()' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
264 | self.buffer.clear()
265 | self.buffer.writeString(strings[self.continuousCount])
/host/spi-builder-workspace/Sources/NIOHTTP1Server/main.swift:405:17: warning: capture of 'sendErrorResponse(request:_:)' with non-sendable type '(HTTPRequestHead, any Error) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
403 | let fileHandleAndRegion = self.fileIO.openFile(path: path, eventLoop: context.eventLoop)
404 | fileHandleAndRegion.whenFailure {
405 | sendErrorResponse(request: request, $0)
| |- warning: capture of 'sendErrorResponse(request:_:)' with non-sendable type '(HTTPRequestHead, any Error) -> ()' 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'
406 | }
407 | fileHandleAndRegion.whenSuccess { (file, region) in
/host/spi-builder-workspace/Sources/NIOHTTP1Server/main.swift:360:14: warning: concurrently-executed local function 'sendErrorResponse(request:_:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
358 | self.buffer.clear()
359 |
360 | func sendErrorResponse(request: HTTPRequestHead, _ error: Error) {
| `- warning: concurrently-executed local function 'sendErrorResponse(request:_:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
361 | var body = context.channel.allocator.buffer(capacity: 128)
362 | let response = { () -> HTTPResponseHead in
/host/spi-builder-workspace/Sources/NIOHTTP1Server/main.swift:411:36: warning: capture of 'responseHead(request:fileRegion:)' with non-sendable type '(HTTPRequestHead, FileRegion) -> HTTPResponseHead' in a `@Sendable` closure; this is an error in the Swift 6 language mode
409 | case .nonblockingFileIO:
410 | var responseStarted = false
411 | let response = responseHead(request: request, fileRegion: region)
| |- warning: capture of 'responseHead(request:fileRegion:)' with non-sendable type '(HTTPRequestHead, FileRegion) -> HTTPResponseHead' 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'
412 | if region.readableBytes == 0 {
413 | responseStarted = true
/host/spi-builder-workspace/Sources/NIOHTTP1Server/main.swift:414:25: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
412 | if region.readableBytes == 0 {
413 | responseStarted = true
414 | context.write(Self.wrapOutboundOut(.head(response)), 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
415 | }
416 | return self.fileIO.readChunked(
/host/spi-builder-workspace/Sources/NIOCore/ChannelPipeline.swift:1507:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1505 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1506 | /// `ChannelHandler`.
1507 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1508 | // visible for ChannelPipeline to modify
1509 | fileprivate var next: Optional<ChannelHandlerContext>
/host/spi-builder-workspace/Sources/NIOHTTP1Server/main.swift:416:28: warning: capture of 'self' with non-sendable type 'HTTPHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
61 | }
62 |
63 | private final class HTTPHandler: ChannelInboundHandler {
| `- note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
64 | private enum FileIOMethod {
65 | case sendfile
:
414 | context.write(Self.wrapOutboundOut(.head(response)), promise: nil)
415 | }
416 | return self.fileIO.readChunked(
| `- warning: capture of 'self' with non-sendable type 'HTTPHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
417 | fileRegion: region,
418 | chunkSize: 32 * 1024,
/host/spi-builder-workspace/Sources/NIOHTTP1Server/main.swift:385:14: warning: concurrently-executed local function 'responseHead(request:fileRegion:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
383 | }
384 |
385 | func responseHead(request: HTTPRequestHead, fileRegion region: FileRegion) -> HTTPResponseHead {
| `- warning: concurrently-executed local function 'responseHead(request:fileRegion:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
386 | var response = httpResponseHead(request: request, status: .ok)
387 | response.headers.add(name: "Content-Length", value: "\(region.endIndex)")
/host/spi-builder-workspace/Sources/NIOHTTP1Server/main.swift:424:29: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
422 | if !responseStarted {
423 | responseStarted = true
424 | context.write(Self.wrapOutboundOut(.head(response)), 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
425 | }
426 | return context.writeAndFlush(Self.wrapOutboundOut(.body(.byteBuffer(buffer))))
/host/spi-builder-workspace/Sources/NIOCore/ChannelPipeline.swift:1507:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1505 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1506 | /// `ChannelHandler`.
1507 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1508 | // visible for ChannelPipeline to modify
1509 | fileprivate var next: Optional<ChannelHandlerContext>
/host/spi-builder-workspace/Sources/NIOHTTP1Server/main.swift:422:29: warning: reference to captured var 'responseStarted' in concurrently-executing code; this is an error in the Swift 6 language mode
420 | eventLoop: context.eventLoop
421 | ) { buffer in
422 | if !responseStarted {
| `- warning: reference to captured var 'responseStarted' in concurrently-executing code; this is an error in the Swift 6 language mode
423 | responseStarted = true
424 | context.write(Self.wrapOutboundOut(.head(response)), promise: nil)
/host/spi-builder-workspace/Sources/NIOHTTP1Server/main.swift:423:29: warning: mutation of captured var 'responseStarted' in concurrently-executing code; this is an error in the Swift 6 language mode
421 | ) { buffer in
422 | if !responseStarted {
423 | responseStarted = true
| `- warning: mutation of captured var 'responseStarted' in concurrently-executing code; this is an error in the Swift 6 language mode
424 | context.write(Self.wrapOutboundOut(.head(response)), promise: nil)
425 | }
/host/spi-builder-workspace/Sources/NIOHTTP1Server/main.swift:428:33: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
426 | return context.writeAndFlush(Self.wrapOutboundOut(.body(.byteBuffer(buffer))))
427 | }.flatMap { () -> EventLoopFuture<Void> in
428 | let p = context.eventLoop.makePromise(of: Void.self)
| `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
429 | self.completeResponse(context, trailers: nil, promise: p)
430 | return p.futureResult
/host/spi-builder-workspace/Sources/NIOCore/ChannelPipeline.swift:1507:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1505 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1506 | /// `ChannelHandler`.
1507 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1508 | // visible for ChannelPipeline to modify
1509 | fileprivate var next: Optional<ChannelHandlerContext>
/host/spi-builder-workspace/Sources/NIOHTTP1Server/main.swift:429:25: warning: capture of 'self' with non-sendable type 'HTTPHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
61 | }
62 |
63 | private final class HTTPHandler: ChannelInboundHandler {
| `- note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
64 | private enum FileIOMethod {
65 | case sendfile
:
427 | }.flatMap { () -> EventLoopFuture<Void> in
428 | let p = context.eventLoop.makePromise(of: Void.self)
429 | self.completeResponse(context, trailers: nil, promise: p)
| `- warning: capture of 'self' with non-sendable type 'HTTPHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
430 | return p.futureResult
431 | }.flatMapError { error in
/host/spi-builder-workspace/Sources/NIOHTTP1Server/main.swift:434:29: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
432 | if !responseStarted {
433 | let response = httpResponseHead(request: request, status: .ok)
434 | context.write(Self.wrapOutboundOut(.head(response)), 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
435 | var buffer = context.channel.allocator.buffer(capacity: 100)
436 | buffer.writeString("fail: \(error)")
/host/spi-builder-workspace/Sources/NIOCore/ChannelPipeline.swift:1507:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1505 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1506 | /// `ChannelHandler`.
1507 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1508 | // visible for ChannelPipeline to modify
1509 | fileprivate var next: Optional<ChannelHandlerContext>
/host/spi-builder-workspace/Sources/NIOHTTP1Server/main.swift:438:29: warning: capture of 'self' with non-sendable type 'HTTPHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
61 | }
62 |
63 | private final class HTTPHandler: ChannelInboundHandler {
| `- note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
64 | private enum FileIOMethod {
65 | case sendfile
:
436 | buffer.writeString("fail: \(error)")
437 | context.write(Self.wrapOutboundOut(.body(.byteBuffer(buffer))), promise: nil)
438 | self.state.responseComplete()
| `- warning: capture of 'self' with non-sendable type 'HTTPHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
439 | return context.writeAndFlush(Self.wrapOutboundOut(.end(nil)))
440 | } else {
/host/spi-builder-workspace/Sources/NIOHTTP1Server/main.swift:432:29: warning: reference to captured var 'responseStarted' in concurrently-executing code; this is an error in the Swift 6 language mode
430 | return p.futureResult
431 | }.flatMapError { error in
432 | if !responseStarted {
| `- warning: reference to captured var 'responseStarted' in concurrently-executing code; this is an error in the Swift 6 language mode
433 | let response = httpResponseHead(request: request, status: .ok)
434 | context.write(Self.wrapOutboundOut(.head(response)), promise: nil)
/host/spi-builder-workspace/Sources/NIOHTTP1Server/main.swift:444:34: warning: capture of 'file' with non-sendable type 'NIOFileHandle' in a `@Sendable` closure; this is an error in the Swift 6 language mode
442 | }
443 | }.whenComplete { (_: Result<Void, Error>) in
444 | _ = try? file.close()
| `- warning: capture of 'file' with non-sendable type 'NIOFileHandle' in a `@Sendable` closure; this is an error in the Swift 6 language mode
445 | }
446 | case .sendfile:
/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/NIOHTTP1Server/main.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 | import NIOHTTP1
16 | import NIOPosix
/host/spi-builder-workspace/Sources/NIOHTTP1Server/main.swift:450:33: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
448 | context.write(Self.wrapOutboundOut(.head(response)), promise: nil)
449 | context.writeAndFlush(Self.wrapOutboundOut(.body(.fileRegion(region)))).flatMap {
450 | let p = context.eventLoop.makePromise(of: Void.self)
| `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
451 | self.completeResponse(context, trailers: nil, promise: p)
452 | return p.futureResult
/host/spi-builder-workspace/Sources/NIOCore/ChannelPipeline.swift:1507:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1505 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1506 | /// `ChannelHandler`.
1507 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1508 | // visible for ChannelPipeline to modify
1509 | fileprivate var next: Optional<ChannelHandlerContext>
/host/spi-builder-workspace/Sources/NIOHTTP1Server/main.swift:451:25: warning: capture of 'self' with non-sendable type 'HTTPHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
61 | }
62 |
63 | private final class HTTPHandler: ChannelInboundHandler {
| `- note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
64 | private enum FileIOMethod {
65 | case sendfile
:
449 | context.writeAndFlush(Self.wrapOutboundOut(.body(.fileRegion(region)))).flatMap {
450 | let p = context.eventLoop.makePromise(of: Void.self)
451 | self.completeResponse(context, trailers: nil, promise: p)
| `- warning: capture of 'self' with non-sendable type 'HTTPHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
452 | return p.futureResult
453 | }.flatMapError { (_: Error) in
/host/spi-builder-workspace/Sources/NIOHTTP1Server/main.swift:454:25: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
452 | return p.futureResult
453 | }.flatMapError { (_: Error) in
454 | 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
455 | }.whenComplete { (_: Result<Void, Error>) in
456 | _ = try? file.close()
/host/spi-builder-workspace/Sources/NIOCore/ChannelPipeline.swift:1507:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1505 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1506 | /// `ChannelHandler`.
1507 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1508 | // visible for ChannelPipeline to modify
1509 | fileprivate var next: Optional<ChannelHandlerContext>
/host/spi-builder-workspace/Sources/NIOHTTP1Server/main.swift:456:34: warning: capture of 'file' with non-sendable type 'NIOFileHandle' in a `@Sendable` closure; this is an error in the Swift 6 language mode
454 | context.close()
455 | }.whenComplete { (_: Result<Void, Error>) in
456 | _ = try? file.close()
| `- warning: capture of 'file' with non-sendable type 'NIOFileHandle' in a `@Sendable` closure; this is an error in the Swift 6 language mode
457 | }
458 | }
/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/NIOHTTP1Server/main.swift:476:78: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
474 | let promise = self.keepAlive ? promise : (promise ?? context.eventLoop.makePromise())
475 | if !self.keepAlive {
476 | promise!.futureResult.whenComplete { (_: Result<Void, Error>) in context.close(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
477 | }
478 | self.handler = nil
/host/spi-builder-workspace/Sources/NIOCore/ChannelPipeline.swift:1507:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1505 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1506 | /// `ChannelHandler`.
1507 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1508 | // visible for ChannelPipeline to modify
1509 | fileprivate var next: Optional<ChannelHandlerContext>
[471/494] Wrapping AST for NIOFoundationCompat for debugging
[473/496] Compiling NIOWebSocketClient Client.swift
[474/529] Emitting module _NIOFileSystemFoundationCompat
[475/529] Compiling _NIOFileSystemFoundationCompat Data+FileSystem.swift
[478/529] Compiling _NIOFileSystemFoundationCompat Date+FileInfo.swift
[479/530] Emitting module NIOWebSocketServer
[480/530] Compiling NIOWebSocketServer Server.swift
[480/530] Wrapping AST for NIOHTTP1Server for debugging
[481/530] Write Objects.LinkFileList
[482/530] Wrapping AST for NIOWebSocketClient for debugging
[483/530] Write Objects.LinkFileList
[485/530] Compiling NIOCrashTester CrashTests+Strict.swift
[486/532] Compiling NIOCrashTester CrashTests+HTTP.swift
[487/532] Compiling NIOCrashTester CrashTests+LoopBound.swift
[489/532] Compiling NIOCrashTester CrashTests+System.swift
[490/532] Compiling NIOCrashTester OutputGrepper.swift
[492/532] Compiling NIOPerformanceTester Benchmark.swift
[493/532] Compiling NIOPerformanceTester ByteBufferViewContainsBenchmark.swift
[494/532] Compiling NIOPerformanceTester ByteBufferViewCopyToArrayBenchmark.swift
[495/532] Compiling NIOCrashTester CrashTests+EventLoop.swift
/host/spi-builder-workspace/Sources/NIOCrashTester/CrashTests+EventLoop.swift:86:21: warning: capture of 'f' with non-sendable type '() -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
84 | func f() {
85 | el.scheduleTask(in: .nanoseconds(0)) { [f] in
86 | f()
| |- warning: capture of 'f' with non-sendable type '() -> ()' 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'
87 | }.futureResult.whenFailure { [f] error in
88 | guard case .some(.shutdown) = error as? EventLoopError else {
/host/spi-builder-workspace/Sources/NIOCrashTester/CrashTests+EventLoop.swift:91:21: warning: capture of 'f' with non-sendable type '() -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
89 | exit(3)
90 | }
91 | f()
| |- warning: capture of 'f' with non-sendable type '() -> ()' 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'
92 | }
93 | }
[496/534] Compiling NIOPerformanceTester DeadlineNowBenchmark.swift
/host/spi-builder-workspace/Sources/NIOPerformanceTester/ExecuteBenchmark.swift:39:26: warning: capture of 'self' with non-sendable type 'ExecuteBenchmark' in a `@Sendable` closure; this is an error in the Swift 6 language mode
17 | import NIOPosix
18 |
19 | final class ExecuteBenchmark: Benchmark {
| `- note: class 'ExecuteBenchmark' does not conform to the 'Sendable' protocol
20 | private var group: MultiThreadedEventLoopGroup!
21 | private var loop: EventLoop!
:
37 | try! self.loop.submit {
38 | var counter: Int = 0
39 | for _ in 0..<self.numTasks {
| `- warning: capture of 'self' with non-sendable type 'ExecuteBenchmark' in a `@Sendable` closure; this is an error in the Swift 6 language mode
40 | self.loop.scheduleTask(in: .nanoseconds(0)) {
41 | counter &+= 1
/host/spi-builder-workspace/Sources/NIOPerformanceTester/ExecuteBenchmark.swift:41:21: warning: mutation of captured var 'counter' in concurrently-executing code; this is an error in the Swift 6 language mode
39 | for _ in 0..<self.numTasks {
40 | self.loop.scheduleTask(in: .nanoseconds(0)) {
41 | counter &+= 1
| `- warning: mutation of captured var 'counter' in concurrently-executing code; this is an error in the Swift 6 language mode
42 | }
43 | }
/host/spi-builder-workspace/Sources/NIOPerformanceTester/ExecuteBenchmark.swift:51:26: warning: capture of 'self' with non-sendable type 'ExecuteBenchmark' in a `@Sendable` closure; this is an error in the Swift 6 language mode
17 | import NIOPosix
18 |
19 | final class ExecuteBenchmark: Benchmark {
| `- note: class 'ExecuteBenchmark' does not conform to the 'Sendable' protocol
20 | private var group: MultiThreadedEventLoopGroup!
21 | private var loop: EventLoop!
:
49 | func run() -> Int {
50 | try! self.loop.submit {
51 | for _ in 0..<self.numTasks {
| `- warning: capture of 'self' with non-sendable type 'ExecuteBenchmark' in a `@Sendable` closure; this is an error in the Swift 6 language mode
52 | self.dg.enter()
53 |
/host/spi-builder-workspace/Sources/NIOPerformanceTester/ExecuteBenchmark.swift:55:21: warning: capture of 'self' with non-sendable type 'ExecuteBenchmark' in a `@Sendable` closure; this is an error in the Swift 6 language mode
17 | import NIOPosix
18 |
19 | final class ExecuteBenchmark: Benchmark {
| `- note: class 'ExecuteBenchmark' does not conform to the 'Sendable' protocol
20 | private var group: MultiThreadedEventLoopGroup!
21 | private var loop: EventLoop!
:
53 |
54 | self.loop.execute {
55 | self.counter &+= 1
| `- warning: capture of 'self' with non-sendable type 'ExecuteBenchmark' in a `@Sendable` closure; this is an error in the Swift 6 language mode
56 | self.dg.leave()
57 | }
/host/spi-builder-workspace/Sources/NIOPerformanceTester/LockBenchmark.swift:54:17: warning: capture of 'self' with non-sendable type 'NIOLockBenchmark' in a `@Sendable` closure; this is an error in the Swift 6 language mode
18 | import NIOPosix
19 |
20 | final class NIOLockBenchmark: Benchmark {
| `- note: class 'NIOLockBenchmark' does not conform to the 'Sendable' protocol
21 | private let numberOfThreads: Int
22 | private let lockOperationsPerThread: Int
:
52 | for _ in 0..<self.numberOfThreads {
53 | _ = self.threadPool.runIfActive(eventLoop: self.group.next()) {
54 | self.sem1.signal()
| `- warning: capture of 'self' with non-sendable type 'NIOLockBenchmark' in a `@Sendable` closure; this is an error in the Swift 6 language mode
55 | self.sem2.wait()
56 |
/host/spi-builder-workspace/Sources/NIOPerformanceTester/LockBenchmark.swift:59:25: warning: capture of 'self' with non-sendable type 'NIOLockBenchmark' in an isolated closure; this is an error in the Swift 6 language mode
18 | import NIOPosix
19 |
20 | final class NIOLockBenchmark: Benchmark {
| `- note: class 'NIOLockBenchmark' does not conform to the 'Sendable' protocol
21 | private let numberOfThreads: Int
22 | private let lockOperationsPerThread: Int
:
57 | for _ in 0..<self.lockOperationsPerThread {
58 | self.lock.withLock {
59 | self.opsDone &+= 1
| `- warning: capture of 'self' with non-sendable type 'NIOLockBenchmark' in an isolated closure; this is an error in the Swift 6 language mode
60 | }
61 | }
[497/534] Compiling NIOPerformanceTester ExecuteBenchmark.swift
/host/spi-builder-workspace/Sources/NIOPerformanceTester/ExecuteBenchmark.swift:39:26: warning: capture of 'self' with non-sendable type 'ExecuteBenchmark' in a `@Sendable` closure; this is an error in the Swift 6 language mode
17 | import NIOPosix
18 |
19 | final class ExecuteBenchmark: Benchmark {
| `- note: class 'ExecuteBenchmark' does not conform to the 'Sendable' protocol
20 | private var group: MultiThreadedEventLoopGroup!
21 | private var loop: EventLoop!
:
37 | try! self.loop.submit {
38 | var counter: Int = 0
39 | for _ in 0..<self.numTasks {
| `- warning: capture of 'self' with non-sendable type 'ExecuteBenchmark' in a `@Sendable` closure; this is an error in the Swift 6 language mode
40 | self.loop.scheduleTask(in: .nanoseconds(0)) {
41 | counter &+= 1
/host/spi-builder-workspace/Sources/NIOPerformanceTester/ExecuteBenchmark.swift:41:21: warning: mutation of captured var 'counter' in concurrently-executing code; this is an error in the Swift 6 language mode
39 | for _ in 0..<self.numTasks {
40 | self.loop.scheduleTask(in: .nanoseconds(0)) {
41 | counter &+= 1
| `- warning: mutation of captured var 'counter' in concurrently-executing code; this is an error in the Swift 6 language mode
42 | }
43 | }
/host/spi-builder-workspace/Sources/NIOPerformanceTester/ExecuteBenchmark.swift:51:26: warning: capture of 'self' with non-sendable type 'ExecuteBenchmark' in a `@Sendable` closure; this is an error in the Swift 6 language mode
17 | import NIOPosix
18 |
19 | final class ExecuteBenchmark: Benchmark {
| `- note: class 'ExecuteBenchmark' does not conform to the 'Sendable' protocol
20 | private var group: MultiThreadedEventLoopGroup!
21 | private var loop: EventLoop!
:
49 | func run() -> Int {
50 | try! self.loop.submit {
51 | for _ in 0..<self.numTasks {
| `- warning: capture of 'self' with non-sendable type 'ExecuteBenchmark' in a `@Sendable` closure; this is an error in the Swift 6 language mode
52 | self.dg.enter()
53 |
/host/spi-builder-workspace/Sources/NIOPerformanceTester/ExecuteBenchmark.swift:55:21: warning: capture of 'self' with non-sendable type 'ExecuteBenchmark' in a `@Sendable` closure; this is an error in the Swift 6 language mode
17 | import NIOPosix
18 |
19 | final class ExecuteBenchmark: Benchmark {
| `- note: class 'ExecuteBenchmark' does not conform to the 'Sendable' protocol
20 | private var group: MultiThreadedEventLoopGroup!
21 | private var loop: EventLoop!
:
53 |
54 | self.loop.execute {
55 | self.counter &+= 1
| `- warning: capture of 'self' with non-sendable type 'ExecuteBenchmark' in a `@Sendable` closure; this is an error in the Swift 6 language mode
56 | self.dg.leave()
57 | }
/host/spi-builder-workspace/Sources/NIOPerformanceTester/LockBenchmark.swift:54:17: warning: capture of 'self' with non-sendable type 'NIOLockBenchmark' in a `@Sendable` closure; this is an error in the Swift 6 language mode
18 | import NIOPosix
19 |
20 | final class NIOLockBenchmark: Benchmark {
| `- note: class 'NIOLockBenchmark' does not conform to the 'Sendable' protocol
21 | private let numberOfThreads: Int
22 | private let lockOperationsPerThread: Int
:
52 | for _ in 0..<self.numberOfThreads {
53 | _ = self.threadPool.runIfActive(eventLoop: self.group.next()) {
54 | self.sem1.signal()
| `- warning: capture of 'self' with non-sendable type 'NIOLockBenchmark' in a `@Sendable` closure; this is an error in the Swift 6 language mode
55 | self.sem2.wait()
56 |
/host/spi-builder-workspace/Sources/NIOPerformanceTester/LockBenchmark.swift:59:25: warning: capture of 'self' with non-sendable type 'NIOLockBenchmark' in an isolated closure; this is an error in the Swift 6 language mode
18 | import NIOPosix
19 |
20 | final class NIOLockBenchmark: Benchmark {
| `- note: class 'NIOLockBenchmark' does not conform to the 'Sendable' protocol
21 | private let numberOfThreads: Int
22 | private let lockOperationsPerThread: Int
:
57 | for _ in 0..<self.lockOperationsPerThread {
58 | self.lock.withLock {
59 | self.opsDone &+= 1
| `- warning: capture of 'self' with non-sendable type 'NIOLockBenchmark' in an isolated closure; this is an error in the Swift 6 language mode
60 | }
61 | }
[498/534] Compiling NIOPerformanceTester LockBenchmark.swift
/host/spi-builder-workspace/Sources/NIOPerformanceTester/ExecuteBenchmark.swift:39:26: warning: capture of 'self' with non-sendable type 'ExecuteBenchmark' in a `@Sendable` closure; this is an error in the Swift 6 language mode
17 | import NIOPosix
18 |
19 | final class ExecuteBenchmark: Benchmark {
| `- note: class 'ExecuteBenchmark' does not conform to the 'Sendable' protocol
20 | private var group: MultiThreadedEventLoopGroup!
21 | private var loop: EventLoop!
:
37 | try! self.loop.submit {
38 | var counter: Int = 0
39 | for _ in 0..<self.numTasks {
| `- warning: capture of 'self' with non-sendable type 'ExecuteBenchmark' in a `@Sendable` closure; this is an error in the Swift 6 language mode
40 | self.loop.scheduleTask(in: .nanoseconds(0)) {
41 | counter &+= 1
/host/spi-builder-workspace/Sources/NIOPerformanceTester/ExecuteBenchmark.swift:41:21: warning: mutation of captured var 'counter' in concurrently-executing code; this is an error in the Swift 6 language mode
39 | for _ in 0..<self.numTasks {
40 | self.loop.scheduleTask(in: .nanoseconds(0)) {
41 | counter &+= 1
| `- warning: mutation of captured var 'counter' in concurrently-executing code; this is an error in the Swift 6 language mode
42 | }
43 | }
/host/spi-builder-workspace/Sources/NIOPerformanceTester/ExecuteBenchmark.swift:51:26: warning: capture of 'self' with non-sendable type 'ExecuteBenchmark' in a `@Sendable` closure; this is an error in the Swift 6 language mode
17 | import NIOPosix
18 |
19 | final class ExecuteBenchmark: Benchmark {
| `- note: class 'ExecuteBenchmark' does not conform to the 'Sendable' protocol
20 | private var group: MultiThreadedEventLoopGroup!
21 | private var loop: EventLoop!
:
49 | func run() -> Int {
50 | try! self.loop.submit {
51 | for _ in 0..<self.numTasks {
| `- warning: capture of 'self' with non-sendable type 'ExecuteBenchmark' in a `@Sendable` closure; this is an error in the Swift 6 language mode
52 | self.dg.enter()
53 |
/host/spi-builder-workspace/Sources/NIOPerformanceTester/ExecuteBenchmark.swift:55:21: warning: capture of 'self' with non-sendable type 'ExecuteBenchmark' in a `@Sendable` closure; this is an error in the Swift 6 language mode
17 | import NIOPosix
18 |
19 | final class ExecuteBenchmark: Benchmark {
| `- note: class 'ExecuteBenchmark' does not conform to the 'Sendable' protocol
20 | private var group: MultiThreadedEventLoopGroup!
21 | private var loop: EventLoop!
:
53 |
54 | self.loop.execute {
55 | self.counter &+= 1
| `- warning: capture of 'self' with non-sendable type 'ExecuteBenchmark' in a `@Sendable` closure; this is an error in the Swift 6 language mode
56 | self.dg.leave()
57 | }
/host/spi-builder-workspace/Sources/NIOPerformanceTester/LockBenchmark.swift:54:17: warning: capture of 'self' with non-sendable type 'NIOLockBenchmark' in a `@Sendable` closure; this is an error in the Swift 6 language mode
18 | import NIOPosix
19 |
20 | final class NIOLockBenchmark: Benchmark {
| `- note: class 'NIOLockBenchmark' does not conform to the 'Sendable' protocol
21 | private let numberOfThreads: Int
22 | private let lockOperationsPerThread: Int
:
52 | for _ in 0..<self.numberOfThreads {
53 | _ = self.threadPool.runIfActive(eventLoop: self.group.next()) {
54 | self.sem1.signal()
| `- warning: capture of 'self' with non-sendable type 'NIOLockBenchmark' in a `@Sendable` closure; this is an error in the Swift 6 language mode
55 | self.sem2.wait()
56 |
/host/spi-builder-workspace/Sources/NIOPerformanceTester/LockBenchmark.swift:59:25: warning: capture of 'self' with non-sendable type 'NIOLockBenchmark' in an isolated closure; this is an error in the Swift 6 language mode
18 | import NIOPosix
19 |
20 | final class NIOLockBenchmark: Benchmark {
| `- note: class 'NIOLockBenchmark' does not conform to the 'Sendable' protocol
21 | private let numberOfThreads: Int
22 | private let lockOperationsPerThread: Int
:
57 | for _ in 0..<self.lockOperationsPerThread {
58 | self.lock.withLock {
59 | self.opsDone &+= 1
| `- warning: capture of 'self' with non-sendable type 'NIOLockBenchmark' in an isolated closure; this is an error in the Swift 6 language mode
60 | }
61 | }
[499/534] Emitting module NIOCrashTester
/host/spi-builder-workspace/Sources/NIOCrashTester/CrashTestSuites.swift:16:5: warning: let 'crashTestSuites' is not concurrency-safe because non-'Sendable' type '[String : Any]' may have shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | #if !canImport(Darwin) || os(macOS)
16 | let crashTestSuites: [String: Any] = [
| |- warning: let 'crashTestSuites' is not concurrency-safe because non-'Sendable' type '[String : Any]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'crashTestSuites' 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
17 | "EventLoopCrashTests": EventLoopCrashTests(),
18 | "ByteBufferCrashTests": ByteBufferCrashTests(),
/host/spi-builder-workspace/Sources/NIOCrashTester/CrashTestSuites.swift:16:5: warning: let 'crashTestSuites' is not concurrency-safe because non-'Sendable' type '[String : Any]' may have shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | #if !canImport(Darwin) || os(macOS)
16 | let crashTestSuites: [String: Any] = [
| |- warning: let 'crashTestSuites' is not concurrency-safe because non-'Sendable' type '[String : Any]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'crashTestSuites' 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
17 | "EventLoopCrashTests": EventLoopCrashTests(),
18 | "ByteBufferCrashTests": ByteBufferCrashTests(),
/host/spi-builder-workspace/Sources/NIOCrashTester/CrashTests+EventLoop.swift:86:21: warning: capture of 'f' with non-sendable type '() -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
84 | func f() {
85 | el.scheduleTask(in: .nanoseconds(0)) { [f] in
86 | f()
| |- warning: capture of 'f' with non-sendable type '() -> ()' 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'
87 | }.futureResult.whenFailure { [f] error in
88 | guard case .some(.shutdown) = error as? EventLoopError else {
/host/spi-builder-workspace/Sources/NIOCrashTester/CrashTests+EventLoop.swift:91:21: warning: capture of 'f' with non-sendable type '() -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
89 | exit(3)
90 | }
91 | f()
| |- warning: capture of 'f' with non-sendable type '() -> ()' 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'
92 | }
93 | }
/host/spi-builder-workspace/Sources/NIOCrashTester/CrashTestSuites.swift:16:5: warning: let 'crashTestSuites' is not concurrency-safe because non-'Sendable' type '[String : Any]' may have shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | #if !canImport(Darwin) || os(macOS)
16 | let crashTestSuites: [String: Any] = [
| |- warning: let 'crashTestSuites' is not concurrency-safe because non-'Sendable' type '[String : Any]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'crashTestSuites' 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
17 | "EventLoopCrashTests": EventLoopCrashTests(),
18 | "ByteBufferCrashTests": ByteBufferCrashTests(),
/host/spi-builder-workspace/Sources/NIOCrashTester/CrashTests+EventLoop.swift:86:21: warning: capture of 'f' with non-sendable type '() -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
84 | func f() {
85 | el.scheduleTask(in: .nanoseconds(0)) { [f] in
86 | f()
| |- warning: capture of 'f' with non-sendable type '() -> ()' 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'
87 | }.futureResult.whenFailure { [f] error in
88 | guard case .some(.shutdown) = error as? EventLoopError else {
/host/spi-builder-workspace/Sources/NIOCrashTester/CrashTests+EventLoop.swift:91:21: warning: capture of 'f' with non-sendable type '() -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
89 | exit(3)
90 | }
91 | f()
| |- warning: capture of 'f' with non-sendable type '() -> ()' 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'
92 | }
93 | }
[501/534] Wrapping AST for _NIOFileSystemFoundationCompat for debugging
[502/534] Wrapping AST for NIOWebSocketServer for debugging
[503/534] Write Objects.LinkFileList
[505/536] Compiling NIOPerformanceTester ChannelPipelineBenchmark.swift
[506/536] Compiling NIOPerformanceTester CircularBufferCopyToArrayBenchmark.swift
[507/536] Compiling NIOPerformanceTester CircularBufferIntoByteBufferBenchmark.swift
[508/536] Emitting module NIOFileSystemTour
[509/536] Compiling NIOPerformanceTester WebSocketFrameDecoderBenchmark.swift
[510/536] Compiling NIOPerformanceTester WebSocketFrameEncoderBenchmark.swift
[510/536] Linking NIOHTTP1Server
[512/536] Compiling NIOPerformanceTester ByteBufferViewIteratorBenchmark.swift
[513/536] Compiling NIOPerformanceTester ByteBufferWriteMultipleBenchmarks.swift
[514/536] Compiling NIOPerformanceTester ByteToMessageDecoderDecodeManySmallsBenchmark.swift
[514/536] Linking NIOWebSocketClient
[516/536] Compiling NIOCrashTester main.swift
/host/spi-builder-workspace/Sources/NIOCrashTester/CrashTestSuites.swift:16:5: warning: let 'crashTestSuites' is not concurrency-safe because non-'Sendable' type '[String : Any]' may have shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | #if !canImport(Darwin) || os(macOS)
16 | let crashTestSuites: [String: Any] = [
| |- warning: let 'crashTestSuites' is not concurrency-safe because non-'Sendable' type '[String : Any]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'crashTestSuites' 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
17 | "EventLoopCrashTests": EventLoopCrashTests(),
18 | "ByteBufferCrashTests": ByteBufferCrashTests(),
[518/537] Compiling NIOFileSystemTour NIOFileSystemTour.swift
[518/537] Wrapping AST for NIOCrashTester for debugging
[519/537] Write Objects.LinkFileList
[521/538] Compiling NIOPerformanceTester NIOAsyncSequenceProducerBenchmark.swift
[522/538] Compiling NIOPerformanceTester NIOAsyncWriterSingleWritesBenchmark.swift
[523/538] Compiling NIOPerformanceTester RunIfActiveBenchmark.swift
[524/538] Compiling NIOPerformanceTester SchedulingAndRunningBenchmark.swift
/host/spi-builder-workspace/Sources/NIOPerformanceTester/SchedulingAndRunningBenchmark.swift:39:26: warning: capture of 'self' with non-sendable type 'SchedulingAndRunningBenchmark' in a `@Sendable` closure; this is an error in the Swift 6 language mode
17 | import NIOPosix
18 |
19 | final class SchedulingAndRunningBenchmark: Benchmark {
| `- note: class 'SchedulingAndRunningBenchmark' does not conform to the 'Sendable' protocol
20 | private var group: MultiThreadedEventLoopGroup!
21 | private var loop: EventLoop!
:
37 | try! self.loop.submit {
38 | var counter: Int = 0
39 | for _ in 0..<self.numTasks {
| `- warning: capture of 'self' with non-sendable type 'SchedulingAndRunningBenchmark' in a `@Sendable` closure; this is an error in the Swift 6 language mode
40 | self.loop.scheduleTask(in: .nanoseconds(0)) {
41 | counter &+= 1
/host/spi-builder-workspace/Sources/NIOPerformanceTester/SchedulingAndRunningBenchmark.swift:41:21: warning: mutation of captured var 'counter' in concurrently-executing code; this is an error in the Swift 6 language mode
39 | for _ in 0..<self.numTasks {
40 | self.loop.scheduleTask(in: .nanoseconds(0)) {
41 | counter &+= 1
| `- warning: mutation of captured var 'counter' in concurrently-executing code; this is an error in the Swift 6 language mode
42 | }
43 | }
/host/spi-builder-workspace/Sources/NIOPerformanceTester/SchedulingAndRunningBenchmark.swift:51:26: warning: capture of 'self' with non-sendable type 'SchedulingAndRunningBenchmark' in a `@Sendable` closure; this is an error in the Swift 6 language mode
17 | import NIOPosix
18 |
19 | final class SchedulingAndRunningBenchmark: Benchmark {
| `- note: class 'SchedulingAndRunningBenchmark' does not conform to the 'Sendable' protocol
20 | private var group: MultiThreadedEventLoopGroup!
21 | private var loop: EventLoop!
:
49 | func run() -> Int {
50 | try! self.loop.submit {
51 | for _ in 0..<self.numTasks {
| `- warning: capture of 'self' with non-sendable type 'SchedulingAndRunningBenchmark' in a `@Sendable` closure; this is an error in the Swift 6 language mode
52 | self.dg.enter()
53 |
/host/spi-builder-workspace/Sources/NIOPerformanceTester/SchedulingAndRunningBenchmark.swift:55:21: warning: capture of 'self' with non-sendable type 'SchedulingAndRunningBenchmark' in a `@Sendable` closure; this is an error in the Swift 6 language mode
17 | import NIOPosix
18 |
19 | final class SchedulingAndRunningBenchmark: Benchmark {
| `- note: class 'SchedulingAndRunningBenchmark' does not conform to the 'Sendable' protocol
20 | private var group: MultiThreadedEventLoopGroup!
21 | private var loop: EventLoop!
:
53 |
54 | self.loop.scheduleTask(in: .nanoseconds(0)) {
55 | self.counter &+= 1
| `- warning: capture of 'self' with non-sendable type 'SchedulingAndRunningBenchmark' in a `@Sendable` closure; this is an error in the Swift 6 language mode
56 | self.dg.leave()
57 | }
/host/spi-builder-workspace/Sources/NIOPerformanceTester/TCPThroughputBenchmark.swift:119:17: warning: capture of 'self' with non-sendable type 'TCPThroughputBenchmark' in a `@Sendable` closure; this is an error in the Swift 6 language mode
22 |
23 | @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
24 | final class TCPThroughputBenchmark: Benchmark {
| `- note: class 'TCPThroughputBenchmark' does not conform to the 'Sendable' protocol
25 |
26 | private let messages: Int
:
117 | self.serverChannel = try ServerBootstrap(group: self.group)
118 | .childChannelInitializer { channel in
119 | self.serverHandler = ServerHandler(connectionEstablishedPromise)
| `- warning: capture of 'self' with non-sendable type 'TCPThroughputBenchmark' in a `@Sendable` closure; this is an error in the Swift 6 language mode
120 | return channel.pipeline.addHandler(self.serverHandler)
121 | }
/host/spi-builder-workspace/Sources/NIOPerformanceTester/TCPThroughputBenchmark.swift:168:13: warning: capture of 'serverHandler' with non-sendable type 'TCPThroughputBenchmark.ServerHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
35 | private var serverEventLoop: EventLoop!
36 |
37 | final class ServerHandler: ChannelInboundHandler {
| `- note: class 'ServerHandler' does not conform to the 'Sendable' protocol
38 | public typealias InboundIn = ByteBuffer
39 | public typealias OutboundOut = ByteBuffer
:
166 |
167 | self.serverEventLoop.execute {
168 | serverHandler.send(message, times: messages)
| `- warning: capture of 'serverHandler' with non-sendable type 'TCPThroughputBenchmark.ServerHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
169 | }
170 | try isDonePromise.futureResult.wait()
/host/spi-builder-workspace/Sources/NIOPerformanceTester/UDPBenchmark.swift:75:93: warning: type 'UDPBenchmark.EchoHandlerClient' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
73 | .wait()
74 |
75 | self.clientHandler = try self.client.pipeline.handler(type: EchoHandlerClient.self).wait()
| `- warning: type 'UDPBenchmark.EchoHandlerClient' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
76 | }
77 |
:
106 | }
107 |
108 | final class EchoHandlerClient: ChannelInboundHandler, RemovableChannelHandler {
| `- note: class 'EchoHandlerClient' does not conform to the 'Sendable' protocol
109 | typealias InboundIn = AddressedEnvelope<ByteBuffer>
110 | typealias OutboundOut = AddressedEnvelope<ByteBuffer>
/host/spi-builder-workspace/Sources/NIOPerformanceTester/UDPBenchmark.swift:65:34: warning: capture of 'self' with non-sendable type 'UDPBenchmark' in a `@Sendable` closure; this is an error in the Swift 6 language mode
15 | import NIOPosix
16 |
17 | final class UDPBenchmark {
| `- note: class 'UDPBenchmark' does not conform to the 'Sendable' protocol
18 | /// Request to send.
19 | private let data: ByteBuffer
:
63 | config: .init(
64 | remoteAddress: remoteAddress,
65 | request: self.data,
| `- warning: capture of 'self' with non-sendable type 'UDPBenchmark' in a `@Sendable` closure; this is an error in the Swift 6 language mode
66 | requests: self.numberOfRequests,
67 | writesPerFlush: self.vectorWrites
/host/spi-builder-workspace/Sources/NIOPerformanceTester/UDPBenchmark.swift:238:17: warning: capture of 'self' with non-sendable type 'UDPBenchmark.EchoHandlerClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
106 | }
107 |
108 | final class EchoHandlerClient: ChannelInboundHandler, RemovableChannelHandler {
| `- note: class 'EchoHandlerClient' does not conform to the 'Sendable' protocol
109 | typealias InboundIn = AddressedEnvelope<ByteBuffer>
110 | typealias OutboundOut = AddressedEnvelope<ByteBuffer>
:
236 | let p = self.eventLoop.makePromise(of: Void.self)
237 | self.eventLoop.execute {
238 | self._run(promise: p)
| `- warning: capture of 'self' with non-sendable type 'UDPBenchmark.EchoHandlerClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
239 | }
240 | return p.futureResult
[525/538] Compiling NIOPerformanceTester TCPThroughputBenchmark.swift
/host/spi-builder-workspace/Sources/NIOPerformanceTester/SchedulingAndRunningBenchmark.swift:39:26: warning: capture of 'self' with non-sendable type 'SchedulingAndRunningBenchmark' in a `@Sendable` closure; this is an error in the Swift 6 language mode
17 | import NIOPosix
18 |
19 | final class SchedulingAndRunningBenchmark: Benchmark {
| `- note: class 'SchedulingAndRunningBenchmark' does not conform to the 'Sendable' protocol
20 | private var group: MultiThreadedEventLoopGroup!
21 | private var loop: EventLoop!
:
37 | try! self.loop.submit {
38 | var counter: Int = 0
39 | for _ in 0..<self.numTasks {
| `- warning: capture of 'self' with non-sendable type 'SchedulingAndRunningBenchmark' in a `@Sendable` closure; this is an error in the Swift 6 language mode
40 | self.loop.scheduleTask(in: .nanoseconds(0)) {
41 | counter &+= 1
/host/spi-builder-workspace/Sources/NIOPerformanceTester/SchedulingAndRunningBenchmark.swift:41:21: warning: mutation of captured var 'counter' in concurrently-executing code; this is an error in the Swift 6 language mode
39 | for _ in 0..<self.numTasks {
40 | self.loop.scheduleTask(in: .nanoseconds(0)) {
41 | counter &+= 1
| `- warning: mutation of captured var 'counter' in concurrently-executing code; this is an error in the Swift 6 language mode
42 | }
43 | }
/host/spi-builder-workspace/Sources/NIOPerformanceTester/SchedulingAndRunningBenchmark.swift:51:26: warning: capture of 'self' with non-sendable type 'SchedulingAndRunningBenchmark' in a `@Sendable` closure; this is an error in the Swift 6 language mode
17 | import NIOPosix
18 |
19 | final class SchedulingAndRunningBenchmark: Benchmark {
| `- note: class 'SchedulingAndRunningBenchmark' does not conform to the 'Sendable' protocol
20 | private var group: MultiThreadedEventLoopGroup!
21 | private var loop: EventLoop!
:
49 | func run() -> Int {
50 | try! self.loop.submit {
51 | for _ in 0..<self.numTasks {
| `- warning: capture of 'self' with non-sendable type 'SchedulingAndRunningBenchmark' in a `@Sendable` closure; this is an error in the Swift 6 language mode
52 | self.dg.enter()
53 |
/host/spi-builder-workspace/Sources/NIOPerformanceTester/SchedulingAndRunningBenchmark.swift:55:21: warning: capture of 'self' with non-sendable type 'SchedulingAndRunningBenchmark' in a `@Sendable` closure; this is an error in the Swift 6 language mode
17 | import NIOPosix
18 |
19 | final class SchedulingAndRunningBenchmark: Benchmark {
| `- note: class 'SchedulingAndRunningBenchmark' does not conform to the 'Sendable' protocol
20 | private var group: MultiThreadedEventLoopGroup!
21 | private var loop: EventLoop!
:
53 |
54 | self.loop.scheduleTask(in: .nanoseconds(0)) {
55 | self.counter &+= 1
| `- warning: capture of 'self' with non-sendable type 'SchedulingAndRunningBenchmark' in a `@Sendable` closure; this is an error in the Swift 6 language mode
56 | self.dg.leave()
57 | }
/host/spi-builder-workspace/Sources/NIOPerformanceTester/TCPThroughputBenchmark.swift:119:17: warning: capture of 'self' with non-sendable type 'TCPThroughputBenchmark' in a `@Sendable` closure; this is an error in the Swift 6 language mode
22 |
23 | @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
24 | final class TCPThroughputBenchmark: Benchmark {
| `- note: class 'TCPThroughputBenchmark' does not conform to the 'Sendable' protocol
25 |
26 | private let messages: Int
:
117 | self.serverChannel = try ServerBootstrap(group: self.group)
118 | .childChannelInitializer { channel in
119 | self.serverHandler = ServerHandler(connectionEstablishedPromise)
| `- warning: capture of 'self' with non-sendable type 'TCPThroughputBenchmark' in a `@Sendable` closure; this is an error in the Swift 6 language mode
120 | return channel.pipeline.addHandler(self.serverHandler)
121 | }
/host/spi-builder-workspace/Sources/NIOPerformanceTester/TCPThroughputBenchmark.swift:168:13: warning: capture of 'serverHandler' with non-sendable type 'TCPThroughputBenchmark.ServerHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
35 | private var serverEventLoop: EventLoop!
36 |
37 | final class ServerHandler: ChannelInboundHandler {
| `- note: class 'ServerHandler' does not conform to the 'Sendable' protocol
38 | public typealias InboundIn = ByteBuffer
39 | public typealias OutboundOut = ByteBuffer
:
166 |
167 | self.serverEventLoop.execute {
168 | serverHandler.send(message, times: messages)
| `- warning: capture of 'serverHandler' with non-sendable type 'TCPThroughputBenchmark.ServerHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
169 | }
170 | try isDonePromise.futureResult.wait()
/host/spi-builder-workspace/Sources/NIOPerformanceTester/UDPBenchmark.swift:75:93: warning: type 'UDPBenchmark.EchoHandlerClient' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
73 | .wait()
74 |
75 | self.clientHandler = try self.client.pipeline.handler(type: EchoHandlerClient.self).wait()
| `- warning: type 'UDPBenchmark.EchoHandlerClient' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
76 | }
77 |
:
106 | }
107 |
108 | final class EchoHandlerClient: ChannelInboundHandler, RemovableChannelHandler {
| `- note: class 'EchoHandlerClient' does not conform to the 'Sendable' protocol
109 | typealias InboundIn = AddressedEnvelope<ByteBuffer>
110 | typealias OutboundOut = AddressedEnvelope<ByteBuffer>
/host/spi-builder-workspace/Sources/NIOPerformanceTester/UDPBenchmark.swift:65:34: warning: capture of 'self' with non-sendable type 'UDPBenchmark' in a `@Sendable` closure; this is an error in the Swift 6 language mode
15 | import NIOPosix
16 |
17 | final class UDPBenchmark {
| `- note: class 'UDPBenchmark' does not conform to the 'Sendable' protocol
18 | /// Request to send.
19 | private let data: ByteBuffer
:
63 | config: .init(
64 | remoteAddress: remoteAddress,
65 | request: self.data,
| `- warning: capture of 'self' with non-sendable type 'UDPBenchmark' in a `@Sendable` closure; this is an error in the Swift 6 language mode
66 | requests: self.numberOfRequests,
67 | writesPerFlush: self.vectorWrites
/host/spi-builder-workspace/Sources/NIOPerformanceTester/UDPBenchmark.swift:238:17: warning: capture of 'self' with non-sendable type 'UDPBenchmark.EchoHandlerClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
106 | }
107 |
108 | final class EchoHandlerClient: ChannelInboundHandler, RemovableChannelHandler {
| `- note: class 'EchoHandlerClient' does not conform to the 'Sendable' protocol
109 | typealias InboundIn = AddressedEnvelope<ByteBuffer>
110 | typealias OutboundOut = AddressedEnvelope<ByteBuffer>
:
236 | let p = self.eventLoop.makePromise(of: Void.self)
237 | self.eventLoop.execute {
238 | self._run(promise: p)
| `- warning: capture of 'self' with non-sendable type 'UDPBenchmark.EchoHandlerClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
239 | }
240 | return p.futureResult
[526/538] Compiling NIOPerformanceTester UDPBenchmark.swift
/host/spi-builder-workspace/Sources/NIOPerformanceTester/SchedulingAndRunningBenchmark.swift:39:26: warning: capture of 'self' with non-sendable type 'SchedulingAndRunningBenchmark' in a `@Sendable` closure; this is an error in the Swift 6 language mode
17 | import NIOPosix
18 |
19 | final class SchedulingAndRunningBenchmark: Benchmark {
| `- note: class 'SchedulingAndRunningBenchmark' does not conform to the 'Sendable' protocol
20 | private var group: MultiThreadedEventLoopGroup!
21 | private var loop: EventLoop!
:
37 | try! self.loop.submit {
38 | var counter: Int = 0
39 | for _ in 0..<self.numTasks {
| `- warning: capture of 'self' with non-sendable type 'SchedulingAndRunningBenchmark' in a `@Sendable` closure; this is an error in the Swift 6 language mode
40 | self.loop.scheduleTask(in: .nanoseconds(0)) {
41 | counter &+= 1
/host/spi-builder-workspace/Sources/NIOPerformanceTester/SchedulingAndRunningBenchmark.swift:41:21: warning: mutation of captured var 'counter' in concurrently-executing code; this is an error in the Swift 6 language mode
39 | for _ in 0..<self.numTasks {
40 | self.loop.scheduleTask(in: .nanoseconds(0)) {
41 | counter &+= 1
| `- warning: mutation of captured var 'counter' in concurrently-executing code; this is an error in the Swift 6 language mode
42 | }
43 | }
/host/spi-builder-workspace/Sources/NIOPerformanceTester/SchedulingAndRunningBenchmark.swift:51:26: warning: capture of 'self' with non-sendable type 'SchedulingAndRunningBenchmark' in a `@Sendable` closure; this is an error in the Swift 6 language mode
17 | import NIOPosix
18 |
19 | final class SchedulingAndRunningBenchmark: Benchmark {
| `- note: class 'SchedulingAndRunningBenchmark' does not conform to the 'Sendable' protocol
20 | private var group: MultiThreadedEventLoopGroup!
21 | private var loop: EventLoop!
:
49 | func run() -> Int {
50 | try! self.loop.submit {
51 | for _ in 0..<self.numTasks {
| `- warning: capture of 'self' with non-sendable type 'SchedulingAndRunningBenchmark' in a `@Sendable` closure; this is an error in the Swift 6 language mode
52 | self.dg.enter()
53 |
/host/spi-builder-workspace/Sources/NIOPerformanceTester/SchedulingAndRunningBenchmark.swift:55:21: warning: capture of 'self' with non-sendable type 'SchedulingAndRunningBenchmark' in a `@Sendable` closure; this is an error in the Swift 6 language mode
17 | import NIOPosix
18 |
19 | final class SchedulingAndRunningBenchmark: Benchmark {
| `- note: class 'SchedulingAndRunningBenchmark' does not conform to the 'Sendable' protocol
20 | private var group: MultiThreadedEventLoopGroup!
21 | private var loop: EventLoop!
:
53 |
54 | self.loop.scheduleTask(in: .nanoseconds(0)) {
55 | self.counter &+= 1
| `- warning: capture of 'self' with non-sendable type 'SchedulingAndRunningBenchmark' in a `@Sendable` closure; this is an error in the Swift 6 language mode
56 | self.dg.leave()
57 | }
/host/spi-builder-workspace/Sources/NIOPerformanceTester/TCPThroughputBenchmark.swift:119:17: warning: capture of 'self' with non-sendable type 'TCPThroughputBenchmark' in a `@Sendable` closure; this is an error in the Swift 6 language mode
22 |
23 | @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
24 | final class TCPThroughputBenchmark: Benchmark {
| `- note: class 'TCPThroughputBenchmark' does not conform to the 'Sendable' protocol
25 |
26 | private let messages: Int
:
117 | self.serverChannel = try ServerBootstrap(group: self.group)
118 | .childChannelInitializer { channel in
119 | self.serverHandler = ServerHandler(connectionEstablishedPromise)
| `- warning: capture of 'self' with non-sendable type 'TCPThroughputBenchmark' in a `@Sendable` closure; this is an error in the Swift 6 language mode
120 | return channel.pipeline.addHandler(self.serverHandler)
121 | }
/host/spi-builder-workspace/Sources/NIOPerformanceTester/TCPThroughputBenchmark.swift:168:13: warning: capture of 'serverHandler' with non-sendable type 'TCPThroughputBenchmark.ServerHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
35 | private var serverEventLoop: EventLoop!
36 |
37 | final class ServerHandler: ChannelInboundHandler {
| `- note: class 'ServerHandler' does not conform to the 'Sendable' protocol
38 | public typealias InboundIn = ByteBuffer
39 | public typealias OutboundOut = ByteBuffer
:
166 |
167 | self.serverEventLoop.execute {
168 | serverHandler.send(message, times: messages)
| `- warning: capture of 'serverHandler' with non-sendable type 'TCPThroughputBenchmark.ServerHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
169 | }
170 | try isDonePromise.futureResult.wait()
/host/spi-builder-workspace/Sources/NIOPerformanceTester/UDPBenchmark.swift:75:93: warning: type 'UDPBenchmark.EchoHandlerClient' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
73 | .wait()
74 |
75 | self.clientHandler = try self.client.pipeline.handler(type: EchoHandlerClient.self).wait()
| `- warning: type 'UDPBenchmark.EchoHandlerClient' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
76 | }
77 |
:
106 | }
107 |
108 | final class EchoHandlerClient: ChannelInboundHandler, RemovableChannelHandler {
| `- note: class 'EchoHandlerClient' does not conform to the 'Sendable' protocol
109 | typealias InboundIn = AddressedEnvelope<ByteBuffer>
110 | typealias OutboundOut = AddressedEnvelope<ByteBuffer>
/host/spi-builder-workspace/Sources/NIOPerformanceTester/UDPBenchmark.swift:65:34: warning: capture of 'self' with non-sendable type 'UDPBenchmark' in a `@Sendable` closure; this is an error in the Swift 6 language mode
15 | import NIOPosix
16 |
17 | final class UDPBenchmark {
| `- note: class 'UDPBenchmark' does not conform to the 'Sendable' protocol
18 | /// Request to send.
19 | private let data: ByteBuffer
:
63 | config: .init(
64 | remoteAddress: remoteAddress,
65 | request: self.data,
| `- warning: capture of 'self' with non-sendable type 'UDPBenchmark' in a `@Sendable` closure; this is an error in the Swift 6 language mode
66 | requests: self.numberOfRequests,
67 | writesPerFlush: self.vectorWrites
/host/spi-builder-workspace/Sources/NIOPerformanceTester/UDPBenchmark.swift:238:17: warning: capture of 'self' with non-sendable type 'UDPBenchmark.EchoHandlerClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
106 | }
107 |
108 | final class EchoHandlerClient: ChannelInboundHandler, RemovableChannelHandler {
| `- note: class 'EchoHandlerClient' does not conform to the 'Sendable' protocol
109 | typealias InboundIn = AddressedEnvelope<ByteBuffer>
110 | typealias OutboundOut = AddressedEnvelope<ByteBuffer>
:
236 | let p = self.eventLoop.makePromise(of: Void.self)
237 | self.eventLoop.execute {
238 | self._run(promise: p)
| `- warning: capture of 'self' with non-sendable type 'UDPBenchmark.EchoHandlerClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
239 | }
240 | return p.futureResult
[526/538] Linking NIOWebSocketServer
[528/538] Emitting module NIOPerformanceTester
/host/spi-builder-workspace/Sources/NIOPerformanceTester/main.swift:26:8: 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
24 |
25 | // Use unbuffered stdout to help detect exactly which test was running in the event of a crash.
26 | setbuf(stdout, nil)
| `- 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
27 |
28 | // MARK: Test Harness
SwiftGlibc.stdout:1:12: note: var declared here
1 | public var stdout: UnsafeMutablePointer<FILE>!
| `- note: var declared here
/host/spi-builder-workspace/Sources/NIOPerformanceTester/main.swift:642:37: warning: capture of 'measuringHandler' with non-sendable type 'MeasuringHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
567 |
568 | try measureAndPrint(desc: "no-net_http1_1k_reqs_1_conn") {
569 | final class MeasuringHandler: ChannelDuplexHandler {
| `- note: class 'MeasuringHandler' does not conform to the 'Sendable' protocol
570 | typealias InboundIn = Never
571 | typealias InboundOut = ByteBuffer
:
640 | channel.pipeline.addHandler(SimpleHTTPServer())
641 | }.flatMap {
642 | channel.pipeline.addHandler(measuringHandler, position: .first)
| `- warning: capture of 'measuringHandler' with non-sendable type 'MeasuringHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
643 | }.wait()
644 |
/host/spi-builder-workspace/Sources/NIOPerformanceTester/main.swift:661:45: warning: capture of 'repeatedRequestsHandler' with non-sendable type 'RepeatedRequests' in a `@Sendable` closure; this is an error in the Swift 6 language mode
175 | head.headers.add(name: "Host", value: "localhost")
176 |
177 | final class RepeatedRequests: ChannelInboundHandler {
| `- note: class 'RepeatedRequests' does not conform to the 'Sendable' protocol
178 | typealias InboundIn = HTTPClientResponsePart
179 | typealias OutboundOut = HTTPClientRequestPart
:
659 | .channelInitializer { channel in
660 | channel.pipeline.addHTTPClientHandlers().flatMap {
661 | channel.pipeline.addHandler(repeatedRequestsHandler)
| `- warning: capture of 'repeatedRequestsHandler' with non-sendable type 'RepeatedRequests' in a `@Sendable` closure; this is an error in the Swift 6 language mode
662 | }
663 | }
/host/spi-builder-workspace/Sources/NIOPerformanceTester/main.swift:661:45: warning: capture of 'repeatedRequestsHandler' with non-sendable type 'RepeatedRequests' in a `@Sendable` closure; this is an error in the Swift 6 language mode
175 | head.headers.add(name: "Host", value: "localhost")
176 |
177 | final class RepeatedRequests: ChannelInboundHandler {
| `- note: class 'RepeatedRequests' does not conform to the 'Sendable' protocol
178 | typealias InboundIn = HTTPClientResponsePart
179 | typealias OutboundOut = HTTPClientRequestPart
:
659 | .channelInitializer { channel in
660 | channel.pipeline.addHTTPClientHandlers().flatMap {
661 | channel.pipeline.addHandler(repeatedRequestsHandler)
| `- warning: capture of 'repeatedRequestsHandler' with non-sendable type 'RepeatedRequests' in a `@Sendable` closure; this is an error in the Swift 6 language mode
662 | }
663 | }
/host/spi-builder-workspace/Sources/NIOPerformanceTester/main.swift:684:49: warning: capture of 'repeatedRequestsHandler' with non-sendable type 'RepeatedRequests' in a `@Sendable` closure; this is an error in the Swift 6 language mode
175 | head.headers.add(name: "Host", value: "localhost")
176 |
177 | final class RepeatedRequests: ChannelInboundHandler {
| `- note: class 'RepeatedRequests' does not conform to the 'Sendable' protocol
178 | typealias InboundIn = HTTPClientResponsePart
179 | typealias OutboundOut = HTTPClientRequestPart
:
682 | .channelInitializer { channel in
683 | channel.pipeline.addHTTPClientHandlers().flatMap {
684 | channel.pipeline.addHandler(repeatedRequestsHandler)
| `- warning: capture of 'repeatedRequestsHandler' with non-sendable type 'RepeatedRequests' in a `@Sendable` closure; this is an error in the Swift 6 language mode
685 | }
686 | }
/host/spi-builder-workspace/Sources/NIOPerformanceTester/main.swift:684:49: warning: capture of 'repeatedRequestsHandler' with non-sendable type 'RepeatedRequests' in a `@Sendable` closure; this is an error in the Swift 6 language mode
175 | head.headers.add(name: "Host", value: "localhost")
176 |
177 | final class RepeatedRequests: ChannelInboundHandler {
| `- note: class 'RepeatedRequests' does not conform to the 'Sendable' protocol
178 | typealias InboundIn = HTTPClientResponsePart
179 | typealias OutboundOut = HTTPClientRequestPart
:
682 | .channelInitializer { channel in
683 | channel.pipeline.addHTTPClientHandlers().flatMap {
684 | channel.pipeline.addHandler(repeatedRequestsHandler)
| `- warning: capture of 'repeatedRequestsHandler' with non-sendable type 'RepeatedRequests' in a `@Sendable` closure; this is an error in the Swift 6 language mode
685 | }
686 | }
/host/spi-builder-workspace/Sources/NIOPerformanceTester/main.swift:787:66: warning: converting non-sendable function value to '@Sendable (Int, Int) -> Int' may introduce data races
785 |
786 | let futures = (1...10_000).map { i in el1.makeSucceededFuture(i) }
787 | return try! EventLoopFuture<Int>.reduce(0, futures, on: el1, +).wait()
| `- warning: converting non-sendable function value to '@Sendable (Int, Int) -> Int' may introduce data races
788 | }
789 |
[530/538] Compiling NIOPerformanceTester main.swift
/host/spi-builder-workspace/Sources/NIOPerformanceTester/main.swift:26:8: 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
24 |
25 | // Use unbuffered stdout to help detect exactly which test was running in the event of a crash.
26 | setbuf(stdout, nil)
| `- 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
27 |
28 | // MARK: Test Harness
SwiftGlibc.stdout:1:12: note: var declared here
1 | public var stdout: UnsafeMutablePointer<FILE>!
| `- note: var declared here
/host/spi-builder-workspace/Sources/NIOPerformanceTester/main.swift:642:37: warning: capture of 'measuringHandler' with non-sendable type 'MeasuringHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
567 |
568 | try measureAndPrint(desc: "no-net_http1_1k_reqs_1_conn") {
569 | final class MeasuringHandler: ChannelDuplexHandler {
| `- note: class 'MeasuringHandler' does not conform to the 'Sendable' protocol
570 | typealias InboundIn = Never
571 | typealias InboundOut = ByteBuffer
:
640 | channel.pipeline.addHandler(SimpleHTTPServer())
641 | }.flatMap {
642 | channel.pipeline.addHandler(measuringHandler, position: .first)
| `- warning: capture of 'measuringHandler' with non-sendable type 'MeasuringHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
643 | }.wait()
644 |
/host/spi-builder-workspace/Sources/NIOPerformanceTester/main.swift:661:45: warning: capture of 'repeatedRequestsHandler' with non-sendable type 'RepeatedRequests' in a `@Sendable` closure; this is an error in the Swift 6 language mode
175 | head.headers.add(name: "Host", value: "localhost")
176 |
177 | final class RepeatedRequests: ChannelInboundHandler {
| `- note: class 'RepeatedRequests' does not conform to the 'Sendable' protocol
178 | typealias InboundIn = HTTPClientResponsePart
179 | typealias OutboundOut = HTTPClientRequestPart
:
659 | .channelInitializer { channel in
660 | channel.pipeline.addHTTPClientHandlers().flatMap {
661 | channel.pipeline.addHandler(repeatedRequestsHandler)
| `- warning: capture of 'repeatedRequestsHandler' with non-sendable type 'RepeatedRequests' in a `@Sendable` closure; this is an error in the Swift 6 language mode
662 | }
663 | }
/host/spi-builder-workspace/Sources/NIOPerformanceTester/main.swift:661:45: warning: capture of 'repeatedRequestsHandler' with non-sendable type 'RepeatedRequests' in a `@Sendable` closure; this is an error in the Swift 6 language mode
175 | head.headers.add(name: "Host", value: "localhost")
176 |
177 | final class RepeatedRequests: ChannelInboundHandler {
| `- note: class 'RepeatedRequests' does not conform to the 'Sendable' protocol
178 | typealias InboundIn = HTTPClientResponsePart
179 | typealias OutboundOut = HTTPClientRequestPart
:
659 | .channelInitializer { channel in
660 | channel.pipeline.addHTTPClientHandlers().flatMap {
661 | channel.pipeline.addHandler(repeatedRequestsHandler)
| `- warning: capture of 'repeatedRequestsHandler' with non-sendable type 'RepeatedRequests' in a `@Sendable` closure; this is an error in the Swift 6 language mode
662 | }
663 | }
/host/spi-builder-workspace/Sources/NIOPerformanceTester/main.swift:684:49: warning: capture of 'repeatedRequestsHandler' with non-sendable type 'RepeatedRequests' in a `@Sendable` closure; this is an error in the Swift 6 language mode
175 | head.headers.add(name: "Host", value: "localhost")
176 |
177 | final class RepeatedRequests: ChannelInboundHandler {
| `- note: class 'RepeatedRequests' does not conform to the 'Sendable' protocol
178 | typealias InboundIn = HTTPClientResponsePart
179 | typealias OutboundOut = HTTPClientRequestPart
:
682 | .channelInitializer { channel in
683 | channel.pipeline.addHTTPClientHandlers().flatMap {
684 | channel.pipeline.addHandler(repeatedRequestsHandler)
| `- warning: capture of 'repeatedRequestsHandler' with non-sendable type 'RepeatedRequests' in a `@Sendable` closure; this is an error in the Swift 6 language mode
685 | }
686 | }
/host/spi-builder-workspace/Sources/NIOPerformanceTester/main.swift:684:49: warning: capture of 'repeatedRequestsHandler' with non-sendable type 'RepeatedRequests' in a `@Sendable` closure; this is an error in the Swift 6 language mode
175 | head.headers.add(name: "Host", value: "localhost")
176 |
177 | final class RepeatedRequests: ChannelInboundHandler {
| `- note: class 'RepeatedRequests' does not conform to the 'Sendable' protocol
178 | typealias InboundIn = HTTPClientResponsePart
179 | typealias OutboundOut = HTTPClientRequestPart
:
682 | .channelInitializer { channel in
683 | channel.pipeline.addHTTPClientHandlers().flatMap {
684 | channel.pipeline.addHandler(repeatedRequestsHandler)
| `- warning: capture of 'repeatedRequestsHandler' with non-sendable type 'RepeatedRequests' in a `@Sendable` closure; this is an error in the Swift 6 language mode
685 | }
686 | }
/host/spi-builder-workspace/Sources/NIOPerformanceTester/main.swift:787:66: warning: converting non-sendable function value to '@Sendable (Int, Int) -> Int' may introduce data races
785 |
786 | let futures = (1...10_000).map { i in el1.makeSucceededFuture(i) }
787 | return try! EventLoopFuture<Int>.reduce(0, futures, on: el1, +).wait()
| `- warning: converting non-sendable function value to '@Sendable (Int, Int) -> Int' may introduce data races
788 | }
789 |
/host/spi-builder-workspace/Sources/NIOPerformanceTester/main.swift:62:27: error: main actor-isolated var 'warning' can not be referenced from a nonisolated context
28 | // MARK: Test Harness
29 |
30 | var warning: String = ""
| `- note: var declared here
31 | assert(
32 | {
:
58 | let limitSet = CommandLine.arguments.dropFirst()
59 |
60 | public func measureAndPrint(desc: String, fn: () throws -> Int) rethrows {
| `- note: add '@MainActor' to make global function 'measureAndPrint(desc:fn:)' part of global actor 'MainActor'
61 | if limitSet.isEmpty || limitSet.contains(desc) {
62 | print("measuring\(warning): \(desc): ", terminator: "")
| `- error: main actor-isolated var 'warning' can not be referenced from a nonisolated context
63 | let measurements = try measure(fn)
64 | print(measurements.reduce(into: "") { $0.append("\($1), ") })
/host/spi-builder-workspace/Sources/NIOPerformanceTester/main.swift:91:27: error: expression is 'async' but is not marked with 'await'
89 | public func measureAndPrint(desc: String, fn: () async throws -> Int) async rethrows {
90 | if limitSet.isEmpty || limitSet.contains(desc) {
91 | print("measuring\(warning): \(desc): ", terminator: "")
| |- error: expression is 'async' but is not marked with 'await'
| `- note: property access is 'async'
92 | let measurements = try await measure(fn)
93 | print(measurements.reduce(into: "") { $0.append("\($1), ") })
/host/spi-builder-workspace/Sources/NIOPerformanceTester/main.swift:207:47: warning: capture of 'self' with non-sendable type 'RepeatedRequests' in a `@Sendable` closure; this is an error in the Swift 6 language mode
175 | head.headers.add(name: "Host", value: "localhost")
176 |
177 | final class RepeatedRequests: ChannelInboundHandler {
| `- note: class 'RepeatedRequests' does not conform to the 'Sendable' protocol
178 | typealias InboundIn = HTTPClientResponsePart
179 | typealias OutboundOut = HTTPClientRequestPart
:
205 | if case .end(nil) = reqPart {
206 | if self.remainingNumberOfRequests <= 0 {
207 | context.channel.close().map { self.doneRequests }.cascade(to: self.isDonePromise)
| `- warning: capture of 'self' with non-sendable type 'RepeatedRequests' in a `@Sendable` closure; this is an error in the Swift 6 language mode
208 | } else {
209 | self.doneRequests += 1
/host/spi-builder-workspace/Sources/NIOPerformanceTester/main.swift:212:58: error: main actor-isolated var 'head' can not be referenced from a nonisolated context
172 | }
173 |
174 | var head = HTTPRequestHead(version: .http1_1, method: .GET, uri: "/perf-test-1")
| `- note: var declared here
175 | head.headers.add(name: "Host", value: "localhost")
176 |
:
201 | }
202 |
203 | func channelRead(context: ChannelHandlerContext, data: NIOAny) {
| `- note: add '@MainActor' to make instance method 'channelRead(context:data:)' part of global actor 'MainActor'
204 | let reqPart = Self.unwrapInboundIn(data)
205 | if case .end(nil) = reqPart {
:
210 | self.remainingNumberOfRequests -= 1
211 |
212 | context.write(Self.wrapOutboundOut(.head(head)), promise: nil)
| `- error: main actor-isolated var 'head' can not be referenced from a nonisolated context
213 | context.writeAndFlush(Self.wrapOutboundOut(.end(nil)), promise: nil)
214 | }
/host/spi-builder-workspace/Sources/NIOPerformanceTester/main.swift:615:21: warning: capture of 'self' with non-sendable type 'MeasuringHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
567 |
568 | try measureAndPrint(desc: "no-net_http1_1k_reqs_1_conn") {
569 | final class MeasuringHandler: ChannelDuplexHandler {
| `- note: class 'MeasuringHandler' does not conform to the 'Sendable' protocol
570 | typealias InboundIn = Never
571 | typealias InboundOut = ByteBuffer
:
613 | if self.remainingNumberOfRequests > 0 {
614 | context.eventLoop.execute {
615 | self.kickOff(channel: channel)
| `- warning: capture of 'self' with non-sendable type 'MeasuringHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
616 | }
617 | } else {
[531/538] Compiling NIOPerformanceTester resources.swift
/host/spi-builder-workspace/Sources/NIOPerformanceTester/main.swift:26:8: 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
24 |
25 | // Use unbuffered stdout to help detect exactly which test was running in the event of a crash.
26 | setbuf(stdout, nil)
| `- 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
27 |
28 | // MARK: Test Harness
SwiftGlibc.stdout:1:12: note: var declared here
1 | public var stdout: UnsafeMutablePointer<FILE>!
| `- note: var declared here
/host/spi-builder-workspace/Sources/NIOPerformanceTester/main.swift:642:37: warning: capture of 'measuringHandler' with non-sendable type 'MeasuringHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
567 |
568 | try measureAndPrint(desc: "no-net_http1_1k_reqs_1_conn") {
569 | final class MeasuringHandler: ChannelDuplexHandler {
| `- note: class 'MeasuringHandler' does not conform to the 'Sendable' protocol
570 | typealias InboundIn = Never
571 | typealias InboundOut = ByteBuffer
:
640 | channel.pipeline.addHandler(SimpleHTTPServer())
641 | }.flatMap {
642 | channel.pipeline.addHandler(measuringHandler, position: .first)
| `- warning: capture of 'measuringHandler' with non-sendable type 'MeasuringHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
643 | }.wait()
644 |
/host/spi-builder-workspace/Sources/NIOPerformanceTester/main.swift:661:45: warning: capture of 'repeatedRequestsHandler' with non-sendable type 'RepeatedRequests' in a `@Sendable` closure; this is an error in the Swift 6 language mode
175 | head.headers.add(name: "Host", value: "localhost")
176 |
177 | final class RepeatedRequests: ChannelInboundHandler {
| `- note: class 'RepeatedRequests' does not conform to the 'Sendable' protocol
178 | typealias InboundIn = HTTPClientResponsePart
179 | typealias OutboundOut = HTTPClientRequestPart
:
659 | .channelInitializer { channel in
660 | channel.pipeline.addHTTPClientHandlers().flatMap {
661 | channel.pipeline.addHandler(repeatedRequestsHandler)
| `- warning: capture of 'repeatedRequestsHandler' with non-sendable type 'RepeatedRequests' in a `@Sendable` closure; this is an error in the Swift 6 language mode
662 | }
663 | }
/host/spi-builder-workspace/Sources/NIOPerformanceTester/main.swift:661:45: warning: capture of 'repeatedRequestsHandler' with non-sendable type 'RepeatedRequests' in a `@Sendable` closure; this is an error in the Swift 6 language mode
175 | head.headers.add(name: "Host", value: "localhost")
176 |
177 | final class RepeatedRequests: ChannelInboundHandler {
| `- note: class 'RepeatedRequests' does not conform to the 'Sendable' protocol
178 | typealias InboundIn = HTTPClientResponsePart
179 | typealias OutboundOut = HTTPClientRequestPart
:
659 | .channelInitializer { channel in
660 | channel.pipeline.addHTTPClientHandlers().flatMap {
661 | channel.pipeline.addHandler(repeatedRequestsHandler)
| `- warning: capture of 'repeatedRequestsHandler' with non-sendable type 'RepeatedRequests' in a `@Sendable` closure; this is an error in the Swift 6 language mode
662 | }
663 | }
/host/spi-builder-workspace/Sources/NIOPerformanceTester/main.swift:684:49: warning: capture of 'repeatedRequestsHandler' with non-sendable type 'RepeatedRequests' in a `@Sendable` closure; this is an error in the Swift 6 language mode
175 | head.headers.add(name: "Host", value: "localhost")
176 |
177 | final class RepeatedRequests: ChannelInboundHandler {
| `- note: class 'RepeatedRequests' does not conform to the 'Sendable' protocol
178 | typealias InboundIn = HTTPClientResponsePart
179 | typealias OutboundOut = HTTPClientRequestPart
:
682 | .channelInitializer { channel in
683 | channel.pipeline.addHTTPClientHandlers().flatMap {
684 | channel.pipeline.addHandler(repeatedRequestsHandler)
| `- warning: capture of 'repeatedRequestsHandler' with non-sendable type 'RepeatedRequests' in a `@Sendable` closure; this is an error in the Swift 6 language mode
685 | }
686 | }
/host/spi-builder-workspace/Sources/NIOPerformanceTester/main.swift:684:49: warning: capture of 'repeatedRequestsHandler' with non-sendable type 'RepeatedRequests' in a `@Sendable` closure; this is an error in the Swift 6 language mode
175 | head.headers.add(name: "Host", value: "localhost")
176 |
177 | final class RepeatedRequests: ChannelInboundHandler {
| `- note: class 'RepeatedRequests' does not conform to the 'Sendable' protocol
178 | typealias InboundIn = HTTPClientResponsePart
179 | typealias OutboundOut = HTTPClientRequestPart
:
682 | .channelInitializer { channel in
683 | channel.pipeline.addHTTPClientHandlers().flatMap {
684 | channel.pipeline.addHandler(repeatedRequestsHandler)
| `- warning: capture of 'repeatedRequestsHandler' with non-sendable type 'RepeatedRequests' in a `@Sendable` closure; this is an error in the Swift 6 language mode
685 | }
686 | }
/host/spi-builder-workspace/Sources/NIOPerformanceTester/main.swift:787:66: warning: converting non-sendable function value to '@Sendable (Int, Int) -> Int' may introduce data races
785 |
786 | let futures = (1...10_000).map { i in el1.makeSucceededFuture(i) }
787 | return try! EventLoopFuture<Int>.reduce(0, futures, on: el1, +).wait()
| `- warning: converting non-sendable function value to '@Sendable (Int, Int) -> Int' may introduce data races
788 | }
789 |
/host/spi-builder-workspace/Sources/NIOPerformanceTester/main.swift:62:27: error: main actor-isolated var 'warning' can not be referenced from a nonisolated context
28 | // MARK: Test Harness
29 |
30 | var warning: String = ""
| `- note: var declared here
31 | assert(
32 | {
:
58 | let limitSet = CommandLine.arguments.dropFirst()
59 |
60 | public func measureAndPrint(desc: String, fn: () throws -> Int) rethrows {
| `- note: add '@MainActor' to make global function 'measureAndPrint(desc:fn:)' part of global actor 'MainActor'
61 | if limitSet.isEmpty || limitSet.contains(desc) {
62 | print("measuring\(warning): \(desc): ", terminator: "")
| `- error: main actor-isolated var 'warning' can not be referenced from a nonisolated context
63 | let measurements = try measure(fn)
64 | print(measurements.reduce(into: "") { $0.append("\($1), ") })
/host/spi-builder-workspace/Sources/NIOPerformanceTester/main.swift:91:27: error: expression is 'async' but is not marked with 'await'
89 | public func measureAndPrint(desc: String, fn: () async throws -> Int) async rethrows {
90 | if limitSet.isEmpty || limitSet.contains(desc) {
91 | print("measuring\(warning): \(desc): ", terminator: "")
| |- error: expression is 'async' but is not marked with 'await'
| `- note: property access is 'async'
92 | let measurements = try await measure(fn)
93 | print(measurements.reduce(into: "") { $0.append("\($1), ") })
/host/spi-builder-workspace/Sources/NIOPerformanceTester/main.swift:207:47: warning: capture of 'self' with non-sendable type 'RepeatedRequests' in a `@Sendable` closure; this is an error in the Swift 6 language mode
175 | head.headers.add(name: "Host", value: "localhost")
176 |
177 | final class RepeatedRequests: ChannelInboundHandler {
| `- note: class 'RepeatedRequests' does not conform to the 'Sendable' protocol
178 | typealias InboundIn = HTTPClientResponsePart
179 | typealias OutboundOut = HTTPClientRequestPart
:
205 | if case .end(nil) = reqPart {
206 | if self.remainingNumberOfRequests <= 0 {
207 | context.channel.close().map { self.doneRequests }.cascade(to: self.isDonePromise)
| `- warning: capture of 'self' with non-sendable type 'RepeatedRequests' in a `@Sendable` closure; this is an error in the Swift 6 language mode
208 | } else {
209 | self.doneRequests += 1
/host/spi-builder-workspace/Sources/NIOPerformanceTester/main.swift:212:58: error: main actor-isolated var 'head' can not be referenced from a nonisolated context
172 | }
173 |
174 | var head = HTTPRequestHead(version: .http1_1, method: .GET, uri: "/perf-test-1")
| `- note: var declared here
175 | head.headers.add(name: "Host", value: "localhost")
176 |
:
201 | }
202 |
203 | func channelRead(context: ChannelHandlerContext, data: NIOAny) {
| `- note: add '@MainActor' to make instance method 'channelRead(context:data:)' part of global actor 'MainActor'
204 | let reqPart = Self.unwrapInboundIn(data)
205 | if case .end(nil) = reqPart {
:
210 | self.remainingNumberOfRequests -= 1
211 |
212 | context.write(Self.wrapOutboundOut(.head(head)), promise: nil)
| `- error: main actor-isolated var 'head' can not be referenced from a nonisolated context
213 | context.writeAndFlush(Self.wrapOutboundOut(.end(nil)), promise: nil)
214 | }
/host/spi-builder-workspace/Sources/NIOPerformanceTester/main.swift:615:21: warning: capture of 'self' with non-sendable type 'MeasuringHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
567 |
568 | try measureAndPrint(desc: "no-net_http1_1k_reqs_1_conn") {
569 | final class MeasuringHandler: ChannelDuplexHandler {
| `- note: class 'MeasuringHandler' does not conform to the 'Sendable' protocol
570 | typealias InboundIn = Never
571 | typealias InboundOut = ByteBuffer
:
613 | if self.remainingNumberOfRequests > 0 {
614 | context.eventLoop.execute {
615 | self.kickOff(channel: channel)
| `- warning: capture of 'self' with non-sendable type 'MeasuringHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
616 | }
617 | } else {
[531/538] Wrapping AST for NIOFileSystemTour for debugging
[532/538] Write Objects.LinkFileList
[533/538] Linking NIOCrashTester
[533/538] Linking NIOFileSystemTour
BUILD FAILURE 6.0 linux