Build Information
Failed to build mongo-swift-driver, reference v1.3.1 (cd8618
), with Swift 6.2 (beta) for macOS (SPM) on 19 Jun 2025 11:51:35 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64
Build Log
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
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/AsyncAwait/MongoDatabase+AsyncAwait.swift:39:112: warning: type 'MongoCollection<BSONDocument>' does not conform to the 'Sendable' protocol
37 | session: ClientSession? = nil
38 | ) async throws -> MongoCollection<BSONDocument> {
39 | try await self.createCollection(name, withType: BSONDocument.self, options: options, session: session).get()
| `- warning: type 'MongoCollection<BSONDocument>' does not conform to the 'Sendable' protocol
40 | }
41 |
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/MongoCollection.swift:17:15: note: consider making generic struct 'MongoCollection' conform to the 'Sendable' protocol
15 | // sourcery: skipSyncExport
16 | /// A MongoDB collection.
17 | public struct MongoCollection<T: Codable> {
| `- note: consider making generic struct 'MongoCollection' conform to the 'Sendable' protocol
18 | /// The client which this collection was derived from.
19 | internal let _client: MongoClient
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/AsyncAwait/MongoDatabase+AsyncAwait.swift:68:99: warning: type 'MongoCollection<T>' does not conform to the 'Sendable' protocol
66 | session: ClientSession? = nil
67 | ) async throws -> MongoCollection<T> {
68 | try await self.createCollection(name, withType: type, options: options, session: session).get()
| `- warning: type 'MongoCollection<T>' does not conform to the 'Sendable' protocol
69 | }
70 |
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/MongoCollection.swift:17:15: note: consider making generic struct 'MongoCollection' conform to the 'Sendable' protocol
15 | // sourcery: skipSyncExport
16 | /// A MongoDB collection.
17 | public struct MongoCollection<T: Codable> {
| `- note: consider making generic struct 'MongoCollection' conform to the 'Sendable' protocol
18 | /// The client which this collection was derived from.
19 | internal let _client: MongoClient
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/AsyncAwait/MongoDatabase+AsyncAwait.swift:90:84: warning: type 'MongoCursor<CollectionSpecification>' does not conform to the 'Sendable' protocol
88 | session: ClientSession? = nil
89 | ) async throws -> MongoCursor<CollectionSpecification> {
90 | try await self.listCollections(filter, options: options, session: session).get()
| `- warning: type 'MongoCursor<CollectionSpecification>' does not conform to the 'Sendable' protocol
91 | }
92 |
/Users/admin/builder/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
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/AsyncAwait/MongoDatabase+AsyncAwait.swift:165:80: warning: type 'BSONDocument' does not conform to the 'Sendable' protocol
163 | session: ClientSession? = nil
164 | ) async throws -> BSONDocument {
165 | try await self.runCommand(command, options: options, session: session).get()
| `- warning: type 'BSONDocument' does not conform to the 'Sendable' protocol
166 | }
167 |
/Users/admin/builder/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)
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/AsyncAwait/MongoDatabase+AsyncAwait.swift:282:11: warning: type 'ChangeStream<EventType>' does not conform to the 'Sendable' protocol
280 | session: session,
281 | withEventType: EventType.self
282 | ).get()
| `- warning: type 'ChangeStream<EventType>' does not conform to the 'Sendable' protocol
283 | }
284 |
/Users/admin/builder/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 |
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/AsyncAwait/MongoDatabase+AsyncAwait.swift:349:11: warning: type 'MongoCursor<OutputType>' does not conform to the 'Sendable' protocol
347 | session: session,
348 | withOutputType: withOutputType
349 | ).get()
| `- warning: type 'MongoCursor<OutputType>' does not conform to the 'Sendable' protocol
350 | }
351 | }
/Users/admin/builder/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
[494/542] Compiling MongoSwift MongoCollection+Write+AsyncAwait.swift
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/AsyncAwait/MongoCollection+Indexes+AsyncAwait.swift:191:54: warning: type 'MongoCursor<IndexModel>' does not conform to the 'Sendable' protocol
189 | */
190 | public func listIndexes(session: ClientSession? = nil) async throws -> MongoCursor<IndexModel> {
191 | try await self.listIndexes(session: session).get()
| `- warning: type 'MongoCursor<IndexModel>' does not conform to the 'Sendable' protocol
192 | }
193 |
/Users/admin/builder/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
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/AsyncAwait/MongoCollection+Read+AsyncAwait.swift:25:73: warning: type 'MongoCursor<T>' does not conform to the 'Sendable' protocol
23 | session: ClientSession? = nil
24 | ) async throws -> MongoCursor<CollectionType> {
25 | try await self.find(filter, options: options, session: session).get()
| `- warning: type 'MongoCursor<T>' does not conform to the 'Sendable' protocol
26 | }
27 |
/Users/admin/builder/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
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/AsyncAwait/MongoCollection+Read+AsyncAwait.swift:71:115: warning: type 'MongoCursor<BSONDocument>' does not conform to the 'Sendable' protocol
69 | session: ClientSession? = nil
70 | ) async throws -> MongoCursor<BSONDocument> {
71 | try await self.aggregate(pipeline, options: options, session: session, withOutputType: BSONDocument.self).get()
| `- warning: type 'MongoCursor<BSONDocument>' does not conform to the 'Sendable' protocol
72 | }
73 |
/Users/admin/builder/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
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/AsyncAwait/MongoCollection+Read+AsyncAwait.swift:98:113: warning: type 'MongoCursor<OutputType>' does not conform to the 'Sendable' protocol
96 | withOutputType _: OutputType.Type
97 | ) async throws -> MongoCursor<OutputType> {
98 | try await self.aggregate(pipeline, options: options, session: session, withOutputType: OutputType.self).get()
| `- warning: type 'MongoCursor<OutputType>' does not conform to the 'Sendable' protocol
99 | }
100 |
/Users/admin/builder/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
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/AsyncAwait/MongoDatabase+AsyncAwait.swift:39:112: warning: type 'MongoCollection<BSONDocument>' does not conform to the 'Sendable' protocol
37 | session: ClientSession? = nil
38 | ) async throws -> MongoCollection<BSONDocument> {
39 | try await self.createCollection(name, withType: BSONDocument.self, options: options, session: session).get()
| `- warning: type 'MongoCollection<BSONDocument>' does not conform to the 'Sendable' protocol
40 | }
41 |
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/MongoCollection.swift:17:15: note: consider making generic struct 'MongoCollection' conform to the 'Sendable' protocol
15 | // sourcery: skipSyncExport
16 | /// A MongoDB collection.
17 | public struct MongoCollection<T: Codable> {
| `- note: consider making generic struct 'MongoCollection' conform to the 'Sendable' protocol
18 | /// The client which this collection was derived from.
19 | internal let _client: MongoClient
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/AsyncAwait/MongoDatabase+AsyncAwait.swift:68:99: warning: type 'MongoCollection<T>' does not conform to the 'Sendable' protocol
66 | session: ClientSession? = nil
67 | ) async throws -> MongoCollection<T> {
68 | try await self.createCollection(name, withType: type, options: options, session: session).get()
| `- warning: type 'MongoCollection<T>' does not conform to the 'Sendable' protocol
69 | }
70 |
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/MongoCollection.swift:17:15: note: consider making generic struct 'MongoCollection' conform to the 'Sendable' protocol
15 | // sourcery: skipSyncExport
16 | /// A MongoDB collection.
17 | public struct MongoCollection<T: Codable> {
| `- note: consider making generic struct 'MongoCollection' conform to the 'Sendable' protocol
18 | /// The client which this collection was derived from.
19 | internal let _client: MongoClient
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/AsyncAwait/MongoDatabase+AsyncAwait.swift:90:84: warning: type 'MongoCursor<CollectionSpecification>' does not conform to the 'Sendable' protocol
88 | session: ClientSession? = nil
89 | ) async throws -> MongoCursor<CollectionSpecification> {
90 | try await self.listCollections(filter, options: options, session: session).get()
| `- warning: type 'MongoCursor<CollectionSpecification>' does not conform to the 'Sendable' protocol
91 | }
92 |
/Users/admin/builder/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
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/AsyncAwait/MongoDatabase+AsyncAwait.swift:165:80: warning: type 'BSONDocument' does not conform to the 'Sendable' protocol
163 | session: ClientSession? = nil
164 | ) async throws -> BSONDocument {
165 | try await self.runCommand(command, options: options, session: session).get()
| `- warning: type 'BSONDocument' does not conform to the 'Sendable' protocol
166 | }
167 |
/Users/admin/builder/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)
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/AsyncAwait/MongoDatabase+AsyncAwait.swift:282:11: warning: type 'ChangeStream<EventType>' does not conform to the 'Sendable' protocol
280 | session: session,
281 | withEventType: EventType.self
282 | ).get()
| `- warning: type 'ChangeStream<EventType>' does not conform to the 'Sendable' protocol
283 | }
284 |
/Users/admin/builder/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 |
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/AsyncAwait/MongoDatabase+AsyncAwait.swift:349:11: warning: type 'MongoCursor<OutputType>' does not conform to the 'Sendable' protocol
347 | session: session,
348 | withOutputType: withOutputType
349 | ).get()
| `- warning: type 'MongoCursor<OutputType>' does not conform to the 'Sendable' protocol
350 | }
351 | }
/Users/admin/builder/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
[495/542] Compiling MongoSwift MongoCursor+AsyncSequence.swift
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/AsyncAwait/MongoCollection+Indexes+AsyncAwait.swift:191:54: warning: type 'MongoCursor<IndexModel>' does not conform to the 'Sendable' protocol
189 | */
190 | public func listIndexes(session: ClientSession? = nil) async throws -> MongoCursor<IndexModel> {
191 | try await self.listIndexes(session: session).get()
| `- warning: type 'MongoCursor<IndexModel>' does not conform to the 'Sendable' protocol
192 | }
193 |
/Users/admin/builder/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
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/AsyncAwait/MongoCollection+Read+AsyncAwait.swift:25:73: warning: type 'MongoCursor<T>' does not conform to the 'Sendable' protocol
23 | session: ClientSession? = nil
24 | ) async throws -> MongoCursor<CollectionType> {
25 | try await self.find(filter, options: options, session: session).get()
| `- warning: type 'MongoCursor<T>' does not conform to the 'Sendable' protocol
26 | }
27 |
/Users/admin/builder/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
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/AsyncAwait/MongoCollection+Read+AsyncAwait.swift:71:115: warning: type 'MongoCursor<BSONDocument>' does not conform to the 'Sendable' protocol
69 | session: ClientSession? = nil
70 | ) async throws -> MongoCursor<BSONDocument> {
71 | try await self.aggregate(pipeline, options: options, session: session, withOutputType: BSONDocument.self).get()
| `- warning: type 'MongoCursor<BSONDocument>' does not conform to the 'Sendable' protocol
72 | }
73 |
/Users/admin/builder/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
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/AsyncAwait/MongoCollection+Read+AsyncAwait.swift:98:113: warning: type 'MongoCursor<OutputType>' does not conform to the 'Sendable' protocol
96 | withOutputType _: OutputType.Type
97 | ) async throws -> MongoCursor<OutputType> {
98 | try await self.aggregate(pipeline, options: options, session: session, withOutputType: OutputType.self).get()
| `- warning: type 'MongoCursor<OutputType>' does not conform to the 'Sendable' protocol
99 | }
100 |
/Users/admin/builder/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
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/AsyncAwait/MongoDatabase+AsyncAwait.swift:39:112: warning: type 'MongoCollection<BSONDocument>' does not conform to the 'Sendable' protocol
37 | session: ClientSession? = nil
38 | ) async throws -> MongoCollection<BSONDocument> {
39 | try await self.createCollection(name, withType: BSONDocument.self, options: options, session: session).get()
| `- warning: type 'MongoCollection<BSONDocument>' does not conform to the 'Sendable' protocol
40 | }
41 |
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/MongoCollection.swift:17:15: note: consider making generic struct 'MongoCollection' conform to the 'Sendable' protocol
15 | // sourcery: skipSyncExport
16 | /// A MongoDB collection.
17 | public struct MongoCollection<T: Codable> {
| `- note: consider making generic struct 'MongoCollection' conform to the 'Sendable' protocol
18 | /// The client which this collection was derived from.
19 | internal let _client: MongoClient
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/AsyncAwait/MongoDatabase+AsyncAwait.swift:68:99: warning: type 'MongoCollection<T>' does not conform to the 'Sendable' protocol
66 | session: ClientSession? = nil
67 | ) async throws -> MongoCollection<T> {
68 | try await self.createCollection(name, withType: type, options: options, session: session).get()
| `- warning: type 'MongoCollection<T>' does not conform to the 'Sendable' protocol
69 | }
70 |
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/MongoCollection.swift:17:15: note: consider making generic struct 'MongoCollection' conform to the 'Sendable' protocol
15 | // sourcery: skipSyncExport
16 | /// A MongoDB collection.
17 | public struct MongoCollection<T: Codable> {
| `- note: consider making generic struct 'MongoCollection' conform to the 'Sendable' protocol
18 | /// The client which this collection was derived from.
19 | internal let _client: MongoClient
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/AsyncAwait/MongoDatabase+AsyncAwait.swift:90:84: warning: type 'MongoCursor<CollectionSpecification>' does not conform to the 'Sendable' protocol
88 | session: ClientSession? = nil
89 | ) async throws -> MongoCursor<CollectionSpecification> {
90 | try await self.listCollections(filter, options: options, session: session).get()
| `- warning: type 'MongoCursor<CollectionSpecification>' does not conform to the 'Sendable' protocol
91 | }
92 |
/Users/admin/builder/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
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/AsyncAwait/MongoDatabase+AsyncAwait.swift:165:80: warning: type 'BSONDocument' does not conform to the 'Sendable' protocol
163 | session: ClientSession? = nil
164 | ) async throws -> BSONDocument {
165 | try await self.runCommand(command, options: options, session: session).get()
| `- warning: type 'BSONDocument' does not conform to the 'Sendable' protocol
166 | }
167 |
/Users/admin/builder/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)
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/AsyncAwait/MongoDatabase+AsyncAwait.swift:282:11: warning: type 'ChangeStream<EventType>' does not conform to the 'Sendable' protocol
280 | session: session,
281 | withEventType: EventType.self
282 | ).get()
| `- warning: type 'ChangeStream<EventType>' does not conform to the 'Sendable' protocol
283 | }
284 |
/Users/admin/builder/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 |
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/AsyncAwait/MongoDatabase+AsyncAwait.swift:349:11: warning: type 'MongoCursor<OutputType>' does not conform to the 'Sendable' protocol
347 | session: session,
348 | withOutputType: withOutputType
349 | ).get()
| `- warning: type 'MongoCursor<OutputType>' does not conform to the 'Sendable' protocol
350 | }
351 | }
/Users/admin/builder/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
[496/542] Compiling MongoSwift MongoDatabase+AsyncAwait.swift
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/AsyncAwait/MongoCollection+Indexes+AsyncAwait.swift:191:54: warning: type 'MongoCursor<IndexModel>' does not conform to the 'Sendable' protocol
189 | */
190 | public func listIndexes(session: ClientSession? = nil) async throws -> MongoCursor<IndexModel> {
191 | try await self.listIndexes(session: session).get()
| `- warning: type 'MongoCursor<IndexModel>' does not conform to the 'Sendable' protocol
192 | }
193 |
/Users/admin/builder/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
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/AsyncAwait/MongoCollection+Read+AsyncAwait.swift:25:73: warning: type 'MongoCursor<T>' does not conform to the 'Sendable' protocol
23 | session: ClientSession? = nil
24 | ) async throws -> MongoCursor<CollectionType> {
25 | try await self.find(filter, options: options, session: session).get()
| `- warning: type 'MongoCursor<T>' does not conform to the 'Sendable' protocol
26 | }
27 |
/Users/admin/builder/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
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/AsyncAwait/MongoCollection+Read+AsyncAwait.swift:71:115: warning: type 'MongoCursor<BSONDocument>' does not conform to the 'Sendable' protocol
69 | session: ClientSession? = nil
70 | ) async throws -> MongoCursor<BSONDocument> {
71 | try await self.aggregate(pipeline, options: options, session: session, withOutputType: BSONDocument.self).get()
| `- warning: type 'MongoCursor<BSONDocument>' does not conform to the 'Sendable' protocol
72 | }
73 |
/Users/admin/builder/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
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/AsyncAwait/MongoCollection+Read+AsyncAwait.swift:98:113: warning: type 'MongoCursor<OutputType>' does not conform to the 'Sendable' protocol
96 | withOutputType _: OutputType.Type
97 | ) async throws -> MongoCursor<OutputType> {
98 | try await self.aggregate(pipeline, options: options, session: session, withOutputType: OutputType.self).get()
| `- warning: type 'MongoCursor<OutputType>' does not conform to the 'Sendable' protocol
99 | }
100 |
/Users/admin/builder/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
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/AsyncAwait/MongoDatabase+AsyncAwait.swift:39:112: warning: type 'MongoCollection<BSONDocument>' does not conform to the 'Sendable' protocol
37 | session: ClientSession? = nil
38 | ) async throws -> MongoCollection<BSONDocument> {
39 | try await self.createCollection(name, withType: BSONDocument.self, options: options, session: session).get()
| `- warning: type 'MongoCollection<BSONDocument>' does not conform to the 'Sendable' protocol
40 | }
41 |
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/MongoCollection.swift:17:15: note: consider making generic struct 'MongoCollection' conform to the 'Sendable' protocol
15 | // sourcery: skipSyncExport
16 | /// A MongoDB collection.
17 | public struct MongoCollection<T: Codable> {
| `- note: consider making generic struct 'MongoCollection' conform to the 'Sendable' protocol
18 | /// The client which this collection was derived from.
19 | internal let _client: MongoClient
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/AsyncAwait/MongoDatabase+AsyncAwait.swift:68:99: warning: type 'MongoCollection<T>' does not conform to the 'Sendable' protocol
66 | session: ClientSession? = nil
67 | ) async throws -> MongoCollection<T> {
68 | try await self.createCollection(name, withType: type, options: options, session: session).get()
| `- warning: type 'MongoCollection<T>' does not conform to the 'Sendable' protocol
69 | }
70 |
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/MongoCollection.swift:17:15: note: consider making generic struct 'MongoCollection' conform to the 'Sendable' protocol
15 | // sourcery: skipSyncExport
16 | /// A MongoDB collection.
17 | public struct MongoCollection<T: Codable> {
| `- note: consider making generic struct 'MongoCollection' conform to the 'Sendable' protocol
18 | /// The client which this collection was derived from.
19 | internal let _client: MongoClient
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/AsyncAwait/MongoDatabase+AsyncAwait.swift:90:84: warning: type 'MongoCursor<CollectionSpecification>' does not conform to the 'Sendable' protocol
88 | session: ClientSession? = nil
89 | ) async throws -> MongoCursor<CollectionSpecification> {
90 | try await self.listCollections(filter, options: options, session: session).get()
| `- warning: type 'MongoCursor<CollectionSpecification>' does not conform to the 'Sendable' protocol
91 | }
92 |
/Users/admin/builder/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
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/AsyncAwait/MongoDatabase+AsyncAwait.swift:165:80: warning: type 'BSONDocument' does not conform to the 'Sendable' protocol
163 | session: ClientSession? = nil
164 | ) async throws -> BSONDocument {
165 | try await self.runCommand(command, options: options, session: session).get()
| `- warning: type 'BSONDocument' does not conform to the 'Sendable' protocol
166 | }
167 |
/Users/admin/builder/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)
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/AsyncAwait/MongoDatabase+AsyncAwait.swift:282:11: warning: type 'ChangeStream<EventType>' does not conform to the 'Sendable' protocol
280 | session: session,
281 | withEventType: EventType.self
282 | ).get()
| `- warning: type 'ChangeStream<EventType>' does not conform to the 'Sendable' protocol
283 | }
284 |
/Users/admin/builder/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 |
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/AsyncAwait/MongoDatabase+AsyncAwait.swift:349:11: warning: type 'MongoCursor<OutputType>' does not conform to the 'Sendable' protocol
347 | session: session,
348 | withOutputType: withOutputType
349 | ).get()
| `- warning: type 'MongoCursor<OutputType>' does not conform to the 'Sendable' protocol
350 | }
351 | }
/Users/admin/builder/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
[497/542] Compiling MongoSwift BSONPointerUtils.swift
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/AsyncAwait/MongoCollection+Indexes+AsyncAwait.swift:191:54: warning: type 'MongoCursor<IndexModel>' does not conform to the 'Sendable' protocol
189 | */
190 | public func listIndexes(session: ClientSession? = nil) async throws -> MongoCursor<IndexModel> {
191 | try await self.listIndexes(session: session).get()
| `- warning: type 'MongoCursor<IndexModel>' does not conform to the 'Sendable' protocol
192 | }
193 |
/Users/admin/builder/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
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/AsyncAwait/MongoCollection+Read+AsyncAwait.swift:25:73: warning: type 'MongoCursor<T>' does not conform to the 'Sendable' protocol
23 | session: ClientSession? = nil
24 | ) async throws -> MongoCursor<CollectionType> {
25 | try await self.find(filter, options: options, session: session).get()
| `- warning: type 'MongoCursor<T>' does not conform to the 'Sendable' protocol
26 | }
27 |
/Users/admin/builder/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
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/AsyncAwait/MongoCollection+Read+AsyncAwait.swift:71:115: warning: type 'MongoCursor<BSONDocument>' does not conform to the 'Sendable' protocol
69 | session: ClientSession? = nil
70 | ) async throws -> MongoCursor<BSONDocument> {
71 | try await self.aggregate(pipeline, options: options, session: session, withOutputType: BSONDocument.self).get()
| `- warning: type 'MongoCursor<BSONDocument>' does not conform to the 'Sendable' protocol
72 | }
73 |
/Users/admin/builder/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
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/AsyncAwait/MongoCollection+Read+AsyncAwait.swift:98:113: warning: type 'MongoCursor<OutputType>' does not conform to the 'Sendable' protocol
96 | withOutputType _: OutputType.Type
97 | ) async throws -> MongoCursor<OutputType> {
98 | try await self.aggregate(pipeline, options: options, session: session, withOutputType: OutputType.self).get()
| `- warning: type 'MongoCursor<OutputType>' does not conform to the 'Sendable' protocol
99 | }
100 |
/Users/admin/builder/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
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/AsyncAwait/MongoDatabase+AsyncAwait.swift:39:112: warning: type 'MongoCollection<BSONDocument>' does not conform to the 'Sendable' protocol
37 | session: ClientSession? = nil
38 | ) async throws -> MongoCollection<BSONDocument> {
39 | try await self.createCollection(name, withType: BSONDocument.self, options: options, session: session).get()
| `- warning: type 'MongoCollection<BSONDocument>' does not conform to the 'Sendable' protocol
40 | }
41 |
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/MongoCollection.swift:17:15: note: consider making generic struct 'MongoCollection' conform to the 'Sendable' protocol
15 | // sourcery: skipSyncExport
16 | /// A MongoDB collection.
17 | public struct MongoCollection<T: Codable> {
| `- note: consider making generic struct 'MongoCollection' conform to the 'Sendable' protocol
18 | /// The client which this collection was derived from.
19 | internal let _client: MongoClient
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/AsyncAwait/MongoDatabase+AsyncAwait.swift:68:99: warning: type 'MongoCollection<T>' does not conform to the 'Sendable' protocol
66 | session: ClientSession? = nil
67 | ) async throws -> MongoCollection<T> {
68 | try await self.createCollection(name, withType: type, options: options, session: session).get()
| `- warning: type 'MongoCollection<T>' does not conform to the 'Sendable' protocol
69 | }
70 |
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/MongoCollection.swift:17:15: note: consider making generic struct 'MongoCollection' conform to the 'Sendable' protocol
15 | // sourcery: skipSyncExport
16 | /// A MongoDB collection.
17 | public struct MongoCollection<T: Codable> {
| `- note: consider making generic struct 'MongoCollection' conform to the 'Sendable' protocol
18 | /// The client which this collection was derived from.
19 | internal let _client: MongoClient
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/AsyncAwait/MongoDatabase+AsyncAwait.swift:90:84: warning: type 'MongoCursor<CollectionSpecification>' does not conform to the 'Sendable' protocol
88 | session: ClientSession? = nil
89 | ) async throws -> MongoCursor<CollectionSpecification> {
90 | try await self.listCollections(filter, options: options, session: session).get()
| `- warning: type 'MongoCursor<CollectionSpecification>' does not conform to the 'Sendable' protocol
91 | }
92 |
/Users/admin/builder/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
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/AsyncAwait/MongoDatabase+AsyncAwait.swift:165:80: warning: type 'BSONDocument' does not conform to the 'Sendable' protocol
163 | session: ClientSession? = nil
164 | ) async throws -> BSONDocument {
165 | try await self.runCommand(command, options: options, session: session).get()
| `- warning: type 'BSONDocument' does not conform to the 'Sendable' protocol
166 | }
167 |
/Users/admin/builder/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)
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/AsyncAwait/MongoDatabase+AsyncAwait.swift:282:11: warning: type 'ChangeStream<EventType>' does not conform to the 'Sendable' protocol
280 | session: session,
281 | withEventType: EventType.self
282 | ).get()
| `- warning: type 'ChangeStream<EventType>' does not conform to the 'Sendable' protocol
283 | }
284 |
/Users/admin/builder/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 |
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/AsyncAwait/MongoDatabase+AsyncAwait.swift:349:11: warning: type 'MongoCursor<OutputType>' does not conform to the 'Sendable' protocol
347 | session: session,
348 | withOutputType: withOutputType
349 | ).get()
| `- warning: type 'MongoCursor<OutputType>' does not conform to the 'Sendable' protocol
350 | }
351 | }
/Users/admin/builder/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
[498/542] Compiling MongoSwift BSONUtil.swift
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/AsyncAwait/MongoCollection+Indexes+AsyncAwait.swift:191:54: warning: type 'MongoCursor<IndexModel>' does not conform to the 'Sendable' protocol
189 | */
190 | public func listIndexes(session: ClientSession? = nil) async throws -> MongoCursor<IndexModel> {
191 | try await self.listIndexes(session: session).get()
| `- warning: type 'MongoCursor<IndexModel>' does not conform to the 'Sendable' protocol
192 | }
193 |
/Users/admin/builder/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
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/AsyncAwait/MongoCollection+Read+AsyncAwait.swift:25:73: warning: type 'MongoCursor<T>' does not conform to the 'Sendable' protocol
23 | session: ClientSession? = nil
24 | ) async throws -> MongoCursor<CollectionType> {
25 | try await self.find(filter, options: options, session: session).get()
| `- warning: type 'MongoCursor<T>' does not conform to the 'Sendable' protocol
26 | }
27 |
/Users/admin/builder/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
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/AsyncAwait/MongoCollection+Read+AsyncAwait.swift:71:115: warning: type 'MongoCursor<BSONDocument>' does not conform to the 'Sendable' protocol
69 | session: ClientSession? = nil
70 | ) async throws -> MongoCursor<BSONDocument> {
71 | try await self.aggregate(pipeline, options: options, session: session, withOutputType: BSONDocument.self).get()
| `- warning: type 'MongoCursor<BSONDocument>' does not conform to the 'Sendable' protocol
72 | }
73 |
/Users/admin/builder/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
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/AsyncAwait/MongoCollection+Read+AsyncAwait.swift:98:113: warning: type 'MongoCursor<OutputType>' does not conform to the 'Sendable' protocol
96 | withOutputType _: OutputType.Type
97 | ) async throws -> MongoCursor<OutputType> {
98 | try await self.aggregate(pipeline, options: options, session: session, withOutputType: OutputType.self).get()
| `- warning: type 'MongoCursor<OutputType>' does not conform to the 'Sendable' protocol
99 | }
100 |
/Users/admin/builder/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
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/AsyncAwait/MongoDatabase+AsyncAwait.swift:39:112: warning: type 'MongoCollection<BSONDocument>' does not conform to the 'Sendable' protocol
37 | session: ClientSession? = nil
38 | ) async throws -> MongoCollection<BSONDocument> {
39 | try await self.createCollection(name, withType: BSONDocument.self, options: options, session: session).get()
| `- warning: type 'MongoCollection<BSONDocument>' does not conform to the 'Sendable' protocol
40 | }
41 |
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/MongoCollection.swift:17:15: note: consider making generic struct 'MongoCollection' conform to the 'Sendable' protocol
15 | // sourcery: skipSyncExport
16 | /// A MongoDB collection.
17 | public struct MongoCollection<T: Codable> {
| `- note: consider making generic struct 'MongoCollection' conform to the 'Sendable' protocol
18 | /// The client which this collection was derived from.
19 | internal let _client: MongoClient
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/AsyncAwait/MongoDatabase+AsyncAwait.swift:68:99: warning: type 'MongoCollection<T>' does not conform to the 'Sendable' protocol
66 | session: ClientSession? = nil
67 | ) async throws -> MongoCollection<T> {
68 | try await self.createCollection(name, withType: type, options: options, session: session).get()
| `- warning: type 'MongoCollection<T>' does not conform to the 'Sendable' protocol
69 | }
70 |
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/MongoCollection.swift:17:15: note: consider making generic struct 'MongoCollection' conform to the 'Sendable' protocol
15 | // sourcery: skipSyncExport
16 | /// A MongoDB collection.
17 | public struct MongoCollection<T: Codable> {
| `- note: consider making generic struct 'MongoCollection' conform to the 'Sendable' protocol
18 | /// The client which this collection was derived from.
19 | internal let _client: MongoClient
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/AsyncAwait/MongoDatabase+AsyncAwait.swift:90:84: warning: type 'MongoCursor<CollectionSpecification>' does not conform to the 'Sendable' protocol
88 | session: ClientSession? = nil
89 | ) async throws -> MongoCursor<CollectionSpecification> {
90 | try await self.listCollections(filter, options: options, session: session).get()
| `- warning: type 'MongoCursor<CollectionSpecification>' does not conform to the 'Sendable' protocol
91 | }
92 |
/Users/admin/builder/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
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/AsyncAwait/MongoDatabase+AsyncAwait.swift:165:80: warning: type 'BSONDocument' does not conform to the 'Sendable' protocol
163 | session: ClientSession? = nil
164 | ) async throws -> BSONDocument {
165 | try await self.runCommand(command, options: options, session: session).get()
| `- warning: type 'BSONDocument' does not conform to the 'Sendable' protocol
166 | }
167 |
/Users/admin/builder/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)
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/AsyncAwait/MongoDatabase+AsyncAwait.swift:282:11: warning: type 'ChangeStream<EventType>' does not conform to the 'Sendable' protocol
280 | session: session,
281 | withEventType: EventType.self
282 | ).get()
| `- warning: type 'ChangeStream<EventType>' does not conform to the 'Sendable' protocol
283 | }
284 |
/Users/admin/builder/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 |
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/AsyncAwait/MongoDatabase+AsyncAwait.swift:349:11: warning: type 'MongoCursor<OutputType>' does not conform to the 'Sendable' protocol
347 | session: session,
348 | withOutputType: withOutputType
349 | ).get()
| `- warning: type 'MongoCursor<OutputType>' does not conform to the 'Sendable' protocol
350 | }
351 | }
/Users/admin/builder/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
[499/542] Compiling MongoSwift ChangeStream.swift
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/ConnectionPool.swift:151:43: warning: conformance of 'OpaquePointer' to 'Sendable' is unavailable
149 | case let .opening(future):
150 | do {
151 | let pool = try future.wait()
| `- warning: conformance of 'OpaquePointer' to 'Sendable' is unavailable
152 | self.state = .open(pool: pool)
153 | return try body(pool)
Swift.OpaquePointer:2:11: note: conformance of 'OpaquePointer' to 'Sendable' has been explicitly marked unavailable here
1 | @available(*, unavailable)
2 | extension OpaquePointer : Sendable {
| `- note: conformance of 'OpaquePointer' to 'Sendable' has been explicitly marked unavailable here
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/ConnectionPool.swift:175:43: warning: conformance of 'OpaquePointer' to 'Sendable' is unavailable
173 | case let .opening(future):
174 | do {
175 | let pool = try future.wait()
| `- warning: conformance of 'OpaquePointer' to 'Sendable' is unavailable
176 | self.state = .closing(pool: pool)
177 | } catch {
Swift.OpaquePointer:2:11: note: conformance of 'OpaquePointer' to 'Sendable' has been explicitly marked unavailable here
1 | @available(*, unavailable)
2 | extension OpaquePointer : Sendable {
| `- note: conformance of 'OpaquePointer' to 'Sendable' has been explicitly marked unavailable here
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/CursorCommon.swift:137:23: warning: 'Lock' is deprecated: renamed to 'NIOLock' [#DeprecatedDeclaration]
135 | /// Lock used to synchronize usage of the internal state: specifically the `state` and `cached` properties.
136 | /// This lock should only be acquired in the bodies of non-private methods.
137 | private let lock: Lock
| |- warning: 'Lock' is deprecated: renamed to 'NIOLock' [#DeprecatedDeclaration]
| `- note: use 'NIOLock' instead
138 |
139 | /// Atomic variable used to signal long running operations (e.g. `next(...)`) that the cursor is closing.
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/CursorCommon.swift:140:28: warning: 'NIOAtomic' is deprecated: please use ManagedAtomic from https://github.com/apple/swift-atomics instead [#DeprecatedDeclaration]
138 |
139 | /// Atomic variable used to signal long running operations (e.g. `next(...)`) that the cursor is closing.
140 | private var isClosing: NIOAtomic<Bool>
| `- warning: 'NIOAtomic' is deprecated: please use ManagedAtomic from https://github.com/apple/swift-atomics instead [#DeprecatedDeclaration]
141 |
142 | /// Retrieves any error that occurred in mongoc or on the server while iterating the cursor. Returns `nil` if this
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/CursorCommon.swift:241:21: warning: 'Lock' is deprecated: renamed to 'NIOLock' [#DeprecatedDeclaration]
239 | self.state = .open(cursor: mongocCursor, connection: connection, session: session)
240 | self.type = type
241 | self.lock = Lock()
| |- warning: 'Lock' is deprecated: renamed to 'NIOLock' [#DeprecatedDeclaration]
| `- note: use 'NIOLock' instead
242 | self.isClosing = NIOAtomic.makeAtomic(value: false)
243 | self.cached = .none
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/CursorCommon.swift:242:26: warning: 'NIOAtomic' is deprecated: please use ManagedAtomic from https://github.com/apple/swift-atomics instead [#DeprecatedDeclaration]
240 | self.type = type
241 | self.lock = Lock()
242 | self.isClosing = NIOAtomic.makeAtomic(value: false)
| `- warning: 'NIOAtomic' is deprecated: please use ManagedAtomic from https://github.com/apple/swift-atomics instead [#DeprecatedDeclaration]
243 | self.cached = .none
244 |
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/MongoClient.swift:287:45: warning: 'NIOAtomic' is deprecated: please use ManagedAtomic from https://github.com/apple/swift-atomics instead [#DeprecatedDeclaration]
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 [#DeprecatedDeclaration]
288 |
289 | /// A unique identifier for this client. Sets _id to the generator's current value and increments the generator.
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[500/542] Compiling MongoSwift ChangeStreamEvent.swift
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/ConnectionPool.swift:151:43: warning: conformance of 'OpaquePointer' to 'Sendable' is unavailable
149 | case let .opening(future):
150 | do {
151 | let pool = try future.wait()
| `- warning: conformance of 'OpaquePointer' to 'Sendable' is unavailable
152 | self.state = .open(pool: pool)
153 | return try body(pool)
Swift.OpaquePointer:2:11: note: conformance of 'OpaquePointer' to 'Sendable' has been explicitly marked unavailable here
1 | @available(*, unavailable)
2 | extension OpaquePointer : Sendable {
| `- note: conformance of 'OpaquePointer' to 'Sendable' has been explicitly marked unavailable here
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/ConnectionPool.swift:175:43: warning: conformance of 'OpaquePointer' to 'Sendable' is unavailable
173 | case let .opening(future):
174 | do {
175 | let pool = try future.wait()
| `- warning: conformance of 'OpaquePointer' to 'Sendable' is unavailable
176 | self.state = .closing(pool: pool)
177 | } catch {
Swift.OpaquePointer:2:11: note: conformance of 'OpaquePointer' to 'Sendable' has been explicitly marked unavailable here
1 | @available(*, unavailable)
2 | extension OpaquePointer : Sendable {
| `- note: conformance of 'OpaquePointer' to 'Sendable' has been explicitly marked unavailable here
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/CursorCommon.swift:137:23: warning: 'Lock' is deprecated: renamed to 'NIOLock' [#DeprecatedDeclaration]
135 | /// Lock used to synchronize usage of the internal state: specifically the `state` and `cached` properties.
136 | /// This lock should only be acquired in the bodies of non-private methods.
137 | private let lock: Lock
| |- warning: 'Lock' is deprecated: renamed to 'NIOLock' [#DeprecatedDeclaration]
| `- note: use 'NIOLock' instead
138 |
139 | /// Atomic variable used to signal long running operations (e.g. `next(...)`) that the cursor is closing.
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/CursorCommon.swift:140:28: warning: 'NIOAtomic' is deprecated: please use ManagedAtomic from https://github.com/apple/swift-atomics instead [#DeprecatedDeclaration]
138 |
139 | /// Atomic variable used to signal long running operations (e.g. `next(...)`) that the cursor is closing.
140 | private var isClosing: NIOAtomic<Bool>
| `- warning: 'NIOAtomic' is deprecated: please use ManagedAtomic from https://github.com/apple/swift-atomics instead [#DeprecatedDeclaration]
141 |
142 | /// Retrieves any error that occurred in mongoc or on the server while iterating the cursor. Returns `nil` if this
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/CursorCommon.swift:241:21: warning: 'Lock' is deprecated: renamed to 'NIOLock' [#DeprecatedDeclaration]
239 | self.state = .open(cursor: mongocCursor, connection: connection, session: session)
240 | self.type = type
241 | self.lock = Lock()
| |- warning: 'Lock' is deprecated: renamed to 'NIOLock' [#DeprecatedDeclaration]
| `- note: use 'NIOLock' instead
242 | self.isClosing = NIOAtomic.makeAtomic(value: false)
243 | self.cached = .none
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/CursorCommon.swift:242:26: warning: 'NIOAtomic' is deprecated: please use ManagedAtomic from https://github.com/apple/swift-atomics instead [#DeprecatedDeclaration]
240 | self.type = type
241 | self.lock = Lock()
242 | self.isClosing = NIOAtomic.makeAtomic(value: false)
| `- warning: 'NIOAtomic' is deprecated: please use ManagedAtomic from https://github.com/apple/swift-atomics instead [#DeprecatedDeclaration]
243 | self.cached = .none
244 |
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/MongoClient.swift:287:45: warning: 'NIOAtomic' is deprecated: please use ManagedAtomic from https://github.com/apple/swift-atomics instead [#DeprecatedDeclaration]
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 [#DeprecatedDeclaration]
288 |
289 | /// A unique identifier for this client. Sets _id to the generator's current value and increments the generator.
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[501/542] Compiling MongoSwift ChangeStreamOptions.swift
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/ConnectionPool.swift:151:43: warning: conformance of 'OpaquePointer' to 'Sendable' is unavailable
149 | case let .opening(future):
150 | do {
151 | let pool = try future.wait()
| `- warning: conformance of 'OpaquePointer' to 'Sendable' is unavailable
152 | self.state = .open(pool: pool)
153 | return try body(pool)
Swift.OpaquePointer:2:11: note: conformance of 'OpaquePointer' to 'Sendable' has been explicitly marked unavailable here
1 | @available(*, unavailable)
2 | extension OpaquePointer : Sendable {
| `- note: conformance of 'OpaquePointer' to 'Sendable' has been explicitly marked unavailable here
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/ConnectionPool.swift:175:43: warning: conformance of 'OpaquePointer' to 'Sendable' is unavailable
173 | case let .opening(future):
174 | do {
175 | let pool = try future.wait()
| `- warning: conformance of 'OpaquePointer' to 'Sendable' is unavailable
176 | self.state = .closing(pool: pool)
177 | } catch {
Swift.OpaquePointer:2:11: note: conformance of 'OpaquePointer' to 'Sendable' has been explicitly marked unavailable here
1 | @available(*, unavailable)
2 | extension OpaquePointer : Sendable {
| `- note: conformance of 'OpaquePointer' to 'Sendable' has been explicitly marked unavailable here
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/CursorCommon.swift:137:23: warning: 'Lock' is deprecated: renamed to 'NIOLock' [#DeprecatedDeclaration]
135 | /// Lock used to synchronize usage of the internal state: specifically the `state` and `cached` properties.
136 | /// This lock should only be acquired in the bodies of non-private methods.
137 | private let lock: Lock
| |- warning: 'Lock' is deprecated: renamed to 'NIOLock' [#DeprecatedDeclaration]
| `- note: use 'NIOLock' instead
138 |
139 | /// Atomic variable used to signal long running operations (e.g. `next(...)`) that the cursor is closing.
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/CursorCommon.swift:140:28: warning: 'NIOAtomic' is deprecated: please use ManagedAtomic from https://github.com/apple/swift-atomics instead [#DeprecatedDeclaration]
138 |
139 | /// Atomic variable used to signal long running operations (e.g. `next(...)`) that the cursor is closing.
140 | private var isClosing: NIOAtomic<Bool>
| `- warning: 'NIOAtomic' is deprecated: please use ManagedAtomic from https://github.com/apple/swift-atomics instead [#DeprecatedDeclaration]
141 |
142 | /// Retrieves any error that occurred in mongoc or on the server while iterating the cursor. Returns `nil` if this
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/CursorCommon.swift:241:21: warning: 'Lock' is deprecated: renamed to 'NIOLock' [#DeprecatedDeclaration]
239 | self.state = .open(cursor: mongocCursor, connection: connection, session: session)
240 | self.type = type
241 | self.lock = Lock()
| |- warning: 'Lock' is deprecated: renamed to 'NIOLock' [#DeprecatedDeclaration]
| `- note: use 'NIOLock' instead
242 | self.isClosing = NIOAtomic.makeAtomic(value: false)
243 | self.cached = .none
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/CursorCommon.swift:242:26: warning: 'NIOAtomic' is deprecated: please use ManagedAtomic from https://github.com/apple/swift-atomics instead [#DeprecatedDeclaration]
240 | self.type = type
241 | self.lock = Lock()
242 | self.isClosing = NIOAtomic.makeAtomic(value: false)
| `- warning: 'NIOAtomic' is deprecated: please use ManagedAtomic from https://github.com/apple/swift-atomics instead [#DeprecatedDeclaration]
243 | self.cached = .none
244 |
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/MongoClient.swift:287:45: warning: 'NIOAtomic' is deprecated: please use ManagedAtomic from https://github.com/apple/swift-atomics instead [#DeprecatedDeclaration]
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 [#DeprecatedDeclaration]
288 |
289 | /// A unique identifier for this client. Sets _id to the generator's current value and increments the generator.
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[502/542] Compiling MongoSwift ClientSession.swift
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/ConnectionPool.swift:151:43: warning: conformance of 'OpaquePointer' to 'Sendable' is unavailable
149 | case let .opening(future):
150 | do {
151 | let pool = try future.wait()
| `- warning: conformance of 'OpaquePointer' to 'Sendable' is unavailable
152 | self.state = .open(pool: pool)
153 | return try body(pool)
Swift.OpaquePointer:2:11: note: conformance of 'OpaquePointer' to 'Sendable' has been explicitly marked unavailable here
1 | @available(*, unavailable)
2 | extension OpaquePointer : Sendable {
| `- note: conformance of 'OpaquePointer' to 'Sendable' has been explicitly marked unavailable here
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/ConnectionPool.swift:175:43: warning: conformance of 'OpaquePointer' to 'Sendable' is unavailable
173 | case let .opening(future):
174 | do {
175 | let pool = try future.wait()
| `- warning: conformance of 'OpaquePointer' to 'Sendable' is unavailable
176 | self.state = .closing(pool: pool)
177 | } catch {
Swift.OpaquePointer:2:11: note: conformance of 'OpaquePointer' to 'Sendable' has been explicitly marked unavailable here
1 | @available(*, unavailable)
2 | extension OpaquePointer : Sendable {
| `- note: conformance of 'OpaquePointer' to 'Sendable' has been explicitly marked unavailable here
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/CursorCommon.swift:137:23: warning: 'Lock' is deprecated: renamed to 'NIOLock' [#DeprecatedDeclaration]
135 | /// Lock used to synchronize usage of the internal state: specifically the `state` and `cached` properties.
136 | /// This lock should only be acquired in the bodies of non-private methods.
137 | private let lock: Lock
| |- warning: 'Lock' is deprecated: renamed to 'NIOLock' [#DeprecatedDeclaration]
| `- note: use 'NIOLock' instead
138 |
139 | /// Atomic variable used to signal long running operations (e.g. `next(...)`) that the cursor is closing.
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/CursorCommon.swift:140:28: warning: 'NIOAtomic' is deprecated: please use ManagedAtomic from https://github.com/apple/swift-atomics instead [#DeprecatedDeclaration]
138 |
139 | /// Atomic variable used to signal long running operations (e.g. `next(...)`) that the cursor is closing.
140 | private var isClosing: NIOAtomic<Bool>
| `- warning: 'NIOAtomic' is deprecated: please use ManagedAtomic from https://github.com/apple/swift-atomics instead [#DeprecatedDeclaration]
141 |
142 | /// Retrieves any error that occurred in mongoc or on the server while iterating the cursor. Returns `nil` if this
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/CursorCommon.swift:241:21: warning: 'Lock' is deprecated: renamed to 'NIOLock' [#DeprecatedDeclaration]
239 | self.state = .open(cursor: mongocCursor, connection: connection, session: session)
240 | self.type = type
241 | self.lock = Lock()
| |- warning: 'Lock' is deprecated: renamed to 'NIOLock' [#DeprecatedDeclaration]
| `- note: use 'NIOLock' instead
242 | self.isClosing = NIOAtomic.makeAtomic(value: false)
243 | self.cached = .none
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/CursorCommon.swift:242:26: warning: 'NIOAtomic' is deprecated: please use ManagedAtomic from https://github.com/apple/swift-atomics instead [#DeprecatedDeclaration]
240 | self.type = type
241 | self.lock = Lock()
242 | self.isClosing = NIOAtomic.makeAtomic(value: false)
| `- warning: 'NIOAtomic' is deprecated: please use ManagedAtomic from https://github.com/apple/swift-atomics instead [#DeprecatedDeclaration]
243 | self.cached = .none
244 |
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/MongoClient.swift:287:45: warning: 'NIOAtomic' is deprecated: please use ManagedAtomic from https://github.com/apple/swift-atomics instead [#DeprecatedDeclaration]
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 [#DeprecatedDeclaration]
288 |
289 | /// A unique identifier for this client. Sets _id to the generator's current value and increments the generator.
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[503/542] Compiling MongoSwift Compressor.swift
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/ConnectionPool.swift:151:43: warning: conformance of 'OpaquePointer' to 'Sendable' is unavailable
149 | case let .opening(future):
150 | do {
151 | let pool = try future.wait()
| `- warning: conformance of 'OpaquePointer' to 'Sendable' is unavailable
152 | self.state = .open(pool: pool)
153 | return try body(pool)
Swift.OpaquePointer:2:11: note: conformance of 'OpaquePointer' to 'Sendable' has been explicitly marked unavailable here
1 | @available(*, unavailable)
2 | extension OpaquePointer : Sendable {
| `- note: conformance of 'OpaquePointer' to 'Sendable' has been explicitly marked unavailable here
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/ConnectionPool.swift:175:43: warning: conformance of 'OpaquePointer' to 'Sendable' is unavailable
173 | case let .opening(future):
174 | do {
175 | let pool = try future.wait()
| `- warning: conformance of 'OpaquePointer' to 'Sendable' is unavailable
176 | self.state = .closing(pool: pool)
177 | } catch {
Swift.OpaquePointer:2:11: note: conformance of 'OpaquePointer' to 'Sendable' has been explicitly marked unavailable here
1 | @available(*, unavailable)
2 | extension OpaquePointer : Sendable {
| `- note: conformance of 'OpaquePointer' to 'Sendable' has been explicitly marked unavailable here
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/CursorCommon.swift:137:23: warning: 'Lock' is deprecated: renamed to 'NIOLock' [#DeprecatedDeclaration]
135 | /// Lock used to synchronize usage of the internal state: specifically the `state` and `cached` properties.
136 | /// This lock should only be acquired in the bodies of non-private methods.
137 | private let lock: Lock
| |- warning: 'Lock' is deprecated: renamed to 'NIOLock' [#DeprecatedDeclaration]
| `- note: use 'NIOLock' instead
138 |
139 | /// Atomic variable used to signal long running operations (e.g. `next(...)`) that the cursor is closing.
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/CursorCommon.swift:140:28: warning: 'NIOAtomic' is deprecated: please use ManagedAtomic from https://github.com/apple/swift-atomics instead [#DeprecatedDeclaration]
138 |
139 | /// Atomic variable used to signal long running operations (e.g. `next(...)`) that the cursor is closing.
140 | private var isClosing: NIOAtomic<Bool>
| `- warning: 'NIOAtomic' is deprecated: please use ManagedAtomic from https://github.com/apple/swift-atomics instead [#DeprecatedDeclaration]
141 |
142 | /// Retrieves any error that occurred in mongoc or on the server while iterating the cursor. Returns `nil` if this
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/CursorCommon.swift:241:21: warning: 'Lock' is deprecated: renamed to 'NIOLock' [#DeprecatedDeclaration]
239 | self.state = .open(cursor: mongocCursor, connection: connection, session: session)
240 | self.type = type
241 | self.lock = Lock()
| |- warning: 'Lock' is deprecated: renamed to 'NIOLock' [#DeprecatedDeclaration]
| `- note: use 'NIOLock' instead
242 | self.isClosing = NIOAtomic.makeAtomic(value: false)
243 | self.cached = .none
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/CursorCommon.swift:242:26: warning: 'NIOAtomic' is deprecated: please use ManagedAtomic from https://github.com/apple/swift-atomics instead [#DeprecatedDeclaration]
240 | self.type = type
241 | self.lock = Lock()
242 | self.isClosing = NIOAtomic.makeAtomic(value: false)
| `- warning: 'NIOAtomic' is deprecated: please use ManagedAtomic from https://github.com/apple/swift-atomics instead [#DeprecatedDeclaration]
243 | self.cached = .none
244 |
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/MongoClient.swift:287:45: warning: 'NIOAtomic' is deprecated: please use ManagedAtomic from https://github.com/apple/swift-atomics instead [#DeprecatedDeclaration]
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 [#DeprecatedDeclaration]
288 |
289 | /// A unique identifier for this client. Sets _id to the generator's current value and increments the generator.
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[504/542] Compiling MongoSwift ConnectionPool.swift
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/ConnectionPool.swift:151:43: warning: conformance of 'OpaquePointer' to 'Sendable' is unavailable
149 | case let .opening(future):
150 | do {
151 | let pool = try future.wait()
| `- warning: conformance of 'OpaquePointer' to 'Sendable' is unavailable
152 | self.state = .open(pool: pool)
153 | return try body(pool)
Swift.OpaquePointer:2:11: note: conformance of 'OpaquePointer' to 'Sendable' has been explicitly marked unavailable here
1 | @available(*, unavailable)
2 | extension OpaquePointer : Sendable {
| `- note: conformance of 'OpaquePointer' to 'Sendable' has been explicitly marked unavailable here
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/ConnectionPool.swift:175:43: warning: conformance of 'OpaquePointer' to 'Sendable' is unavailable
173 | case let .opening(future):
174 | do {
175 | let pool = try future.wait()
| `- warning: conformance of 'OpaquePointer' to 'Sendable' is unavailable
176 | self.state = .closing(pool: pool)
177 | } catch {
Swift.OpaquePointer:2:11: note: conformance of 'OpaquePointer' to 'Sendable' has been explicitly marked unavailable here
1 | @available(*, unavailable)
2 | extension OpaquePointer : Sendable {
| `- note: conformance of 'OpaquePointer' to 'Sendable' has been explicitly marked unavailable here
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/CursorCommon.swift:137:23: warning: 'Lock' is deprecated: renamed to 'NIOLock' [#DeprecatedDeclaration]
135 | /// Lock used to synchronize usage of the internal state: specifically the `state` and `cached` properties.
136 | /// This lock should only be acquired in the bodies of non-private methods.
137 | private let lock: Lock
| |- warning: 'Lock' is deprecated: renamed to 'NIOLock' [#DeprecatedDeclaration]
| `- note: use 'NIOLock' instead
138 |
139 | /// Atomic variable used to signal long running operations (e.g. `next(...)`) that the cursor is closing.
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/CursorCommon.swift:140:28: warning: 'NIOAtomic' is deprecated: please use ManagedAtomic from https://github.com/apple/swift-atomics instead [#DeprecatedDeclaration]
138 |
139 | /// Atomic variable used to signal long running operations (e.g. `next(...)`) that the cursor is closing.
140 | private var isClosing: NIOAtomic<Bool>
| `- warning: 'NIOAtomic' is deprecated: please use ManagedAtomic from https://github.com/apple/swift-atomics instead [#DeprecatedDeclaration]
141 |
142 | /// Retrieves any error that occurred in mongoc or on the server while iterating the cursor. Returns `nil` if this
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/CursorCommon.swift:241:21: warning: 'Lock' is deprecated: renamed to 'NIOLock' [#DeprecatedDeclaration]
239 | self.state = .open(cursor: mongocCursor, connection: connection, session: session)
240 | self.type = type
241 | self.lock = Lock()
| |- warning: 'Lock' is deprecated: renamed to 'NIOLock' [#DeprecatedDeclaration]
| `- note: use 'NIOLock' instead
242 | self.isClosing = NIOAtomic.makeAtomic(value: false)
243 | self.cached = .none
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/CursorCommon.swift:242:26: warning: 'NIOAtomic' is deprecated: please use ManagedAtomic from https://github.com/apple/swift-atomics instead [#DeprecatedDeclaration]
240 | self.type = type
241 | self.lock = Lock()
242 | self.isClosing = NIOAtomic.makeAtomic(value: false)
| `- warning: 'NIOAtomic' is deprecated: please use ManagedAtomic from https://github.com/apple/swift-atomics instead [#DeprecatedDeclaration]
243 | self.cached = .none
244 |
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/MongoClient.swift:287:45: warning: 'NIOAtomic' is deprecated: please use ManagedAtomic from https://github.com/apple/swift-atomics instead [#DeprecatedDeclaration]
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 [#DeprecatedDeclaration]
288 |
289 | /// A unique identifier for this client. Sets _id to the generator's current value and increments the generator.
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[505/542] Compiling MongoSwift CursorCommon.swift
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/ConnectionPool.swift:151:43: warning: conformance of 'OpaquePointer' to 'Sendable' is unavailable
149 | case let .opening(future):
150 | do {
151 | let pool = try future.wait()
| `- warning: conformance of 'OpaquePointer' to 'Sendable' is unavailable
152 | self.state = .open(pool: pool)
153 | return try body(pool)
Swift.OpaquePointer:2:11: note: conformance of 'OpaquePointer' to 'Sendable' has been explicitly marked unavailable here
1 | @available(*, unavailable)
2 | extension OpaquePointer : Sendable {
| `- note: conformance of 'OpaquePointer' to 'Sendable' has been explicitly marked unavailable here
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/ConnectionPool.swift:175:43: warning: conformance of 'OpaquePointer' to 'Sendable' is unavailable
173 | case let .opening(future):
174 | do {
175 | let pool = try future.wait()
| `- warning: conformance of 'OpaquePointer' to 'Sendable' is unavailable
176 | self.state = .closing(pool: pool)
177 | } catch {
Swift.OpaquePointer:2:11: note: conformance of 'OpaquePointer' to 'Sendable' has been explicitly marked unavailable here
1 | @available(*, unavailable)
2 | extension OpaquePointer : Sendable {
| `- note: conformance of 'OpaquePointer' to 'Sendable' has been explicitly marked unavailable here
3 | }
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/CursorCommon.swift:137:23: warning: 'Lock' is deprecated: renamed to 'NIOLock' [#DeprecatedDeclaration]
135 | /// Lock used to synchronize usage of the internal state: specifically the `state` and `cached` properties.
136 | /// This lock should only be acquired in the bodies of non-private methods.
137 | private let lock: Lock
| |- warning: 'Lock' is deprecated: renamed to 'NIOLock' [#DeprecatedDeclaration]
| `- note: use 'NIOLock' instead
138 |
139 | /// Atomic variable used to signal long running operations (e.g. `next(...)`) that the cursor is closing.
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/CursorCommon.swift:140:28: warning: 'NIOAtomic' is deprecated: please use ManagedAtomic from https://github.com/apple/swift-atomics instead [#DeprecatedDeclaration]
138 |
139 | /// Atomic variable used to signal long running operations (e.g. `next(...)`) that the cursor is closing.
140 | private var isClosing: NIOAtomic<Bool>
| `- warning: 'NIOAtomic' is deprecated: please use ManagedAtomic from https://github.com/apple/swift-atomics instead [#DeprecatedDeclaration]
141 |
142 | /// Retrieves any error that occurred in mongoc or on the server while iterating the cursor. Returns `nil` if this
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/CursorCommon.swift:241:21: warning: 'Lock' is deprecated: renamed to 'NIOLock' [#DeprecatedDeclaration]
239 | self.state = .open(cursor: mongocCursor, connection: connection, session: session)
240 | self.type = type
241 | self.lock = Lock()
| |- warning: 'Lock' is deprecated: renamed to 'NIOLock' [#DeprecatedDeclaration]
| `- note: use 'NIOLock' instead
242 | self.isClosing = NIOAtomic.makeAtomic(value: false)
243 | self.cached = .none
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/CursorCommon.swift:242:26: warning: 'NIOAtomic' is deprecated: please use ManagedAtomic from https://github.com/apple/swift-atomics instead [#DeprecatedDeclaration]
240 | self.type = type
241 | self.lock = Lock()
242 | self.isClosing = NIOAtomic.makeAtomic(value: false)
| `- warning: 'NIOAtomic' is deprecated: please use ManagedAtomic from https://github.com/apple/swift-atomics instead [#DeprecatedDeclaration]
243 | self.cached = .none
244 |
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/MongoClient.swift:287:45: warning: 'NIOAtomic' is deprecated: please use ManagedAtomic from https://github.com/apple/swift-atomics instead [#DeprecatedDeclaration]
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 [#DeprecatedDeclaration]
288 |
289 | /// A unique identifier for this client. Sets _id to the generator's current value and increments the generator.
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[506/542] Compiling MongoSwift ListIndexesOperation.swift
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/Operations/Operation.swift:60:13: warning: capture of non-sendable type 'T.Type' in an isolated closure
58 | ) -> EventLoopFuture<T.OperationResult> {
59 | // closure containing the work to run in the thread pool: obtain a connection and execute the operation.
60 | let doOperation = { () -> ExecuteResult<T.OperationResult> in
| `- warning: capture of non-sendable type 'T.Type' in an isolated closure
61 | // if a session was provided, use its underlying connection. otherwise, use a new connection from the pool
62 | // if available.
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/Operations/Operation.swift:79:13: warning: capture of non-sendable type 'T.Type' in an isolated closure
77 | // - cursors can't finish iterating and give up their connections, because they need threads, but ops in pool
78 | // can't complete and free up threads, because they need connections!
79 | let resubmitIfNeeded = { (result: ExecuteResult<T.OperationResult>) -> EventLoopFuture<T.OperationResult> in
| `- warning: capture of non-sendable type 'T.Type' in an isolated closure
80 | switch result {
81 | case let .success(res):
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/Operations/Operation.swift:79:13: warning: capture of non-sendable type 'T.Type' in an isolated closure
77 | // - cursors can't finish iterating and give up their connections, because they need threads, but ops in pool
78 | // can't complete and free up threads, because they need connections!
79 | let resubmitIfNeeded = { (result: ExecuteResult<T.OperationResult>) -> EventLoopFuture<T.OperationResult> in
| `- warning: capture of non-sendable type 'T.Type' in an isolated closure
80 | switch result {
81 | case let .success(res):
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/MongoClient.swift:287:45: warning: 'NIOAtomic' is deprecated: please use ManagedAtomic from https://github.com/apple/swift-atomics instead [#DeprecatedDeclaration]
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 [#DeprecatedDeclaration]
288 |
289 | /// A unique identifier for this client. Sets _id to the generator's current value and increments the generator.
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[507/542] Compiling MongoSwift MongocCommandHelpers.swift
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/Operations/Operation.swift:60:13: warning: capture of non-sendable type 'T.Type' in an isolated closure
58 | ) -> EventLoopFuture<T.OperationResult> {
59 | // closure containing the work to run in the thread pool: obtain a connection and execute the operation.
60 | let doOperation = { () -> ExecuteResult<T.OperationResult> in
| `- warning: capture of non-sendable type 'T.Type' in an isolated closure
61 | // if a session was provided, use its underlying connection. otherwise, use a new connection from the pool
62 | // if available.
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/Operations/Operation.swift:79:13: warning: capture of non-sendable type 'T.Type' in an isolated closure
77 | // - cursors can't finish iterating and give up their connections, because they need threads, but ops in pool
78 | // can't complete and free up threads, because they need connections!
79 | let resubmitIfNeeded = { (result: ExecuteResult<T.OperationResult>) -> EventLoopFuture<T.OperationResult> in
| `- warning: capture of non-sendable type 'T.Type' in an isolated closure
80 | switch result {
81 | case let .success(res):
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/Operations/Operation.swift:79:13: warning: capture of non-sendable type 'T.Type' in an isolated closure
77 | // - cursors can't finish iterating and give up their connections, because they need threads, but ops in pool
78 | // can't complete and free up threads, because they need connections!
79 | let resubmitIfNeeded = { (result: ExecuteResult<T.OperationResult>) -> EventLoopFuture<T.OperationResult> in
| `- warning: capture of non-sendable type 'T.Type' in an isolated closure
80 | switch result {
81 | case let .success(res):
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/MongoClient.swift:287:45: warning: 'NIOAtomic' is deprecated: please use ManagedAtomic from https://github.com/apple/swift-atomics instead [#DeprecatedDeclaration]
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 [#DeprecatedDeclaration]
288 |
289 | /// A unique identifier for this client. Sets _id to the generator's current value and increments the generator.
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[508/542] Compiling MongoSwift Operation.swift
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/Operations/Operation.swift:60:13: warning: capture of non-sendable type 'T.Type' in an isolated closure
58 | ) -> EventLoopFuture<T.OperationResult> {
59 | // closure containing the work to run in the thread pool: obtain a connection and execute the operation.
60 | let doOperation = { () -> ExecuteResult<T.OperationResult> in
| `- warning: capture of non-sendable type 'T.Type' in an isolated closure
61 | // if a session was provided, use its underlying connection. otherwise, use a new connection from the pool
62 | // if available.
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/Operations/Operation.swift:79:13: warning: capture of non-sendable type 'T.Type' in an isolated closure
77 | // - cursors can't finish iterating and give up their connections, because they need threads, but ops in pool
78 | // can't complete and free up threads, because they need connections!
79 | let resubmitIfNeeded = { (result: ExecuteResult<T.OperationResult>) -> EventLoopFuture<T.OperationResult> in
| `- warning: capture of non-sendable type 'T.Type' in an isolated closure
80 | switch result {
81 | case let .success(res):
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/Operations/Operation.swift:79:13: warning: capture of non-sendable type 'T.Type' in an isolated closure
77 | // - cursors can't finish iterating and give up their connections, because they need threads, but ops in pool
78 | // can't complete and free up threads, because they need connections!
79 | let resubmitIfNeeded = { (result: ExecuteResult<T.OperationResult>) -> EventLoopFuture<T.OperationResult> in
| `- warning: capture of non-sendable type 'T.Type' in an isolated closure
80 | switch result {
81 | case let .success(res):
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/MongoClient.swift:287:45: warning: 'NIOAtomic' is deprecated: please use ManagedAtomic from https://github.com/apple/swift-atomics instead [#DeprecatedDeclaration]
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 [#DeprecatedDeclaration]
288 |
289 | /// A unique identifier for this client. Sets _id to the generator's current value and increments the generator.
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[509/542] Compiling MongoSwift RenameCollectionOperation.swift
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/Operations/Operation.swift:60:13: warning: capture of non-sendable type 'T.Type' in an isolated closure
58 | ) -> EventLoopFuture<T.OperationResult> {
59 | // closure containing the work to run in the thread pool: obtain a connection and execute the operation.
60 | let doOperation = { () -> ExecuteResult<T.OperationResult> in
| `- warning: capture of non-sendable type 'T.Type' in an isolated closure
61 | // if a session was provided, use its underlying connection. otherwise, use a new connection from the pool
62 | // if available.
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/Operations/Operation.swift:79:13: warning: capture of non-sendable type 'T.Type' in an isolated closure
77 | // - cursors can't finish iterating and give up their connections, because they need threads, but ops in pool
78 | // can't complete and free up threads, because they need connections!
79 | let resubmitIfNeeded = { (result: ExecuteResult<T.OperationResult>) -> EventLoopFuture<T.OperationResult> in
| `- warning: capture of non-sendable type 'T.Type' in an isolated closure
80 | switch result {
81 | case let .success(res):
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/Operations/Operation.swift:79:13: warning: capture of non-sendable type 'T.Type' in an isolated closure
77 | // - cursors can't finish iterating and give up their connections, because they need threads, but ops in pool
78 | // can't complete and free up threads, because they need connections!
79 | let resubmitIfNeeded = { (result: ExecuteResult<T.OperationResult>) -> EventLoopFuture<T.OperationResult> in
| `- warning: capture of non-sendable type 'T.Type' in an isolated closure
80 | switch result {
81 | case let .success(res):
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/MongoClient.swift:287:45: warning: 'NIOAtomic' is deprecated: please use ManagedAtomic from https://github.com/apple/swift-atomics instead [#DeprecatedDeclaration]
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 [#DeprecatedDeclaration]
288 |
289 | /// A unique identifier for this client. Sets _id to the generator's current value and increments the generator.
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[510/542] Compiling MongoSwift RunCommandOperation.swift
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/Operations/Operation.swift:60:13: warning: capture of non-sendable type 'T.Type' in an isolated closure
58 | ) -> EventLoopFuture<T.OperationResult> {
59 | // closure containing the work to run in the thread pool: obtain a connection and execute the operation.
60 | let doOperation = { () -> ExecuteResult<T.OperationResult> in
| `- warning: capture of non-sendable type 'T.Type' in an isolated closure
61 | // if a session was provided, use its underlying connection. otherwise, use a new connection from the pool
62 | // if available.
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/Operations/Operation.swift:79:13: warning: capture of non-sendable type 'T.Type' in an isolated closure
77 | // - cursors can't finish iterating and give up their connections, because they need threads, but ops in pool
78 | // can't complete and free up threads, because they need connections!
79 | let resubmitIfNeeded = { (result: ExecuteResult<T.OperationResult>) -> EventLoopFuture<T.OperationResult> in
| `- warning: capture of non-sendable type 'T.Type' in an isolated closure
80 | switch result {
81 | case let .success(res):
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/Operations/Operation.swift:79:13: warning: capture of non-sendable type 'T.Type' in an isolated closure
77 | // - cursors can't finish iterating and give up their connections, because they need threads, but ops in pool
78 | // can't complete and free up threads, because they need connections!
79 | let resubmitIfNeeded = { (result: ExecuteResult<T.OperationResult>) -> EventLoopFuture<T.OperationResult> in
| `- warning: capture of non-sendable type 'T.Type' in an isolated closure
80 | switch result {
81 | case let .success(res):
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/MongoClient.swift:287:45: warning: 'NIOAtomic' is deprecated: please use ManagedAtomic from https://github.com/apple/swift-atomics instead [#DeprecatedDeclaration]
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 [#DeprecatedDeclaration]
288 |
289 | /// A unique identifier for this client. Sets _id to the generator's current value and increments the generator.
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[511/542] Compiling MongoSwift StartSessionOperation.swift
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/Operations/Operation.swift:60:13: warning: capture of non-sendable type 'T.Type' in an isolated closure
58 | ) -> EventLoopFuture<T.OperationResult> {
59 | // closure containing the work to run in the thread pool: obtain a connection and execute the operation.
60 | let doOperation = { () -> ExecuteResult<T.OperationResult> in
| `- warning: capture of non-sendable type 'T.Type' in an isolated closure
61 | // if a session was provided, use its underlying connection. otherwise, use a new connection from the pool
62 | // if available.
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/Operations/Operation.swift:79:13: warning: capture of non-sendable type 'T.Type' in an isolated closure
77 | // - cursors can't finish iterating and give up their connections, because they need threads, but ops in pool
78 | // can't complete and free up threads, because they need connections!
79 | let resubmitIfNeeded = { (result: ExecuteResult<T.OperationResult>) -> EventLoopFuture<T.OperationResult> in
| `- warning: capture of non-sendable type 'T.Type' in an isolated closure
80 | switch result {
81 | case let .success(res):
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/Operations/Operation.swift:79:13: warning: capture of non-sendable type 'T.Type' in an isolated closure
77 | // - cursors can't finish iterating and give up their connections, because they need threads, but ops in pool
78 | // can't complete and free up threads, because they need connections!
79 | let resubmitIfNeeded = { (result: ExecuteResult<T.OperationResult>) -> EventLoopFuture<T.OperationResult> in
| `- warning: capture of non-sendable type 'T.Type' in an isolated closure
80 | switch result {
81 | case let .success(res):
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/MongoClient.swift:287:45: warning: 'NIOAtomic' is deprecated: please use ManagedAtomic from https://github.com/apple/swift-atomics instead [#DeprecatedDeclaration]
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 [#DeprecatedDeclaration]
288 |
289 | /// A unique identifier for this client. Sets _id to the generator's current value and increments the generator.
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[512/542] Compiling MongoSwift StartTransactionOperation.swift
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/Operations/Operation.swift:60:13: warning: capture of non-sendable type 'T.Type' in an isolated closure
58 | ) -> EventLoopFuture<T.OperationResult> {
59 | // closure containing the work to run in the thread pool: obtain a connection and execute the operation.
60 | let doOperation = { () -> ExecuteResult<T.OperationResult> in
| `- warning: capture of non-sendable type 'T.Type' in an isolated closure
61 | // if a session was provided, use its underlying connection. otherwise, use a new connection from the pool
62 | // if available.
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/Operations/Operation.swift:79:13: warning: capture of non-sendable type 'T.Type' in an isolated closure
77 | // - cursors can't finish iterating and give up their connections, because they need threads, but ops in pool
78 | // can't complete and free up threads, because they need connections!
79 | let resubmitIfNeeded = { (result: ExecuteResult<T.OperationResult>) -> EventLoopFuture<T.OperationResult> in
| `- warning: capture of non-sendable type 'T.Type' in an isolated closure
80 | switch result {
81 | case let .success(res):
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/Operations/Operation.swift:79:13: warning: capture of non-sendable type 'T.Type' in an isolated closure
77 | // - cursors can't finish iterating and give up their connections, because they need threads, but ops in pool
78 | // can't complete and free up threads, because they need connections!
79 | let resubmitIfNeeded = { (result: ExecuteResult<T.OperationResult>) -> EventLoopFuture<T.OperationResult> in
| `- warning: capture of non-sendable type 'T.Type' in an isolated closure
80 | switch result {
81 | case let .success(res):
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/MongoClient.swift:287:45: warning: 'NIOAtomic' is deprecated: please use ManagedAtomic from https://github.com/apple/swift-atomics instead [#DeprecatedDeclaration]
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 [#DeprecatedDeclaration]
288 |
289 | /// A unique identifier for this client. Sets _id to the generator's current value and increments the generator.
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[513/542] Compiling MongoSwift EventLoopBoundMongoClient.swift
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/MongoClient.swift:287:45: warning: 'NIOAtomic' is deprecated: please use ManagedAtomic from https://github.com/apple/swift-atomics instead [#DeprecatedDeclaration]
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 [#DeprecatedDeclaration]
288 |
289 | /// A unique identifier for this client. Sets _id to the generator's current value and increments the generator.
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[514/542] Compiling MongoSwift Exports.swift
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/MongoClient.swift:287:45: warning: 'NIOAtomic' is deprecated: please use ManagedAtomic from https://github.com/apple/swift-atomics instead [#DeprecatedDeclaration]
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 [#DeprecatedDeclaration]
288 |
289 | /// A unique identifier for this client. Sets _id to the generator's current value and increments the generator.
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[515/542] Compiling MongoSwift Hint.swift
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/MongoClient.swift:287:45: warning: 'NIOAtomic' is deprecated: please use ManagedAtomic from https://github.com/apple/swift-atomics instead [#DeprecatedDeclaration]
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 [#DeprecatedDeclaration]
288 |
289 | /// A unique identifier for this client. Sets _id to the generator's current value and increments the generator.
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[516/542] Compiling MongoSwift MongoClient.swift
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/MongoClient.swift:287:45: warning: 'NIOAtomic' is deprecated: please use ManagedAtomic from https://github.com/apple/swift-atomics instead [#DeprecatedDeclaration]
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 [#DeprecatedDeclaration]
288 |
289 | /// A unique identifier for this client. Sets _id to the generator's current value and increments the generator.
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[517/542] Compiling MongoSwift MongoCollection+BulkWrite.swift
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/MongoClient.swift:287:45: warning: 'NIOAtomic' is deprecated: please use ManagedAtomic from https://github.com/apple/swift-atomics instead [#DeprecatedDeclaration]
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 [#DeprecatedDeclaration]
288 |
289 | /// A unique identifier for this client. Sets _id to the generator's current value and increments the generator.
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[518/542] Compiling MongoSwift MongoCollection+ChangeStreams.swift
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/MongoClient.swift:287:45: warning: 'NIOAtomic' is deprecated: please use ManagedAtomic from https://github.com/apple/swift-atomics instead [#DeprecatedDeclaration]
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 [#DeprecatedDeclaration]
288 |
289 | /// A unique identifier for this client. Sets _id to the generator's current value and increments the generator.
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[519/542] Compiling MongoSwift MongoCollection+FindAndModify.swift
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/MongoClient.swift:287:45: warning: 'NIOAtomic' is deprecated: please use ManagedAtomic from https://github.com/apple/swift-atomics instead [#DeprecatedDeclaration]
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 [#DeprecatedDeclaration]
288 |
289 | /// A unique identifier for this client. Sets _id to the generator's current value and increments the generator.
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[520/542] Compiling MongoSwift DropDatabaseOperation.swift
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/MongoClient.swift:287:45: warning: 'NIOAtomic' is deprecated: please use ManagedAtomic from https://github.com/apple/swift-atomics instead [#DeprecatedDeclaration]
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 [#DeprecatedDeclaration]
288 |
289 | /// A unique identifier for this client. Sets _id to the generator's current value and increments the generator.
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[521/542] Compiling MongoSwift DropIndexesOperation.swift
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/MongoClient.swift:287:45: warning: 'NIOAtomic' is deprecated: please use ManagedAtomic from https://github.com/apple/swift-atomics instead [#DeprecatedDeclaration]
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 [#DeprecatedDeclaration]
288 |
289 | /// A unique identifier for this client. Sets _id to the generator's current value and increments the generator.
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[522/542] Compiling MongoSwift EstimatedDocumentCountOperation.swift
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/MongoClient.swift:287:45: warning: 'NIOAtomic' is deprecated: please use ManagedAtomic from https://github.com/apple/swift-atomics instead [#DeprecatedDeclaration]
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 [#DeprecatedDeclaration]
288 |
289 | /// A unique identifier for this client. Sets _id to the generator's current value and increments the generator.
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[523/542] Compiling MongoSwift FindAndModifyOperation.swift
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/MongoClient.swift:287:45: warning: 'NIOAtomic' is deprecated: please use ManagedAtomic from https://github.com/apple/swift-atomics instead [#DeprecatedDeclaration]
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 [#DeprecatedDeclaration]
288 |
289 | /// A unique identifier for this client. Sets _id to the generator's current value and increments the generator.
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[524/542] Compiling MongoSwift FindOperation.swift
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/MongoClient.swift:287:45: warning: 'NIOAtomic' is deprecated: please use ManagedAtomic from https://github.com/apple/swift-atomics instead [#DeprecatedDeclaration]
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 [#DeprecatedDeclaration]
288 |
289 | /// A unique identifier for this client. Sets _id to the generator's current value and increments the generator.
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[525/542] Compiling MongoSwift ListCollectionsOperation.swift
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/MongoClient.swift:287:45: warning: 'NIOAtomic' is deprecated: please use ManagedAtomic from https://github.com/apple/swift-atomics instead [#DeprecatedDeclaration]
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 [#DeprecatedDeclaration]
288 |
289 | /// A unique identifier for this client. Sets _id to the generator's current value and increments the generator.
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[526/542] Compiling MongoSwift ListDatabasesOperation.swift
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/MongoClient.swift:287:45: warning: 'NIOAtomic' is deprecated: please use ManagedAtomic from https://github.com/apple/swift-atomics instead [#DeprecatedDeclaration]
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 [#DeprecatedDeclaration]
288 |
289 | /// A unique identifier for this client. Sets _id to the generator's current value and increments the generator.
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[527/542] Compiling MongoSwift MongoCollection+Indexes.swift
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/MongoCollection+Read.swift:66:27: warning: capture of non-sendable type 'T.Type' in an isolated closure
64 | let options = options.map { FindOptions(from: $0) }
65 | return self.find(filter, options: options, session: session).flatMap { cursor in
66 | cursor.next().always { _ in _ = cursor.kill() }
| `- warning: capture of non-sendable type 'T.Type' in an isolated closure
67 | }
68 | }
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/MongoCollection+Read.swift:66:45: warning: capture of non-sendable type 'T.Type' in an isolated closure
64 | let options = options.map { FindOptions(from: $0) }
65 | return self.find(filter, options: options, session: session).flatMap { cursor in
66 | cursor.next().always { _ in _ = cursor.kill() }
| `- warning: capture of non-sendable type 'T.Type' in an isolated closure
67 | }
68 | }
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/MongoCollection+Read.swift:65:80: warning: capture of non-sendable type 'T.Type' in an isolated closure
63 | ) -> EventLoopFuture<T?> {
64 | let options = options.map { FindOptions(from: $0) }
65 | return self.find(filter, options: options, session: session).flatMap { cursor in
| `- warning: capture of non-sendable type 'T.Type' in an isolated closure
66 | cursor.next().always { _ in _ = cursor.kill() }
67 | }
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/MongoCollection.swift:175:40: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
15 | // sourcery: skipSyncExport
16 | /// A MongoDB collection.
17 | public struct MongoCollection<T: Codable> {
| `- note: 'T' previously declared here
18 | /// The client which this collection was derived from.
19 | internal let _client: MongoClient
:
173 | /// `MongoCollection`, and uses it to execute the given closure. The `mongoc_collection_t` is only valid for the
174 | /// body of the closure. The caller is *not responsible* for cleaning up the `mongoc_collection_t`.
175 | internal func withMongocCollection<T>(
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
176 | from connection: Connection,
177 | body: (OpaquePointer) throws -> T
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/MongoClient.swift:287:45: warning: 'NIOAtomic' is deprecated: please use ManagedAtomic from https://github.com/apple/swift-atomics instead [#DeprecatedDeclaration]
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 [#DeprecatedDeclaration]
288 |
289 | /// A unique identifier for this client. Sets _id to the generator's current value and increments the generator.
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[528/542] Compiling MongoSwift MongoCollection+Read.swift
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/MongoCollection+Read.swift:66:27: warning: capture of non-sendable type 'T.Type' in an isolated closure
64 | let options = options.map { FindOptions(from: $0) }
65 | return self.find(filter, options: options, session: session).flatMap { cursor in
66 | cursor.next().always { _ in _ = cursor.kill() }
| `- warning: capture of non-sendable type 'T.Type' in an isolated closure
67 | }
68 | }
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/MongoCollection+Read.swift:66:45: warning: capture of non-sendable type 'T.Type' in an isolated closure
64 | let options = options.map { FindOptions(from: $0) }
65 | return self.find(filter, options: options, session: session).flatMap { cursor in
66 | cursor.next().always { _ in _ = cursor.kill() }
| `- warning: capture of non-sendable type 'T.Type' in an isolated closure
67 | }
68 | }
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/MongoCollection+Read.swift:65:80: warning: capture of non-sendable type 'T.Type' in an isolated closure
63 | ) -> EventLoopFuture<T?> {
64 | let options = options.map { FindOptions(from: $0) }
65 | return self.find(filter, options: options, session: session).flatMap { cursor in
| `- warning: capture of non-sendable type 'T.Type' in an isolated closure
66 | cursor.next().always { _ in _ = cursor.kill() }
67 | }
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/MongoCollection.swift:175:40: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
15 | // sourcery: skipSyncExport
16 | /// A MongoDB collection.
17 | public struct MongoCollection<T: Codable> {
| `- note: 'T' previously declared here
18 | /// The client which this collection was derived from.
19 | internal let _client: MongoClient
:
173 | /// `MongoCollection`, and uses it to execute the given closure. The `mongoc_collection_t` is only valid for the
174 | /// body of the closure. The caller is *not responsible* for cleaning up the `mongoc_collection_t`.
175 | internal func withMongocCollection<T>(
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
176 | from connection: Connection,
177 | body: (OpaquePointer) throws -> T
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/MongoClient.swift:287:45: warning: 'NIOAtomic' is deprecated: please use ManagedAtomic from https://github.com/apple/swift-atomics instead [#DeprecatedDeclaration]
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 [#DeprecatedDeclaration]
288 |
289 | /// A unique identifier for this client. Sets _id to the generator's current value and increments the generator.
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[529/542] Compiling MongoSwift MongoCollection+Write.swift
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/MongoCollection+Read.swift:66:27: warning: capture of non-sendable type 'T.Type' in an isolated closure
64 | let options = options.map { FindOptions(from: $0) }
65 | return self.find(filter, options: options, session: session).flatMap { cursor in
66 | cursor.next().always { _ in _ = cursor.kill() }
| `- warning: capture of non-sendable type 'T.Type' in an isolated closure
67 | }
68 | }
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/MongoCollection+Read.swift:66:45: warning: capture of non-sendable type 'T.Type' in an isolated closure
64 | let options = options.map { FindOptions(from: $0) }
65 | return self.find(filter, options: options, session: session).flatMap { cursor in
66 | cursor.next().always { _ in _ = cursor.kill() }
| `- warning: capture of non-sendable type 'T.Type' in an isolated closure
67 | }
68 | }
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/MongoCollection+Read.swift:65:80: warning: capture of non-sendable type 'T.Type' in an isolated closure
63 | ) -> EventLoopFuture<T?> {
64 | let options = options.map { FindOptions(from: $0) }
65 | return self.find(filter, options: options, session: session).flatMap { cursor in
| `- warning: capture of non-sendable type 'T.Type' in an isolated closure
66 | cursor.next().always { _ in _ = cursor.kill() }
67 | }
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/MongoCollection.swift:175:40: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
15 | // sourcery: skipSyncExport
16 | /// A MongoDB collection.
17 | public struct MongoCollection<T: Codable> {
| `- note: 'T' previously declared here
18 | /// The client which this collection was derived from.
19 | internal let _client: MongoClient
:
173 | /// `MongoCollection`, and uses it to execute the given closure. The `mongoc_collection_t` is only valid for the
174 | /// body of the closure. The caller is *not responsible* for cleaning up the `mongoc_collection_t`.
175 | internal func withMongocCollection<T>(
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
176 | from connection: Connection,
177 | body: (OpaquePointer) throws -> T
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/MongoClient.swift:287:45: warning: 'NIOAtomic' is deprecated: please use ManagedAtomic from https://github.com/apple/swift-atomics instead [#DeprecatedDeclaration]
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 [#DeprecatedDeclaration]
288 |
289 | /// A unique identifier for this client. Sets _id to the generator's current value and increments the generator.
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[530/542] Compiling MongoSwift MongoCollection.swift
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/MongoCollection+Read.swift:66:27: warning: capture of non-sendable type 'T.Type' in an isolated closure
64 | let options = options.map { FindOptions(from: $0) }
65 | return self.find(filter, options: options, session: session).flatMap { cursor in
66 | cursor.next().always { _ in _ = cursor.kill() }
| `- warning: capture of non-sendable type 'T.Type' in an isolated closure
67 | }
68 | }
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/MongoCollection+Read.swift:66:45: warning: capture of non-sendable type 'T.Type' in an isolated closure
64 | let options = options.map { FindOptions(from: $0) }
65 | return self.find(filter, options: options, session: session).flatMap { cursor in
66 | cursor.next().always { _ in _ = cursor.kill() }
| `- warning: capture of non-sendable type 'T.Type' in an isolated closure
67 | }
68 | }
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/MongoCollection+Read.swift:65:80: warning: capture of non-sendable type 'T.Type' in an isolated closure
63 | ) -> EventLoopFuture<T?> {
64 | let options = options.map { FindOptions(from: $0) }
65 | return self.find(filter, options: options, session: session).flatMap { cursor in
| `- warning: capture of non-sendable type 'T.Type' in an isolated closure
66 | cursor.next().always { _ in _ = cursor.kill() }
67 | }
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/MongoCollection.swift:175:40: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
15 | // sourcery: skipSyncExport
16 | /// A MongoDB collection.
17 | public struct MongoCollection<T: Codable> {
| `- note: 'T' previously declared here
18 | /// The client which this collection was derived from.
19 | internal let _client: MongoClient
:
173 | /// `MongoCollection`, and uses it to execute the given closure. The `mongoc_collection_t` is only valid for the
174 | /// body of the closure. The caller is *not responsible* for cleaning up the `mongoc_collection_t`.
175 | internal func withMongocCollection<T>(
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
176 | from connection: Connection,
177 | body: (OpaquePointer) throws -> T
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/MongoClient.swift:287:45: warning: 'NIOAtomic' is deprecated: please use ManagedAtomic from https://github.com/apple/swift-atomics instead [#DeprecatedDeclaration]
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 [#DeprecatedDeclaration]
288 |
289 | /// A unique identifier for this client. Sets _id to the generator's current value and increments the generator.
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[531/542] Compiling MongoSwift MongoConnectionString.swift
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/MongoCollection+Read.swift:66:27: warning: capture of non-sendable type 'T.Type' in an isolated closure
64 | let options = options.map { FindOptions(from: $0) }
65 | return self.find(filter, options: options, session: session).flatMap { cursor in
66 | cursor.next().always { _ in _ = cursor.kill() }
| `- warning: capture of non-sendable type 'T.Type' in an isolated closure
67 | }
68 | }
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/MongoCollection+Read.swift:66:45: warning: capture of non-sendable type 'T.Type' in an isolated closure
64 | let options = options.map { FindOptions(from: $0) }
65 | return self.find(filter, options: options, session: session).flatMap { cursor in
66 | cursor.next().always { _ in _ = cursor.kill() }
| `- warning: capture of non-sendable type 'T.Type' in an isolated closure
67 | }
68 | }
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/MongoCollection+Read.swift:65:80: warning: capture of non-sendable type 'T.Type' in an isolated closure
63 | ) -> EventLoopFuture<T?> {
64 | let options = options.map { FindOptions(from: $0) }
65 | return self.find(filter, options: options, session: session).flatMap { cursor in
| `- warning: capture of non-sendable type 'T.Type' in an isolated closure
66 | cursor.next().always { _ in _ = cursor.kill() }
67 | }
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/MongoCollection.swift:175:40: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
15 | // sourcery: skipSyncExport
16 | /// A MongoDB collection.
17 | public struct MongoCollection<T: Codable> {
| `- note: 'T' previously declared here
18 | /// The client which this collection was derived from.
19 | internal let _client: MongoClient
:
173 | /// `MongoCollection`, and uses it to execute the given closure. The `mongoc_collection_t` is only valid for the
174 | /// body of the closure. The caller is *not responsible* for cleaning up the `mongoc_collection_t`.
175 | internal func withMongocCollection<T>(
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
176 | from connection: Connection,
177 | body: (OpaquePointer) throws -> T
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/MongoClient.swift:287:45: warning: 'NIOAtomic' is deprecated: please use ManagedAtomic from https://github.com/apple/swift-atomics instead [#DeprecatedDeclaration]
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 [#DeprecatedDeclaration]
288 |
289 | /// A unique identifier for this client. Sets _id to the generator's current value and increments the generator.
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[532/542] Compiling MongoSwift MongoCredential.swift
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/MongoCollection+Read.swift:66:27: warning: capture of non-sendable type 'T.Type' in an isolated closure
64 | let options = options.map { FindOptions(from: $0) }
65 | return self.find(filter, options: options, session: session).flatMap { cursor in
66 | cursor.next().always { _ in _ = cursor.kill() }
| `- warning: capture of non-sendable type 'T.Type' in an isolated closure
67 | }
68 | }
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/MongoCollection+Read.swift:66:45: warning: capture of non-sendable type 'T.Type' in an isolated closure
64 | let options = options.map { FindOptions(from: $0) }
65 | return self.find(filter, options: options, session: session).flatMap { cursor in
66 | cursor.next().always { _ in _ = cursor.kill() }
| `- warning: capture of non-sendable type 'T.Type' in an isolated closure
67 | }
68 | }
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/MongoCollection+Read.swift:65:80: warning: capture of non-sendable type 'T.Type' in an isolated closure
63 | ) -> EventLoopFuture<T?> {
64 | let options = options.map { FindOptions(from: $0) }
65 | return self.find(filter, options: options, session: session).flatMap { cursor in
| `- warning: capture of non-sendable type 'T.Type' in an isolated closure
66 | cursor.next().always { _ in _ = cursor.kill() }
67 | }
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/MongoCollection.swift:175:40: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
15 | // sourcery: skipSyncExport
16 | /// A MongoDB collection.
17 | public struct MongoCollection<T: Codable> {
| `- note: 'T' previously declared here
18 | /// The client which this collection was derived from.
19 | internal let _client: MongoClient
:
173 | /// `MongoCollection`, and uses it to execute the given closure. The `mongoc_collection_t` is only valid for the
174 | /// body of the closure. The caller is *not responsible* for cleaning up the `mongoc_collection_t`.
175 | internal func withMongocCollection<T>(
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
176 | from connection: Connection,
177 | body: (OpaquePointer) throws -> T
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/MongoClient.swift:287:45: warning: 'NIOAtomic' is deprecated: please use ManagedAtomic from https://github.com/apple/swift-atomics instead [#DeprecatedDeclaration]
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 [#DeprecatedDeclaration]
288 |
289 | /// A unique identifier for this client. Sets _id to the generator's current value and increments the generator.
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[533/542] Compiling MongoSwift MongoCursor.swift
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/MongoCollection+Read.swift:66:27: warning: capture of non-sendable type 'T.Type' in an isolated closure
64 | let options = options.map { FindOptions(from: $0) }
65 | return self.find(filter, options: options, session: session).flatMap { cursor in
66 | cursor.next().always { _ in _ = cursor.kill() }
| `- warning: capture of non-sendable type 'T.Type' in an isolated closure
67 | }
68 | }
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/MongoCollection+Read.swift:66:45: warning: capture of non-sendable type 'T.Type' in an isolated closure
64 | let options = options.map { FindOptions(from: $0) }
65 | return self.find(filter, options: options, session: session).flatMap { cursor in
66 | cursor.next().always { _ in _ = cursor.kill() }
| `- warning: capture of non-sendable type 'T.Type' in an isolated closure
67 | }
68 | }
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/MongoCollection+Read.swift:65:80: warning: capture of non-sendable type 'T.Type' in an isolated closure
63 | ) -> EventLoopFuture<T?> {
64 | let options = options.map { FindOptions(from: $0) }
65 | return self.find(filter, options: options, session: session).flatMap { cursor in
| `- warning: capture of non-sendable type 'T.Type' in an isolated closure
66 | cursor.next().always { _ in _ = cursor.kill() }
67 | }
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/MongoCollection.swift:175:40: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
15 | // sourcery: skipSyncExport
16 | /// A MongoDB collection.
17 | public struct MongoCollection<T: Codable> {
| `- note: 'T' previously declared here
18 | /// The client which this collection was derived from.
19 | internal let _client: MongoClient
:
173 | /// `MongoCollection`, and uses it to execute the given closure. The `mongoc_collection_t` is only valid for the
174 | /// body of the closure. The caller is *not responsible* for cleaning up the `mongoc_collection_t`.
175 | internal func withMongocCollection<T>(
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
176 | from connection: Connection,
177 | body: (OpaquePointer) throws -> T
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/MongoClient.swift:287:45: warning: 'NIOAtomic' is deprecated: please use ManagedAtomic from https://github.com/apple/swift-atomics instead [#DeprecatedDeclaration]
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 [#DeprecatedDeclaration]
288 |
289 | /// A unique identifier for this client. Sets _id to the generator's current value and increments the generator.
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[534/542] Compiling MongoSwift WatchOperation.swift
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/MongoClient.swift:287:45: warning: 'NIOAtomic' is deprecated: please use ManagedAtomic from https://github.com/apple/swift-atomics instead [#DeprecatedDeclaration]
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 [#DeprecatedDeclaration]
288 |
289 | /// A unique identifier for this client. Sets _id to the generator's current value and increments the generator.
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[535/542] Compiling MongoSwift ReadConcern.swift
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/MongoClient.swift:287:45: warning: 'NIOAtomic' is deprecated: please use ManagedAtomic from https://github.com/apple/swift-atomics instead [#DeprecatedDeclaration]
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 [#DeprecatedDeclaration]
288 |
289 | /// A unique identifier for this client. Sets _id to the generator's current value and increments the generator.
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[536/542] Compiling MongoSwift ReadPreference.swift
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/MongoClient.swift:287:45: warning: 'NIOAtomic' is deprecated: please use ManagedAtomic from https://github.com/apple/swift-atomics instead [#DeprecatedDeclaration]
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 [#DeprecatedDeclaration]
288 |
289 | /// A unique identifier for this client. Sets _id to the generator's current value and increments the generator.
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[537/542] Compiling MongoSwift SDAM.swift
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/MongoClient.swift:287:45: warning: 'NIOAtomic' is deprecated: please use ManagedAtomic from https://github.com/apple/swift-atomics instead [#DeprecatedDeclaration]
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 [#DeprecatedDeclaration]
288 |
289 | /// A unique identifier for this client. Sets _id to the generator's current value and increments the generator.
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[538/542] Compiling MongoSwift ServerSelection.swift
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/MongoClient.swift:287:45: warning: 'NIOAtomic' is deprecated: please use ManagedAtomic from https://github.com/apple/swift-atomics instead [#DeprecatedDeclaration]
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 [#DeprecatedDeclaration]
288 |
289 | /// A unique identifier for this client. Sets _id to the generator's current value and increments the generator.
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[539/542] Compiling MongoSwift WriteConcern.swift
/Users/admin/builder/spi-builder-workspace/Sources/MongoSwift/MongoClient.swift:287:45: warning: 'NIOAtomic' is deprecated: please use ManagedAtomic from https://github.com/apple/swift-atomics instead [#DeprecatedDeclaration]
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 [#DeprecatedDeclaration]
288 |
289 | /// A unique identifier for this client. Sets _id to the generator's current value and increments the generator.
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[540/562] Compiling MongoSwiftSync MongoCollection.swift
[541/562] Compiling MongoSwiftSync MongoCursor.swift
[542/562] Compiling MongoSwiftSync MongoCollection+FindAndModify.swift
[543/562] Compiling MongoSwiftSync MongoCollection+Write.swift
[544/562] Compiling MongoSwiftSync MongoCollection+Indexes.swift
[545/562] Compiling MongoSwiftSync MongoCollection+Read.swift
[546/563] Compiling MongoSwiftSync CursorCommon.swift
[547/563] Compiling MongoSwiftSync Exports.swift
[548/563] Compiling MongoSwiftSync ChangeStream.swift
[549/563] Compiling MongoSwiftSync ClientSession.swift
[550/563] Compiling MongoSwiftSync MongoClient.swift
[551/563] Compiling MongoSwiftSync MongoCollection+ChangeStreams.swift
[552/563] Emitting module MongoSwiftSync
[553/563] Compiling MongoSwiftSync MongoDatabase.swift
[554/565] Compiling AtlasConnectivity main.swift
[555/565] Emitting module AtlasConnectivity
[555/565] Write Objects.LinkFileList
[556/565] Linking AtlasConnectivity
[557/565] Applying AtlasConnectivity
[559/565] Compiling TestsCommon ServerVersion.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[560/565] Compiling TestsCommon CodableExtensions.swift
/Users/admin/builder/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 |
/Users/admin/builder/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 |
/Users/admin/builder/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 |
/Users/admin/builder/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 |
/Users/admin/builder/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 |
/Users/admin/builder/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 |
/Users/admin/builder/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()
/Users/admin/builder/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 |
/Users/admin/builder/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 |
[561/565] Compiling TestsCommon MongoError+Equatable.swift
/Users/admin/builder/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()
/Users/admin/builder/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()
/Users/admin/builder/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 &&
/Users/admin/builder/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
/Users/admin/builder/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
/Users/admin/builder/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
/Users/admin/builder/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
/Users/admin/builder/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
/Users/admin/builder/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) {
[562/565] Compiling TestsCommon APMUtils.swift
/Users/admin/builder/spi-builder-workspace/Sources/TestsCommon/APMUtils.swift:11:23: warning: 'Lock' is deprecated: renamed to 'NIOLock' [#DeprecatedDeclaration]
9 | private var events: [CommandEvent]
10 | // Lock over monitoring and events.
11 | private var lock: Lock
| |- warning: 'Lock' is deprecated: renamed to 'NIOLock' [#DeprecatedDeclaration]
| `- note: use 'NIOLock' instead
12 |
13 | public init() {
/Users/admin/builder/spi-builder-workspace/Sources/TestsCommon/APMUtils.swift:16:21: warning: 'Lock' is deprecated: renamed to 'NIOLock' [#DeprecatedDeclaration]
14 | self.events = []
15 | self.monitoring = false
16 | self.lock = Lock()
| |- warning: 'Lock' is deprecated: renamed to 'NIOLock' [#DeprecatedDeclaration]
| `- note: use 'NIOLock' instead
17 | }
18 |
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[563/565] Compiling TestsCommon SpecTestUtils.swift
[564/565] Emitting module TestsCommon
/Users/admin/builder/spi-builder-workspace/Sources/TestsCommon/APMUtils.swift:11:23: warning: 'Lock' is deprecated: renamed to 'NIOLock' [#DeprecatedDeclaration]
9 | private var events: [CommandEvent]
10 | // Lock over monitoring and events.
11 | private var lock: Lock
| |- warning: 'Lock' is deprecated: renamed to 'NIOLock' [#DeprecatedDeclaration]
| `- note: use 'NIOLock' instead
12 |
13 | public init() {
/Users/admin/builder/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 |
/Users/admin/builder/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 |
/Users/admin/builder/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 |
/Users/admin/builder/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 |
/Users/admin/builder/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 |
/Users/admin/builder/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 |
/Users/admin/builder/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()
/Users/admin/builder/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 |
/Users/admin/builder/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 |
/Users/admin/builder/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()
Foundation.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>)
/Users/admin/builder/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 |
/Users/admin/builder/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()
Foundation.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>)
/Users/admin/builder/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 |
/Users/admin/builder/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()
/Users/admin/builder/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()
/Users/admin/builder/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()
/Users/admin/builder/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 &&
/Users/admin/builder/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
/Users/admin/builder/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
/Users/admin/builder/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
/Users/admin/builder/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
/Users/admin/builder/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
/Users/admin/builder/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) {
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[565/565] Compiling TestsCommon CommonTestUtils.swift
/Users/admin/builder/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()
Foundation.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>)
/Users/admin/builder/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 |
/Users/admin/builder/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()
Foundation.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>)
/Users/admin/builder/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 |
/Users/admin/builder/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()
Fetching https://github.com/Quick/Nimble.git
Fetching https://github.com/apple/swift-atomics
Fetching https://github.com/mongodb/swift-bson
Fetching https://github.com/apple/swift-nio
[1/3384] Fetching swift-bson
[35/5181] Fetching swift-bson, swift-atomics
[4573/24765] Fetching swift-bson, swift-atomics, nimble
[5378/101092] Fetching swift-bson, swift-atomics, nimble, swift-nio
Fetched https://github.com/Quick/Nimble.git from cache (1.98s)
Fetched https://github.com/mongodb/swift-bson from cache (1.98s)
[45304/78124] Fetching swift-atomics, swift-nio
Fetched https://github.com/apple/swift-nio from cache (9.31s)
Fetched https://github.com/apple/swift-atomics from cache (9.31s)
Computing version for https://github.com/mongodb/swift-bson
Computed https://github.com/mongodb/swift-bson at 3.1.0 (9.87s)
Fetching https://github.com/swift-extras/swift-extras-base64
Fetching https://github.com/swift-extras/swift-extras-json
[1/1056] Fetching swift-extras-json
[128/1889] Fetching swift-extras-json, swift-extras-base64
Fetched https://github.com/swift-extras/swift-extras-json from cache (0.88s)
Fetched https://github.com/swift-extras/swift-extras-base64 from cache (0.88s)
Computing version for https://github.com/swift-extras/swift-extras-base64
Computed https://github.com/swift-extras/swift-extras-base64 at 0.5.0 (1.41s)
Computing version for https://github.com/swift-extras/swift-extras-json
Computed https://github.com/swift-extras/swift-extras-json at 0.6.0 (0.55s)
Computing version for https://github.com/apple/swift-atomics
Computed https://github.com/apple/swift-atomics at 1.3.0 (0.44s)
Computing version for https://github.com/Quick/Nimble.git
Computed https://github.com/Quick/Nimble.git at 8.1.2 (0.52s)
Computing version for https://github.com/apple/swift-nio
Computed https://github.com/apple/swift-nio at 2.83.0 (0.62s)
Fetching https://github.com/apple/swift-system.git
Fetching https://github.com/apple/swift-collections.git
[1/4436] Fetching swift-system
[445/21076] Fetching swift-system, swift-collections
Fetched https://github.com/apple/swift-system.git from cache (1.71s)
Fetched https://github.com/apple/swift-collections.git from cache (1.71s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.5.0 (2.14s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.2.0 (0.50s)
Creating working copy for https://github.com/swift-extras/swift-extras-json
Working copy of https://github.com/swift-extras/swift-extras-json resolved at 0.6.0
Creating working copy for https://github.com/apple/swift-system.git
Working copy of https://github.com/apple/swift-system.git resolved at 1.5.0
Creating working copy for https://github.com/apple/swift-nio
Working copy of https://github.com/apple/swift-nio resolved at 2.83.0
Creating working copy for https://github.com/apple/swift-atomics
Working copy of https://github.com/apple/swift-atomics resolved at 1.3.0
Creating working copy for https://github.com/mongodb/swift-bson
Working copy of https://github.com/mongodb/swift-bson resolved at 3.1.0
Creating working copy for https://github.com/Quick/Nimble.git
Working copy of https://github.com/Quick/Nimble.git resolved at 8.1.2
Creating working copy for https://github.com/apple/swift-collections.git
Working copy of https://github.com/apple/swift-collections.git resolved at 1.2.0
Creating working copy for https://github.com/swift-extras/swift-extras-base64
Working copy of https://github.com/swift-extras/swift-extras-base64 resolved at 0.5.0
BUILD FAILURE 6.2 macosSpm