Build Information
Failed to build mongo-swift-driver, reference v1.3.1 (cd8618
), with Swift 6.0 for Linux on 28 Nov 2024 16:41:40 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 -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
Build Log
| `- warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
118 | }
119 |
/host/spi-builder-workspace/Sources/MongoSwift/MongoClient.swift:287:45: warning: 'NIOAtomic' is deprecated: please use ManagedAtomic from https://github.com/apple/swift-atomics instead
285 |
286 | /// Counter for generating client _ids.
287 | internal static var clientIDGenerator = NIOAtomic<Int>.makeAtomic(value: 0)
| `- warning: 'NIOAtomic' is deprecated: please use ManagedAtomic from https://github.com/apple/swift-atomics instead
288 |
289 | /// A unique identifier for this client. Sets _id to the generator's current value and increments the generator.
[553/564] Compiling MongoSwift ListCollectionsOperation.swift
/host/spi-builder-workspace/Sources/MongoSwift/ReadPreference.swift:74:23: warning: static property 'primary' is not concurrency-safe because non-'Sendable' type 'ReadPreference' may have shared mutable state; this is an error in the Swift 6 language mode
4 | /// directed to.
5 | /// - SeeAlso: https://docs.mongodb.com/manual/reference/read-preference/
6 | public struct ReadPreference: Equatable {
| `- note: consider making struct 'ReadPreference' conform to the 'Sendable' protocol
7 | /// An enumeration of possible read preference modes.
8 | /// - SeeAlso: https://docs.mongodb.com/manual/core/read-preference/#read-preference-modes
:
72 | /// A `ReadPreference` with mode `primary`. This is the default mode. With this mode, all operations read from the
73 | /// current replica set primary.
74 | public static let primary = ReadPreference(.primary)
| |- warning: static property 'primary' is not concurrency-safe because non-'Sendable' type 'ReadPreference' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'primary' 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
75 | /// A `ReadPreference` with mode `primaryPreferred`. With this mode, in most situations operations read from the
76 | /// primary, but if it is unavailable, operations read from secondary members.
/host/spi-builder-workspace/Sources/MongoSwift/Operations/Operation.swift:91:18: warning: type 'ExecuteResult<T.OperationResult>' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
13 |
14 | /// Contains the result of attempting to execute an operation in the thread pool.
15 | private enum ExecuteResult<T> {
| `- note: consider making generic enum 'ExecuteResult' conform to the 'Sendable' protocol
16 | /// Indicates that the operation was successfully executed and returned the associated value.
17 | case success(T)
:
89 | // start the session if needed (which generates a new operation itself), and then execute the operation.
90 | return session.startIfNeeded()
91 | .flatMap { self.execute(on: eventLoop, doOperation) }
| `- warning: type 'ExecuteResult<T.OperationResult>' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
92 | .flatMap { resubmitIfNeeded($0) }
93 | }
/host/spi-builder-workspace/Sources/MongoSwift/Operations/Operation.swift:92:18: warning: type 'T.OperationResult' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
90 | return session.startIfNeeded()
91 | .flatMap { self.execute(on: eventLoop, doOperation) }
92 | .flatMap { resubmitIfNeeded($0) }
| `- warning: type 'T.OperationResult' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
93 | }
94 |
/host/spi-builder-workspace/Sources/MongoSwift/Operations/Operation.swift:96:57: warning: type 'T.OperationResult' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
94 |
95 | // no session was provided, so we can just jump to executing the operation.
96 | return self.execute(on: eventLoop, doOperation).flatMap { resubmitIfNeeded($0) }
| `- warning: type 'T.OperationResult' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
97 | }
98 |
/host/spi-builder-workspace/Sources/MongoSwift/Operations/Operation.swift:91:28: warning: capture of 'self' with non-sendable type 'OperationExecutor' in a `@Sendable` closure; this is an error in the Swift 6 language mode
21 |
22 | /// Operation executor used by `MongoClient`s.
23 | internal class OperationExecutor {
| `- note: class 'OperationExecutor' does not conform to the 'Sendable' protocol
24 | /// A group of event loops to use for running operations in the thread pool.
25 | private let eventLoopGroup: EventLoopGroup
:
89 | // start the session if needed (which generates a new operation itself), and then execute the operation.
90 | return session.startIfNeeded()
91 | .flatMap { self.execute(on: eventLoop, doOperation) }
| `- warning: capture of 'self' with non-sendable type 'OperationExecutor' in a `@Sendable` closure; this is an error in the Swift 6 language mode
92 | .flatMap { resubmitIfNeeded($0) }
93 | }
/host/spi-builder-workspace/Sources/MongoSwift/Operations/Operation.swift:91:56: warning: capture of 'doOperation' with non-sendable type '() throws -> ExecuteResult<T.OperationResult>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
89 | // start the session if needed (which generates a new operation itself), and then execute the operation.
90 | return session.startIfNeeded()
91 | .flatMap { self.execute(on: eventLoop, doOperation) }
| |- warning: capture of 'doOperation' with non-sendable type '() throws -> ExecuteResult<T.OperationResult>' 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 | .flatMap { resubmitIfNeeded($0) }
93 | }
/host/spi-builder-workspace/Sources/MongoSwift/Operations/Operation.swift:92:28: warning: capture of 'resubmitIfNeeded' with non-sendable type '(ExecuteResult<T.OperationResult>) -> EventLoopFuture<T.OperationResult>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
90 | return session.startIfNeeded()
91 | .flatMap { self.execute(on: eventLoop, doOperation) }
92 | .flatMap { resubmitIfNeeded($0) }
| |- warning: capture of 'resubmitIfNeeded' with non-sendable type '(ExecuteResult<T.OperationResult>) -> EventLoopFuture<T.OperationResult>' 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'
93 | }
94 |
/host/spi-builder-workspace/Sources/MongoSwift/Operations/Operation.swift:96:67: warning: capture of 'resubmitIfNeeded' with non-sendable type '(ExecuteResult<T.OperationResult>) -> EventLoopFuture<T.OperationResult>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
94 |
95 | // no session was provided, so we can just jump to executing the operation.
96 | return self.execute(on: eventLoop, doOperation).flatMap { resubmitIfNeeded($0) }
| |- warning: capture of 'resubmitIfNeeded' with non-sendable type '(ExecuteResult<T.OperationResult>) -> EventLoopFuture<T.OperationResult>' 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'
97 | }
98 |
/host/spi-builder-workspace/Sources/MongoSwift/Operations/Operation.swift:100:89: warning: passing non-sendable parameter 'body' to function expecting a @Sendable closure
97 | }
98 |
99 | internal func execute<T>(on eventLoop: EventLoop?, _ body: @escaping () throws -> T) -> EventLoopFuture<T> {
| `- note: parameter 'body' is implicitly non-sendable
100 | self.threadPool.runIfActive(eventLoop: eventLoop ?? self.eventLoopGroup.next(), body)
| `- warning: passing non-sendable parameter 'body' to function expecting a @Sendable closure
101 | }
102 |
/host/spi-builder-workspace/Sources/MongoSwift/Operations/Operation.swift:106:53: warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
103 | #if compiler(>=5.5.2) && canImport(_Concurrency)
104 | @available(macOS 10.15.0, *)
105 | internal func execute<T>(on eventLoop: EventLoop?, _ body: @escaping () throws -> T) async throws -> T {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
106 | try await self.execute(on: eventLoop, body).get()
| `- warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
107 | }
108 | #endif
/host/spi-builder-workspace/Sources/MongoSwift/Operations/Operation.swift:117:19: warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
113 | }
114 |
115 | internal func makeSucceededFuture<T>(_ value: T, on eventLoop: EventLoop?) -> EventLoopFuture<T> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
116 | let ev = eventLoop ?? self.eventLoopGroup.next()
117 | return ev.makeSucceededFuture(value)
| `- warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
118 | }
119 |
/host/spi-builder-workspace/Sources/MongoSwift/MongoClient.swift:287:45: warning: 'NIOAtomic' is deprecated: please use ManagedAtomic from https://github.com/apple/swift-atomics instead
285 |
286 | /// Counter for generating client _ids.
287 | internal static var clientIDGenerator = NIOAtomic<Int>.makeAtomic(value: 0)
| `- warning: 'NIOAtomic' is deprecated: please use ManagedAtomic from https://github.com/apple/swift-atomics instead
288 |
289 | /// A unique identifier for this client. Sets _id to the generator's current value and increments the generator.
[554/564] Compiling MongoSwift ListDatabasesOperation.swift
/host/spi-builder-workspace/Sources/MongoSwift/ReadPreference.swift:74:23: warning: static property 'primary' is not concurrency-safe because non-'Sendable' type 'ReadPreference' may have shared mutable state; this is an error in the Swift 6 language mode
4 | /// directed to.
5 | /// - SeeAlso: https://docs.mongodb.com/manual/reference/read-preference/
6 | public struct ReadPreference: Equatable {
| `- note: consider making struct 'ReadPreference' conform to the 'Sendable' protocol
7 | /// An enumeration of possible read preference modes.
8 | /// - SeeAlso: https://docs.mongodb.com/manual/core/read-preference/#read-preference-modes
:
72 | /// A `ReadPreference` with mode `primary`. This is the default mode. With this mode, all operations read from the
73 | /// current replica set primary.
74 | public static let primary = ReadPreference(.primary)
| |- warning: static property 'primary' is not concurrency-safe because non-'Sendable' type 'ReadPreference' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'primary' 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
75 | /// A `ReadPreference` with mode `primaryPreferred`. With this mode, in most situations operations read from the
76 | /// primary, but if it is unavailable, operations read from secondary members.
/host/spi-builder-workspace/Sources/MongoSwift/Operations/Operation.swift:91:18: warning: type 'ExecuteResult<T.OperationResult>' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
13 |
14 | /// Contains the result of attempting to execute an operation in the thread pool.
15 | private enum ExecuteResult<T> {
| `- note: consider making generic enum 'ExecuteResult' conform to the 'Sendable' protocol
16 | /// Indicates that the operation was successfully executed and returned the associated value.
17 | case success(T)
:
89 | // start the session if needed (which generates a new operation itself), and then execute the operation.
90 | return session.startIfNeeded()
91 | .flatMap { self.execute(on: eventLoop, doOperation) }
| `- warning: type 'ExecuteResult<T.OperationResult>' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
92 | .flatMap { resubmitIfNeeded($0) }
93 | }
/host/spi-builder-workspace/Sources/MongoSwift/Operations/Operation.swift:92:18: warning: type 'T.OperationResult' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
90 | return session.startIfNeeded()
91 | .flatMap { self.execute(on: eventLoop, doOperation) }
92 | .flatMap { resubmitIfNeeded($0) }
| `- warning: type 'T.OperationResult' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
93 | }
94 |
/host/spi-builder-workspace/Sources/MongoSwift/Operations/Operation.swift:96:57: warning: type 'T.OperationResult' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
94 |
95 | // no session was provided, so we can just jump to executing the operation.
96 | return self.execute(on: eventLoop, doOperation).flatMap { resubmitIfNeeded($0) }
| `- warning: type 'T.OperationResult' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
97 | }
98 |
/host/spi-builder-workspace/Sources/MongoSwift/Operations/Operation.swift:91:28: warning: capture of 'self' with non-sendable type 'OperationExecutor' in a `@Sendable` closure; this is an error in the Swift 6 language mode
21 |
22 | /// Operation executor used by `MongoClient`s.
23 | internal class OperationExecutor {
| `- note: class 'OperationExecutor' does not conform to the 'Sendable' protocol
24 | /// A group of event loops to use for running operations in the thread pool.
25 | private let eventLoopGroup: EventLoopGroup
:
89 | // start the session if needed (which generates a new operation itself), and then execute the operation.
90 | return session.startIfNeeded()
91 | .flatMap { self.execute(on: eventLoop, doOperation) }
| `- warning: capture of 'self' with non-sendable type 'OperationExecutor' in a `@Sendable` closure; this is an error in the Swift 6 language mode
92 | .flatMap { resubmitIfNeeded($0) }
93 | }
/host/spi-builder-workspace/Sources/MongoSwift/Operations/Operation.swift:91:56: warning: capture of 'doOperation' with non-sendable type '() throws -> ExecuteResult<T.OperationResult>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
89 | // start the session if needed (which generates a new operation itself), and then execute the operation.
90 | return session.startIfNeeded()
91 | .flatMap { self.execute(on: eventLoop, doOperation) }
| |- warning: capture of 'doOperation' with non-sendable type '() throws -> ExecuteResult<T.OperationResult>' 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 | .flatMap { resubmitIfNeeded($0) }
93 | }
/host/spi-builder-workspace/Sources/MongoSwift/Operations/Operation.swift:92:28: warning: capture of 'resubmitIfNeeded' with non-sendable type '(ExecuteResult<T.OperationResult>) -> EventLoopFuture<T.OperationResult>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
90 | return session.startIfNeeded()
91 | .flatMap { self.execute(on: eventLoop, doOperation) }
92 | .flatMap { resubmitIfNeeded($0) }
| |- warning: capture of 'resubmitIfNeeded' with non-sendable type '(ExecuteResult<T.OperationResult>) -> EventLoopFuture<T.OperationResult>' 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'
93 | }
94 |
/host/spi-builder-workspace/Sources/MongoSwift/Operations/Operation.swift:96:67: warning: capture of 'resubmitIfNeeded' with non-sendable type '(ExecuteResult<T.OperationResult>) -> EventLoopFuture<T.OperationResult>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
94 |
95 | // no session was provided, so we can just jump to executing the operation.
96 | return self.execute(on: eventLoop, doOperation).flatMap { resubmitIfNeeded($0) }
| |- warning: capture of 'resubmitIfNeeded' with non-sendable type '(ExecuteResult<T.OperationResult>) -> EventLoopFuture<T.OperationResult>' 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'
97 | }
98 |
/host/spi-builder-workspace/Sources/MongoSwift/Operations/Operation.swift:100:89: warning: passing non-sendable parameter 'body' to function expecting a @Sendable closure
97 | }
98 |
99 | internal func execute<T>(on eventLoop: EventLoop?, _ body: @escaping () throws -> T) -> EventLoopFuture<T> {
| `- note: parameter 'body' is implicitly non-sendable
100 | self.threadPool.runIfActive(eventLoop: eventLoop ?? self.eventLoopGroup.next(), body)
| `- warning: passing non-sendable parameter 'body' to function expecting a @Sendable closure
101 | }
102 |
/host/spi-builder-workspace/Sources/MongoSwift/Operations/Operation.swift:106:53: warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
103 | #if compiler(>=5.5.2) && canImport(_Concurrency)
104 | @available(macOS 10.15.0, *)
105 | internal func execute<T>(on eventLoop: EventLoop?, _ body: @escaping () throws -> T) async throws -> T {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
106 | try await self.execute(on: eventLoop, body).get()
| `- warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
107 | }
108 | #endif
/host/spi-builder-workspace/Sources/MongoSwift/Operations/Operation.swift:117:19: warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
113 | }
114 |
115 | internal func makeSucceededFuture<T>(_ value: T, on eventLoop: EventLoop?) -> EventLoopFuture<T> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
116 | let ev = eventLoop ?? self.eventLoopGroup.next()
117 | return ev.makeSucceededFuture(value)
| `- warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
118 | }
119 |
/host/spi-builder-workspace/Sources/MongoSwift/MongoClient.swift:287:45: warning: 'NIOAtomic' is deprecated: please use ManagedAtomic from https://github.com/apple/swift-atomics instead
285 |
286 | /// Counter for generating client _ids.
287 | internal static var clientIDGenerator = NIOAtomic<Int>.makeAtomic(value: 0)
| `- warning: 'NIOAtomic' is deprecated: please use ManagedAtomic from https://github.com/apple/swift-atomics instead
288 |
289 | /// A unique identifier for this client. Sets _id to the generator's current value and increments the generator.
[555/564] Compiling MongoSwift ListIndexesOperation.swift
/host/spi-builder-workspace/Sources/MongoSwift/ReadPreference.swift:74:23: warning: static property 'primary' is not concurrency-safe because non-'Sendable' type 'ReadPreference' may have shared mutable state; this is an error in the Swift 6 language mode
4 | /// directed to.
5 | /// - SeeAlso: https://docs.mongodb.com/manual/reference/read-preference/
6 | public struct ReadPreference: Equatable {
| `- note: consider making struct 'ReadPreference' conform to the 'Sendable' protocol
7 | /// An enumeration of possible read preference modes.
8 | /// - SeeAlso: https://docs.mongodb.com/manual/core/read-preference/#read-preference-modes
:
72 | /// A `ReadPreference` with mode `primary`. This is the default mode. With this mode, all operations read from the
73 | /// current replica set primary.
74 | public static let primary = ReadPreference(.primary)
| |- warning: static property 'primary' is not concurrency-safe because non-'Sendable' type 'ReadPreference' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'primary' 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
75 | /// A `ReadPreference` with mode `primaryPreferred`. With this mode, in most situations operations read from the
76 | /// primary, but if it is unavailable, operations read from secondary members.
/host/spi-builder-workspace/Sources/MongoSwift/Operations/Operation.swift:91:18: warning: type 'ExecuteResult<T.OperationResult>' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
13 |
14 | /// Contains the result of attempting to execute an operation in the thread pool.
15 | private enum ExecuteResult<T> {
| `- note: consider making generic enum 'ExecuteResult' conform to the 'Sendable' protocol
16 | /// Indicates that the operation was successfully executed and returned the associated value.
17 | case success(T)
:
89 | // start the session if needed (which generates a new operation itself), and then execute the operation.
90 | return session.startIfNeeded()
91 | .flatMap { self.execute(on: eventLoop, doOperation) }
| `- warning: type 'ExecuteResult<T.OperationResult>' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
92 | .flatMap { resubmitIfNeeded($0) }
93 | }
/host/spi-builder-workspace/Sources/MongoSwift/Operations/Operation.swift:92:18: warning: type 'T.OperationResult' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
90 | return session.startIfNeeded()
91 | .flatMap { self.execute(on: eventLoop, doOperation) }
92 | .flatMap { resubmitIfNeeded($0) }
| `- warning: type 'T.OperationResult' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
93 | }
94 |
/host/spi-builder-workspace/Sources/MongoSwift/Operations/Operation.swift:96:57: warning: type 'T.OperationResult' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
94 |
95 | // no session was provided, so we can just jump to executing the operation.
96 | return self.execute(on: eventLoop, doOperation).flatMap { resubmitIfNeeded($0) }
| `- warning: type 'T.OperationResult' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
97 | }
98 |
/host/spi-builder-workspace/Sources/MongoSwift/Operations/Operation.swift:91:28: warning: capture of 'self' with non-sendable type 'OperationExecutor' in a `@Sendable` closure; this is an error in the Swift 6 language mode
21 |
22 | /// Operation executor used by `MongoClient`s.
23 | internal class OperationExecutor {
| `- note: class 'OperationExecutor' does not conform to the 'Sendable' protocol
24 | /// A group of event loops to use for running operations in the thread pool.
25 | private let eventLoopGroup: EventLoopGroup
:
89 | // start the session if needed (which generates a new operation itself), and then execute the operation.
90 | return session.startIfNeeded()
91 | .flatMap { self.execute(on: eventLoop, doOperation) }
| `- warning: capture of 'self' with non-sendable type 'OperationExecutor' in a `@Sendable` closure; this is an error in the Swift 6 language mode
92 | .flatMap { resubmitIfNeeded($0) }
93 | }
/host/spi-builder-workspace/Sources/MongoSwift/Operations/Operation.swift:91:56: warning: capture of 'doOperation' with non-sendable type '() throws -> ExecuteResult<T.OperationResult>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
89 | // start the session if needed (which generates a new operation itself), and then execute the operation.
90 | return session.startIfNeeded()
91 | .flatMap { self.execute(on: eventLoop, doOperation) }
| |- warning: capture of 'doOperation' with non-sendable type '() throws -> ExecuteResult<T.OperationResult>' 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 | .flatMap { resubmitIfNeeded($0) }
93 | }
/host/spi-builder-workspace/Sources/MongoSwift/Operations/Operation.swift:92:28: warning: capture of 'resubmitIfNeeded' with non-sendable type '(ExecuteResult<T.OperationResult>) -> EventLoopFuture<T.OperationResult>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
90 | return session.startIfNeeded()
91 | .flatMap { self.execute(on: eventLoop, doOperation) }
92 | .flatMap { resubmitIfNeeded($0) }
| |- warning: capture of 'resubmitIfNeeded' with non-sendable type '(ExecuteResult<T.OperationResult>) -> EventLoopFuture<T.OperationResult>' 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'
93 | }
94 |
/host/spi-builder-workspace/Sources/MongoSwift/Operations/Operation.swift:96:67: warning: capture of 'resubmitIfNeeded' with non-sendable type '(ExecuteResult<T.OperationResult>) -> EventLoopFuture<T.OperationResult>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
94 |
95 | // no session was provided, so we can just jump to executing the operation.
96 | return self.execute(on: eventLoop, doOperation).flatMap { resubmitIfNeeded($0) }
| |- warning: capture of 'resubmitIfNeeded' with non-sendable type '(ExecuteResult<T.OperationResult>) -> EventLoopFuture<T.OperationResult>' 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'
97 | }
98 |
/host/spi-builder-workspace/Sources/MongoSwift/Operations/Operation.swift:100:89: warning: passing non-sendable parameter 'body' to function expecting a @Sendable closure
97 | }
98 |
99 | internal func execute<T>(on eventLoop: EventLoop?, _ body: @escaping () throws -> T) -> EventLoopFuture<T> {
| `- note: parameter 'body' is implicitly non-sendable
100 | self.threadPool.runIfActive(eventLoop: eventLoop ?? self.eventLoopGroup.next(), body)
| `- warning: passing non-sendable parameter 'body' to function expecting a @Sendable closure
101 | }
102 |
/host/spi-builder-workspace/Sources/MongoSwift/Operations/Operation.swift:106:53: warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
103 | #if compiler(>=5.5.2) && canImport(_Concurrency)
104 | @available(macOS 10.15.0, *)
105 | internal func execute<T>(on eventLoop: EventLoop?, _ body: @escaping () throws -> T) async throws -> T {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
106 | try await self.execute(on: eventLoop, body).get()
| `- warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
107 | }
108 | #endif
/host/spi-builder-workspace/Sources/MongoSwift/Operations/Operation.swift:117:19: warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
113 | }
114 |
115 | internal func makeSucceededFuture<T>(_ value: T, on eventLoop: EventLoop?) -> EventLoopFuture<T> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
116 | let ev = eventLoop ?? self.eventLoopGroup.next()
117 | return ev.makeSucceededFuture(value)
| `- warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
118 | }
119 |
/host/spi-builder-workspace/Sources/MongoSwift/MongoClient.swift:287:45: warning: 'NIOAtomic' is deprecated: please use ManagedAtomic from https://github.com/apple/swift-atomics instead
285 |
286 | /// Counter for generating client _ids.
287 | internal static var clientIDGenerator = NIOAtomic<Int>.makeAtomic(value: 0)
| `- warning: 'NIOAtomic' is deprecated: please use ManagedAtomic from https://github.com/apple/swift-atomics instead
288 |
289 | /// A unique identifier for this client. Sets _id to the generator's current value and increments the generator.
[556/564] Compiling MongoSwift MongocCommandHelpers.swift
/host/spi-builder-workspace/Sources/MongoSwift/ReadPreference.swift:74:23: warning: static property 'primary' is not concurrency-safe because non-'Sendable' type 'ReadPreference' may have shared mutable state; this is an error in the Swift 6 language mode
4 | /// directed to.
5 | /// - SeeAlso: https://docs.mongodb.com/manual/reference/read-preference/
6 | public struct ReadPreference: Equatable {
| `- note: consider making struct 'ReadPreference' conform to the 'Sendable' protocol
7 | /// An enumeration of possible read preference modes.
8 | /// - SeeAlso: https://docs.mongodb.com/manual/core/read-preference/#read-preference-modes
:
72 | /// A `ReadPreference` with mode `primary`. This is the default mode. With this mode, all operations read from the
73 | /// current replica set primary.
74 | public static let primary = ReadPreference(.primary)
| |- warning: static property 'primary' is not concurrency-safe because non-'Sendable' type 'ReadPreference' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'primary' 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
75 | /// A `ReadPreference` with mode `primaryPreferred`. With this mode, in most situations operations read from the
76 | /// primary, but if it is unavailable, operations read from secondary members.
/host/spi-builder-workspace/Sources/MongoSwift/Operations/Operation.swift:91:18: warning: type 'ExecuteResult<T.OperationResult>' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
13 |
14 | /// Contains the result of attempting to execute an operation in the thread pool.
15 | private enum ExecuteResult<T> {
| `- note: consider making generic enum 'ExecuteResult' conform to the 'Sendable' protocol
16 | /// Indicates that the operation was successfully executed and returned the associated value.
17 | case success(T)
:
89 | // start the session if needed (which generates a new operation itself), and then execute the operation.
90 | return session.startIfNeeded()
91 | .flatMap { self.execute(on: eventLoop, doOperation) }
| `- warning: type 'ExecuteResult<T.OperationResult>' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
92 | .flatMap { resubmitIfNeeded($0) }
93 | }
/host/spi-builder-workspace/Sources/MongoSwift/Operations/Operation.swift:92:18: warning: type 'T.OperationResult' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
90 | return session.startIfNeeded()
91 | .flatMap { self.execute(on: eventLoop, doOperation) }
92 | .flatMap { resubmitIfNeeded($0) }
| `- warning: type 'T.OperationResult' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
93 | }
94 |
/host/spi-builder-workspace/Sources/MongoSwift/Operations/Operation.swift:96:57: warning: type 'T.OperationResult' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
94 |
95 | // no session was provided, so we can just jump to executing the operation.
96 | return self.execute(on: eventLoop, doOperation).flatMap { resubmitIfNeeded($0) }
| `- warning: type 'T.OperationResult' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
97 | }
98 |
/host/spi-builder-workspace/Sources/MongoSwift/Operations/Operation.swift:91:28: warning: capture of 'self' with non-sendable type 'OperationExecutor' in a `@Sendable` closure; this is an error in the Swift 6 language mode
21 |
22 | /// Operation executor used by `MongoClient`s.
23 | internal class OperationExecutor {
| `- note: class 'OperationExecutor' does not conform to the 'Sendable' protocol
24 | /// A group of event loops to use for running operations in the thread pool.
25 | private let eventLoopGroup: EventLoopGroup
:
89 | // start the session if needed (which generates a new operation itself), and then execute the operation.
90 | return session.startIfNeeded()
91 | .flatMap { self.execute(on: eventLoop, doOperation) }
| `- warning: capture of 'self' with non-sendable type 'OperationExecutor' in a `@Sendable` closure; this is an error in the Swift 6 language mode
92 | .flatMap { resubmitIfNeeded($0) }
93 | }
/host/spi-builder-workspace/Sources/MongoSwift/Operations/Operation.swift:91:56: warning: capture of 'doOperation' with non-sendable type '() throws -> ExecuteResult<T.OperationResult>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
89 | // start the session if needed (which generates a new operation itself), and then execute the operation.
90 | return session.startIfNeeded()
91 | .flatMap { self.execute(on: eventLoop, doOperation) }
| |- warning: capture of 'doOperation' with non-sendable type '() throws -> ExecuteResult<T.OperationResult>' 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 | .flatMap { resubmitIfNeeded($0) }
93 | }
/host/spi-builder-workspace/Sources/MongoSwift/Operations/Operation.swift:92:28: warning: capture of 'resubmitIfNeeded' with non-sendable type '(ExecuteResult<T.OperationResult>) -> EventLoopFuture<T.OperationResult>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
90 | return session.startIfNeeded()
91 | .flatMap { self.execute(on: eventLoop, doOperation) }
92 | .flatMap { resubmitIfNeeded($0) }
| |- warning: capture of 'resubmitIfNeeded' with non-sendable type '(ExecuteResult<T.OperationResult>) -> EventLoopFuture<T.OperationResult>' 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'
93 | }
94 |
/host/spi-builder-workspace/Sources/MongoSwift/Operations/Operation.swift:96:67: warning: capture of 'resubmitIfNeeded' with non-sendable type '(ExecuteResult<T.OperationResult>) -> EventLoopFuture<T.OperationResult>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
94 |
95 | // no session was provided, so we can just jump to executing the operation.
96 | return self.execute(on: eventLoop, doOperation).flatMap { resubmitIfNeeded($0) }
| |- warning: capture of 'resubmitIfNeeded' with non-sendable type '(ExecuteResult<T.OperationResult>) -> EventLoopFuture<T.OperationResult>' 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'
97 | }
98 |
/host/spi-builder-workspace/Sources/MongoSwift/Operations/Operation.swift:100:89: warning: passing non-sendable parameter 'body' to function expecting a @Sendable closure
97 | }
98 |
99 | internal func execute<T>(on eventLoop: EventLoop?, _ body: @escaping () throws -> T) -> EventLoopFuture<T> {
| `- note: parameter 'body' is implicitly non-sendable
100 | self.threadPool.runIfActive(eventLoop: eventLoop ?? self.eventLoopGroup.next(), body)
| `- warning: passing non-sendable parameter 'body' to function expecting a @Sendable closure
101 | }
102 |
/host/spi-builder-workspace/Sources/MongoSwift/Operations/Operation.swift:106:53: warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
103 | #if compiler(>=5.5.2) && canImport(_Concurrency)
104 | @available(macOS 10.15.0, *)
105 | internal func execute<T>(on eventLoop: EventLoop?, _ body: @escaping () throws -> T) async throws -> T {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
106 | try await self.execute(on: eventLoop, body).get()
| `- warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
107 | }
108 | #endif
/host/spi-builder-workspace/Sources/MongoSwift/Operations/Operation.swift:117:19: warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
113 | }
114 |
115 | internal func makeSucceededFuture<T>(_ value: T, on eventLoop: EventLoop?) -> EventLoopFuture<T> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
116 | let ev = eventLoop ?? self.eventLoopGroup.next()
117 | return ev.makeSucceededFuture(value)
| `- warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
118 | }
119 |
/host/spi-builder-workspace/Sources/MongoSwift/MongoClient.swift:287:45: warning: 'NIOAtomic' is deprecated: please use ManagedAtomic from https://github.com/apple/swift-atomics instead
285 |
286 | /// Counter for generating client _ids.
287 | internal static var clientIDGenerator = NIOAtomic<Int>.makeAtomic(value: 0)
| `- warning: 'NIOAtomic' is deprecated: please use ManagedAtomic from https://github.com/apple/swift-atomics instead
288 |
289 | /// A unique identifier for this client. Sets _id to the generator's current value and increments the generator.
[557/564] Compiling MongoSwift Operation.swift
/host/spi-builder-workspace/Sources/MongoSwift/ReadPreference.swift:74:23: warning: static property 'primary' is not concurrency-safe because non-'Sendable' type 'ReadPreference' may have shared mutable state; this is an error in the Swift 6 language mode
4 | /// directed to.
5 | /// - SeeAlso: https://docs.mongodb.com/manual/reference/read-preference/
6 | public struct ReadPreference: Equatable {
| `- note: consider making struct 'ReadPreference' conform to the 'Sendable' protocol
7 | /// An enumeration of possible read preference modes.
8 | /// - SeeAlso: https://docs.mongodb.com/manual/core/read-preference/#read-preference-modes
:
72 | /// A `ReadPreference` with mode `primary`. This is the default mode. With this mode, all operations read from the
73 | /// current replica set primary.
74 | public static let primary = ReadPreference(.primary)
| |- warning: static property 'primary' is not concurrency-safe because non-'Sendable' type 'ReadPreference' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'primary' 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
75 | /// A `ReadPreference` with mode `primaryPreferred`. With this mode, in most situations operations read from the
76 | /// primary, but if it is unavailable, operations read from secondary members.
/host/spi-builder-workspace/Sources/MongoSwift/Operations/Operation.swift:91:18: warning: type 'ExecuteResult<T.OperationResult>' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
13 |
14 | /// Contains the result of attempting to execute an operation in the thread pool.
15 | private enum ExecuteResult<T> {
| `- note: consider making generic enum 'ExecuteResult' conform to the 'Sendable' protocol
16 | /// Indicates that the operation was successfully executed and returned the associated value.
17 | case success(T)
:
89 | // start the session if needed (which generates a new operation itself), and then execute the operation.
90 | return session.startIfNeeded()
91 | .flatMap { self.execute(on: eventLoop, doOperation) }
| `- warning: type 'ExecuteResult<T.OperationResult>' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
92 | .flatMap { resubmitIfNeeded($0) }
93 | }
/host/spi-builder-workspace/Sources/MongoSwift/Operations/Operation.swift:92:18: warning: type 'T.OperationResult' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
90 | return session.startIfNeeded()
91 | .flatMap { self.execute(on: eventLoop, doOperation) }
92 | .flatMap { resubmitIfNeeded($0) }
| `- warning: type 'T.OperationResult' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
93 | }
94 |
/host/spi-builder-workspace/Sources/MongoSwift/Operations/Operation.swift:96:57: warning: type 'T.OperationResult' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
94 |
95 | // no session was provided, so we can just jump to executing the operation.
96 | return self.execute(on: eventLoop, doOperation).flatMap { resubmitIfNeeded($0) }
| `- warning: type 'T.OperationResult' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
97 | }
98 |
/host/spi-builder-workspace/Sources/MongoSwift/Operations/Operation.swift:91:28: warning: capture of 'self' with non-sendable type 'OperationExecutor' in a `@Sendable` closure; this is an error in the Swift 6 language mode
21 |
22 | /// Operation executor used by `MongoClient`s.
23 | internal class OperationExecutor {
| `- note: class 'OperationExecutor' does not conform to the 'Sendable' protocol
24 | /// A group of event loops to use for running operations in the thread pool.
25 | private let eventLoopGroup: EventLoopGroup
:
89 | // start the session if needed (which generates a new operation itself), and then execute the operation.
90 | return session.startIfNeeded()
91 | .flatMap { self.execute(on: eventLoop, doOperation) }
| `- warning: capture of 'self' with non-sendable type 'OperationExecutor' in a `@Sendable` closure; this is an error in the Swift 6 language mode
92 | .flatMap { resubmitIfNeeded($0) }
93 | }
/host/spi-builder-workspace/Sources/MongoSwift/Operations/Operation.swift:91:56: warning: capture of 'doOperation' with non-sendable type '() throws -> ExecuteResult<T.OperationResult>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
89 | // start the session if needed (which generates a new operation itself), and then execute the operation.
90 | return session.startIfNeeded()
91 | .flatMap { self.execute(on: eventLoop, doOperation) }
| |- warning: capture of 'doOperation' with non-sendable type '() throws -> ExecuteResult<T.OperationResult>' 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 | .flatMap { resubmitIfNeeded($0) }
93 | }
/host/spi-builder-workspace/Sources/MongoSwift/Operations/Operation.swift:92:28: warning: capture of 'resubmitIfNeeded' with non-sendable type '(ExecuteResult<T.OperationResult>) -> EventLoopFuture<T.OperationResult>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
90 | return session.startIfNeeded()
91 | .flatMap { self.execute(on: eventLoop, doOperation) }
92 | .flatMap { resubmitIfNeeded($0) }
| |- warning: capture of 'resubmitIfNeeded' with non-sendable type '(ExecuteResult<T.OperationResult>) -> EventLoopFuture<T.OperationResult>' 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'
93 | }
94 |
/host/spi-builder-workspace/Sources/MongoSwift/Operations/Operation.swift:96:67: warning: capture of 'resubmitIfNeeded' with non-sendable type '(ExecuteResult<T.OperationResult>) -> EventLoopFuture<T.OperationResult>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
94 |
95 | // no session was provided, so we can just jump to executing the operation.
96 | return self.execute(on: eventLoop, doOperation).flatMap { resubmitIfNeeded($0) }
| |- warning: capture of 'resubmitIfNeeded' with non-sendable type '(ExecuteResult<T.OperationResult>) -> EventLoopFuture<T.OperationResult>' 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'
97 | }
98 |
/host/spi-builder-workspace/Sources/MongoSwift/Operations/Operation.swift:100:89: warning: passing non-sendable parameter 'body' to function expecting a @Sendable closure
97 | }
98 |
99 | internal func execute<T>(on eventLoop: EventLoop?, _ body: @escaping () throws -> T) -> EventLoopFuture<T> {
| `- note: parameter 'body' is implicitly non-sendable
100 | self.threadPool.runIfActive(eventLoop: eventLoop ?? self.eventLoopGroup.next(), body)
| `- warning: passing non-sendable parameter 'body' to function expecting a @Sendable closure
101 | }
102 |
/host/spi-builder-workspace/Sources/MongoSwift/Operations/Operation.swift:106:53: warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
103 | #if compiler(>=5.5.2) && canImport(_Concurrency)
104 | @available(macOS 10.15.0, *)
105 | internal func execute<T>(on eventLoop: EventLoop?, _ body: @escaping () throws -> T) async throws -> T {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
106 | try await self.execute(on: eventLoop, body).get()
| `- warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
107 | }
108 | #endif
/host/spi-builder-workspace/Sources/MongoSwift/Operations/Operation.swift:117:19: warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
113 | }
114 |
115 | internal func makeSucceededFuture<T>(_ value: T, on eventLoop: EventLoop?) -> EventLoopFuture<T> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
116 | let ev = eventLoop ?? self.eventLoopGroup.next()
117 | return ev.makeSucceededFuture(value)
| `- warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
118 | }
119 |
/host/spi-builder-workspace/Sources/MongoSwift/MongoClient.swift:287:45: warning: 'NIOAtomic' is deprecated: please use ManagedAtomic from https://github.com/apple/swift-atomics instead
285 |
286 | /// Counter for generating client _ids.
287 | internal static var clientIDGenerator = NIOAtomic<Int>.makeAtomic(value: 0)
| `- warning: 'NIOAtomic' is deprecated: please use ManagedAtomic from https://github.com/apple/swift-atomics instead
288 |
289 | /// A unique identifier for this client. Sets _id to the generator's current value and increments the generator.
[558/564] Compiling MongoSwift RenameCollectionOperation.swift
/host/spi-builder-workspace/Sources/MongoSwift/ReadPreference.swift:74:23: warning: static property 'primary' is not concurrency-safe because non-'Sendable' type 'ReadPreference' may have shared mutable state; this is an error in the Swift 6 language mode
4 | /// directed to.
5 | /// - SeeAlso: https://docs.mongodb.com/manual/reference/read-preference/
6 | public struct ReadPreference: Equatable {
| `- note: consider making struct 'ReadPreference' conform to the 'Sendable' protocol
7 | /// An enumeration of possible read preference modes.
8 | /// - SeeAlso: https://docs.mongodb.com/manual/core/read-preference/#read-preference-modes
:
72 | /// A `ReadPreference` with mode `primary`. This is the default mode. With this mode, all operations read from the
73 | /// current replica set primary.
74 | public static let primary = ReadPreference(.primary)
| |- warning: static property 'primary' is not concurrency-safe because non-'Sendable' type 'ReadPreference' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'primary' 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
75 | /// A `ReadPreference` with mode `primaryPreferred`. With this mode, in most situations operations read from the
76 | /// primary, but if it is unavailable, operations read from secondary members.
/host/spi-builder-workspace/Sources/MongoSwift/Operations/Operation.swift:91:18: warning: type 'ExecuteResult<T.OperationResult>' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
13 |
14 | /// Contains the result of attempting to execute an operation in the thread pool.
15 | private enum ExecuteResult<T> {
| `- note: consider making generic enum 'ExecuteResult' conform to the 'Sendable' protocol
16 | /// Indicates that the operation was successfully executed and returned the associated value.
17 | case success(T)
:
89 | // start the session if needed (which generates a new operation itself), and then execute the operation.
90 | return session.startIfNeeded()
91 | .flatMap { self.execute(on: eventLoop, doOperation) }
| `- warning: type 'ExecuteResult<T.OperationResult>' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
92 | .flatMap { resubmitIfNeeded($0) }
93 | }
/host/spi-builder-workspace/Sources/MongoSwift/Operations/Operation.swift:92:18: warning: type 'T.OperationResult' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
90 | return session.startIfNeeded()
91 | .flatMap { self.execute(on: eventLoop, doOperation) }
92 | .flatMap { resubmitIfNeeded($0) }
| `- warning: type 'T.OperationResult' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
93 | }
94 |
/host/spi-builder-workspace/Sources/MongoSwift/Operations/Operation.swift:96:57: warning: type 'T.OperationResult' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
94 |
95 | // no session was provided, so we can just jump to executing the operation.
96 | return self.execute(on: eventLoop, doOperation).flatMap { resubmitIfNeeded($0) }
| `- warning: type 'T.OperationResult' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
97 | }
98 |
/host/spi-builder-workspace/Sources/MongoSwift/Operations/Operation.swift:91:28: warning: capture of 'self' with non-sendable type 'OperationExecutor' in a `@Sendable` closure; this is an error in the Swift 6 language mode
21 |
22 | /// Operation executor used by `MongoClient`s.
23 | internal class OperationExecutor {
| `- note: class 'OperationExecutor' does not conform to the 'Sendable' protocol
24 | /// A group of event loops to use for running operations in the thread pool.
25 | private let eventLoopGroup: EventLoopGroup
:
89 | // start the session if needed (which generates a new operation itself), and then execute the operation.
90 | return session.startIfNeeded()
91 | .flatMap { self.execute(on: eventLoop, doOperation) }
| `- warning: capture of 'self' with non-sendable type 'OperationExecutor' in a `@Sendable` closure; this is an error in the Swift 6 language mode
92 | .flatMap { resubmitIfNeeded($0) }
93 | }
/host/spi-builder-workspace/Sources/MongoSwift/Operations/Operation.swift:91:56: warning: capture of 'doOperation' with non-sendable type '() throws -> ExecuteResult<T.OperationResult>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
89 | // start the session if needed (which generates a new operation itself), and then execute the operation.
90 | return session.startIfNeeded()
91 | .flatMap { self.execute(on: eventLoop, doOperation) }
| |- warning: capture of 'doOperation' with non-sendable type '() throws -> ExecuteResult<T.OperationResult>' 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 | .flatMap { resubmitIfNeeded($0) }
93 | }
/host/spi-builder-workspace/Sources/MongoSwift/Operations/Operation.swift:92:28: warning: capture of 'resubmitIfNeeded' with non-sendable type '(ExecuteResult<T.OperationResult>) -> EventLoopFuture<T.OperationResult>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
90 | return session.startIfNeeded()
91 | .flatMap { self.execute(on: eventLoop, doOperation) }
92 | .flatMap { resubmitIfNeeded($0) }
| |- warning: capture of 'resubmitIfNeeded' with non-sendable type '(ExecuteResult<T.OperationResult>) -> EventLoopFuture<T.OperationResult>' 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'
93 | }
94 |
/host/spi-builder-workspace/Sources/MongoSwift/Operations/Operation.swift:96:67: warning: capture of 'resubmitIfNeeded' with non-sendable type '(ExecuteResult<T.OperationResult>) -> EventLoopFuture<T.OperationResult>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
94 |
95 | // no session was provided, so we can just jump to executing the operation.
96 | return self.execute(on: eventLoop, doOperation).flatMap { resubmitIfNeeded($0) }
| |- warning: capture of 'resubmitIfNeeded' with non-sendable type '(ExecuteResult<T.OperationResult>) -> EventLoopFuture<T.OperationResult>' 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'
97 | }
98 |
/host/spi-builder-workspace/Sources/MongoSwift/Operations/Operation.swift:100:89: warning: passing non-sendable parameter 'body' to function expecting a @Sendable closure
97 | }
98 |
99 | internal func execute<T>(on eventLoop: EventLoop?, _ body: @escaping () throws -> T) -> EventLoopFuture<T> {
| `- note: parameter 'body' is implicitly non-sendable
100 | self.threadPool.runIfActive(eventLoop: eventLoop ?? self.eventLoopGroup.next(), body)
| `- warning: passing non-sendable parameter 'body' to function expecting a @Sendable closure
101 | }
102 |
/host/spi-builder-workspace/Sources/MongoSwift/Operations/Operation.swift:106:53: warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
103 | #if compiler(>=5.5.2) && canImport(_Concurrency)
104 | @available(macOS 10.15.0, *)
105 | internal func execute<T>(on eventLoop: EventLoop?, _ body: @escaping () throws -> T) async throws -> T {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
106 | try await self.execute(on: eventLoop, body).get()
| `- warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
107 | }
108 | #endif
/host/spi-builder-workspace/Sources/MongoSwift/Operations/Operation.swift:117:19: warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
113 | }
114 |
115 | internal func makeSucceededFuture<T>(_ value: T, on eventLoop: EventLoop?) -> EventLoopFuture<T> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
116 | let ev = eventLoop ?? self.eventLoopGroup.next()
117 | return ev.makeSucceededFuture(value)
| `- warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
118 | }
119 |
/host/spi-builder-workspace/Sources/MongoSwift/MongoClient.swift:287:45: warning: 'NIOAtomic' is deprecated: please use ManagedAtomic from https://github.com/apple/swift-atomics instead
285 |
286 | /// Counter for generating client _ids.
287 | internal static var clientIDGenerator = NIOAtomic<Int>.makeAtomic(value: 0)
| `- warning: 'NIOAtomic' is deprecated: please use ManagedAtomic from https://github.com/apple/swift-atomics instead
288 |
289 | /// A unique identifier for this client. Sets _id to the generator's current value and increments the generator.
[559/564] Compiling MongoSwift RunCommandOperation.swift
/host/spi-builder-workspace/Sources/MongoSwift/ReadPreference.swift:74:23: warning: static property 'primary' is not concurrency-safe because non-'Sendable' type 'ReadPreference' may have shared mutable state; this is an error in the Swift 6 language mode
4 | /// directed to.
5 | /// - SeeAlso: https://docs.mongodb.com/manual/reference/read-preference/
6 | public struct ReadPreference: Equatable {
| `- note: consider making struct 'ReadPreference' conform to the 'Sendable' protocol
7 | /// An enumeration of possible read preference modes.
8 | /// - SeeAlso: https://docs.mongodb.com/manual/core/read-preference/#read-preference-modes
:
72 | /// A `ReadPreference` with mode `primary`. This is the default mode. With this mode, all operations read from the
73 | /// current replica set primary.
74 | public static let primary = ReadPreference(.primary)
| |- warning: static property 'primary' is not concurrency-safe because non-'Sendable' type 'ReadPreference' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'primary' 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
75 | /// A `ReadPreference` with mode `primaryPreferred`. With this mode, in most situations operations read from the
76 | /// primary, but if it is unavailable, operations read from secondary members.
/host/spi-builder-workspace/Sources/MongoSwift/Operations/Operation.swift:91:18: warning: type 'ExecuteResult<T.OperationResult>' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
13 |
14 | /// Contains the result of attempting to execute an operation in the thread pool.
15 | private enum ExecuteResult<T> {
| `- note: consider making generic enum 'ExecuteResult' conform to the 'Sendable' protocol
16 | /// Indicates that the operation was successfully executed and returned the associated value.
17 | case success(T)
:
89 | // start the session if needed (which generates a new operation itself), and then execute the operation.
90 | return session.startIfNeeded()
91 | .flatMap { self.execute(on: eventLoop, doOperation) }
| `- warning: type 'ExecuteResult<T.OperationResult>' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
92 | .flatMap { resubmitIfNeeded($0) }
93 | }
/host/spi-builder-workspace/Sources/MongoSwift/Operations/Operation.swift:92:18: warning: type 'T.OperationResult' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
90 | return session.startIfNeeded()
91 | .flatMap { self.execute(on: eventLoop, doOperation) }
92 | .flatMap { resubmitIfNeeded($0) }
| `- warning: type 'T.OperationResult' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
93 | }
94 |
/host/spi-builder-workspace/Sources/MongoSwift/Operations/Operation.swift:96:57: warning: type 'T.OperationResult' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
94 |
95 | // no session was provided, so we can just jump to executing the operation.
96 | return self.execute(on: eventLoop, doOperation).flatMap { resubmitIfNeeded($0) }
| `- warning: type 'T.OperationResult' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
97 | }
98 |
/host/spi-builder-workspace/Sources/MongoSwift/Operations/Operation.swift:91:28: warning: capture of 'self' with non-sendable type 'OperationExecutor' in a `@Sendable` closure; this is an error in the Swift 6 language mode
21 |
22 | /// Operation executor used by `MongoClient`s.
23 | internal class OperationExecutor {
| `- note: class 'OperationExecutor' does not conform to the 'Sendable' protocol
24 | /// A group of event loops to use for running operations in the thread pool.
25 | private let eventLoopGroup: EventLoopGroup
:
89 | // start the session if needed (which generates a new operation itself), and then execute the operation.
90 | return session.startIfNeeded()
91 | .flatMap { self.execute(on: eventLoop, doOperation) }
| `- warning: capture of 'self' with non-sendable type 'OperationExecutor' in a `@Sendable` closure; this is an error in the Swift 6 language mode
92 | .flatMap { resubmitIfNeeded($0) }
93 | }
/host/spi-builder-workspace/Sources/MongoSwift/Operations/Operation.swift:91:56: warning: capture of 'doOperation' with non-sendable type '() throws -> ExecuteResult<T.OperationResult>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
89 | // start the session if needed (which generates a new operation itself), and then execute the operation.
90 | return session.startIfNeeded()
91 | .flatMap { self.execute(on: eventLoop, doOperation) }
| |- warning: capture of 'doOperation' with non-sendable type '() throws -> ExecuteResult<T.OperationResult>' 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 | .flatMap { resubmitIfNeeded($0) }
93 | }
/host/spi-builder-workspace/Sources/MongoSwift/Operations/Operation.swift:92:28: warning: capture of 'resubmitIfNeeded' with non-sendable type '(ExecuteResult<T.OperationResult>) -> EventLoopFuture<T.OperationResult>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
90 | return session.startIfNeeded()
91 | .flatMap { self.execute(on: eventLoop, doOperation) }
92 | .flatMap { resubmitIfNeeded($0) }
| |- warning: capture of 'resubmitIfNeeded' with non-sendable type '(ExecuteResult<T.OperationResult>) -> EventLoopFuture<T.OperationResult>' 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'
93 | }
94 |
/host/spi-builder-workspace/Sources/MongoSwift/Operations/Operation.swift:96:67: warning: capture of 'resubmitIfNeeded' with non-sendable type '(ExecuteResult<T.OperationResult>) -> EventLoopFuture<T.OperationResult>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
94 |
95 | // no session was provided, so we can just jump to executing the operation.
96 | return self.execute(on: eventLoop, doOperation).flatMap { resubmitIfNeeded($0) }
| |- warning: capture of 'resubmitIfNeeded' with non-sendable type '(ExecuteResult<T.OperationResult>) -> EventLoopFuture<T.OperationResult>' 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'
97 | }
98 |
/host/spi-builder-workspace/Sources/MongoSwift/Operations/Operation.swift:100:89: warning: passing non-sendable parameter 'body' to function expecting a @Sendable closure
97 | }
98 |
99 | internal func execute<T>(on eventLoop: EventLoop?, _ body: @escaping () throws -> T) -> EventLoopFuture<T> {
| `- note: parameter 'body' is implicitly non-sendable
100 | self.threadPool.runIfActive(eventLoop: eventLoop ?? self.eventLoopGroup.next(), body)
| `- warning: passing non-sendable parameter 'body' to function expecting a @Sendable closure
101 | }
102 |
/host/spi-builder-workspace/Sources/MongoSwift/Operations/Operation.swift:106:53: warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
103 | #if compiler(>=5.5.2) && canImport(_Concurrency)
104 | @available(macOS 10.15.0, *)
105 | internal func execute<T>(on eventLoop: EventLoop?, _ body: @escaping () throws -> T) async throws -> T {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
106 | try await self.execute(on: eventLoop, body).get()
| `- warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
107 | }
108 | #endif
/host/spi-builder-workspace/Sources/MongoSwift/Operations/Operation.swift:117:19: warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
113 | }
114 |
115 | internal func makeSucceededFuture<T>(_ value: T, on eventLoop: EventLoop?) -> EventLoopFuture<T> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
116 | let ev = eventLoop ?? self.eventLoopGroup.next()
117 | return ev.makeSucceededFuture(value)
| `- warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
118 | }
119 |
/host/spi-builder-workspace/Sources/MongoSwift/MongoClient.swift:287:45: warning: 'NIOAtomic' is deprecated: please use ManagedAtomic from https://github.com/apple/swift-atomics instead
285 |
286 | /// Counter for generating client _ids.
287 | internal static var clientIDGenerator = NIOAtomic<Int>.makeAtomic(value: 0)
| `- warning: 'NIOAtomic' is deprecated: please use ManagedAtomic from https://github.com/apple/swift-atomics instead
288 |
289 | /// A unique identifier for this client. Sets _id to the generator's current value and increments the generator.
[560/565] Wrapping AST for MongoSwift for debugging
[562/585] Compiling TestsCommon SpecTestUtils.swift
[563/585] Compiling TestsCommon ServerVersion.swift
/host/spi-builder-workspace/Sources/TestsCommon/ServerVersion.swift:5:23: warning: static property 'mongodFailCommandSupport' is not concurrency-safe because non-'Sendable' type 'ServerVersion' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | /// A struct representing a server version.
4 | public struct ServerVersion: Comparable, Decodable, CustomStringConvertible {
| `- note: consider making struct 'ServerVersion' conform to the 'Sendable' protocol
5 | public static let mongodFailCommandSupport = ServerVersion(major: 4, minor: 0)
| |- warning: static property 'mongodFailCommandSupport' is not concurrency-safe because non-'Sendable' type 'ServerVersion' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'mongodFailCommandSupport' 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
6 | public static let mongosFailCommandSupport = ServerVersion(major: 4, minor: 1, patch: 5)
7 | public static let mongodBlockTimeSupport = ServerVersion(major: 4, minor: 2, patch: 9)
/host/spi-builder-workspace/Sources/TestsCommon/ServerVersion.swift:6:23: warning: static property 'mongosFailCommandSupport' is not concurrency-safe because non-'Sendable' type 'ServerVersion' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | /// A struct representing a server version.
4 | public struct ServerVersion: Comparable, Decodable, CustomStringConvertible {
| `- note: consider making struct 'ServerVersion' conform to the 'Sendable' protocol
5 | public static let mongodFailCommandSupport = ServerVersion(major: 4, minor: 0)
6 | public static let mongosFailCommandSupport = ServerVersion(major: 4, minor: 1, patch: 5)
| |- warning: static property 'mongosFailCommandSupport' is not concurrency-safe because non-'Sendable' type 'ServerVersion' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'mongosFailCommandSupport' 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
7 | public static let mongodBlockTimeSupport = ServerVersion(major: 4, minor: 2, patch: 9)
8 |
/host/spi-builder-workspace/Sources/TestsCommon/ServerVersion.swift:7:23: warning: static property 'mongodBlockTimeSupport' is not concurrency-safe because non-'Sendable' type 'ServerVersion' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | /// A struct representing a server version.
4 | public struct ServerVersion: Comparable, Decodable, CustomStringConvertible {
| `- note: consider making struct 'ServerVersion' conform to the 'Sendable' protocol
5 | public static let mongodFailCommandSupport = ServerVersion(major: 4, minor: 0)
6 | public static let mongosFailCommandSupport = ServerVersion(major: 4, minor: 1, patch: 5)
7 | public static let mongodBlockTimeSupport = ServerVersion(major: 4, minor: 2, patch: 9)
| |- warning: static property 'mongodBlockTimeSupport' is not concurrency-safe because non-'Sendable' type 'ServerVersion' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'mongodBlockTimeSupport' 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
8 |
9 | let major: Int
[564/585] Compiling TestsCommon MongoError+Equatable.swift
/host/spi-builder-workspace/Sources/TestsCommon/MongoError+Equatable.swift:4:1: warning: extension declares a conformance of imported type 'ConnectionError' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'MongoSwift' introduce this conformance in the future
2 | import MongoSwift
3 |
4 | extension MongoError.ConnectionError: Equatable {
| |- warning: extension declares a conformance of imported type 'ConnectionError' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'MongoSwift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
5 | public static func == (lhs: MongoError.ConnectionError, rhs: MongoError.ConnectionError) -> Bool {
6 | lhs.errorLabels?.sorted() == rhs.errorLabels?.sorted()
/host/spi-builder-workspace/Sources/TestsCommon/MongoError+Equatable.swift:10:1: warning: extension declares a conformance of imported type 'CommandError' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'MongoSwift' introduce this conformance in the future
8 | }
9 |
10 | extension MongoError.CommandError: Equatable {
| |- warning: extension declares a conformance of imported type 'CommandError' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'MongoSwift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
11 | public static func == (lhs: MongoError.CommandError, rhs: MongoError.CommandError) -> Bool {
12 | lhs.code == rhs.code && lhs.errorLabels?.sorted() == rhs.errorLabels?.sorted()
/host/spi-builder-workspace/Sources/TestsCommon/MongoError+Equatable.swift:16:1: warning: extension declares a conformance of imported type 'WriteError' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'MongoSwift' introduce this conformance in the future
14 | }
15 |
16 | extension MongoError.WriteError: Equatable {
| |- warning: extension declares a conformance of imported type 'WriteError' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'MongoSwift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
17 | public static func == (lhs: MongoError.WriteError, rhs: MongoError.WriteError) -> Bool {
18 | lhs.writeFailure == rhs.writeFailure &&
/host/spi-builder-workspace/Sources/TestsCommon/MongoError+Equatable.swift:24:1: warning: extension declares a conformance of imported type 'BulkWriteError' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'MongoSwift' introduce this conformance in the future
22 | }
23 |
24 | extension MongoError.BulkWriteError: Equatable {
| |- warning: extension declares a conformance of imported type 'BulkWriteError' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'MongoSwift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
25 | public static func == (lhs: MongoError.BulkWriteError, rhs: MongoError.BulkWriteError) -> Bool {
26 | let cmp = { (lhs: MongoError.BulkWriteFailure, rhs: MongoError.BulkWriteFailure) in
/host/spi-builder-workspace/Sources/TestsCommon/MongoError+Equatable.swift:37:1: warning: extension declares a conformance of imported type 'BulkWriteResult' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'MongoSwift' introduce this conformance in the future
35 | }
36 |
37 | extension BulkWriteResult: Equatable {
| |- warning: extension declares a conformance of imported type 'BulkWriteResult' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'MongoSwift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
38 | public static func == (lhs: BulkWriteResult, rhs: BulkWriteResult) -> Bool {
39 | lhs.insertedIDs == rhs.insertedIDs
/host/spi-builder-workspace/Sources/TestsCommon/MongoError+Equatable.swift:48:1: warning: extension declares a conformance of imported type 'WriteFailure' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'MongoSwift' introduce this conformance in the future
46 | }
47 |
48 | extension MongoError.WriteFailure: Equatable {
| |- warning: extension declares a conformance of imported type 'WriteFailure' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'MongoSwift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
49 | public static func == (lhs: MongoError.WriteFailure, rhs: MongoError.WriteFailure) -> Bool {
50 | lhs.code == rhs.code
/host/spi-builder-workspace/Sources/TestsCommon/MongoError+Equatable.swift:54:1: warning: extension declares a conformance of imported type 'BulkWriteFailure' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'MongoSwift' introduce this conformance in the future
52 | }
53 |
54 | extension MongoError.BulkWriteFailure: Equatable {
| |- warning: extension declares a conformance of imported type 'BulkWriteFailure' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'MongoSwift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
55 | public static func == (lhs: MongoError.BulkWriteFailure, rhs: MongoError.BulkWriteFailure) -> Bool {
56 | lhs.code == rhs.code && lhs.index == rhs.index
/host/spi-builder-workspace/Sources/TestsCommon/MongoError+Equatable.swift:60:1: warning: extension declares a conformance of imported type 'WriteConcernFailure' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'MongoSwift' introduce this conformance in the future
58 | }
59 |
60 | extension MongoError.WriteConcernFailure: Equatable {
| |- warning: extension declares a conformance of imported type 'WriteConcernFailure' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'MongoSwift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
61 | public static func == (lhs: MongoError.WriteConcernFailure, rhs: MongoError.WriteConcernFailure) -> Bool {
62 | lhs.code == rhs.code
/host/spi-builder-workspace/Sources/TestsCommon/MongoError+Equatable.swift:66:1: warning: extension declares a conformance of imported type 'DecodingError' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
64 | }
65 |
66 | extension DecodingError: Equatable {
| |- warning: extension declares a conformance of imported type 'DecodingError' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
67 | public static func == (lhs: DecodingError, rhs: DecodingError) -> Bool {
68 | switch (lhs, rhs) {
[565/585] Compiling MongoSwiftSync MongoCursor.swift
/host/spi-builder-workspace/Sources/MongoSwiftSync/MongoCursor.swift:68:48: warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
10 | * It is safe to `kill(...)` a `MongoCursor` from another thread while it is blocked waiting on results, however.
11 | */
12 | public class MongoCursor<T: Codable>: CursorProtocol {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
13 | private let asyncCursor: MongoSwift.MongoCursor<T>
14 | private let client: MongoClient
:
66 | public func next() -> Result<T, Error>? {
67 | do {
68 | return try self.asyncCursor.next().wait().map { .success($0) }
| `- warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
69 | } catch {
70 | return .failure(error)
/host/spi-builder-workspace/Sources/MongoSwiftSync/MongoCursor.swift:95:51: warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
10 | * It is safe to `kill(...)` a `MongoCursor` from another thread while it is blocked waiting on results, however.
11 | */
12 | public class MongoCursor<T: Codable>: CursorProtocol {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
13 | private let asyncCursor: MongoSwift.MongoCursor<T>
14 | private let client: MongoClient
:
93 | public func tryNext() -> Result<T, Error>? {
94 | do {
95 | return try self.asyncCursor.tryNext().wait().map { .success($0) }
| `- warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
96 | } catch {
97 | return .failure(error)
[566/586] Compiling MongoSwiftSync MongoCollection.swift
/host/spi-builder-workspace/Sources/MongoSwiftSync/MongoCollection.swift:100:10: warning: type 'MongoCollection<T>' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
98 | session: session?.asyncSession
99 | )
100 | .wait()
| `- warning: type 'MongoCollection<T>' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
101 | return MongoCollection(client: self.client, asyncCollection: newAsyncColl)
102 | }
/host/spi-builder-workspace/Sources/MongoSwift/MongoCollection.swift:17:15: note: generic struct 'MongoCollection' does not conform to the 'Sendable' protocol
15 | // sourcery: skipSyncExport
16 | /// A MongoDB collection.
17 | public struct MongoCollection<T: Codable> {
| `- note: generic struct 'MongoCollection' does not conform to the 'Sendable' protocol
18 | /// The client which this collection was derived from.
19 | internal let _client: MongoClient
/host/spi-builder-workspace/Sources/MongoSwiftSync/MongoCollection.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'MongoSwift'
1 | import MongoSwift
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'MongoSwift'
2 |
3 | /// A MongoDB collection.
[567/586] Emitting module MongoSwiftSync
[568/586] Compiling MongoSwiftSync CursorCommon.swift
[569/586] Compiling MongoSwiftSync Exports.swift
[570/586] Compiling MongoSwiftSync MongoCollection+FindAndModify.swift
/host/spi-builder-workspace/Sources/MongoSwiftSync/MongoCollection+FindAndModify.swift:28:103: warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
26 | session: ClientSession? = nil
27 | ) throws -> CollectionType? {
28 | try self.asyncColl.findOneAndDelete(filter, options: options, session: session?.asyncSession).wait()
| `- warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
29 | }
30 |
/host/spi-builder-workspace/Sources/MongoSwiftSync/MongoCollection.swift:4:31: note: consider making generic parameter 'T' conform to the 'Sendable' protocol
2 |
3 | /// A MongoDB collection.
4 | public struct MongoCollection<T: Codable> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
5 | /// Encoder used by this collection for BSON conversions. (e.g. converting `CollectionType`s, indexes, and options
6 | /// to documents).
/host/spi-builder-workspace/Sources/MongoSwiftSync/MongoCollection+FindAndModify.swift:64:10: warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
62 | session: session?.asyncSession
63 | )
64 | .wait()
| `- warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
65 | }
66 |
/host/spi-builder-workspace/Sources/MongoSwiftSync/MongoCollection.swift:4:31: note: consider making generic parameter 'T' conform to the 'Sendable' protocol
2 |
3 | /// A MongoDB collection.
4 | public struct MongoCollection<T: Codable> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
5 | /// Encoder used by this collection for BSON conversions. (e.g. converting `CollectionType`s, indexes, and options
6 | /// to documents).
/host/spi-builder-workspace/Sources/MongoSwiftSync/MongoCollection+FindAndModify.swift:99:10: warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
97 | session: session?.asyncSession
98 | )
99 | .wait()
| `- warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
100 | }
101 |
/host/spi-builder-workspace/Sources/MongoSwiftSync/MongoCollection.swift:4:31: note: consider making generic parameter 'T' conform to the 'Sendable' protocol
2 |
3 | /// A MongoDB collection.
4 | public struct MongoCollection<T: Codable> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
5 | /// Encoder used by this collection for BSON conversions. (e.g. converting `CollectionType`s, indexes, and options
6 | /// to documents).
/host/spi-builder-workspace/Sources/MongoSwiftSync/MongoCollection+FindAndModify.swift:134:10: warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
132 | session: session?.asyncSession
133 | )
134 | .wait()
| `- warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
135 | }
136 | }
/host/spi-builder-workspace/Sources/MongoSwiftSync/MongoCollection.swift:4:31: note: consider making generic parameter 'T' conform to the 'Sendable' protocol
2 |
3 | /// A MongoDB collection.
4 | public struct MongoCollection<T: Codable> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
5 | /// Encoder used by this collection for BSON conversions. (e.g. converting `CollectionType`s, indexes, and options
6 | /// to documents).
/host/spi-builder-workspace/Sources/MongoSwiftSync/MongoCollection+Indexes.swift:191:90: warning: type 'MongoCursor<IndexModel>' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
189 | */
190 | public func listIndexes(session: ClientSession? = nil) throws -> MongoCursor<IndexModel> {
191 | let asyncCursor = try self.asyncColl.listIndexes(session: session?.asyncSession).wait()
| `- warning: type 'MongoCursor<IndexModel>' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
192 | return MongoCursor(wrapping: asyncCursor, client: self.client)
193 | }
/host/spi-builder-workspace/Sources/MongoSwift/MongoCursor.swift:35:14: note: generic class 'MongoCursor' does not conform to the 'Sendable' protocol
33 | // sourcery: skipSyncExport
34 | /// A MongoDB cursor.
35 | public class MongoCursor<T: Codable>: CursorProtocol {
| `- note: generic class 'MongoCursor' does not conform to the 'Sendable' protocol
36 | /// The client this cursor descended from.
37 | private let client: MongoClient
/host/spi-builder-workspace/Sources/MongoSwiftSync/MongoCollection+Indexes.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'MongoSwift'
1 | import MongoSwift
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'MongoSwift'
2 |
3 | /// An extension of `MongoCollection` encapsulating index management capabilities.
[571/586] Compiling MongoSwiftSync MongoCollection+Indexes.swift
/host/spi-builder-workspace/Sources/MongoSwiftSync/MongoCollection+FindAndModify.swift:28:103: warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
26 | session: ClientSession? = nil
27 | ) throws -> CollectionType? {
28 | try self.asyncColl.findOneAndDelete(filter, options: options, session: session?.asyncSession).wait()
| `- warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
29 | }
30 |
/host/spi-builder-workspace/Sources/MongoSwiftSync/MongoCollection.swift:4:31: note: consider making generic parameter 'T' conform to the 'Sendable' protocol
2 |
3 | /// A MongoDB collection.
4 | public struct MongoCollection<T: Codable> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
5 | /// Encoder used by this collection for BSON conversions. (e.g. converting `CollectionType`s, indexes, and options
6 | /// to documents).
/host/spi-builder-workspace/Sources/MongoSwiftSync/MongoCollection+FindAndModify.swift:64:10: warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
62 | session: session?.asyncSession
63 | )
64 | .wait()
| `- warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
65 | }
66 |
/host/spi-builder-workspace/Sources/MongoSwiftSync/MongoCollection.swift:4:31: note: consider making generic parameter 'T' conform to the 'Sendable' protocol
2 |
3 | /// A MongoDB collection.
4 | public struct MongoCollection<T: Codable> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
5 | /// Encoder used by this collection for BSON conversions. (e.g. converting `CollectionType`s, indexes, and options
6 | /// to documents).
/host/spi-builder-workspace/Sources/MongoSwiftSync/MongoCollection+FindAndModify.swift:99:10: warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
97 | session: session?.asyncSession
98 | )
99 | .wait()
| `- warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
100 | }
101 |
/host/spi-builder-workspace/Sources/MongoSwiftSync/MongoCollection.swift:4:31: note: consider making generic parameter 'T' conform to the 'Sendable' protocol
2 |
3 | /// A MongoDB collection.
4 | public struct MongoCollection<T: Codable> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
5 | /// Encoder used by this collection for BSON conversions. (e.g. converting `CollectionType`s, indexes, and options
6 | /// to documents).
/host/spi-builder-workspace/Sources/MongoSwiftSync/MongoCollection+FindAndModify.swift:134:10: warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
132 | session: session?.asyncSession
133 | )
134 | .wait()
| `- warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
135 | }
136 | }
/host/spi-builder-workspace/Sources/MongoSwiftSync/MongoCollection.swift:4:31: note: consider making generic parameter 'T' conform to the 'Sendable' protocol
2 |
3 | /// A MongoDB collection.
4 | public struct MongoCollection<T: Codable> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
5 | /// Encoder used by this collection for BSON conversions. (e.g. converting `CollectionType`s, indexes, and options
6 | /// to documents).
/host/spi-builder-workspace/Sources/MongoSwiftSync/MongoCollection+Indexes.swift:191:90: warning: type 'MongoCursor<IndexModel>' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
189 | */
190 | public func listIndexes(session: ClientSession? = nil) throws -> MongoCursor<IndexModel> {
191 | let asyncCursor = try self.asyncColl.listIndexes(session: session?.asyncSession).wait()
| `- warning: type 'MongoCursor<IndexModel>' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
192 | return MongoCursor(wrapping: asyncCursor, client: self.client)
193 | }
/host/spi-builder-workspace/Sources/MongoSwift/MongoCursor.swift:35:14: note: generic class 'MongoCursor' does not conform to the 'Sendable' protocol
33 | // sourcery: skipSyncExport
34 | /// A MongoDB cursor.
35 | public class MongoCursor<T: Codable>: CursorProtocol {
| `- note: generic class 'MongoCursor' does not conform to the 'Sendable' protocol
36 | /// The client this cursor descended from.
37 | private let client: MongoClient
/host/spi-builder-workspace/Sources/MongoSwiftSync/MongoCollection+Indexes.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'MongoSwift'
1 | import MongoSwift
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'MongoSwift'
2 |
3 | /// An extension of `MongoCollection` encapsulating index management capabilities.
[572/586] Compiling MongoSwiftSync MongoClient.swift
/host/spi-builder-workspace/Sources/MongoSwiftSync/MongoClient.swift:154:102: warning: type 'DatabaseSpecification' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
152 | session: ClientSession? = nil
153 | ) throws -> [DatabaseSpecification] {
154 | try self.asyncClient.listDatabases(filter, options: options, session: session?.asyncSession).wait()
| `- warning: type 'DatabaseSpecification' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
155 | }
156 |
/host/spi-builder-workspace/Sources/MongoSwift/Operations/ListDatabasesOperation.swift:4:15: note: struct 'DatabaseSpecification' does not conform to the 'Sendable' protocol
2 |
3 | /// A struct modeling the information returned from the `listDatabases` command about a single database.
4 | public struct DatabaseSpecification: Codable {
| `- note: struct 'DatabaseSpecification' does not conform to the 'Sendable' protocol
5 | /// The name of the database.
6 | public let name: String
/host/spi-builder-workspace/Sources/MongoSwiftSync/MongoClient.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'MongoSwift'
1 | import MongoSwift
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'MongoSwift'
2 | import NIO
3 |
/host/spi-builder-workspace/Sources/MongoSwiftSync/MongoClient.swift:336:11: warning: type 'ChangeStream<EventType>' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
334 | session: session?.asyncSession,
335 | withEventType: EventType.self
336 | ).wait()
| `- warning: type 'ChangeStream<EventType>' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
337 |
338 | return ChangeStream(wrapping: asyncStream, client: self)
/host/spi-builder-workspace/Sources/MongoSwift/ChangeStream.swift:63:14: note: generic class 'ChangeStream' does not conform to the 'Sendable' protocol
61 | /// A MongoDB change stream.
62 | /// - SeeAlso: https://docs.mongodb.com/manual/changeStreams/
63 | public class ChangeStream<T: Codable>: CursorProtocol {
| `- note: generic class 'ChangeStream' does not conform to the 'Sendable' protocol
64 | public typealias Element = T
65 |
/host/spi-builder-workspace/Sources/MongoSwiftSync/MongoCollection+ChangeStreams.swift:114:11: warning: type 'ChangeStream<EventType>' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
112 | session: session?.asyncSession,
113 | withEventType: EventType.self
114 | ).wait()
| `- warning: type 'ChangeStream<EventType>' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
115 | return ChangeStream(wrapping: asyncStream, client: self.client)
116 | }
/host/spi-builder-workspace/Sources/MongoSwift/ChangeStream.swift:63:14: note: generic class 'ChangeStream' does not conform to the 'Sendable' protocol
61 | /// A MongoDB change stream.
62 | /// - SeeAlso: https://docs.mongodb.com/manual/changeStreams/
63 | public class ChangeStream<T: Codable>: CursorProtocol {
| `- note: generic class 'ChangeStream' does not conform to the 'Sendable' protocol
64 | public typealias Element = T
65 |
/host/spi-builder-workspace/Sources/MongoSwiftSync/MongoCollection+ChangeStreams.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'MongoSwift'
1 | import MongoSwift
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'MongoSwift'
2 |
3 | extension MongoCollection {
[573/586] Compiling MongoSwiftSync MongoCollection+ChangeStreams.swift
/host/spi-builder-workspace/Sources/MongoSwiftSync/MongoClient.swift:154:102: warning: type 'DatabaseSpecification' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
152 | session: ClientSession? = nil
153 | ) throws -> [DatabaseSpecification] {
154 | try self.asyncClient.listDatabases(filter, options: options, session: session?.asyncSession).wait()
| `- warning: type 'DatabaseSpecification' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
155 | }
156 |
/host/spi-builder-workspace/Sources/MongoSwift/Operations/ListDatabasesOperation.swift:4:15: note: struct 'DatabaseSpecification' does not conform to the 'Sendable' protocol
2 |
3 | /// A struct modeling the information returned from the `listDatabases` command about a single database.
4 | public struct DatabaseSpecification: Codable {
| `- note: struct 'DatabaseSpecification' does not conform to the 'Sendable' protocol
5 | /// The name of the database.
6 | public let name: String
/host/spi-builder-workspace/Sources/MongoSwiftSync/MongoClient.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'MongoSwift'
1 | import MongoSwift
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'MongoSwift'
2 | import NIO
3 |
/host/spi-builder-workspace/Sources/MongoSwiftSync/MongoClient.swift:336:11: warning: type 'ChangeStream<EventType>' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
334 | session: session?.asyncSession,
335 | withEventType: EventType.self
336 | ).wait()
| `- warning: type 'ChangeStream<EventType>' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
337 |
338 | return ChangeStream(wrapping: asyncStream, client: self)
/host/spi-builder-workspace/Sources/MongoSwift/ChangeStream.swift:63:14: note: generic class 'ChangeStream' does not conform to the 'Sendable' protocol
61 | /// A MongoDB change stream.
62 | /// - SeeAlso: https://docs.mongodb.com/manual/changeStreams/
63 | public class ChangeStream<T: Codable>: CursorProtocol {
| `- note: generic class 'ChangeStream' does not conform to the 'Sendable' protocol
64 | public typealias Element = T
65 |
/host/spi-builder-workspace/Sources/MongoSwiftSync/MongoCollection+ChangeStreams.swift:114:11: warning: type 'ChangeStream<EventType>' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
112 | session: session?.asyncSession,
113 | withEventType: EventType.self
114 | ).wait()
| `- warning: type 'ChangeStream<EventType>' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
115 | return ChangeStream(wrapping: asyncStream, client: self.client)
116 | }
/host/spi-builder-workspace/Sources/MongoSwift/ChangeStream.swift:63:14: note: generic class 'ChangeStream' does not conform to the 'Sendable' protocol
61 | /// A MongoDB change stream.
62 | /// - SeeAlso: https://docs.mongodb.com/manual/changeStreams/
63 | public class ChangeStream<T: Codable>: CursorProtocol {
| `- note: generic class 'ChangeStream' does not conform to the 'Sendable' protocol
64 | public typealias Element = T
65 |
/host/spi-builder-workspace/Sources/MongoSwiftSync/MongoCollection+ChangeStreams.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'MongoSwift'
1 | import MongoSwift
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'MongoSwift'
2 |
3 | extension MongoCollection {
[574/586] Compiling MongoSwiftSync ChangeStream.swift
/host/spi-builder-workspace/Sources/MongoSwiftSync/ChangeStream.swift:69:66: warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
3 | /// A MongoDB change stream.
4 | /// - SeeAlso: https://docs.mongodb.com/manual/changeStreams/
5 | public class ChangeStream<T: Codable>: CursorProtocol {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
6 | private let asyncChangeStream: MongoSwift.ChangeStream<T>
7 |
:
67 | public func next() -> Result<T, Error>? {
68 | do {
69 | guard let result = try self.asyncChangeStream.next().wait() else {
| `- warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
70 | return nil
71 | }
/host/spi-builder-workspace/Sources/MongoSwiftSync/ChangeStream.swift:99:69: warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
3 | /// A MongoDB change stream.
4 | /// - SeeAlso: https://docs.mongodb.com/manual/changeStreams/
5 | public class ChangeStream<T: Codable>: CursorProtocol {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
6 | private let asyncChangeStream: MongoSwift.ChangeStream<T>
7 |
:
97 | public func tryNext() -> Result<T, Error>? {
98 | do {
99 | guard let result = try self.asyncChangeStream.tryNext().wait() else {
| `- warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
100 | return nil
101 | }
[575/586] Compiling MongoSwiftSync ClientSession.swift
/host/spi-builder-workspace/Sources/MongoSwiftSync/ChangeStream.swift:69:66: warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
3 | /// A MongoDB change stream.
4 | /// - SeeAlso: https://docs.mongodb.com/manual/changeStreams/
5 | public class ChangeStream<T: Codable>: CursorProtocol {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
6 | private let asyncChangeStream: MongoSwift.ChangeStream<T>
7 |
:
67 | public func next() -> Result<T, Error>? {
68 | do {
69 | guard let result = try self.asyncChangeStream.next().wait() else {
| `- warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
70 | return nil
71 | }
/host/spi-builder-workspace/Sources/MongoSwiftSync/ChangeStream.swift:99:69: warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
3 | /// A MongoDB change stream.
4 | /// - SeeAlso: https://docs.mongodb.com/manual/changeStreams/
5 | public class ChangeStream<T: Codable>: CursorProtocol {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
6 | private let asyncChangeStream: MongoSwift.ChangeStream<T>
7 |
:
97 | public func tryNext() -> Result<T, Error>? {
98 | do {
99 | guard let result = try self.asyncChangeStream.tryNext().wait() else {
| `- warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
100 | return nil
101 | }
[576/586] Compiling MongoSwiftSync MongoCollection+Read.swift
/host/spi-builder-workspace/Sources/MongoSwiftSync/MongoCollection+Read.swift:24:109: warning: type 'MongoCursor<T>' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
22 | session: ClientSession? = nil
23 | ) throws -> MongoCursor<CollectionType> {
24 | let asyncCursor = try self.asyncColl.find(filter, options: options, session: session?.asyncSession).wait()
| `- warning: type 'MongoCursor<T>' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
25 | return MongoCursor(wrapping: asyncCursor, client: self.client)
26 | }
/host/spi-builder-workspace/Sources/MongoSwift/MongoCursor.swift:35:14: note: generic class 'MongoCursor' does not conform to the 'Sendable' protocol
33 | // sourcery: skipSyncExport
34 | /// A MongoDB cursor.
35 | public class MongoCursor<T: Codable>: CursorProtocol {
| `- note: generic class 'MongoCursor' does not conform to the 'Sendable' protocol
36 | /// The client this cursor descended from.
37 | private let client: MongoClient
/host/spi-builder-workspace/Sources/MongoSwiftSync/MongoCollection+Read.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'MongoSwift'
1 | import MongoSwift
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'MongoSwift'
2 |
3 | extension MongoCollection {
/host/spi-builder-workspace/Sources/MongoSwiftSync/MongoCollection+Read.swift:48:94: warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
46 | session: ClientSession? = nil
47 | ) throws -> T? {
48 | try self.asyncColl.findOne(filter, options: options, session: session?.asyncSession).wait()
| `- warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
49 | }
50 |
/host/spi-builder-workspace/Sources/MongoSwiftSync/MongoCollection.swift:4:31: note: consider making generic parameter 'T' conform to the 'Sendable' protocol
2 |
3 | /// A MongoDB collection.
4 | public struct MongoCollection<T: Codable> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
5 | /// Encoder used by this collection for BSON conversions. (e.g. converting `CollectionType`s, indexes, and options
6 | /// to documents).
/host/spi-builder-workspace/Sources/MongoSwiftSync/MongoCollection+Read.swift:102:11: warning: type 'MongoCursor<OutputType>' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
100 | session: session?.asyncSession,
101 | withOutputType: OutputType.self
102 | ).wait()
| `- warning: type 'MongoCursor<OutputType>' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
103 | return MongoCursor(wrapping: asyncCursor, client: self.client)
104 | }
/host/spi-builder-workspace/Sources/MongoSwift/MongoCursor.swift:35:14: note: generic class 'MongoCursor' does not conform to the 'Sendable' protocol
33 | // sourcery: skipSyncExport
34 | /// A MongoDB cursor.
35 | public class MongoCursor<T: Codable>: CursorProtocol {
| `- note: generic class 'MongoCursor' does not conform to the 'Sendable' protocol
36 | /// The client this cursor descended from.
37 | private let client: MongoClient
/host/spi-builder-workspace/Sources/MongoSwiftSync/MongoCollection+Read.swift:168:10: warning: type 'BSON' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
166 | session: session?.asyncSession
167 | )
168 | .wait()
| `- warning: type 'BSON' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
169 | }
170 | }
/host/spi-builder-workspace/.build/checkouts/swift-bson/Sources/SwiftBSON/BSON.swift:6:13: note: enum 'BSON' does not conform to the 'Sendable' protocol
4 | /// Enum representing a BSON value.
5 | /// - SeeAlso: bsonspec.org
6 | public enum BSON {
| `- note: enum 'BSON' does not conform to the 'Sendable' protocol
7 | /// A BSON document.
8 | case document(BSONDocument)
/host/spi-builder-workspace/Sources/MongoSwiftSync/MongoCollection+Write.swift:30:95: warning: type 'InsertOneResult' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
28 | session: ClientSession? = nil
29 | ) throws -> InsertOneResult? {
30 | try self.asyncColl.insertOne(value, options: options, session: session?.asyncSession).wait()
| `- warning: type 'InsertOneResult' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
31 | }
32 |
/host/spi-builder-workspace/Sources/MongoSwift/MongoCollection+Write.swift:452:15: note: struct 'InsertOneResult' does not conform to the 'Sendable' protocol
450 |
451 | /// The result of an `insertOne` command on a `MongoCollection`.
452 | public struct InsertOneResult: Codable {
| `- note: struct 'InsertOneResult' does not conform to the 'Sendable' protocol
453 | /// The identifier that was inserted. If the document doesn't have an identifier, this value
454 | /// will be generated and added to the document before insertion.
/host/spi-builder-workspace/Sources/MongoSwiftSync/MongoCollection+Write.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'MongoSwift'
1 | import MongoSwift
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'MongoSwift'
2 |
3 | /// An extension of `MongoCollection` encapsulating write operations.
/host/spi-builder-workspace/Sources/MongoSwiftSync/MongoCollection+Write.swift:57:97: warning: type 'InsertManyResult' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
55 | session: ClientSession? = nil
56 | ) throws -> InsertManyResult? {
57 | try self.asyncColl.insertMany(values, options: options, session: session?.asyncSession).wait()
| `- warning: type 'InsertManyResult' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
58 | }
59 |
/host/spi-builder-workspace/Sources/MongoSwift/MongoCollection+Write.swift:473:15: note: struct 'InsertManyResult' does not conform to the 'Sendable' protocol
471 |
472 | /// The result of a multi-document insert operation on a `MongoCollection`.
473 | public struct InsertManyResult: Codable {
| `- note: struct 'InsertManyResult' does not conform to the 'Sendable' protocol
474 | /// Number of documents inserted.
475 | public let insertedCount: Int
/host/spi-builder-workspace/Sources/MongoSwiftSync/MongoCollection+Write.swift:92:10: warning: type 'UpdateResult' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
90 | session: session?.asyncSession
91 | )
92 | .wait()
| `- warning: type 'UpdateResult' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
93 | }
94 |
/host/spi-builder-workspace/Sources/MongoSwift/MongoCollection+Write.swift:508:15: note: struct 'UpdateResult' does not conform to the 'Sendable' protocol
506 |
507 | /// The result of an `update` operation on a `MongoCollection`.
508 | public struct UpdateResult: Codable {
| `- note: struct 'UpdateResult' does not conform to the 'Sendable' protocol
509 | /// The number of documents that matched the filter.
510 | public let matchedCount: Int
/host/spi-builder-workspace/Sources/MongoSwiftSync/MongoCollection+Write.swift:127:10: warning: type 'UpdateResult' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
125 | session: session?.asyncSession
126 | )
127 | .wait()
| `- warning: type 'UpdateResult' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
128 | }
129 |
/host/spi-builder-workspace/Sources/MongoSwift/MongoCollection+Write.swift:508:15: note: struct 'UpdateResult' does not conform to the 'Sendable' protocol
506 |
507 | /// The result of an `update` operation on a `MongoCollection`.
508 | public struct UpdateResult: Codable {
| `- note: struct 'UpdateResult' does not conform to the 'Sendable' protocol
509 | /// The number of documents that matched the filter.
510 | public let matchedCount: Int
/host/spi-builder-workspace/Sources/MongoSwiftSync/MongoCollection+Write.swift:162:10: warning: type 'UpdateResult' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
160 | session: session?.asyncSession
161 | )
162 | .wait()
| `- warning: type 'UpdateResult' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
163 | }
164 |
/host/spi-builder-workspace/Sources/MongoSwift/MongoCollection+Write.swift:508:15: note: struct 'UpdateResult' does not conform to the 'Sendable' protocol
506 |
507 | /// The result of an `update` operation on a `MongoCollection`.
508 | public struct UpdateResult: Codable {
| `- note: struct 'UpdateResult' does not conform to the 'Sendable' protocol
509 | /// The number of documents that matched the filter.
510 | public let matchedCount: Int
/host/spi-builder-workspace/Sources/MongoSwiftSync/MongoCollection+Write.swift:197:10: warning: type 'UpdateResult' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
195 | session: session?.asyncSession
196 | )
197 | .wait()
| `- warning: type 'UpdateResult' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
198 | }
199 |
/host/spi-builder-workspace/Sources/MongoSwift/MongoCollection+Write.swift:508:15: note: struct 'UpdateResult' does not conform to the 'Sendable' protocol
506 |
507 | /// The result of an `update` operation on a `MongoCollection`.
508 | public struct UpdateResult: Codable {
| `- note: struct 'UpdateResult' does not conform to the 'Sendable' protocol
509 | /// The number of documents that matched the filter.
510 | public let matchedCount: Int
/host/spi-builder-workspace/Sources/MongoSwiftSync/MongoCollection+Write.swift:232:10: warning: type 'UpdateResult' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
230 | session: session?.asyncSession
231 | )
232 | .wait()
| `- warning: type 'UpdateResult' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
233 | }
234 |
/host/spi-builder-workspace/Sources/MongoSwift/MongoCollection+Write.swift:508:15: note: struct 'UpdateResult' does not conform to the 'Sendable' protocol
506 |
507 | /// The result of an `update` operation on a `MongoCollection`.
508 | public struct UpdateResult: Codable {
| `- note: struct 'UpdateResult' does not conform to the 'Sendable' protocol
509 | /// The number of documents that matched the filter.
510 | public let matchedCount: Int
/host/spi-builder-workspace/Sources/MongoSwiftSync/MongoCollection+Write.swift:259:96: warning: type 'DeleteResult' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
257 | session: ClientSession? = nil
258 | ) throws -> DeleteResult? {
259 | try self.asyncColl.deleteOne(filter, options: options, session: session?.asyncSession).wait()
| `- warning: type 'DeleteResult' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
260 | }
261 |
/host/spi-builder-workspace/Sources/MongoSwift/MongoCollection+Write.swift:495:15: note: struct 'DeleteResult' does not conform to the 'Sendable' protocol
493 |
494 | /// The result of a `delete` command on a `MongoCollection`.
495 | public struct DeleteResult: Codable {
| `- note: struct 'DeleteResult' does not conform to the 'Sendable' protocol
496 | /// The number of documents that were deleted.
497 | public let deletedCount: Int
/host/spi-builder-workspace/Sources/MongoSwiftSync/MongoCollection+Write.swift:286:97: warning: type 'DeleteResult' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
284 | session: ClientSession? = nil
285 | ) throws -> DeleteResult? {
286 | try self.asyncColl.deleteMany(filter, options: options, session: session?.asyncSession).wait()
| `- warning: type 'DeleteResult' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
287 | }
288 |
/host/spi-builder-workspace/Sources/MongoSwift/MongoCollection+Write.swift:495:15: note: struct 'DeleteResult' does not conform to the 'Sendable' protocol
493 |
494 | /// The result of a `delete` command on a `MongoCollection`.
495 | public struct DeleteResult: Codable {
| `- note: struct 'DeleteResult' does not conform to the 'Sendable' protocol
496 | /// The number of documents that were deleted.
497 | public let deletedCount: Int
/host/spi-builder-workspace/Sources/MongoSwiftSync/MongoCollection+Write.swift:312:98: warning: type 'BulkWriteResult' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
310 | session: ClientSession? = nil
311 | ) throws -> BulkWriteResult? {
312 | try self.asyncColl.bulkWrite(requests, options: options, session: session?.asyncSession).wait()
| `- warning: type 'BulkWriteResult' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
313 | }
314 | }
/host/spi-builder-workspace/Sources/MongoSwift/MongoCollection+BulkWrite.swift:354:15: note: struct 'BulkWriteResult' does not conform to the 'Sendable' protocol
352 |
353 | /// The result of a bulk write operation on a `MongoCollection`.
354 | public struct BulkWriteResult: Codable {
| `- note: struct 'BulkWriteResult' does not conform to the 'Sendable' protocol
355 | /// Number of documents deleted.
356 | public let deletedCount: Int
[577/586] Compiling MongoSwiftSync MongoCollection+Write.swift
/host/spi-builder-workspace/Sources/MongoSwiftSync/MongoCollection+Read.swift:24:109: warning: type 'MongoCursor<T>' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
22 | session: ClientSession? = nil
23 | ) throws -> MongoCursor<CollectionType> {
24 | let asyncCursor = try self.asyncColl.find(filter, options: options, session: session?.asyncSession).wait()
| `- warning: type 'MongoCursor<T>' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
25 | return MongoCursor(wrapping: asyncCursor, client: self.client)
26 | }
/host/spi-builder-workspace/Sources/MongoSwift/MongoCursor.swift:35:14: note: generic class 'MongoCursor' does not conform to the 'Sendable' protocol
33 | // sourcery: skipSyncExport
34 | /// A MongoDB cursor.
35 | public class MongoCursor<T: Codable>: CursorProtocol {
| `- note: generic class 'MongoCursor' does not conform to the 'Sendable' protocol
36 | /// The client this cursor descended from.
37 | private let client: MongoClient
/host/spi-builder-workspace/Sources/MongoSwiftSync/MongoCollection+Read.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'MongoSwift'
1 | import MongoSwift
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'MongoSwift'
2 |
3 | extension MongoCollection {
/host/spi-builder-workspace/Sources/MongoSwiftSync/MongoCollection+Read.swift:48:94: warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
46 | session: ClientSession? = nil
47 | ) throws -> T? {
48 | try self.asyncColl.findOne(filter, options: options, session: session?.asyncSession).wait()
| `- warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
49 | }
50 |
/host/spi-builder-workspace/Sources/MongoSwiftSync/MongoCollection.swift:4:31: note: consider making generic parameter 'T' conform to the 'Sendable' protocol
2 |
3 | /// A MongoDB collection.
4 | public struct MongoCollection<T: Codable> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
5 | /// Encoder used by this collection for BSON conversions. (e.g. converting `CollectionType`s, indexes, and options
6 | /// to documents).
/host/spi-builder-workspace/Sources/MongoSwiftSync/MongoCollection+Read.swift:102:11: warning: type 'MongoCursor<OutputType>' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
100 | session: session?.asyncSession,
101 | withOutputType: OutputType.self
102 | ).wait()
| `- warning: type 'MongoCursor<OutputType>' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
103 | return MongoCursor(wrapping: asyncCursor, client: self.client)
104 | }
/host/spi-builder-workspace/Sources/MongoSwift/MongoCursor.swift:35:14: note: generic class 'MongoCursor' does not conform to the 'Sendable' protocol
33 | // sourcery: skipSyncExport
34 | /// A MongoDB cursor.
35 | public class MongoCursor<T: Codable>: CursorProtocol {
| `- note: generic class 'MongoCursor' does not conform to the 'Sendable' protocol
36 | /// The client this cursor descended from.
37 | private let client: MongoClient
/host/spi-builder-workspace/Sources/MongoSwiftSync/MongoCollection+Read.swift:168:10: warning: type 'BSON' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
166 | session: session?.asyncSession
167 | )
168 | .wait()
| `- warning: type 'BSON' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
169 | }
170 | }
/host/spi-builder-workspace/.build/checkouts/swift-bson/Sources/SwiftBSON/BSON.swift:6:13: note: enum 'BSON' does not conform to the 'Sendable' protocol
4 | /// Enum representing a BSON value.
5 | /// - SeeAlso: bsonspec.org
6 | public enum BSON {
| `- note: enum 'BSON' does not conform to the 'Sendable' protocol
7 | /// A BSON document.
8 | case document(BSONDocument)
/host/spi-builder-workspace/Sources/MongoSwiftSync/MongoCollection+Write.swift:30:95: warning: type 'InsertOneResult' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
28 | session: ClientSession? = nil
29 | ) throws -> InsertOneResult? {
30 | try self.asyncColl.insertOne(value, options: options, session: session?.asyncSession).wait()
| `- warning: type 'InsertOneResult' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
31 | }
32 |
/host/spi-builder-workspace/Sources/MongoSwift/MongoCollection+Write.swift:452:15: note: struct 'InsertOneResult' does not conform to the 'Sendable' protocol
450 |
451 | /// The result of an `insertOne` command on a `MongoCollection`.
452 | public struct InsertOneResult: Codable {
| `- note: struct 'InsertOneResult' does not conform to the 'Sendable' protocol
453 | /// The identifier that was inserted. If the document doesn't have an identifier, this value
454 | /// will be generated and added to the document before insertion.
/host/spi-builder-workspace/Sources/MongoSwiftSync/MongoCollection+Write.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'MongoSwift'
1 | import MongoSwift
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'MongoSwift'
2 |
3 | /// An extension of `MongoCollection` encapsulating write operations.
/host/spi-builder-workspace/Sources/MongoSwiftSync/MongoCollection+Write.swift:57:97: warning: type 'InsertManyResult' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
55 | session: ClientSession? = nil
56 | ) throws -> InsertManyResult? {
57 | try self.asyncColl.insertMany(values, options: options, session: session?.asyncSession).wait()
| `- warning: type 'InsertManyResult' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
58 | }
59 |
/host/spi-builder-workspace/Sources/MongoSwift/MongoCollection+Write.swift:473:15: note: struct 'InsertManyResult' does not conform to the 'Sendable' protocol
471 |
472 | /// The result of a multi-document insert operation on a `MongoCollection`.
473 | public struct InsertManyResult: Codable {
| `- note: struct 'InsertManyResult' does not conform to the 'Sendable' protocol
474 | /// Number of documents inserted.
475 | public let insertedCount: Int
/host/spi-builder-workspace/Sources/MongoSwiftSync/MongoCollection+Write.swift:92:10: warning: type 'UpdateResult' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
90 | session: session?.asyncSession
91 | )
92 | .wait()
| `- warning: type 'UpdateResult' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
93 | }
94 |
/host/spi-builder-workspace/Sources/MongoSwift/MongoCollection+Write.swift:508:15: note: struct 'UpdateResult' does not conform to the 'Sendable' protocol
506 |
507 | /// The result of an `update` operation on a `MongoCollection`.
508 | public struct UpdateResult: Codable {
| `- note: struct 'UpdateResult' does not conform to the 'Sendable' protocol
509 | /// The number of documents that matched the filter.
510 | public let matchedCount: Int
/host/spi-builder-workspace/Sources/MongoSwiftSync/MongoCollection+Write.swift:127:10: warning: type 'UpdateResult' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
125 | session: session?.asyncSession
126 | )
127 | .wait()
| `- warning: type 'UpdateResult' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
128 | }
129 |
/host/spi-builder-workspace/Sources/MongoSwift/MongoCollection+Write.swift:508:15: note: struct 'UpdateResult' does not conform to the 'Sendable' protocol
506 |
507 | /// The result of an `update` operation on a `MongoCollection`.
508 | public struct UpdateResult: Codable {
| `- note: struct 'UpdateResult' does not conform to the 'Sendable' protocol
509 | /// The number of documents that matched the filter.
510 | public let matchedCount: Int
/host/spi-builder-workspace/Sources/MongoSwiftSync/MongoCollection+Write.swift:162:10: warning: type 'UpdateResult' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
160 | session: session?.asyncSession
161 | )
162 | .wait()
| `- warning: type 'UpdateResult' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
163 | }
164 |
/host/spi-builder-workspace/Sources/MongoSwift/MongoCollection+Write.swift:508:15: note: struct 'UpdateResult' does not conform to the 'Sendable' protocol
506 |
507 | /// The result of an `update` operation on a `MongoCollection`.
508 | public struct UpdateResult: Codable {
| `- note: struct 'UpdateResult' does not conform to the 'Sendable' protocol
509 | /// The number of documents that matched the filter.
510 | public let matchedCount: Int
/host/spi-builder-workspace/Sources/MongoSwiftSync/MongoCollection+Write.swift:197:10: warning: type 'UpdateResult' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
195 | session: session?.asyncSession
196 | )
197 | .wait()
| `- warning: type 'UpdateResult' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
198 | }
199 |
/host/spi-builder-workspace/Sources/MongoSwift/MongoCollection+Write.swift:508:15: note: struct 'UpdateResult' does not conform to the 'Sendable' protocol
506 |
507 | /// The result of an `update` operation on a `MongoCollection`.
508 | public struct UpdateResult: Codable {
| `- note: struct 'UpdateResult' does not conform to the 'Sendable' protocol
509 | /// The number of documents that matched the filter.
510 | public let matchedCount: Int
/host/spi-builder-workspace/Sources/MongoSwiftSync/MongoCollection+Write.swift:232:10: warning: type 'UpdateResult' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
230 | session: session?.asyncSession
231 | )
232 | .wait()
| `- warning: type 'UpdateResult' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
233 | }
234 |
/host/spi-builder-workspace/Sources/MongoSwift/MongoCollection+Write.swift:508:15: note: struct 'UpdateResult' does not conform to the 'Sendable' protocol
506 |
507 | /// The result of an `update` operation on a `MongoCollection`.
508 | public struct UpdateResult: Codable {
| `- note: struct 'UpdateResult' does not conform to the 'Sendable' protocol
509 | /// The number of documents that matched the filter.
510 | public let matchedCount: Int
/host/spi-builder-workspace/Sources/MongoSwiftSync/MongoCollection+Write.swift:259:96: warning: type 'DeleteResult' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
257 | session: ClientSession? = nil
258 | ) throws -> DeleteResult? {
259 | try self.asyncColl.deleteOne(filter, options: options, session: session?.asyncSession).wait()
| `- warning: type 'DeleteResult' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
260 | }
261 |
/host/spi-builder-workspace/Sources/MongoSwift/MongoCollection+Write.swift:495:15: note: struct 'DeleteResult' does not conform to the 'Sendable' protocol
493 |
494 | /// The result of a `delete` command on a `MongoCollection`.
495 | public struct DeleteResult: Codable {
| `- note: struct 'DeleteResult' does not conform to the 'Sendable' protocol
496 | /// The number of documents that were deleted.
497 | public let deletedCount: Int
/host/spi-builder-workspace/Sources/MongoSwiftSync/MongoCollection+Write.swift:286:97: warning: type 'DeleteResult' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
284 | session: ClientSession? = nil
285 | ) throws -> DeleteResult? {
286 | try self.asyncColl.deleteMany(filter, options: options, session: session?.asyncSession).wait()
| `- warning: type 'DeleteResult' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
287 | }
288 |
/host/spi-builder-workspace/Sources/MongoSwift/MongoCollection+Write.swift:495:15: note: struct 'DeleteResult' does not conform to the 'Sendable' protocol
493 |
494 | /// The result of a `delete` command on a `MongoCollection`.
495 | public struct DeleteResult: Codable {
| `- note: struct 'DeleteResult' does not conform to the 'Sendable' protocol
496 | /// The number of documents that were deleted.
497 | public let deletedCount: Int
/host/spi-builder-workspace/Sources/MongoSwiftSync/MongoCollection+Write.swift:312:98: warning: type 'BulkWriteResult' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
310 | session: ClientSession? = nil
311 | ) throws -> BulkWriteResult? {
312 | try self.asyncColl.bulkWrite(requests, options: options, session: session?.asyncSession).wait()
| `- warning: type 'BulkWriteResult' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
313 | }
314 | }
/host/spi-builder-workspace/Sources/MongoSwift/MongoCollection+BulkWrite.swift:354:15: note: struct 'BulkWriteResult' does not conform to the 'Sendable' protocol
352 |
353 | /// The result of a bulk write operation on a `MongoCollection`.
354 | public struct BulkWriteResult: Codable {
| `- note: struct 'BulkWriteResult' does not conform to the 'Sendable' protocol
355 | /// Number of documents deleted.
356 | public let deletedCount: Int
[578/586] Compiling TestsCommon CommonTestUtils.swift
/host/spi-builder-workspace/Sources/TestsCommon/CommonTestUtils.swift:267:23: warning: static property 'failCommandSupport' is not concurrency-safe because non-'Sendable' type '[TestRequirement]' may have shared mutable state; this is an error in the Swift 6 language mode
235 |
236 | /// Struct representing conditions that a deployment must meet in order for a test file to be run.
237 | public struct TestRequirement: Decodable {
| `- note: consider making struct 'TestRequirement' conform to the 'Sendable' protocol
238 | public enum ServerlessRequirement: String, Decodable {
239 | case require
:
265 | private let auth: Bool?
266 |
267 | public static let failCommandSupport: [TestRequirement] = [
| |- warning: static property 'failCommandSupport' is not concurrency-safe because non-'Sendable' type '[TestRequirement]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'failCommandSupport' 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
268 | TestRequirement(
269 | minServerVersion: ServerVersion.mongodFailCommandSupport,
/host/spi-builder-workspace/Sources/TestsCommon/ServerVersion.swift:5:23: warning: static property 'mongodFailCommandSupport' is not concurrency-safe because non-'Sendable' type 'ServerVersion' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | /// A struct representing a server version.
4 | public struct ServerVersion: Comparable, Decodable, CustomStringConvertible {
| `- note: consider making struct 'ServerVersion' conform to the 'Sendable' protocol
5 | public static let mongodFailCommandSupport = ServerVersion(major: 4, minor: 0)
| |- warning: static property 'mongodFailCommandSupport' is not concurrency-safe because non-'Sendable' type 'ServerVersion' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'mongodFailCommandSupport' 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
6 | public static let mongosFailCommandSupport = ServerVersion(major: 4, minor: 1, patch: 5)
7 | public static let mongodBlockTimeSupport = ServerVersion(major: 4, minor: 2, patch: 9)
/host/spi-builder-workspace/Sources/TestsCommon/ServerVersion.swift:6:23: warning: static property 'mongosFailCommandSupport' is not concurrency-safe because non-'Sendable' type 'ServerVersion' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | /// A struct representing a server version.
4 | public struct ServerVersion: Comparable, Decodable, CustomStringConvertible {
| `- note: consider making struct 'ServerVersion' conform to the 'Sendable' protocol
5 | public static let mongodFailCommandSupport = ServerVersion(major: 4, minor: 0)
6 | public static let mongosFailCommandSupport = ServerVersion(major: 4, minor: 1, patch: 5)
| |- warning: static property 'mongosFailCommandSupport' is not concurrency-safe because non-'Sendable' type 'ServerVersion' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'mongosFailCommandSupport' 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
7 | public static let mongodBlockTimeSupport = ServerVersion(major: 4, minor: 2, patch: 9)
8 |
/host/spi-builder-workspace/Sources/TestsCommon/CommonTestUtils.swift:278:23: warning: static property 'blockTimeSupport' is not concurrency-safe because non-'Sendable' type '[TestRequirement]' may have shared mutable state; this is an error in the Swift 6 language mode
235 |
236 | /// Struct representing conditions that a deployment must meet in order for a test file to be run.
237 | public struct TestRequirement: Decodable {
| `- note: consider making struct 'TestRequirement' conform to the 'Sendable' protocol
238 | public enum ServerlessRequirement: String, Decodable {
239 | case require
:
276 | ]
277 |
278 | public static let blockTimeSupport: [TestRequirement] = [
| |- warning: static property 'blockTimeSupport' is not concurrency-safe because non-'Sendable' type '[TestRequirement]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'blockTimeSupport' 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
279 | TestRequirement(
280 | minServerVersion: ServerVersion.mongodBlockTimeSupport
/host/spi-builder-workspace/Sources/TestsCommon/ServerVersion.swift:7:23: warning: static property 'mongodBlockTimeSupport' is not concurrency-safe because non-'Sendable' type 'ServerVersion' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | /// A struct representing a server version.
4 | public struct ServerVersion: Comparable, Decodable, CustomStringConvertible {
| `- note: consider making struct 'ServerVersion' conform to the 'Sendable' protocol
5 | public static let mongodFailCommandSupport = ServerVersion(major: 4, minor: 0)
6 | public static let mongosFailCommandSupport = ServerVersion(major: 4, minor: 1, patch: 5)
7 | public static let mongodBlockTimeSupport = ServerVersion(major: 4, minor: 2, patch: 9)
| |- warning: static property 'mongodBlockTimeSupport' is not concurrency-safe because non-'Sendable' type 'ServerVersion' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'mongodBlockTimeSupport' 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
8 |
9 | let major: Int
/host/spi-builder-workspace/Sources/TestsCommon/CommonTestUtils.swift:284:23: warning: static property 'changeStreamOnCollectionSupport' is not concurrency-safe because non-'Sendable' type 'TestRequirement' may have shared mutable state; this is an error in the Swift 6 language mode
235 |
236 | /// Struct representing conditions that a deployment must meet in order for a test file to be run.
237 | public struct TestRequirement: Decodable {
| `- note: consider making struct 'TestRequirement' conform to the 'Sendable' protocol
238 | public enum ServerlessRequirement: String, Decodable {
239 | case require
:
282 | ]
283 |
284 | public static let changeStreamOnCollectionSupport = TestRequirement(
| |- warning: static property 'changeStreamOnCollectionSupport' is not concurrency-safe because non-'Sendable' type 'TestRequirement' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'changeStreamOnCollectionSupport' 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
285 | acceptableTopologies: [.replicaSet, .sharded, .shardedReplicaSet, .loadBalanced]
286 | )
/host/spi-builder-workspace/Sources/TestsCommon/CommonTestUtils.swift:288:23: warning: static property 'changeStreamOnDBOrClientSupport' is not concurrency-safe because non-'Sendable' type 'TestRequirement' may have shared mutable state; this is an error in the Swift 6 language mode
235 |
236 | /// Struct representing conditions that a deployment must meet in order for a test file to be run.
237 | public struct TestRequirement: Decodable {
| `- note: consider making struct 'TestRequirement' conform to the 'Sendable' protocol
238 | public enum ServerlessRequirement: String, Decodable {
239 | case require
:
286 | )
287 |
288 | public static let changeStreamOnDBOrClientSupport = TestRequirement(
| |- warning: static property 'changeStreamOnDBOrClientSupport' is not concurrency-safe because non-'Sendable' type 'TestRequirement' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'changeStreamOnDBOrClientSupport' 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
289 | minServerVersion: ServerVersion(major: 4, minor: 0, patch: 0),
290 | acceptableTopologies: [.replicaSet, .sharded, .shardedReplicaSet, .loadBalanced]
/host/spi-builder-workspace/Sources/TestsCommon/CommonTestUtils.swift:293:23: warning: static property 'transactionsSupport' is not concurrency-safe because non-'Sendable' type '[TestRequirement]' may have shared mutable state; this is an error in the Swift 6 language mode
235 |
236 | /// Struct representing conditions that a deployment must meet in order for a test file to be run.
237 | public struct TestRequirement: Decodable {
| `- note: consider making struct 'TestRequirement' conform to the 'Sendable' protocol
238 | public enum ServerlessRequirement: String, Decodable {
239 | case require
:
291 | )
292 |
293 | public static let transactionsSupport = [
| |- warning: static property 'transactionsSupport' is not concurrency-safe because non-'Sendable' type '[TestRequirement]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'transactionsSupport' 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
294 | TestRequirement(
295 | minServerVersion: ServerVersion(major: 4, minor: 0, patch: 0),
/host/spi-builder-workspace/Sources/TestsCommon/CommonTestUtils.swift:445:53: error: 'Predicate' is ambiguous for type lookup in this context
443 | // Adds a custom "cleanEqual" predicate that compares two JSON strings for equality after normalizing
444 | // them with the "clean" function
445 | public func cleanEqual(_ expectedValue: String?) -> Predicate<String> {
| `- error: 'Predicate' is ambiguous for type lookup in this context
446 | Predicate.define("cleanEqual <\(stringify(expectedValue))>") { actualExpression, msg in
447 | let actualValue = try actualExpression.evaluate()
/host/spi-builder-workspace/.build/checkouts/Nimble/Sources/Nimble/Matchers/Predicate.swift:20:15: note: found this candidate
18 | /// predicates are simple wrappers around closures to provide static type information and
19 | /// allow composition and wrapping of existing behaviors.
20 | public struct Predicate<T> {
| `- note: found this candidate
21 | fileprivate var matcher: (Expression<T>) throws -> PredicateResult
22 |
FoundationEssentials.Predicate:2:15: note: found this candidate
1 | @available(macOS 14, iOS 17, tvOS 17, watchOS 10, *)
2 | public struct Predicate<each Input> : Sendable {
| `- note: found this candidate
3 | public let expression: any StandardPredicateExpression<Bool>
4 | public let variable: (repeat PredicateExpressions.Variable<each Input>)
/host/spi-builder-workspace/Sources/TestsCommon/CommonTestUtils.swift:464:69: error: 'Predicate' is ambiguous for type lookup in this context
462 | // Adds a custom "sortedEqual" predicate that compares two `Document`s and returns true if they
463 | // have the same key/value pairs in them
464 | public func sortedEqual<T: SortedEquatable>(_ expectedValue: T?) -> Predicate<T> {
| `- error: 'Predicate' is ambiguous for type lookup in this context
465 | Predicate.define("sortedEqual <\(stringify(expectedValue))>") { actualExpression, msg in
466 | let actualValue = try actualExpression.evaluate()
/host/spi-builder-workspace/.build/checkouts/Nimble/Sources/Nimble/Matchers/Predicate.swift:20:15: note: found this candidate
18 | /// predicates are simple wrappers around closures to provide static type information and
19 | /// allow composition and wrapping of existing behaviors.
20 | public struct Predicate<T> {
| `- note: found this candidate
21 | fileprivate var matcher: (Expression<T>) throws -> PredicateResult
22 |
FoundationEssentials.Predicate:2:15: note: found this candidate
1 | @available(macOS 14, iOS 17, tvOS 17, watchOS 10, *)
2 | public struct Predicate<each Input> : Sendable {
| `- note: found this candidate
3 | public let expression: any StandardPredicateExpression<Bool>
4 | public let variable: (repeat PredicateExpressions.Variable<each Input>)
/host/spi-builder-workspace/Sources/TestsCommon/CommonTestUtils.swift:556:1: warning: extension declares a conformance of imported type 'ServerAddress' to imported protocol 'Decodable'; this will not behave correctly if the owners of 'MongoSwift' introduce this conformance in the future
554 |
555 | /// Makes `ServerAddress` `Decodable` for the sake of constructing it from spec test files.
556 | extension ServerAddress: Decodable {
| |- warning: extension declares a conformance of imported type 'ServerAddress' to imported protocol 'Decodable'; this will not behave correctly if the owners of 'MongoSwift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
557 | public init(from decoder: Decoder) throws {
558 | let container = try decoder.singleValueContainer()
[579/586] Compiling MongoSwiftSync MongoDatabase.swift
/host/spi-builder-workspace/Sources/MongoSwiftSync/MongoDatabase.swift:144:10: warning: type 'MongoCollection<T>' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
142 | session: session?.asyncSession
143 | )
144 | .wait()
| `- warning: type 'MongoCollection<T>' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
145 | return MongoCollection(client: self.client, asyncCollection: asyncColl)
146 | }
/host/spi-builder-workspace/Sources/MongoSwift/MongoCollection.swift:17:15: note: generic struct 'MongoCollection' does not conform to the 'Sendable' protocol
15 | // sourcery: skipSyncExport
16 | /// A MongoDB collection.
17 | public struct MongoCollection<T: Codable> {
| `- note: generic struct 'MongoCollection' does not conform to the 'Sendable' protocol
18 | /// The client which this collection was derived from.
19 | internal let _client: MongoClient
/host/spi-builder-workspace/Sources/MongoSwiftSync/MongoDatabase.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'MongoSwift'
1 | import MongoSwift
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'MongoSwift'
2 |
3 | /// A MongoDB Database.
/host/spi-builder-workspace/Sources/MongoSwiftSync/MongoDatabase.swift:168:104: warning: type 'MongoCursor<CollectionSpecification>' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
166 | ) throws -> MongoCursor<CollectionSpecification> {
167 | let asyncCursor =
168 | try self.asyncDB.listCollections(filter, options: options, session: session?.asyncSession).wait()
| `- warning: type 'MongoCursor<CollectionSpecification>' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
169 | return MongoCursor(wrapping: asyncCursor, client: self.client)
170 | }
/host/spi-builder-workspace/Sources/MongoSwift/MongoCursor.swift:35:14: note: generic class 'MongoCursor' does not conform to the 'Sendable' protocol
33 | // sourcery: skipSyncExport
34 | /// A MongoDB cursor.
35 | public class MongoCursor<T: Codable>: CursorProtocol {
| `- note: generic class 'MongoCursor' does not conform to the 'Sendable' protocol
36 | /// The client this cursor descended from.
37 | private let client: MongoClient
/host/spi-builder-workspace/Sources/MongoSwiftSync/MongoDatabase.swift:244:96: warning: type 'BSONDocument' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
242 | session: ClientSession? = nil
243 | ) throws -> BSONDocument {
244 | try self.asyncDB.runCommand(command, options: options, session: session?.asyncSession).wait()
| `- warning: type 'BSONDocument' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
245 | }
246 |
/host/spi-builder-workspace/.build/checkouts/swift-bson/Sources/SwiftBSON/BSONDocument.swift:14:15: note: struct 'BSONDocument' does not conform to the 'Sendable' protocol
12 | /// A struct representing the BSON document type.
13 | @dynamicMemberLookup
14 | public struct BSONDocument {
| `- note: struct 'BSONDocument' does not conform to the 'Sendable' protocol
15 | /// The element type of a document: a tuple containing an individual key-value pair.
16 | public typealias KeyValuePair = (key: String, value: BSON)
/host/spi-builder-workspace/Sources/MongoSwiftSync/MongoDatabase.swift:361:11: warning: type 'ChangeStream<EventType>' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
359 | session: session?.asyncSession,
360 | withEventType: EventType.self
361 | ).wait()
| `- warning: type 'ChangeStream<EventType>' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
362 | return ChangeStream(wrapping: asyncStream, client: self.client)
363 | }
/host/spi-builder-workspace/Sources/MongoSwift/ChangeStream.swift:63:14: note: generic class 'ChangeStream' does not conform to the 'Sendable' protocol
61 | /// A MongoDB change stream.
62 | /// - SeeAlso: https://docs.mongodb.com/manual/changeStreams/
63 | public class ChangeStream<T: Codable>: CursorProtocol {
| `- note: generic class 'ChangeStream' does not conform to the 'Sendable' protocol
64 | public typealias Element = T
65 |
/host/spi-builder-workspace/Sources/MongoSwiftSync/MongoDatabase.swift:429:11: warning: type 'MongoCursor<OutputType>' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
427 | session: session?.asyncSession,
428 | withOutputType: withOutputType
429 | ).wait()
| `- warning: type 'MongoCursor<OutputType>' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
430 | return MongoCursor(wrapping: asyncCursor, client: self.client)
431 | }
/host/spi-builder-workspace/Sources/MongoSwift/MongoCursor.swift:35:14: note: generic class 'MongoCursor' does not conform to the 'Sendable' protocol
33 | // sourcery: skipSyncExport
34 | /// A MongoDB cursor.
35 | public class MongoCursor<T: Codable>: CursorProtocol {
| `- note: generic class 'MongoCursor' does not conform to the 'Sendable' protocol
36 | /// The client this cursor descended from.
37 | private let client: MongoClient
error: emit-module command failed with exit code 1 (use -v to see invocation)
[580/587] Compiling TestsCommon APMUtils.swift
/host/spi-builder-workspace/Sources/TestsCommon/APMUtils.swift:11:23: warning: 'Lock' is deprecated: renamed to 'NIOLock'
9 | private var events: [CommandEvent]
10 | // Lock over monitoring and events.
11 | private var lock: Lock
| |- warning: 'Lock' is deprecated: renamed to 'NIOLock'
| `- note: use 'NIOLock' instead
12 |
13 | public init() {
/host/spi-builder-workspace/Sources/TestsCommon/APMUtils.swift:16:21: warning: 'Lock' is deprecated: renamed to 'NIOLock'
14 | self.events = []
15 | self.monitoring = false
16 | self.lock = Lock()
| |- warning: 'Lock' is deprecated: renamed to 'NIOLock'
| `- note: use 'NIOLock' instead
17 | }
18 |
[581/587] Compiling TestsCommon CodableExtensions.swift
/host/spi-builder-workspace/Sources/TestsCommon/CodableExtensions.swift:27:1: warning: extension declares a conformance of imported type 'MongoDatabaseOptions' to imported protocol 'Decodable'; this will not behave correctly if the owners of 'MongoSwift' introduce this conformance in the future
25 | }
26 |
27 | extension MongoDatabaseOptions: StrictDecodable {
| |- warning: extension declares a conformance of imported type 'MongoDatabaseOptions' to imported protocol 'Decodable'; this will not behave correctly if the owners of 'MongoSwift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
28 | internal typealias CodingKeysType = CodingKeys
29 |
/host/spi-builder-workspace/Sources/TestsCommon/CodableExtensions.swift:45:1: warning: extension declares a conformance of imported type 'MongoCollectionOptions' to imported protocol 'Decodable'; this will not behave correctly if the owners of 'MongoSwift' introduce this conformance in the future
43 | }
44 |
45 | extension MongoCollectionOptions: StrictDecodable {
| |- warning: extension declares a conformance of imported type 'MongoCollectionOptions' to imported protocol 'Decodable'; this will not behave correctly if the owners of 'MongoSwift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
46 | internal typealias CodingKeysType = CodingKeys
47 |
/host/spi-builder-workspace/Sources/TestsCommon/CodableExtensions.swift:63:1: warning: extension declares a conformance of imported type 'ClientSessionOptions' to imported protocol 'Decodable'; this will not behave correctly if the owners of 'MongoSwift' introduce this conformance in the future
61 | }
62 |
63 | extension ClientSessionOptions: StrictDecodable {
| |- warning: extension declares a conformance of imported type 'ClientSessionOptions' to imported protocol 'Decodable'; this will not behave correctly if the owners of 'MongoSwift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
64 | internal typealias CodingKeysType = CodingKeys
65 |
/host/spi-builder-workspace/Sources/TestsCommon/CodableExtensions.swift:88:1: warning: extension declares a conformance of imported type 'TransactionOptions' to imported protocol 'Decodable'; this will not behave correctly if the owners of 'MongoSwift' introduce this conformance in the future
86 | }
87 |
88 | extension TransactionOptions: StrictDecodable {
| |- warning: extension declares a conformance of imported type 'TransactionOptions' to imported protocol 'Decodable'; this will not behave correctly if the owners of 'MongoSwift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
89 | internal typealias CodingKeysType = CodingKeys
90 |
/host/spi-builder-workspace/Sources/TestsCommon/CodableExtensions.swift:112:1: warning: extension declares a conformance of imported type 'MongoClientOptions' to imported protocol 'Decodable'; this will not behave correctly if the owners of 'MongoSwift' introduce this conformance in the future
110 | }
111 |
112 | extension MongoClientOptions: StrictDecodable {
| |- warning: extension declares a conformance of imported type 'MongoClientOptions' to imported protocol 'Decodable'; this will not behave correctly if the owners of 'MongoSwift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
113 | internal typealias CodingKeysType = CodingKeys
114 |
/host/spi-builder-workspace/Sources/TestsCommon/CodableExtensions.swift:144:1: warning: extension declares a conformance of imported type 'ReadPreference' to imported protocol 'Decodable'; this will not behave correctly if the owners of 'MongoSwift' introduce this conformance in the future
142 | }
143 |
144 | extension ReadPreference: StrictDecodable {
| |- warning: extension declares a conformance of imported type 'ReadPreference' to imported protocol 'Decodable'; this will not behave correctly if the owners of 'MongoSwift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
145 | internal typealias CodingKeysType = CodingKeys
146 |
/host/spi-builder-workspace/Sources/TestsCommon/CodableExtensions.swift:171:1: warning: extension declares a conformance of imported type 'Mode' to imported protocol 'Decodable'; this will not behave correctly if the owners of 'MongoSwift' introduce this conformance in the future
169 | }
170 |
171 | extension ReadPreference.Mode: Decodable {
| |- warning: extension declares a conformance of imported type 'Mode' to imported protocol 'Decodable'; this will not behave correctly if the owners of 'MongoSwift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
172 | public init(from decoder: Decoder) throws {
173 | let container = try decoder.singleValueContainer()
/host/spi-builder-workspace/Sources/TestsCommon/CodableExtensions.swift:187:1: warning: extension declares a conformance of imported type 'TopologyDescription' to imported protocol 'Decodable'; this will not behave correctly if the owners of 'MongoSwift' introduce this conformance in the future
185 | }
186 |
187 | extension TopologyDescription: StrictDecodable {
| |- warning: extension declares a conformance of imported type 'TopologyDescription' to imported protocol 'Decodable'; this will not behave correctly if the owners of 'MongoSwift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
188 | internal typealias CodingKeysType = CodingKeys
189 |
/host/spi-builder-workspace/Sources/TestsCommon/CodableExtensions.swift:205:1: warning: extension declares a conformance of imported type 'ServerDescription' to imported protocol 'Decodable'; this will not behave correctly if the owners of 'MongoSwift' introduce this conformance in the future
203 | }
204 |
205 | extension ServerDescription: StrictDecodable {
| |- warning: extension declares a conformance of imported type 'ServerDescription' to imported protocol 'Decodable'; this will not behave correctly if the owners of 'MongoSwift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
206 | internal typealias CodingKeysType = CodingKeys
207 |
[582/587] Emitting module TestsCommon
/host/spi-builder-workspace/Sources/TestsCommon/APMUtils.swift:11:23: warning: 'Lock' is deprecated: renamed to 'NIOLock'
9 | private var events: [CommandEvent]
10 | // Lock over monitoring and events.
11 | private var lock: Lock
| |- warning: 'Lock' is deprecated: renamed to 'NIOLock'
| `- note: use 'NIOLock' instead
12 |
13 | public init() {
/host/spi-builder-workspace/Sources/TestsCommon/CodableExtensions.swift:27:1: warning: extension declares a conformance of imported type 'MongoDatabaseOptions' to imported protocol 'Decodable'; this will not behave correctly if the owners of 'MongoSwift' introduce this conformance in the future
25 | }
26 |
27 | extension MongoDatabaseOptions: StrictDecodable {
| |- warning: extension declares a conformance of imported type 'MongoDatabaseOptions' to imported protocol 'Decodable'; this will not behave correctly if the owners of 'MongoSwift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
28 | internal typealias CodingKeysType = CodingKeys
29 |
/host/spi-builder-workspace/Sources/TestsCommon/CodableExtensions.swift:45:1: warning: extension declares a conformance of imported type 'MongoCollectionOptions' to imported protocol 'Decodable'; this will not behave correctly if the owners of 'MongoSwift' introduce this conformance in the future
43 | }
44 |
45 | extension MongoCollectionOptions: StrictDecodable {
| |- warning: extension declares a conformance of imported type 'MongoCollectionOptions' to imported protocol 'Decodable'; this will not behave correctly if the owners of 'MongoSwift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
46 | internal typealias CodingKeysType = CodingKeys
47 |
/host/spi-builder-workspace/Sources/TestsCommon/CodableExtensions.swift:63:1: warning: extension declares a conformance of imported type 'ClientSessionOptions' to imported protocol 'Decodable'; this will not behave correctly if the owners of 'MongoSwift' introduce this conformance in the future
61 | }
62 |
63 | extension ClientSessionOptions: StrictDecodable {
| |- warning: extension declares a conformance of imported type 'ClientSessionOptions' to imported protocol 'Decodable'; this will not behave correctly if the owners of 'MongoSwift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
64 | internal typealias CodingKeysType = CodingKeys
65 |
/host/spi-builder-workspace/Sources/TestsCommon/CodableExtensions.swift:88:1: warning: extension declares a conformance of imported type 'TransactionOptions' to imported protocol 'Decodable'; this will not behave correctly if the owners of 'MongoSwift' introduce this conformance in the future
86 | }
87 |
88 | extension TransactionOptions: StrictDecodable {
| |- warning: extension declares a conformance of imported type 'TransactionOptions' to imported protocol 'Decodable'; this will not behave correctly if the owners of 'MongoSwift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
89 | internal typealias CodingKeysType = CodingKeys
90 |
/host/spi-builder-workspace/Sources/TestsCommon/CodableExtensions.swift:112:1: warning: extension declares a conformance of imported type 'MongoClientOptions' to imported protocol 'Decodable'; this will not behave correctly if the owners of 'MongoSwift' introduce this conformance in the future
110 | }
111 |
112 | extension MongoClientOptions: StrictDecodable {
| |- warning: extension declares a conformance of imported type 'MongoClientOptions' to imported protocol 'Decodable'; this will not behave correctly if the owners of 'MongoSwift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
113 | internal typealias CodingKeysType = CodingKeys
114 |
/host/spi-builder-workspace/Sources/TestsCommon/CodableExtensions.swift:144:1: warning: extension declares a conformance of imported type 'ReadPreference' to imported protocol 'Decodable'; this will not behave correctly if the owners of 'MongoSwift' introduce this conformance in the future
142 | }
143 |
144 | extension ReadPreference: StrictDecodable {
| |- warning: extension declares a conformance of imported type 'ReadPreference' to imported protocol 'Decodable'; this will not behave correctly if the owners of 'MongoSwift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
145 | internal typealias CodingKeysType = CodingKeys
146 |
/host/spi-builder-workspace/Sources/TestsCommon/CodableExtensions.swift:171:1: warning: extension declares a conformance of imported type 'Mode' to imported protocol 'Decodable'; this will not behave correctly if the owners of 'MongoSwift' introduce this conformance in the future
169 | }
170 |
171 | extension ReadPreference.Mode: Decodable {
| |- warning: extension declares a conformance of imported type 'Mode' to imported protocol 'Decodable'; this will not behave correctly if the owners of 'MongoSwift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
172 | public init(from decoder: Decoder) throws {
173 | let container = try decoder.singleValueContainer()
/host/spi-builder-workspace/Sources/TestsCommon/CodableExtensions.swift:187:1: warning: extension declares a conformance of imported type 'TopologyDescription' to imported protocol 'Decodable'; this will not behave correctly if the owners of 'MongoSwift' introduce this conformance in the future
185 | }
186 |
187 | extension TopologyDescription: StrictDecodable {
| |- warning: extension declares a conformance of imported type 'TopologyDescription' to imported protocol 'Decodable'; this will not behave correctly if the owners of 'MongoSwift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
188 | internal typealias CodingKeysType = CodingKeys
189 |
/host/spi-builder-workspace/Sources/TestsCommon/CodableExtensions.swift:205:1: warning: extension declares a conformance of imported type 'ServerDescription' to imported protocol 'Decodable'; this will not behave correctly if the owners of 'MongoSwift' introduce this conformance in the future
203 | }
204 |
205 | extension ServerDescription: StrictDecodable {
| |- warning: extension declares a conformance of imported type 'ServerDescription' to imported protocol 'Decodable'; this will not behave correctly if the owners of 'MongoSwift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
206 | internal typealias CodingKeysType = CodingKeys
207 |
/host/spi-builder-workspace/Sources/TestsCommon/CommonTestUtils.swift:267:23: warning: static property 'failCommandSupport' is not concurrency-safe because non-'Sendable' type '[TestRequirement]' may have shared mutable state; this is an error in the Swift 6 language mode
235 |
236 | /// Struct representing conditions that a deployment must meet in order for a test file to be run.
237 | public struct TestRequirement: Decodable {
| `- note: consider making struct 'TestRequirement' conform to the 'Sendable' protocol
238 | public enum ServerlessRequirement: String, Decodable {
239 | case require
:
265 | private let auth: Bool?
266 |
267 | public static let failCommandSupport: [TestRequirement] = [
| |- warning: static property 'failCommandSupport' is not concurrency-safe because non-'Sendable' type '[TestRequirement]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'failCommandSupport' 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
268 | TestRequirement(
269 | minServerVersion: ServerVersion.mongodFailCommandSupport,
/host/spi-builder-workspace/Sources/TestsCommon/ServerVersion.swift:5:23: warning: static property 'mongodFailCommandSupport' is not concurrency-safe because non-'Sendable' type 'ServerVersion' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | /// A struct representing a server version.
4 | public struct ServerVersion: Comparable, Decodable, CustomStringConvertible {
| `- note: consider making struct 'ServerVersion' conform to the 'Sendable' protocol
5 | public static let mongodFailCommandSupport = ServerVersion(major: 4, minor: 0)
| |- warning: static property 'mongodFailCommandSupport' is not concurrency-safe because non-'Sendable' type 'ServerVersion' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'mongodFailCommandSupport' 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
6 | public static let mongosFailCommandSupport = ServerVersion(major: 4, minor: 1, patch: 5)
7 | public static let mongodBlockTimeSupport = ServerVersion(major: 4, minor: 2, patch: 9)
/host/spi-builder-workspace/Sources/TestsCommon/ServerVersion.swift:6:23: warning: static property 'mongosFailCommandSupport' is not concurrency-safe because non-'Sendable' type 'ServerVersion' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | /// A struct representing a server version.
4 | public struct ServerVersion: Comparable, Decodable, CustomStringConvertible {
| `- note: consider making struct 'ServerVersion' conform to the 'Sendable' protocol
5 | public static let mongodFailCommandSupport = ServerVersion(major: 4, minor: 0)
6 | public static let mongosFailCommandSupport = ServerVersion(major: 4, minor: 1, patch: 5)
| |- warning: static property 'mongosFailCommandSupport' is not concurrency-safe because non-'Sendable' type 'ServerVersion' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'mongosFailCommandSupport' 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
7 | public static let mongodBlockTimeSupport = ServerVersion(major: 4, minor: 2, patch: 9)
8 |
/host/spi-builder-workspace/Sources/TestsCommon/CommonTestUtils.swift:278:23: warning: static property 'blockTimeSupport' is not concurrency-safe because non-'Sendable' type '[TestRequirement]' may have shared mutable state; this is an error in the Swift 6 language mode
235 |
236 | /// Struct representing conditions that a deployment must meet in order for a test file to be run.
237 | public struct TestRequirement: Decodable {
| `- note: consider making struct 'TestRequirement' conform to the 'Sendable' protocol
238 | public enum ServerlessRequirement: String, Decodable {
239 | case require
:
276 | ]
277 |
278 | public static let blockTimeSupport: [TestRequirement] = [
| |- warning: static property 'blockTimeSupport' is not concurrency-safe because non-'Sendable' type '[TestRequirement]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'blockTimeSupport' 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
279 | TestRequirement(
280 | minServerVersion: ServerVersion.mongodBlockTimeSupport
/host/spi-builder-workspace/Sources/TestsCommon/ServerVersion.swift:7:23: warning: static property 'mongodBlockTimeSupport' is not concurrency-safe because non-'Sendable' type 'ServerVersion' may have shared mutable state; this is an error in the Swift 6 language mode
2 |
3 | /// A struct representing a server version.
4 | public struct ServerVersion: Comparable, Decodable, CustomStringConvertible {
| `- note: consider making struct 'ServerVersion' conform to the 'Sendable' protocol
5 | public static let mongodFailCommandSupport = ServerVersion(major: 4, minor: 0)
6 | public static let mongosFailCommandSupport = ServerVersion(major: 4, minor: 1, patch: 5)
7 | public static let mongodBlockTimeSupport = ServerVersion(major: 4, minor: 2, patch: 9)
| |- warning: static property 'mongodBlockTimeSupport' is not concurrency-safe because non-'Sendable' type 'ServerVersion' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'mongodBlockTimeSupport' 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
8 |
9 | let major: Int
/host/spi-builder-workspace/Sources/TestsCommon/CommonTestUtils.swift:284:23: warning: static property 'changeStreamOnCollectionSupport' is not concurrency-safe because non-'Sendable' type 'TestRequirement' may have shared mutable state; this is an error in the Swift 6 language mode
235 |
236 | /// Struct representing conditions that a deployment must meet in order for a test file to be run.
237 | public struct TestRequirement: Decodable {
| `- note: consider making struct 'TestRequirement' conform to the 'Sendable' protocol
238 | public enum ServerlessRequirement: String, Decodable {
239 | case require
:
282 | ]
283 |
284 | public static let changeStreamOnCollectionSupport = TestRequirement(
| |- warning: static property 'changeStreamOnCollectionSupport' is not concurrency-safe because non-'Sendable' type 'TestRequirement' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'changeStreamOnCollectionSupport' 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
285 | acceptableTopologies: [.replicaSet, .sharded, .shardedReplicaSet, .loadBalanced]
286 | )
/host/spi-builder-workspace/Sources/TestsCommon/CommonTestUtils.swift:288:23: warning: static property 'changeStreamOnDBOrClientSupport' is not concurrency-safe because non-'Sendable' type 'TestRequirement' may have shared mutable state; this is an error in the Swift 6 language mode
235 |
236 | /// Struct representing conditions that a deployment must meet in order for a test file to be run.
237 | public struct TestRequirement: Decodable {
| `- note: consider making struct 'TestRequirement' conform to the 'Sendable' protocol
238 | public enum ServerlessRequirement: String, Decodable {
239 | case require
:
286 | )
287 |
288 | public static let changeStreamOnDBOrClientSupport = TestRequirement(
| |- warning: static property 'changeStreamOnDBOrClientSupport' is not concurrency-safe because non-'Sendable' type 'TestRequirement' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'changeStreamOnDBOrClientSupport' 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
289 | minServerVersion: ServerVersion(major: 4, minor: 0, patch: 0),
290 | acceptableTopologies: [.replicaSet, .sharded, .shardedReplicaSet, .loadBalanced]
/host/spi-builder-workspace/Sources/TestsCommon/CommonTestUtils.swift:293:23: warning: static property 'transactionsSupport' is not concurrency-safe because non-'Sendable' type '[TestRequirement]' may have shared mutable state; this is an error in the Swift 6 language mode
235 |
236 | /// Struct representing conditions that a deployment must meet in order for a test file to be run.
237 | public struct TestRequirement: Decodable {
| `- note: consider making struct 'TestRequirement' conform to the 'Sendable' protocol
238 | public enum ServerlessRequirement: String, Decodable {
239 | case require
:
291 | )
292 |
293 | public static let transactionsSupport = [
| |- warning: static property 'transactionsSupport' is not concurrency-safe because non-'Sendable' type '[TestRequirement]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'transactionsSupport' 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
294 | TestRequirement(
295 | minServerVersion: ServerVersion(major: 4, minor: 0, patch: 0),
/host/spi-builder-workspace/Sources/TestsCommon/CommonTestUtils.swift:445:53: error: 'Predicate' is ambiguous for type lookup in this context
443 | // Adds a custom "cleanEqual" predicate that compares two JSON strings for equality after normalizing
444 | // them with the "clean" function
445 | public func cleanEqual(_ expectedValue: String?) -> Predicate<String> {
| `- error: 'Predicate' is ambiguous for type lookup in this context
446 | Predicate.define("cleanEqual <\(stringify(expectedValue))>") { actualExpression, msg in
447 | let actualValue = try actualExpression.evaluate()
/host/spi-builder-workspace/.build/checkouts/Nimble/Sources/Nimble/Matchers/Predicate.swift:20:15: note: found this candidate
18 | /// predicates are simple wrappers around closures to provide static type information and
19 | /// allow composition and wrapping of existing behaviors.
20 | public struct Predicate<T> {
| `- note: found this candidate
21 | fileprivate var matcher: (Expression<T>) throws -> PredicateResult
22 |
FoundationEssentials.Predicate:2:15: note: found this candidate
1 | @available(macOS 14, iOS 17, tvOS 17, watchOS 10, *)
2 | public struct Predicate<each Input> : Sendable {
| `- note: found this candidate
3 | public let expression: any StandardPredicateExpression<Bool>
4 | public let variable: (repeat PredicateExpressions.Variable<each Input>)
/host/spi-builder-workspace/Sources/TestsCommon/CommonTestUtils.swift:464:69: error: 'Predicate' is ambiguous for type lookup in this context
462 | // Adds a custom "sortedEqual" predicate that compares two `Document`s and returns true if they
463 | // have the same key/value pairs in them
464 | public func sortedEqual<T: SortedEquatable>(_ expectedValue: T?) -> Predicate<T> {
| `- error: 'Predicate' is ambiguous for type lookup in this context
465 | Predicate.define("sortedEqual <\(stringify(expectedValue))>") { actualExpression, msg in
466 | let actualValue = try actualExpression.evaluate()
/host/spi-builder-workspace/.build/checkouts/Nimble/Sources/Nimble/Matchers/Predicate.swift:20:15: note: found this candidate
18 | /// predicates are simple wrappers around closures to provide static type information and
19 | /// allow composition and wrapping of existing behaviors.
20 | public struct Predicate<T> {
| `- note: found this candidate
21 | fileprivate var matcher: (Expression<T>) throws -> PredicateResult
22 |
FoundationEssentials.Predicate:2:15: note: found this candidate
1 | @available(macOS 14, iOS 17, tvOS 17, watchOS 10, *)
2 | public struct Predicate<each Input> : Sendable {
| `- note: found this candidate
3 | public let expression: any StandardPredicateExpression<Bool>
4 | public let variable: (repeat PredicateExpressions.Variable<each Input>)
/host/spi-builder-workspace/Sources/TestsCommon/CommonTestUtils.swift:556:1: warning: extension declares a conformance of imported type 'ServerAddress' to imported protocol 'Decodable'; this will not behave correctly if the owners of 'MongoSwift' introduce this conformance in the future
554 |
555 | /// Makes `ServerAddress` `Decodable` for the sake of constructing it from spec test files.
556 | extension ServerAddress: Decodable {
| |- warning: extension declares a conformance of imported type 'ServerAddress' to imported protocol 'Decodable'; this will not behave correctly if the owners of 'MongoSwift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
557 | public init(from decoder: Decoder) throws {
558 | let container = try decoder.singleValueContainer()
/host/spi-builder-workspace/Sources/TestsCommon/MongoError+Equatable.swift:4:1: warning: extension declares a conformance of imported type 'ConnectionError' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'MongoSwift' introduce this conformance in the future
2 | import MongoSwift
3 |
4 | extension MongoError.ConnectionError: Equatable {
| |- warning: extension declares a conformance of imported type 'ConnectionError' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'MongoSwift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
5 | public static func == (lhs: MongoError.ConnectionError, rhs: MongoError.ConnectionError) -> Bool {
6 | lhs.errorLabels?.sorted() == rhs.errorLabels?.sorted()
/host/spi-builder-workspace/Sources/TestsCommon/MongoError+Equatable.swift:10:1: warning: extension declares a conformance of imported type 'CommandError' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'MongoSwift' introduce this conformance in the future
8 | }
9 |
10 | extension MongoError.CommandError: Equatable {
| |- warning: extension declares a conformance of imported type 'CommandError' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'MongoSwift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
11 | public static func == (lhs: MongoError.CommandError, rhs: MongoError.CommandError) -> Bool {
12 | lhs.code == rhs.code && lhs.errorLabels?.sorted() == rhs.errorLabels?.sorted()
/host/spi-builder-workspace/Sources/TestsCommon/MongoError+Equatable.swift:16:1: warning: extension declares a conformance of imported type 'WriteError' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'MongoSwift' introduce this conformance in the future
14 | }
15 |
16 | extension MongoError.WriteError: Equatable {
| |- warning: extension declares a conformance of imported type 'WriteError' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'MongoSwift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
17 | public static func == (lhs: MongoError.WriteError, rhs: MongoError.WriteError) -> Bool {
18 | lhs.writeFailure == rhs.writeFailure &&
/host/spi-builder-workspace/Sources/TestsCommon/MongoError+Equatable.swift:24:1: warning: extension declares a conformance of imported type 'BulkWriteError' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'MongoSwift' introduce this conformance in the future
22 | }
23 |
24 | extension MongoError.BulkWriteError: Equatable {
| |- warning: extension declares a conformance of imported type 'BulkWriteError' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'MongoSwift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
25 | public static func == (lhs: MongoError.BulkWriteError, rhs: MongoError.BulkWriteError) -> Bool {
26 | let cmp = { (lhs: MongoError.BulkWriteFailure, rhs: MongoError.BulkWriteFailure) in
/host/spi-builder-workspace/Sources/TestsCommon/MongoError+Equatable.swift:37:1: warning: extension declares a conformance of imported type 'BulkWriteResult' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'MongoSwift' introduce this conformance in the future
35 | }
36 |
37 | extension BulkWriteResult: Equatable {
| |- warning: extension declares a conformance of imported type 'BulkWriteResult' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'MongoSwift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
38 | public static func == (lhs: BulkWriteResult, rhs: BulkWriteResult) -> Bool {
39 | lhs.insertedIDs == rhs.insertedIDs
/host/spi-builder-workspace/Sources/TestsCommon/MongoError+Equatable.swift:48:1: warning: extension declares a conformance of imported type 'WriteFailure' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'MongoSwift' introduce this conformance in the future
46 | }
47 |
48 | extension MongoError.WriteFailure: Equatable {
| |- warning: extension declares a conformance of imported type 'WriteFailure' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'MongoSwift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
49 | public static func == (lhs: MongoError.WriteFailure, rhs: MongoError.WriteFailure) -> Bool {
50 | lhs.code == rhs.code
/host/spi-builder-workspace/Sources/TestsCommon/MongoError+Equatable.swift:54:1: warning: extension declares a conformance of imported type 'BulkWriteFailure' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'MongoSwift' introduce this conformance in the future
52 | }
53 |
54 | extension MongoError.BulkWriteFailure: Equatable {
| |- warning: extension declares a conformance of imported type 'BulkWriteFailure' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'MongoSwift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
55 | public static func == (lhs: MongoError.BulkWriteFailure, rhs: MongoError.BulkWriteFailure) -> Bool {
56 | lhs.code == rhs.code && lhs.index == rhs.index
/host/spi-builder-workspace/Sources/TestsCommon/MongoError+Equatable.swift:60:1: warning: extension declares a conformance of imported type 'WriteConcernFailure' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'MongoSwift' introduce this conformance in the future
58 | }
59 |
60 | extension MongoError.WriteConcernFailure: Equatable {
| |- warning: extension declares a conformance of imported type 'WriteConcernFailure' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'MongoSwift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
61 | public static func == (lhs: MongoError.WriteConcernFailure, rhs: MongoError.WriteConcernFailure) -> Bool {
62 | lhs.code == rhs.code
/host/spi-builder-workspace/Sources/TestsCommon/MongoError+Equatable.swift:66:1: warning: extension declares a conformance of imported type 'DecodingError' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
64 | }
65 |
66 | extension DecodingError: Equatable {
| |- warning: extension declares a conformance of imported type 'DecodingError' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
67 | public static func == (lhs: DecodingError, rhs: DecodingError) -> Bool {
68 | switch (lhs, rhs) {
BUILD FAILURE 6.0 linux