Build Information
Successful build of swm-core, reference 1.3.1 (ae48c2
), with Swift 6.0 for macOS (SPM) on 1 Nov 2024 22:24:52 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: 1.3.1
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/taketo1024/swm-core
* tag 1.3.1 -> FETCH_HEAD
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 1.3.1
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.83s)
Fetched https://github.com/apple/swift-collections.git from cache (1.83s)
Computing version for https://github.com/apple/swift-algorithms.git
Computed https://github.com/apple/swift-algorithms.git at 0.2.1 (0.68s)
Fetching https://github.com/apple/swift-numerics
[1/5576] Fetching swift-numerics
Fetched https://github.com/apple/swift-numerics from cache (1.10s)
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.81s)
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
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
========================================
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 (3.26s)
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.56s)
Fetched https://github.com/apple/swift-algorithms.git from cache (0.56s)
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.57s)
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.03s)
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/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/taketo1024/swm-core.git
Working copy of https://github.com/taketo1024/swm-core.git resolved at 1.3.1 (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 UnsafeBufferPointer+Extras.swift
[9/36] Compiling InternalCollectionsUtilities RandomAccessCollection+Offsets.swift
[10/36] Compiling InternalCollectionsUtilities Specialize.swift
[11/36] Compiling InternalCollectionsUtilities Debugging.swift
[12/36] Compiling InternalCollectionsUtilities Descriptions.swift
[13/36] Compiling RealModule Float+Real.swift
[14/36] Compiling RealModule Real.swift
[15/36] Compiling RealModule Float80+Real.swift
[16/37] Compiling InternalCollectionsUtilities _SortedCollection.swift
[17/37] Compiling InternalCollectionsUtilities _UniqueCollection.swift
[18/37] Compiling InternalCollectionsUtilities UnsafeMutableBufferPointer+Extras.swift
[19/37] Compiling RealModule RealFunctions.swift
[20/37] Compiling RealModule ElementaryFunctions.swift
[21/37] Compiling RealModule ApproximateEquality.swift
[22/37] Compiling RealModule Double+Real.swift
[23/37] Compiling RealModule AlgebraicField.swift
[24/37] Emitting module RealModule
[25/37] Compiling RealModule Float16+Real.swift
[26/37] Compiling RealModule AugmentedArithmetic.swift
[27/37] Compiling InternalCollectionsUtilities UInt+reversed.swift
[28/37] Compiling InternalCollectionsUtilities _UnsafeBitSet+Index.swift
[29/37] Compiling InternalCollectionsUtilities Integer rank.swift
[30/37] Compiling InternalCollectionsUtilities UInt+first and last set bit.swift
[31/37] Compiling InternalCollectionsUtilities UnsafeMutableBufferPointer+SE-0370.swift
[32/37] Compiling InternalCollectionsUtilities UnsafeMutablePointer+SE-0370.swift
[33/37] Compiling InternalCollectionsUtilities UnsafeRawPointer extensions.swift
[34/37] Compiling InternalCollectionsUtilities FixedWidthInteger+roundUpToPowerOfTwo.swift
[35/37] Compiling InternalCollectionsUtilities _UnsafeBitSet+_Word.swift
[36/37] Compiling InternalCollectionsUtilities _UnsafeBitSet.swift
[37/37] Emitting module InternalCollectionsUtilities
[38/117] Compiling OrderedCollections OrderedSet+Partial SetAlgebra formIntersection.swift
[39/117] Compiling OrderedCollections OrderedSet+Partial SetAlgebra formSymmetricDifference.swift
[40/117] Compiling OrderedCollections OrderedSet+Partial SetAlgebra formUnion.swift
[41/117] Compiling OrderedCollections OrderedSet+Partial SetAlgebra intersection.swift
[42/117] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isDisjoint.swift
[43/117] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isEqualSet.swift
[44/117] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isStrictSubset.swift
[45/117] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isStrictSuperset.swift
[46/117] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isSubset.swift
[47/117] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isSuperset.swift
[48/117] Compiling OrderedCollections OrderedSet+Partial SetAlgebra subtract.swift
[49/117] Compiling OrderedCollections OrderedSet+Partial SetAlgebra subtracting.swift
[50/123] Compiling OrderedCollections OrderedSet+Partial SetAlgebra symmetricDifference.swift
[51/123] Compiling OrderedCollections OrderedSet+Partial SetAlgebra union.swift
[52/123] Compiling OrderedCollections OrderedSet+Partial SetAlgebra+Basics.swift
[53/123] Compiling OrderedCollections OrderedSet+RandomAccessCollection.swift
[54/123] Compiling OrderedCollections OrderedSet+ReserveCapacity.swift
[55/123] Compiling OrderedCollections OrderedSet+Sendable.swift
[56/123] Compiling OrderedCollections OrderedDictionary+Elements.swift
[57/123] Compiling OrderedCollections OrderedDictionary+Equatable.swift
[58/123] Compiling OrderedCollections OrderedDictionary+ExpressibleByDictionaryLiteral.swift
[59/125] Compiling OrderedCollections _HashTable+Bucket.swift
[60/125] Compiling OrderedCollections _HashTable+BucketIterator.swift
[61/125] Compiling OrderedCollections OrderedDictionary+Hashable.swift
[62/125] Compiling OrderedCollections OrderedDictionary+Initializers.swift
[63/125] Compiling OrderedCollections OrderedSet+Insertions.swift
[64/125] Compiling OrderedCollections OrderedSet+Invariants.swift
[65/125] Compiling OrderedCollections OrderedSet+Partial MutableCollection.swift
[66/125] Compiling OrderedCollections _Hashtable+Header.swift
[67/125] Compiling OrderedCollections OrderedDictionary+Codable.swift
[68/125] Compiling OrderedCollections OrderedDictionary+CustomReflectable.swift
[69/125] Compiling OrderedCollections OrderedDictionary+Deprecations.swift
[70/125] Compiling OrderedCollections OrderedDictionary+Descriptions.swift
[71/125] Compiling OrderedCollections OrderedDictionary+Elements.SubSequence.swift
[72/125] Compiling OrderedCollections OrderedDictionary+Partial MutableCollection.swift
[73/125] Compiling OrderedCollections OrderedDictionary+Partial RangeReplaceableCollection.swift
[74/125] Compiling OrderedCollections OrderedDictionary+Sendable.swift
[75/125] Compiling OrderedCollections OrderedDictionary+Sequence.swift
[76/125] Compiling OrderedCollections OrderedDictionary+Values.swift
[77/125] Compiling OrderedCollections OrderedDictionary.swift
[78/125] Compiling OrderedCollections OrderedSet+Partial RangeReplaceableCollection.swift
[81/125] Compiling OrderedCollections OrderedSet+Codable.swift
[82/125] Compiling OrderedCollections OrderedSet+CustomReflectable.swift
[83/125] Compiling OrderedCollections OrderedSet+Descriptions.swift
[84/125] Compiling OrderedCollections OrderedSet+Diffing.swift
[85/125] Compiling OrderedCollections OrderedSet+Equatable.swift
[86/125] Compiling OrderedCollections OrderedSet+ExpressibleByArrayLiteral.swift
[87/125] Compiling OrderedCollections OrderedSet+Hashable.swift
[88/125] Compiling OrderedCollections OrderedSet+Initializers.swift
[98/125] Compiling OrderedCollections OrderedDictionary+Invariants.swift
[101/125] Compiling OrderedCollections _HashTable+Constants.swift
[102/125] Compiling OrderedCollections _HashTable+CustomStringConvertible.swift
[103/125] Compiling OrderedCollections _HashTable+Testing.swift
[104/125] Compiling Algorithms Unique.swift
[105/125] Compiling Algorithms Windows.swift
[111/125] Compiling OrderedCollections OrderedSet+SubSequence.swift
[112/125] Compiling OrderedCollections OrderedSet+Testing.swift
[113/125] Compiling OrderedCollections OrderedSet+UnorderedView.swift
[114/125] Compiling OrderedCollections OrderedSet+UnstableInternals.swift
[115/125] Compiling OrderedCollections OrderedSet.swift
[116/125] Compiling OrderedCollections _UnsafeBitset.swift
[124/125] Emitting module OrderedCollections
[125/125] Emitting module Algorithms
[126/169] Compiling SwmCore String.swift
[127/169] Compiling SwmCore LinearCombination.swift
[128/169] Compiling SwmCore LinearCombinationType.swift
[129/169] Compiling SwmCore TensorGenerator.swift
[130/169] Compiling SwmCore DefaultMatrixImpl.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 MultivariatePolynomial.swift
[137/173] Compiling SwmCore Polynomial.swift
[138/173] Compiling SwmCore PolynomialQuotient.swift
[139/173] Compiling SwmCore Cache.swift
[140/173] Compiling SwmCore GraphAlgorithms.swift
[141/173] Compiling SwmCore IntList.swift
[142/173] Compiling SwmCore Operators.swift
[143/173] Compiling SwmCore Random.swift
[144/173] Compiling SwmCore TypeParameters.swift
[145/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
[146/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
[147/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
[148/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
[149/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
[150/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
[151/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 𝐙 {
[152/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 𝐙 {
[153/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 𝐙 {
[154/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 𝐙 {
[155/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 𝐙 {
[156/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! }
[157/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! }
[158/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! }
[159/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! }
[160/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! }
[161/173] Compiling SwmCore Matrix.swift
[162/173] Compiling SwmCore MatrixIF.swift
[163/173] Compiling SwmCore MatrixImpl.swift
[164/173] Compiling SwmCore BitSequence.swift
[165/173] Compiling SwmCore Combinatorics.swift
[166/173] Compiling SwmCore Rational.swift
[167/173] Compiling SwmCore Real.swift
[168/173] Compiling SwmCore Permutation.swift
[169/173] Compiling SwmCore GenericPolynomial.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! (27.36s)
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.