Build Information
Successful build of swm-core, reference main (ae48c2
), with Swift 6.0 for macOS (SPM) on 1 Nov 2024 22:25:00 UTC.
Swift 6 data race errors: 6
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Build Log
========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/taketo1024/swm-core.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/taketo1024/swm-core
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at ae48c2c extract SparseMatrixImpl.
Cloned https://github.com/taketo1024/swm-core.git
Revision (git rev-parse @):
ae48c2ce78b64952a99776643f0aaf253eb315a0
SUCCESS checkout https://github.com/taketo1024/swm-core.git at main
Fetching https://github.com/apple/swift-collections.git
Fetching https://github.com/apple/swift-algorithms.git
[1/5563] Fetching swift-algorithms
[113/21038] Fetching swift-algorithms, swift-collections
Fetched https://github.com/apple/swift-algorithms.git from cache (1.16s)
[929/15475] Fetching swift-collections
Fetched https://github.com/apple/swift-collections.git from cache (1.95s)
Computing version for https://github.com/apple/swift-algorithms.git
Computed https://github.com/apple/swift-algorithms.git at 0.2.1 (0.66s)
Fetching https://github.com/apple/swift-numerics
[1/5576] Fetching swift-numerics
Fetched https://github.com/apple/swift-numerics from cache (1.08s)
Computing version for https://github.com/apple/swift-numerics
Computed https://github.com/apple/swift-numerics at 0.1.0 (0.66s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.1.4 (0.80s)
Creating working copy for https://github.com/apple/swift-collections.git
Working copy of https://github.com/apple/swift-collections.git resolved at 1.1.4
Creating working copy for https://github.com/apple/swift-algorithms.git
Working copy of https://github.com/apple/swift-algorithms.git resolved at 0.2.1
Creating working copy for https://github.com/apple/swift-numerics
Working copy of https://github.com/apple/swift-numerics resolved at 0.1.0
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
"identity": ".resolve-product-dependencies",
"name": "resolve-dependencies",
"url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"dependencies": [
{
"identity": "swm-core",
"name": "swm-core",
"url": "https://github.com/taketo1024/swm-core.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swm-core",
"dependencies": [
{
"identity": "swift-algorithms",
"name": "swift-algorithms",
"url": "https://github.com/apple/swift-algorithms.git",
"version": "0.2.1",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-algorithms",
"dependencies": [
{
"identity": "swift-numerics",
"name": "swift-numerics",
"url": "https://github.com/apple/swift-numerics",
"version": "0.1.0",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-numerics",
"dependencies": [
]
}
]
},
{
"identity": "swift-collections",
"name": "swift-collections",
"url": "https://github.com/apple/swift-collections.git",
"version": "1.1.4",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-collections",
"dependencies": [
]
}
]
}
]
}
Fetching https://github.com/taketo1024/swm-core.git
[1/15984] Fetching swm-core
Fetched https://github.com/taketo1024/swm-core.git from cache (1.35s)
Fetching https://github.com/apple/swift-algorithms.git from cache
Fetching https://github.com/apple/swift-collections.git from cache
Fetched https://github.com/apple/swift-collections.git from cache (0.58s)
Fetched https://github.com/apple/swift-algorithms.git from cache (0.58s)
Computing version for https://github.com/apple/swift-algorithms.git
Computed https://github.com/apple/swift-algorithms.git at 0.2.1 (0.02s)
Fetching https://github.com/apple/swift-numerics from cache
Fetched https://github.com/apple/swift-numerics from cache (0.51s)
Computing version for https://github.com/apple/swift-numerics
Computed https://github.com/apple/swift-numerics at 0.1.0 (0.02s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.1.4 (0.02s)
Creating working copy for https://github.com/apple/swift-collections.git
Working copy of https://github.com/apple/swift-collections.git resolved at 1.1.4
Creating working copy for https://github.com/apple/swift-numerics
Working copy of https://github.com/apple/swift-numerics resolved at 0.1.0
Creating working copy for https://github.com/apple/swift-algorithms.git
Working copy of https://github.com/apple/swift-algorithms.git resolved at 0.2.1
Creating working copy for https://github.com/taketo1024/swm-core.git
Working copy of https://github.com/taketo1024/swm-core.git resolved at main (ae48c2c)
warning: '.resolve-product-dependencies': dependency 'swm-core' is not used by any target
Found 2 product dependencies
- swift-algorithms
- swift-collections
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $PWD
https://github.com/taketo1024/swm-core.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/7] Write sources
[5/7] Compiling _NumericsShims _NumericsShims.c
[6/7] Write swift-version--7754E27361AE5C74.txt
[8/35] Compiling InternalCollectionsUtilities UnsafeRawPointer extensions.swift
[9/35] Compiling InternalCollectionsUtilities FixedWidthInteger+roundUpToPowerOfTwo.swift
[10/36] Compiling InternalCollectionsUtilities UnsafeBufferPointer+Extras.swift
[11/36] Compiling InternalCollectionsUtilities RandomAccessCollection+Offsets.swift
[12/36] Compiling InternalCollectionsUtilities Specialize.swift
[13/36] Compiling InternalCollectionsUtilities Debugging.swift
[14/36] Compiling InternalCollectionsUtilities Descriptions.swift
[15/36] Emitting module InternalCollectionsUtilities
[16/36] Compiling InternalCollectionsUtilities UnsafeMutableBufferPointer+SE-0370.swift
[17/36] Compiling InternalCollectionsUtilities UnsafeMutablePointer+SE-0370.swift
[18/36] Compiling RealModule Float16+Real.swift
[19/36] Compiling RealModule ElementaryFunctions.swift
[20/36] Compiling RealModule Float80+Real.swift
[21/36] Compiling RealModule Real.swift
[22/37] Compiling InternalCollectionsUtilities _SortedCollection.swift
[23/37] Compiling InternalCollectionsUtilities _UniqueCollection.swift
[24/37] Compiling InternalCollectionsUtilities UnsafeMutableBufferPointer+Extras.swift
[25/37] Compiling RealModule Double+Real.swift
[26/37] Emitting module RealModule
[27/37] Compiling RealModule ApproximateEquality.swift
[28/37] Compiling RealModule AugmentedArithmetic.swift
[29/37] Compiling RealModule AlgebraicField.swift
[30/37] Compiling RealModule Float+Real.swift
[31/37] Compiling RealModule RealFunctions.swift
[32/61] Compiling Algorithms MinMax.swift
[33/61] Compiling Algorithms Partition.swift
[34/61] Compiling Algorithms Rotate.swift
[35/61] Compiling Algorithms Stride.swift
[36/61] Compiling Algorithms Indexed.swift
[37/61] Compiling Algorithms Intersperse.swift
[38/117] Compiling OrderedCollections _HashTable+Bucket.swift
[39/117] Compiling OrderedCollections _HashTable+BucketIterator.swift
[40/119] Compiling OrderedCollections OrderedSet+Codable.swift
[41/119] Compiling OrderedCollections OrderedSet+CustomReflectable.swift
[42/119] Compiling OrderedCollections OrderedSet+Descriptions.swift
[43/119] Compiling OrderedCollections OrderedSet+Diffing.swift
[44/119] Compiling OrderedCollections OrderedSet+Equatable.swift
[45/119] Compiling OrderedCollections OrderedSet+ExpressibleByArrayLiteral.swift
[46/119] Compiling OrderedCollections OrderedSet+Partial SetAlgebra formIntersection.swift
[47/119] Compiling OrderedCollections OrderedSet+Partial SetAlgebra formSymmetricDifference.swift
[48/119] Compiling OrderedCollections OrderedSet+Partial SetAlgebra formUnion.swift
[49/119] Compiling OrderedCollections OrderedSet+Partial SetAlgebra intersection.swift
[50/119] Compiling Algorithms Unique.swift
[51/119] Compiling Algorithms Windows.swift
[56/125] Compiling OrderedCollections _Hashtable+Header.swift
[57/125] Compiling OrderedCollections OrderedDictionary+Codable.swift
[58/125] Compiling OrderedCollections OrderedDictionary+CustomReflectable.swift
[59/125] Compiling OrderedCollections OrderedDictionary+Deprecations.swift
[60/125] Compiling OrderedCollections OrderedDictionary+Descriptions.swift
[61/125] Compiling OrderedCollections OrderedDictionary+Elements.SubSequence.swift
[62/125] Compiling OrderedCollections OrderedSet+Partial SetAlgebra symmetricDifference.swift
[63/125] Compiling OrderedCollections OrderedSet+Partial SetAlgebra union.swift
[64/125] Compiling OrderedCollections OrderedSet+Partial SetAlgebra+Basics.swift
[65/125] Compiling OrderedCollections OrderedSet+RandomAccessCollection.swift
[66/125] Compiling OrderedCollections OrderedSet+ReserveCapacity.swift
[67/125] Compiling OrderedCollections OrderedSet+Sendable.swift
[68/125] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isStrictSubset.swift
[69/125] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isStrictSuperset.swift
[70/125] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isSubset.swift
[71/125] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isSuperset.swift
[72/125] Compiling OrderedCollections OrderedSet+Partial SetAlgebra subtract.swift
[73/125] Compiling OrderedCollections OrderedSet+Partial SetAlgebra subtracting.swift
[74/125] Compiling OrderedCollections OrderedSet+Hashable.swift
[75/125] Compiling OrderedCollections OrderedSet+Initializers.swift
[76/125] Compiling OrderedCollections OrderedSet+Insertions.swift
[77/125] Compiling OrderedCollections OrderedSet+Invariants.swift
[78/125] Compiling OrderedCollections OrderedSet+Partial MutableCollection.swift
[79/125] Compiling OrderedCollections OrderedSet+Partial RangeReplaceableCollection.swift
[80/125] Compiling OrderedCollections OrderedDictionary+Sequence.swift
[81/125] Compiling OrderedCollections OrderedDictionary+Values.swift
[82/125] Compiling OrderedCollections OrderedDictionary.swift
[83/125] Compiling OrderedCollections OrderedDictionary+Partial RangeReplaceableCollection.swift
[84/125] Compiling OrderedCollections OrderedDictionary+Sendable.swift
[87/125] Compiling OrderedCollections OrderedDictionary+Partial MutableCollection.swift
[95/125] Compiling OrderedCollections _HashTable+Constants.swift
[96/125] Compiling OrderedCollections _HashTable+CustomStringConvertible.swift
[97/125] Compiling OrderedCollections _HashTable+Testing.swift
[98/125] Compiling OrderedCollections _HashTable+UnsafeHandle.swift
[99/125] Compiling OrderedCollections _HashTable.swift
[100/125] Compiling OrderedCollections OrderedDictionary+Elements.swift
[101/125] Compiling OrderedCollections OrderedDictionary+Equatable.swift
[102/125] Compiling OrderedCollections OrderedDictionary+ExpressibleByDictionaryLiteral.swift
[103/125] Compiling OrderedCollections OrderedDictionary+Hashable.swift
[104/125] Compiling OrderedCollections OrderedDictionary+Initializers.swift
[105/125] Compiling OrderedCollections OrderedDictionary+Invariants.swift
[118/125] Compiling OrderedCollections OrderedSet+SubSequence.swift
[119/125] Compiling OrderedCollections OrderedSet+Testing.swift
[120/125] Compiling OrderedCollections OrderedSet+UnorderedView.swift
[121/125] Compiling OrderedCollections OrderedSet+UnstableInternals.swift
[122/125] Compiling OrderedCollections OrderedSet.swift
[123/125] Compiling OrderedCollections _UnsafeBitset.swift
[124/125] Emitting module OrderedCollections
[125/125] Emitting module Algorithms
[126/169] Compiling SwmCore GraphAlgorithms.swift
[127/169] Compiling SwmCore IntList.swift
[128/169] Compiling SwmCore Operators.swift
[129/169] Compiling SwmCore Random.swift
[130/169] Compiling SwmCore TypeParameters.swift
[131/173] Compiling SwmCore AdditiveGroup.swift
[132/173] Compiling SwmCore EuclideanRing.swift
[133/173] Compiling SwmCore Field.swift
[134/173] Compiling SwmCore FractionField.swift
[135/173] Compiling SwmCore Group.swift
[136/173] Compiling SwmCore String.swift
[137/173] Compiling SwmCore LinearCombination.swift
[138/173] Compiling SwmCore LinearCombinationType.swift
[139/173] Compiling SwmCore TensorGenerator.swift
[140/173] Compiling SwmCore DefaultMatrixImpl.swift
[141/173] Emitting module SwmCore
/Users/admin/builder/spi-builder-workspace/Sources/SwmCore/Extensions/Array.swift:88:1: warning: extension declares a conformance of imported type 'Array' to imported protocol 'Comparable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
86 | }
87 |
88 | extension Array: Comparable where Element: Comparable {
| |- warning: extension declares a conformance of imported type 'Array' to imported protocol 'Comparable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
89 | public static func < (lhs: Array, rhs: Array) -> Bool {
90 | lhs.lexicographicallyPrecedes(rhs)
/Users/admin/builder/spi-builder-workspace/Sources/SwmCore/Extensions/RandomAccessCollection.swift:13:21: warning: instance method 'partitioningIndex(where:)' cannot be used in an '@inlinable' function because 'Algorithms' was not imported by this file; this is an error in the Swift 6 language mode
11 | @inlinable
12 | public func binarySearchIndex(_ element: Element) -> Index? {
13 | let index = partitioningIndex(where: { $0 >= element })
| |- warning: instance method 'partitioningIndex(where:)' cannot be used in an '@inlinable' function because 'Algorithms' was not imported by this file; this is an error in the Swift 6 language mode
| `- note: The missing import of module 'Algorithms' will be added implicitly
14 | let found = index != endIndex && self[index] == element
15 | return found ? index : nil
/Users/admin/builder/spi-builder-workspace/Sources/SwmCore/Extensions/RandomAccessCollection.swift:22:21: warning: instance method 'partitioningIndex(where:)' cannot be used in an '@inlinable' function because 'Algorithms' was not imported by this file; this is an error in the Swift 6 language mode
20 | @inlinable
21 | public func binarySearch<T: Comparable>(elementWithId id: T, by f: (Element) -> T) -> Element? {
22 | let index = partitioningIndex(where: { f($0) >= id })
| |- warning: instance method 'partitioningIndex(where:)' cannot be used in an '@inlinable' function because 'Algorithms' was not imported by this file; this is an error in the Swift 6 language mode
| `- note: The missing import of module 'Algorithms' will be added implicitly
23 | let found = index != endIndex && f(self[index]) == id
24 | return found ? self[index] : nil
/Users/admin/builder/spi-builder-workspace/Sources/SwmCore/Numbers/Integer.swift:86:17: warning: var '_primes' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
84 | }
85 |
86 | fileprivate var _primes: [𝐙] = []
| |- warning: var '_primes' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '_primes' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate '_primes' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
87 |
88 | extension 𝐙 {
/Users/admin/builder/spi-builder-workspace/Sources/SwmCore/Util/Logger.swift:10:13: warning: var 'loggers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
8 | import Foundation
9 |
10 | private var loggers: [Logger.Id : Logger] = [:]
| |- warning: var 'loggers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'loggers' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'loggers' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
11 |
12 | public final class Logger {
/Users/admin/builder/spi-builder-workspace/Sources/SwmCore/Util/Storage.swift:11:23: warning: static property 'storage' is not concurrency-safe because non-'Sendable' type 'Logger.Id' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | extension Logger.Id {
11 | public static let storage = Logger.Id("storage")
| |- warning: static property 'storage' is not concurrency-safe because non-'Sendable' type 'Logger.Id' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'storage' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 | }
13 |
/Users/admin/builder/spi-builder-workspace/Sources/SwmCore/Util/Logger.swift:13:19: note: consider making struct 'Id' conform to the 'Sendable' protocol
11 |
12 | public final class Logger {
13 | public struct Id: Hashable, CustomStringConvertible {
| `- note: consider making struct 'Id' conform to the 'Sendable' protocol
14 | private let id: String
15 | public init(_ id: String) {
/Users/admin/builder/spi-builder-workspace/Sources/SwmCore/Util/Storage.swift:14:13: warning: let '_defaultStorage' is not concurrency-safe because non-'Sendable' type 'Storage' may have shared mutable state; this is an error in the Swift 6 language mode
12 | }
13 |
14 | private let _defaultStorage = Storage(dir: NSTemporaryDirectory() + "SwiftyMath/")
| |- warning: let '_defaultStorage' is not concurrency-safe because non-'Sendable' type 'Storage' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate '_defaultStorage' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 |
16 | public final class Storage {
| `- note: class 'Storage' does not conform to the 'Sendable' protocol
17 | private let fm: FileManager
18 | public let dir: String
[142/173] Compiling SwmCore Rational.swift
[143/173] Compiling SwmCore Real.swift
[144/173] Compiling SwmCore Permutation.swift
[145/173] Compiling SwmCore GenericPolynomial.swift
[146/173] Compiling SwmCore MultivariatePolynomial.swift
[147/173] Compiling SwmCore Polynomial.swift
[148/173] Compiling SwmCore PolynomialQuotient.swift
[149/173] Compiling SwmCore Cache.swift
[150/173] Compiling SwmCore Codable.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwmCore/Extensions/RandomAccessCollection.swift:13:21: warning: instance method 'partitioningIndex(where:)' cannot be used in an '@inlinable' function because 'Algorithms' was not imported by this file; this is an error in the Swift 6 language mode
11 | @inlinable
12 | public func binarySearchIndex(_ element: Element) -> Index? {
13 | let index = partitioningIndex(where: { $0 >= element })
| |- warning: instance method 'partitioningIndex(where:)' cannot be used in an '@inlinable' function because 'Algorithms' was not imported by this file; this is an error in the Swift 6 language mode
| `- note: The missing import of module 'Algorithms' will be added implicitly
14 | let found = index != endIndex && self[index] == element
15 | return found ? index : nil
/Users/admin/builder/spi-builder-workspace/Sources/SwmCore/Extensions/RandomAccessCollection.swift:22:21: warning: instance method 'partitioningIndex(where:)' cannot be used in an '@inlinable' function because 'Algorithms' was not imported by this file; this is an error in the Swift 6 language mode
20 | @inlinable
21 | public func binarySearch<T: Comparable>(elementWithId id: T, by f: (Element) -> T) -> Element? {
22 | let index = partitioningIndex(where: { f($0) >= id })
| |- warning: instance method 'partitioningIndex(where:)' cannot be used in an '@inlinable' function because 'Algorithms' was not imported by this file; this is an error in the Swift 6 language mode
| `- note: The missing import of module 'Algorithms' will be added implicitly
23 | let found = index != endIndex && f(self[index]) == id
24 | return found ? self[index] : nil
[151/173] Compiling SwmCore Dictionary.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwmCore/Extensions/RandomAccessCollection.swift:13:21: warning: instance method 'partitioningIndex(where:)' cannot be used in an '@inlinable' function because 'Algorithms' was not imported by this file; this is an error in the Swift 6 language mode
11 | @inlinable
12 | public func binarySearchIndex(_ element: Element) -> Index? {
13 | let index = partitioningIndex(where: { $0 >= element })
| |- warning: instance method 'partitioningIndex(where:)' cannot be used in an '@inlinable' function because 'Algorithms' was not imported by this file; this is an error in the Swift 6 language mode
| `- note: The missing import of module 'Algorithms' will be added implicitly
14 | let found = index != endIndex && self[index] == element
15 | return found ? index : nil
/Users/admin/builder/spi-builder-workspace/Sources/SwmCore/Extensions/RandomAccessCollection.swift:22:21: warning: instance method 'partitioningIndex(where:)' cannot be used in an '@inlinable' function because 'Algorithms' was not imported by this file; this is an error in the Swift 6 language mode
20 | @inlinable
21 | public func binarySearch<T: Comparable>(elementWithId id: T, by f: (Element) -> T) -> Element? {
22 | let index = partitioningIndex(where: { f($0) >= id })
| |- warning: instance method 'partitioningIndex(where:)' cannot be used in an '@inlinable' function because 'Algorithms' was not imported by this file; this is an error in the Swift 6 language mode
| `- note: The missing import of module 'Algorithms' will be added implicitly
23 | let found = index != endIndex && f(self[index]) == id
24 | return found ? self[index] : nil
[152/173] Compiling SwmCore RandomAccessCollection.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwmCore/Extensions/RandomAccessCollection.swift:13:21: warning: instance method 'partitioningIndex(where:)' cannot be used in an '@inlinable' function because 'Algorithms' was not imported by this file; this is an error in the Swift 6 language mode
11 | @inlinable
12 | public func binarySearchIndex(_ element: Element) -> Index? {
13 | let index = partitioningIndex(where: { $0 >= element })
| |- warning: instance method 'partitioningIndex(where:)' cannot be used in an '@inlinable' function because 'Algorithms' was not imported by this file; this is an error in the Swift 6 language mode
| `- note: The missing import of module 'Algorithms' will be added implicitly
14 | let found = index != endIndex && self[index] == element
15 | return found ? index : nil
/Users/admin/builder/spi-builder-workspace/Sources/SwmCore/Extensions/RandomAccessCollection.swift:22:21: warning: instance method 'partitioningIndex(where:)' cannot be used in an '@inlinable' function because 'Algorithms' was not imported by this file; this is an error in the Swift 6 language mode
20 | @inlinable
21 | public func binarySearch<T: Comparable>(elementWithId id: T, by f: (Element) -> T) -> Element? {
22 | let index = partitioningIndex(where: { f($0) >= id })
| |- warning: instance method 'partitioningIndex(where:)' cannot be used in an '@inlinable' function because 'Algorithms' was not imported by this file; this is an error in the Swift 6 language mode
| `- note: The missing import of module 'Algorithms' will be added implicitly
23 | let found = index != endIndex && f(self[index]) == id
24 | return found ? self[index] : nil
[153/173] Compiling SwmCore Sequence.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwmCore/Extensions/RandomAccessCollection.swift:13:21: warning: instance method 'partitioningIndex(where:)' cannot be used in an '@inlinable' function because 'Algorithms' was not imported by this file; this is an error in the Swift 6 language mode
11 | @inlinable
12 | public func binarySearchIndex(_ element: Element) -> Index? {
13 | let index = partitioningIndex(where: { $0 >= element })
| |- warning: instance method 'partitioningIndex(where:)' cannot be used in an '@inlinable' function because 'Algorithms' was not imported by this file; this is an error in the Swift 6 language mode
| `- note: The missing import of module 'Algorithms' will be added implicitly
14 | let found = index != endIndex && self[index] == element
15 | return found ? index : nil
/Users/admin/builder/spi-builder-workspace/Sources/SwmCore/Extensions/RandomAccessCollection.swift:22:21: warning: instance method 'partitioningIndex(where:)' cannot be used in an '@inlinable' function because 'Algorithms' was not imported by this file; this is an error in the Swift 6 language mode
20 | @inlinable
21 | public func binarySearch<T: Comparable>(elementWithId id: T, by f: (Element) -> T) -> Element? {
22 | let index = partitioningIndex(where: { f($0) >= id })
| |- warning: instance method 'partitioningIndex(where:)' cannot be used in an '@inlinable' function because 'Algorithms' was not imported by this file; this is an error in the Swift 6 language mode
| `- note: The missing import of module 'Algorithms' will be added implicitly
23 | let found = index != endIndex && f(self[index]) == id
24 | return found ? self[index] : nil
[154/173] Compiling SwmCore Set.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwmCore/Extensions/RandomAccessCollection.swift:13:21: warning: instance method 'partitioningIndex(where:)' cannot be used in an '@inlinable' function because 'Algorithms' was not imported by this file; this is an error in the Swift 6 language mode
11 | @inlinable
12 | public func binarySearchIndex(_ element: Element) -> Index? {
13 | let index = partitioningIndex(where: { $0 >= element })
| |- warning: instance method 'partitioningIndex(where:)' cannot be used in an '@inlinable' function because 'Algorithms' was not imported by this file; this is an error in the Swift 6 language mode
| `- note: The missing import of module 'Algorithms' will be added implicitly
14 | let found = index != endIndex && self[index] == element
15 | return found ? index : nil
/Users/admin/builder/spi-builder-workspace/Sources/SwmCore/Extensions/RandomAccessCollection.swift:22:21: warning: instance method 'partitioningIndex(where:)' cannot be used in an '@inlinable' function because 'Algorithms' was not imported by this file; this is an error in the Swift 6 language mode
20 | @inlinable
21 | public func binarySearch<T: Comparable>(elementWithId id: T, by f: (Element) -> T) -> Element? {
22 | let index = partitioningIndex(where: { f($0) >= id })
| |- warning: instance method 'partitioningIndex(where:)' cannot be used in an '@inlinable' function because 'Algorithms' was not imported by this file; this is an error in the Swift 6 language mode
| `- note: The missing import of module 'Algorithms' will be added implicitly
23 | let found = index != endIndex && f(self[index]) == id
24 | return found ? self[index] : nil
[155/173] Compiling SwmCore MathSet.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwmCore/Extensions/Array.swift:88:1: warning: extension declares a conformance of imported type 'Array' to imported protocol 'Comparable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
86 | }
87 |
88 | extension Array: Comparable where Element: Comparable {
| |- warning: extension declares a conformance of imported type 'Array' to imported protocol 'Comparable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
89 | public static func < (lhs: Array, rhs: Array) -> Bool {
90 | lhs.lexicographicallyPrecedes(rhs)
/Users/admin/builder/spi-builder-workspace/Sources/SwmCore/Extensions/Array.swift:97:13: warning: capture of 'body' with non-sendable type '(Element) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
95 | public func parallelForEach(body: (Element) -> Void ) {
96 | DispatchQueue.concurrentPerform(iterations: count) { i in
97 | body(self[i])
| |- warning: capture of 'body' with non-sendable type '(Element) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
98 | }
99 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwmCore/Extensions/Array.swift:97:18: warning: capture of 'self' with non-sendable type 'Array<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
95 | public func parallelForEach(body: (Element) -> Void ) {
96 | DispatchQueue.concurrentPerform(iterations: count) { i in
97 | body(self[i])
| `- warning: capture of 'self' with non-sendable type 'Array<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
98 | }
99 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwmCore/Extensions/Array.swift:105:17: warning: capture of 'buffer' with non-sendable type 'UnsafeMutableBufferPointer<T?>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
103 | return result.withUnsafeMutableBufferPointer { buffer in
104 | DispatchQueue.concurrentPerform(iterations: buffer.count) { idx in
105 | buffer[idx] = transform(self[idx])
| `- warning: capture of 'buffer' with non-sendable type 'UnsafeMutableBufferPointer<T?>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
106 | }
107 | return buffer.map { $0! }
Swift.UnsafeMutableBufferPointer:1:23: note: generic struct 'UnsafeMutableBufferPointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafeMutableBufferPointer<Element> : Copyable where Element : ~Copyable {
| `- note: generic struct 'UnsafeMutableBufferPointer' does not conform to the 'Sendable' protocol
2 | public let count: Int
3 | @inlinable public init(start: UnsafeMutablePointer<Element>?, count: Int)
/Users/admin/builder/spi-builder-workspace/Sources/SwmCore/Extensions/Array.swift:105:31: warning: capture of 'transform' with non-sendable type '(Element) -> T' in a `@Sendable` closure; this is an error in the Swift 6 language mode
103 | return result.withUnsafeMutableBufferPointer { buffer in
104 | DispatchQueue.concurrentPerform(iterations: buffer.count) { idx in
105 | buffer[idx] = transform(self[idx])
| |- warning: capture of 'transform' with non-sendable type '(Element) -> T' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
106 | }
107 | return buffer.map { $0! }
/Users/admin/builder/spi-builder-workspace/Sources/SwmCore/Extensions/Array.swift:105:41: warning: capture of 'self' with non-sendable type 'Array<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
103 | return result.withUnsafeMutableBufferPointer { buffer in
104 | DispatchQueue.concurrentPerform(iterations: buffer.count) { idx in
105 | buffer[idx] = transform(self[idx])
| `- warning: capture of 'self' with non-sendable type 'Array<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
106 | }
107 | return buffer.map { $0! }
/Users/admin/builder/spi-builder-workspace/Sources/SwmCore/Extensions/Array.swift:105:17: warning: mutable capture of 'inout' parameter 'buffer' is not allowed in concurrently-executing code; this is an error in the Swift 6 language mode
103 | return result.withUnsafeMutableBufferPointer { buffer in
104 | DispatchQueue.concurrentPerform(iterations: buffer.count) { idx in
105 | buffer[idx] = transform(self[idx])
| `- warning: mutable capture of 'inout' parameter 'buffer' is not allowed in concurrently-executing code; this is an error in the Swift 6 language mode
106 | }
107 | return buffer.map { $0! }
[156/173] Compiling SwmCore Module.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwmCore/Extensions/Array.swift:88:1: warning: extension declares a conformance of imported type 'Array' to imported protocol 'Comparable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
86 | }
87 |
88 | extension Array: Comparable where Element: Comparable {
| |- warning: extension declares a conformance of imported type 'Array' to imported protocol 'Comparable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
89 | public static func < (lhs: Array, rhs: Array) -> Bool {
90 | lhs.lexicographicallyPrecedes(rhs)
/Users/admin/builder/spi-builder-workspace/Sources/SwmCore/Extensions/Array.swift:97:13: warning: capture of 'body' with non-sendable type '(Element) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
95 | public func parallelForEach(body: (Element) -> Void ) {
96 | DispatchQueue.concurrentPerform(iterations: count) { i in
97 | body(self[i])
| |- warning: capture of 'body' with non-sendable type '(Element) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
98 | }
99 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwmCore/Extensions/Array.swift:97:18: warning: capture of 'self' with non-sendable type 'Array<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
95 | public func parallelForEach(body: (Element) -> Void ) {
96 | DispatchQueue.concurrentPerform(iterations: count) { i in
97 | body(self[i])
| `- warning: capture of 'self' with non-sendable type 'Array<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
98 | }
99 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwmCore/Extensions/Array.swift:105:17: warning: capture of 'buffer' with non-sendable type 'UnsafeMutableBufferPointer<T?>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
103 | return result.withUnsafeMutableBufferPointer { buffer in
104 | DispatchQueue.concurrentPerform(iterations: buffer.count) { idx in
105 | buffer[idx] = transform(self[idx])
| `- warning: capture of 'buffer' with non-sendable type 'UnsafeMutableBufferPointer<T?>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
106 | }
107 | return buffer.map { $0! }
Swift.UnsafeMutableBufferPointer:1:23: note: generic struct 'UnsafeMutableBufferPointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafeMutableBufferPointer<Element> : Copyable where Element : ~Copyable {
| `- note: generic struct 'UnsafeMutableBufferPointer' does not conform to the 'Sendable' protocol
2 | public let count: Int
3 | @inlinable public init(start: UnsafeMutablePointer<Element>?, count: Int)
/Users/admin/builder/spi-builder-workspace/Sources/SwmCore/Extensions/Array.swift:105:31: warning: capture of 'transform' with non-sendable type '(Element) -> T' in a `@Sendable` closure; this is an error in the Swift 6 language mode
103 | return result.withUnsafeMutableBufferPointer { buffer in
104 | DispatchQueue.concurrentPerform(iterations: buffer.count) { idx in
105 | buffer[idx] = transform(self[idx])
| |- warning: capture of 'transform' with non-sendable type '(Element) -> T' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
106 | }
107 | return buffer.map { $0! }
/Users/admin/builder/spi-builder-workspace/Sources/SwmCore/Extensions/Array.swift:105:41: warning: capture of 'self' with non-sendable type 'Array<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
103 | return result.withUnsafeMutableBufferPointer { buffer in
104 | DispatchQueue.concurrentPerform(iterations: buffer.count) { idx in
105 | buffer[idx] = transform(self[idx])
| `- warning: capture of 'self' with non-sendable type 'Array<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
106 | }
107 | return buffer.map { $0! }
/Users/admin/builder/spi-builder-workspace/Sources/SwmCore/Extensions/Array.swift:105:17: warning: mutable capture of 'inout' parameter 'buffer' is not allowed in concurrently-executing code; this is an error in the Swift 6 language mode
103 | return result.withUnsafeMutableBufferPointer { buffer in
104 | DispatchQueue.concurrentPerform(iterations: buffer.count) { idx in
105 | buffer[idx] = transform(self[idx])
| `- warning: mutable capture of 'inout' parameter 'buffer' is not allowed in concurrently-executing code; this is an error in the Swift 6 language mode
106 | }
107 | return buffer.map { $0! }
[157/173] Compiling SwmCore Monoid.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwmCore/Extensions/Array.swift:88:1: warning: extension declares a conformance of imported type 'Array' to imported protocol 'Comparable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
86 | }
87 |
88 | extension Array: Comparable where Element: Comparable {
| |- warning: extension declares a conformance of imported type 'Array' to imported protocol 'Comparable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
89 | public static func < (lhs: Array, rhs: Array) -> Bool {
90 | lhs.lexicographicallyPrecedes(rhs)
/Users/admin/builder/spi-builder-workspace/Sources/SwmCore/Extensions/Array.swift:97:13: warning: capture of 'body' with non-sendable type '(Element) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
95 | public func parallelForEach(body: (Element) -> Void ) {
96 | DispatchQueue.concurrentPerform(iterations: count) { i in
97 | body(self[i])
| |- warning: capture of 'body' with non-sendable type '(Element) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
98 | }
99 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwmCore/Extensions/Array.swift:97:18: warning: capture of 'self' with non-sendable type 'Array<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
95 | public func parallelForEach(body: (Element) -> Void ) {
96 | DispatchQueue.concurrentPerform(iterations: count) { i in
97 | body(self[i])
| `- warning: capture of 'self' with non-sendable type 'Array<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
98 | }
99 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwmCore/Extensions/Array.swift:105:17: warning: capture of 'buffer' with non-sendable type 'UnsafeMutableBufferPointer<T?>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
103 | return result.withUnsafeMutableBufferPointer { buffer in
104 | DispatchQueue.concurrentPerform(iterations: buffer.count) { idx in
105 | buffer[idx] = transform(self[idx])
| `- warning: capture of 'buffer' with non-sendable type 'UnsafeMutableBufferPointer<T?>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
106 | }
107 | return buffer.map { $0! }
Swift.UnsafeMutableBufferPointer:1:23: note: generic struct 'UnsafeMutableBufferPointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafeMutableBufferPointer<Element> : Copyable where Element : ~Copyable {
| `- note: generic struct 'UnsafeMutableBufferPointer' does not conform to the 'Sendable' protocol
2 | public let count: Int
3 | @inlinable public init(start: UnsafeMutablePointer<Element>?, count: Int)
/Users/admin/builder/spi-builder-workspace/Sources/SwmCore/Extensions/Array.swift:105:31: warning: capture of 'transform' with non-sendable type '(Element) -> T' in a `@Sendable` closure; this is an error in the Swift 6 language mode
103 | return result.withUnsafeMutableBufferPointer { buffer in
104 | DispatchQueue.concurrentPerform(iterations: buffer.count) { idx in
105 | buffer[idx] = transform(self[idx])
| |- warning: capture of 'transform' with non-sendable type '(Element) -> T' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
106 | }
107 | return buffer.map { $0! }
/Users/admin/builder/spi-builder-workspace/Sources/SwmCore/Extensions/Array.swift:105:41: warning: capture of 'self' with non-sendable type 'Array<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
103 | return result.withUnsafeMutableBufferPointer { buffer in
104 | DispatchQueue.concurrentPerform(iterations: buffer.count) { idx in
105 | buffer[idx] = transform(self[idx])
| `- warning: capture of 'self' with non-sendable type 'Array<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
106 | }
107 | return buffer.map { $0! }
/Users/admin/builder/spi-builder-workspace/Sources/SwmCore/Extensions/Array.swift:105:17: warning: mutable capture of 'inout' parameter 'buffer' is not allowed in concurrently-executing code; this is an error in the Swift 6 language mode
103 | return result.withUnsafeMutableBufferPointer { buffer in
104 | DispatchQueue.concurrentPerform(iterations: buffer.count) { idx in
105 | buffer[idx] = transform(self[idx])
| `- warning: mutable capture of 'inout' parameter 'buffer' is not allowed in concurrently-executing code; this is an error in the Swift 6 language mode
106 | }
107 | return buffer.map { $0! }
[158/173] Compiling SwmCore Ring.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwmCore/Extensions/Array.swift:88:1: warning: extension declares a conformance of imported type 'Array' to imported protocol 'Comparable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
86 | }
87 |
88 | extension Array: Comparable where Element: Comparable {
| |- warning: extension declares a conformance of imported type 'Array' to imported protocol 'Comparable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
89 | public static func < (lhs: Array, rhs: Array) -> Bool {
90 | lhs.lexicographicallyPrecedes(rhs)
/Users/admin/builder/spi-builder-workspace/Sources/SwmCore/Extensions/Array.swift:97:13: warning: capture of 'body' with non-sendable type '(Element) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
95 | public func parallelForEach(body: (Element) -> Void ) {
96 | DispatchQueue.concurrentPerform(iterations: count) { i in
97 | body(self[i])
| |- warning: capture of 'body' with non-sendable type '(Element) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
98 | }
99 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwmCore/Extensions/Array.swift:97:18: warning: capture of 'self' with non-sendable type 'Array<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
95 | public func parallelForEach(body: (Element) -> Void ) {
96 | DispatchQueue.concurrentPerform(iterations: count) { i in
97 | body(self[i])
| `- warning: capture of 'self' with non-sendable type 'Array<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
98 | }
99 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwmCore/Extensions/Array.swift:105:17: warning: capture of 'buffer' with non-sendable type 'UnsafeMutableBufferPointer<T?>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
103 | return result.withUnsafeMutableBufferPointer { buffer in
104 | DispatchQueue.concurrentPerform(iterations: buffer.count) { idx in
105 | buffer[idx] = transform(self[idx])
| `- warning: capture of 'buffer' with non-sendable type 'UnsafeMutableBufferPointer<T?>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
106 | }
107 | return buffer.map { $0! }
Swift.UnsafeMutableBufferPointer:1:23: note: generic struct 'UnsafeMutableBufferPointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafeMutableBufferPointer<Element> : Copyable where Element : ~Copyable {
| `- note: generic struct 'UnsafeMutableBufferPointer' does not conform to the 'Sendable' protocol
2 | public let count: Int
3 | @inlinable public init(start: UnsafeMutablePointer<Element>?, count: Int)
/Users/admin/builder/spi-builder-workspace/Sources/SwmCore/Extensions/Array.swift:105:31: warning: capture of 'transform' with non-sendable type '(Element) -> T' in a `@Sendable` closure; this is an error in the Swift 6 language mode
103 | return result.withUnsafeMutableBufferPointer { buffer in
104 | DispatchQueue.concurrentPerform(iterations: buffer.count) { idx in
105 | buffer[idx] = transform(self[idx])
| |- warning: capture of 'transform' with non-sendable type '(Element) -> T' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
106 | }
107 | return buffer.map { $0! }
/Users/admin/builder/spi-builder-workspace/Sources/SwmCore/Extensions/Array.swift:105:41: warning: capture of 'self' with non-sendable type 'Array<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
103 | return result.withUnsafeMutableBufferPointer { buffer in
104 | DispatchQueue.concurrentPerform(iterations: buffer.count) { idx in
105 | buffer[idx] = transform(self[idx])
| `- warning: capture of 'self' with non-sendable type 'Array<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
106 | }
107 | return buffer.map { $0! }
/Users/admin/builder/spi-builder-workspace/Sources/SwmCore/Extensions/Array.swift:105:17: warning: mutable capture of 'inout' parameter 'buffer' is not allowed in concurrently-executing code; this is an error in the Swift 6 language mode
103 | return result.withUnsafeMutableBufferPointer { buffer in
104 | DispatchQueue.concurrentPerform(iterations: buffer.count) { idx in
105 | buffer[idx] = transform(self[idx])
| `- warning: mutable capture of 'inout' parameter 'buffer' is not allowed in concurrently-executing code; this is an error in the Swift 6 language mode
106 | }
107 | return buffer.map { $0! }
[159/173] Compiling SwmCore Array.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwmCore/Extensions/Array.swift:88:1: warning: extension declares a conformance of imported type 'Array' to imported protocol 'Comparable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
86 | }
87 |
88 | extension Array: Comparable where Element: Comparable {
| |- warning: extension declares a conformance of imported type 'Array' to imported protocol 'Comparable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
89 | public static func < (lhs: Array, rhs: Array) -> Bool {
90 | lhs.lexicographicallyPrecedes(rhs)
/Users/admin/builder/spi-builder-workspace/Sources/SwmCore/Extensions/Array.swift:97:13: warning: capture of 'body' with non-sendable type '(Element) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
95 | public func parallelForEach(body: (Element) -> Void ) {
96 | DispatchQueue.concurrentPerform(iterations: count) { i in
97 | body(self[i])
| |- warning: capture of 'body' with non-sendable type '(Element) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
98 | }
99 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwmCore/Extensions/Array.swift:97:18: warning: capture of 'self' with non-sendable type 'Array<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
95 | public func parallelForEach(body: (Element) -> Void ) {
96 | DispatchQueue.concurrentPerform(iterations: count) { i in
97 | body(self[i])
| `- warning: capture of 'self' with non-sendable type 'Array<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
98 | }
99 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwmCore/Extensions/Array.swift:105:17: warning: capture of 'buffer' with non-sendable type 'UnsafeMutableBufferPointer<T?>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
103 | return result.withUnsafeMutableBufferPointer { buffer in
104 | DispatchQueue.concurrentPerform(iterations: buffer.count) { idx in
105 | buffer[idx] = transform(self[idx])
| `- warning: capture of 'buffer' with non-sendable type 'UnsafeMutableBufferPointer<T?>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
106 | }
107 | return buffer.map { $0! }
Swift.UnsafeMutableBufferPointer:1:23: note: generic struct 'UnsafeMutableBufferPointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafeMutableBufferPointer<Element> : Copyable where Element : ~Copyable {
| `- note: generic struct 'UnsafeMutableBufferPointer' does not conform to the 'Sendable' protocol
2 | public let count: Int
3 | @inlinable public init(start: UnsafeMutablePointer<Element>?, count: Int)
/Users/admin/builder/spi-builder-workspace/Sources/SwmCore/Extensions/Array.swift:105:31: warning: capture of 'transform' with non-sendable type '(Element) -> T' in a `@Sendable` closure; this is an error in the Swift 6 language mode
103 | return result.withUnsafeMutableBufferPointer { buffer in
104 | DispatchQueue.concurrentPerform(iterations: buffer.count) { idx in
105 | buffer[idx] = transform(self[idx])
| |- warning: capture of 'transform' with non-sendable type '(Element) -> T' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
106 | }
107 | return buffer.map { $0! }
/Users/admin/builder/spi-builder-workspace/Sources/SwmCore/Extensions/Array.swift:105:41: warning: capture of 'self' with non-sendable type 'Array<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
103 | return result.withUnsafeMutableBufferPointer { buffer in
104 | DispatchQueue.concurrentPerform(iterations: buffer.count) { idx in
105 | buffer[idx] = transform(self[idx])
| `- warning: capture of 'self' with non-sendable type 'Array<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
106 | }
107 | return buffer.map { $0! }
/Users/admin/builder/spi-builder-workspace/Sources/SwmCore/Extensions/Array.swift:105:17: warning: mutable capture of 'inout' parameter 'buffer' is not allowed in concurrently-executing code; this is an error in the Swift 6 language mode
103 | return result.withUnsafeMutableBufferPointer { buffer in
104 | DispatchQueue.concurrentPerform(iterations: buffer.count) { idx in
105 | buffer[idx] = transform(self[idx])
| `- warning: mutable capture of 'inout' parameter 'buffer' is not allowed in concurrently-executing code; this is an error in the Swift 6 language mode
106 | }
107 | return buffer.map { $0! }
[160/173] Compiling SwmCore Complex.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwmCore/Numbers/Integer.swift:86:17: warning: var '_primes' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
84 | }
85 |
86 | fileprivate var _primes: [𝐙] = []
| |- warning: var '_primes' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '_primes' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate '_primes' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
87 |
88 | extension 𝐙 {
[161/173] Compiling SwmCore F2.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwmCore/Numbers/Integer.swift:86:17: warning: var '_primes' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
84 | }
85 |
86 | fileprivate var _primes: [𝐙] = []
| |- warning: var '_primes' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '_primes' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate '_primes' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
87 |
88 | extension 𝐙 {
[162/173] Compiling SwmCore Integer.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwmCore/Numbers/Integer.swift:86:17: warning: var '_primes' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
84 | }
85 |
86 | fileprivate var _primes: [𝐙] = []
| |- warning: var '_primes' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '_primes' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate '_primes' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
87 |
88 | extension 𝐙 {
[163/173] Compiling SwmCore IntegerQuotient.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwmCore/Numbers/Integer.swift:86:17: warning: var '_primes' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
84 | }
85 |
86 | fileprivate var _primes: [𝐙] = []
| |- warning: var '_primes' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '_primes' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate '_primes' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
87 |
88 | extension 𝐙 {
[164/173] Compiling SwmCore Quaternion.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwmCore/Numbers/Integer.swift:86:17: warning: var '_primes' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
84 | }
85 |
86 | fileprivate var _primes: [𝐙] = []
| |- warning: var '_primes' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '_primes' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate '_primes' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
87 |
88 | extension 𝐙 {
[165/173] Compiling SwmCore Matrix.swift
[166/173] Compiling SwmCore MatrixIF.swift
[167/173] Compiling SwmCore MatrixImpl.swift
[168/173] Compiling SwmCore BitSequence.swift
[169/173] Compiling SwmCore Combinatorics.swift
[170/173] Compiling SwmCore Debug.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwmCore/Util/Logger.swift:10:13: warning: var 'loggers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
8 | import Foundation
9 |
10 | private var loggers: [Logger.Id : Logger] = [:]
| |- warning: var 'loggers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'loggers' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'loggers' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
11 |
12 | public final class Logger {
/Users/admin/builder/spi-builder-workspace/Sources/SwmCore/Util/Storage.swift:11:23: warning: static property 'storage' is not concurrency-safe because non-'Sendable' type 'Logger.Id' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | extension Logger.Id {
11 | public static let storage = Logger.Id("storage")
| |- warning: static property 'storage' is not concurrency-safe because non-'Sendable' type 'Logger.Id' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'storage' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 | }
13 |
/Users/admin/builder/spi-builder-workspace/Sources/SwmCore/Util/Logger.swift:13:19: note: consider making struct 'Id' conform to the 'Sendable' protocol
11 |
12 | public final class Logger {
13 | public struct Id: Hashable, CustomStringConvertible {
| `- note: consider making struct 'Id' conform to the 'Sendable' protocol
14 | private let id: String
15 | public init(_ id: String) {
/Users/admin/builder/spi-builder-workspace/Sources/SwmCore/Util/Storage.swift:14:13: warning: let '_defaultStorage' is not concurrency-safe because non-'Sendable' type 'Storage' may have shared mutable state; this is an error in the Swift 6 language mode
12 | }
13 |
14 | private let _defaultStorage = Storage(dir: NSTemporaryDirectory() + "SwiftyMath/")
| |- warning: let '_defaultStorage' is not concurrency-safe because non-'Sendable' type 'Storage' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate '_defaultStorage' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 |
16 | public final class Storage {
| `- note: class 'Storage' does not conform to the 'Sendable' protocol
17 | private let fm: FileManager
18 | public let dir: String
[171/173] Compiling SwmCore Format.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwmCore/Util/Logger.swift:10:13: warning: var 'loggers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
8 | import Foundation
9 |
10 | private var loggers: [Logger.Id : Logger] = [:]
| |- warning: var 'loggers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'loggers' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'loggers' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
11 |
12 | public final class Logger {
/Users/admin/builder/spi-builder-workspace/Sources/SwmCore/Util/Storage.swift:11:23: warning: static property 'storage' is not concurrency-safe because non-'Sendable' type 'Logger.Id' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | extension Logger.Id {
11 | public static let storage = Logger.Id("storage")
| |- warning: static property 'storage' is not concurrency-safe because non-'Sendable' type 'Logger.Id' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'storage' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 | }
13 |
/Users/admin/builder/spi-builder-workspace/Sources/SwmCore/Util/Logger.swift:13:19: note: consider making struct 'Id' conform to the 'Sendable' protocol
11 |
12 | public final class Logger {
13 | public struct Id: Hashable, CustomStringConvertible {
| `- note: consider making struct 'Id' conform to the 'Sendable' protocol
14 | private let id: String
15 | public init(_ id: String) {
/Users/admin/builder/spi-builder-workspace/Sources/SwmCore/Util/Storage.swift:14:13: warning: let '_defaultStorage' is not concurrency-safe because non-'Sendable' type 'Storage' may have shared mutable state; this is an error in the Swift 6 language mode
12 | }
13 |
14 | private let _defaultStorage = Storage(dir: NSTemporaryDirectory() + "SwiftyMath/")
| |- warning: let '_defaultStorage' is not concurrency-safe because non-'Sendable' type 'Storage' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate '_defaultStorage' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 |
16 | public final class Storage {
| `- note: class 'Storage' does not conform to the 'Sendable' protocol
17 | private let fm: FileManager
18 | public let dir: String
[172/173] Compiling SwmCore Logger.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwmCore/Util/Logger.swift:10:13: warning: var 'loggers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
8 | import Foundation
9 |
10 | private var loggers: [Logger.Id : Logger] = [:]
| |- warning: var 'loggers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'loggers' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'loggers' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
11 |
12 | public final class Logger {
/Users/admin/builder/spi-builder-workspace/Sources/SwmCore/Util/Storage.swift:11:23: warning: static property 'storage' is not concurrency-safe because non-'Sendable' type 'Logger.Id' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | extension Logger.Id {
11 | public static let storage = Logger.Id("storage")
| |- warning: static property 'storage' is not concurrency-safe because non-'Sendable' type 'Logger.Id' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'storage' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 | }
13 |
/Users/admin/builder/spi-builder-workspace/Sources/SwmCore/Util/Logger.swift:13:19: note: consider making struct 'Id' conform to the 'Sendable' protocol
11 |
12 | public final class Logger {
13 | public struct Id: Hashable, CustomStringConvertible {
| `- note: consider making struct 'Id' conform to the 'Sendable' protocol
14 | private let id: String
15 | public init(_ id: String) {
/Users/admin/builder/spi-builder-workspace/Sources/SwmCore/Util/Storage.swift:14:13: warning: let '_defaultStorage' is not concurrency-safe because non-'Sendable' type 'Storage' may have shared mutable state; this is an error in the Swift 6 language mode
12 | }
13 |
14 | private let _defaultStorage = Storage(dir: NSTemporaryDirectory() + "SwiftyMath/")
| |- warning: let '_defaultStorage' is not concurrency-safe because non-'Sendable' type 'Storage' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate '_defaultStorage' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 |
16 | public final class Storage {
| `- note: class 'Storage' does not conform to the 'Sendable' protocol
17 | private let fm: FileManager
18 | public let dir: String
[173/173] Compiling SwmCore Storage.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwmCore/Util/Logger.swift:10:13: warning: var 'loggers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
8 | import Foundation
9 |
10 | private var loggers: [Logger.Id : Logger] = [:]
| |- warning: var 'loggers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'loggers' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'loggers' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
11 |
12 | public final class Logger {
/Users/admin/builder/spi-builder-workspace/Sources/SwmCore/Util/Storage.swift:11:23: warning: static property 'storage' is not concurrency-safe because non-'Sendable' type 'Logger.Id' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | extension Logger.Id {
11 | public static let storage = Logger.Id("storage")
| |- warning: static property 'storage' is not concurrency-safe because non-'Sendable' type 'Logger.Id' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'storage' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 | }
13 |
/Users/admin/builder/spi-builder-workspace/Sources/SwmCore/Util/Logger.swift:13:19: note: consider making struct 'Id' conform to the 'Sendable' protocol
11 |
12 | public final class Logger {
13 | public struct Id: Hashable, CustomStringConvertible {
| `- note: consider making struct 'Id' conform to the 'Sendable' protocol
14 | private let id: String
15 | public init(_ id: String) {
/Users/admin/builder/spi-builder-workspace/Sources/SwmCore/Util/Storage.swift:14:13: warning: let '_defaultStorage' is not concurrency-safe because non-'Sendable' type 'Storage' may have shared mutable state; this is an error in the Swift 6 language mode
12 | }
13 |
14 | private let _defaultStorage = Storage(dir: NSTemporaryDirectory() + "SwiftyMath/")
| |- warning: let '_defaultStorage' is not concurrency-safe because non-'Sendable' type 'Storage' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate '_defaultStorage' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 |
16 | public final class Storage {
| `- note: class 'Storage' does not conform to the 'Sendable' protocol
17 | private let fm: FileManager
18 | public let dir: String
Build complete! (25.62s)
Build complete.
{
"dependencies" : [
{
"identity" : "swift-algorithms",
"requirement" : {
"range" : [
{
"lower_bound" : "0.2.0",
"upper_bound" : "1.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-algorithms.git"
},
{
"identity" : "swift-collections",
"requirement" : {
"range" : [
{
"lower_bound" : "1.0.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-collections.git"
}
],
"manifest_display_name" : "swm-core",
"name" : "swm-core",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "SwmCore",
"targets" : [
"SwmCore"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "SwmCoreTests",
"module_type" : "SwiftTarget",
"name" : "SwmCoreTests",
"path" : "Tests/SwmCoreTests",
"sources" : [
"Abstract/AdditiveGroupTests.swift",
"Abstract/EuclideanRingTests.swift",
"Abstract/GroupTests.swift",
"Abstract/MapTests.swift",
"Abstract/ModuleTests.swift",
"Abstract/MonoidTests.swift",
"Abstract/RingTests.swift",
"Abstract/SetTests.swift",
"Combinatorics/PermutationTests.swift",
"LinearCombination/LinearCombinationTests.swift",
"Matrix/MatrixTests.swift",
"Numbers/ComplexTests.swift",
"Numbers/F2Tests.swift",
"Numbers/IntegerQuotientRingTests.swift",
"Numbers/IntegerTests.swift",
"Numbers/QuaternionTests.swift",
"Numbers/RationalTests.swift",
"Numbers/RealTests.swift",
"Polynomials/AlgebraicExtensionTests.swift",
"Polynomials/LaurentPolynomialTests.swift",
"Polynomials/MultivariatePolynomialTests.swift",
"Polynomials/PolynomialTests.swift"
],
"target_dependencies" : [
"SwmCore"
],
"type" : "test"
},
{
"c99name" : "SwmCore",
"module_type" : "SwiftTarget",
"name" : "SwmCore",
"path" : "Sources/SwmCore",
"product_dependencies" : [
"Algorithms",
"OrderedCollections"
],
"product_memberships" : [
"SwmCore"
],
"sources" : [
"Abstract/AdditiveGroup.swift",
"Abstract/EuclideanRing.swift",
"Abstract/Field.swift",
"Abstract/FractionField.swift",
"Abstract/Group.swift",
"Abstract/MathSet.swift",
"Abstract/Module.swift",
"Abstract/Monoid.swift",
"Abstract/Ring.swift",
"Extensions/Array.swift",
"Extensions/Codable.swift",
"Extensions/Dictionary.swift",
"Extensions/RandomAccessCollection.swift",
"Extensions/Sequence.swift",
"Extensions/Set.swift",
"Extensions/String.swift",
"LinearCombination/LinearCombination.swift",
"LinearCombination/LinearCombinationType.swift",
"LinearCombination/TensorGenerator.swift",
"Matrix/DefaultMatrixImpl.swift",
"Matrix/Matrix.swift",
"Matrix/MatrixIF.swift",
"Matrix/MatrixImpl.swift",
"Misc/BitSequence.swift",
"Misc/Combinatorics.swift",
"Misc/GraphAlgorithms.swift",
"Misc/IntList.swift",
"Misc/Operators.swift",
"Misc/Random.swift",
"Misc/TypeParameters.swift",
"Numbers/Complex.swift",
"Numbers/F2.swift",
"Numbers/Integer.swift",
"Numbers/IntegerQuotient.swift",
"Numbers/Quaternion.swift",
"Numbers/Rational.swift",
"Numbers/Real.swift",
"Permutation/Permutation.swift",
"Polynomial/GenericPolynomial.swift",
"Polynomial/MultivariatePolynomial.swift",
"Polynomial/Polynomial.swift",
"Polynomial/PolynomialQuotient.swift",
"Util/Cache.swift",
"Util/Debug.swift",
"Util/Format.swift",
"Util/Logger.swift",
"Util/Storage.swift"
],
"type" : "library"
}
],
"tools_version" : "5.3"
}
Done.