Build Information
Successful build of BigInt with Swift 6.0 for macOS (SPM).
Swift 6 data race errors: 4
Build Command
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Build Log
========================================
RunAll
========================================
Builder version: 4.40.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Boilertalk/BigInt.swift.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/Boilertalk/BigInt.swift
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at 4c25294 Add deprecation warning
Cloned https://github.com/Boilertalk/BigInt.swift.git
Revision (git rev-parse @):
4c25294ed1b8c816f12241cb4a66dbf3d571b8d2
SUCCESS checkout https://github.com/Boilertalk/BigInt.swift.git at master
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $workDir
https://github.com/Boilertalk/BigInt.swift.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-6F35C1178C84523A.txt
[3/23] Compiling BigInt Shifts.swift
/Users/admin/builder/spi-builder-workspace/BigInt/Classes/BigUInt.swift:30:14: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
28 | }
29 |
30 | internal fileprivate (set) var kind: Kind // Internal for testing only
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
31 | internal fileprivate (set) var storage: [Word] // Internal for testing only; stored separately to prevent COW copies
32 |
/Users/admin/builder/spi-builder-workspace/BigInt/Classes/BigUInt.swift:31:14: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
29 |
30 | internal fileprivate (set) var kind: Kind // Internal for testing only
31 | internal fileprivate (set) var storage: [Word] // Internal for testing only; stored separately to prevent COW copies
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
32 |
33 | /// Initializes a new BigUInt with value 0.
[4/23] Compiling BigInt SquareRoot.swift
/Users/admin/builder/spi-builder-workspace/BigInt/Classes/BigUInt.swift:30:14: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
28 | }
29 |
30 | internal fileprivate (set) var kind: Kind // Internal for testing only
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
31 | internal fileprivate (set) var storage: [Word] // Internal for testing only; stored separately to prevent COW copies
32 |
/Users/admin/builder/spi-builder-workspace/BigInt/Classes/BigUInt.swift:31:14: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
29 |
30 | internal fileprivate (set) var kind: Kind // Internal for testing only
31 | internal fileprivate (set) var storage: [Word] // Internal for testing only; stored separately to prevent COW copies
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
32 |
33 | /// Initializes a new BigUInt with value 0.
[5/25] Compiling BigInt Subtraction.swift
/Users/admin/builder/spi-builder-workspace/BigInt/Classes/BigUInt.swift:30:14: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
28 | }
29 |
30 | internal fileprivate (set) var kind: Kind // Internal for testing only
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
31 | internal fileprivate (set) var storage: [Word] // Internal for testing only; stored separately to prevent COW copies
32 |
/Users/admin/builder/spi-builder-workspace/BigInt/Classes/BigUInt.swift:31:14: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
29 |
30 | internal fileprivate (set) var kind: Kind // Internal for testing only
31 | internal fileprivate (set) var storage: [Word] // Internal for testing only; stored separately to prevent COW copies
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
32 |
33 | /// Initializes a new BigUInt with value 0.
[6/25] Compiling BigInt WordsAndBits.swift
/Users/admin/builder/spi-builder-workspace/BigInt/Classes/BigUInt.swift:30:14: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
28 | }
29 |
30 | internal fileprivate (set) var kind: Kind // Internal for testing only
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
31 | internal fileprivate (set) var storage: [Word] // Internal for testing only; stored separately to prevent COW copies
32 |
/Users/admin/builder/spi-builder-workspace/BigInt/Classes/BigUInt.swift:31:14: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
29 |
30 | internal fileprivate (set) var kind: Kind // Internal for testing only
31 | internal fileprivate (set) var storage: [Word] // Internal for testing only; stored separately to prevent COW copies
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
32 |
33 | /// Initializes a new BigUInt with value 0.
[7/25] Compiling BigInt BitwiseOps.swift
/Users/admin/builder/spi-builder-workspace/BigInt/Classes/BigUInt.swift:30:14: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
28 | }
29 |
30 | internal fileprivate (set) var kind: Kind // Internal for testing only
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
31 | internal fileprivate (set) var storage: [Word] // Internal for testing only; stored separately to prevent COW copies
32 |
/Users/admin/builder/spi-builder-workspace/BigInt/Classes/BigUInt.swift:31:14: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
29 |
30 | internal fileprivate (set) var kind: Kind // Internal for testing only
31 | internal fileprivate (set) var storage: [Word] // Internal for testing only; stored separately to prevent COW copies
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
32 |
33 | /// Initializes a new BigUInt with value 0.
[8/25] Compiling BigInt Codable.swift
/Users/admin/builder/spi-builder-workspace/BigInt/Classes/BigUInt.swift:30:14: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
28 | }
29 |
30 | internal fileprivate (set) var kind: Kind // Internal for testing only
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
31 | internal fileprivate (set) var storage: [Word] // Internal for testing only; stored separately to prevent COW copies
32 |
/Users/admin/builder/spi-builder-workspace/BigInt/Classes/BigUInt.swift:31:14: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
29 |
30 | internal fileprivate (set) var kind: Kind // Internal for testing only
31 | internal fileprivate (set) var storage: [Word] // Internal for testing only; stored separately to prevent COW copies
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
32 |
33 | /// Initializes a new BigUInt with value 0.
[9/25] Compiling BigInt Comparable.swift
/Users/admin/builder/spi-builder-workspace/BigInt/Classes/BigUInt.swift:30:14: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
28 | }
29 |
30 | internal fileprivate (set) var kind: Kind // Internal for testing only
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
31 | internal fileprivate (set) var storage: [Word] // Internal for testing only; stored separately to prevent COW copies
32 |
/Users/admin/builder/spi-builder-workspace/BigInt/Classes/BigUInt.swift:31:14: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
29 |
30 | internal fileprivate (set) var kind: Kind // Internal for testing only
31 | internal fileprivate (set) var storage: [Word] // Internal for testing only; stored separately to prevent COW copies
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
32 |
33 | /// Initializes a new BigUInt with value 0.
[10/25] Compiling BigInt IntegerConversion.swift
/Users/admin/builder/spi-builder-workspace/BigInt/Classes/BigUInt.swift:30:14: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
28 | }
29 |
30 | internal fileprivate (set) var kind: Kind // Internal for testing only
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
31 | internal fileprivate (set) var storage: [Word] // Internal for testing only; stored separately to prevent COW copies
32 |
/Users/admin/builder/spi-builder-workspace/BigInt/Classes/BigUInt.swift:31:14: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
29 |
30 | internal fileprivate (set) var kind: Kind // Internal for testing only
31 | internal fileprivate (set) var storage: [Word] // Internal for testing only; stored separately to prevent COW copies
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
32 |
33 | /// Initializes a new BigUInt with value 0.
/Users/admin/builder/spi-builder-workspace/BigInt/Classes/Multiplication.swift:84:23: warning: static property 'directMultiplicationLimit' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
82 |
83 | /// Multiplication switches to an asymptotically better recursive algorithm when arguments have more words than this limit.
84 | public static var directMultiplicationLimit: Int = 1024
| |- warning: static property 'directMultiplicationLimit' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'directMultiplicationLimit' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'directMultiplicationLimit' 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
85 |
86 | /// Multiply `a` by `b` and return the result.
[11/25] Compiling BigInt Multiplication.swift
/Users/admin/builder/spi-builder-workspace/BigInt/Classes/BigUInt.swift:30:14: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
28 | }
29 |
30 | internal fileprivate (set) var kind: Kind // Internal for testing only
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
31 | internal fileprivate (set) var storage: [Word] // Internal for testing only; stored separately to prevent COW copies
32 |
/Users/admin/builder/spi-builder-workspace/BigInt/Classes/BigUInt.swift:31:14: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
29 |
30 | internal fileprivate (set) var kind: Kind // Internal for testing only
31 | internal fileprivate (set) var storage: [Word] // Internal for testing only; stored separately to prevent COW copies
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
32 |
33 | /// Initializes a new BigUInt with value 0.
/Users/admin/builder/spi-builder-workspace/BigInt/Classes/Multiplication.swift:84:23: warning: static property 'directMultiplicationLimit' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
82 |
83 | /// Multiplication switches to an asymptotically better recursive algorithm when arguments have more words than this limit.
84 | public static var directMultiplicationLimit: Int = 1024
| |- warning: static property 'directMultiplicationLimit' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'directMultiplicationLimit' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'directMultiplicationLimit' 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
85 |
86 | /// Multiply `a` by `b` and return the result.
[12/25] Compiling BigInt PrimeTest.swift
/Users/admin/builder/spi-builder-workspace/BigInt/Classes/BigUInt.swift:30:14: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
28 | }
29 |
30 | internal fileprivate (set) var kind: Kind // Internal for testing only
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
31 | internal fileprivate (set) var storage: [Word] // Internal for testing only; stored separately to prevent COW copies
32 |
/Users/admin/builder/spi-builder-workspace/BigInt/Classes/BigUInt.swift:31:14: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
29 |
30 | internal fileprivate (set) var kind: Kind // Internal for testing only
31 | internal fileprivate (set) var storage: [Word] // Internal for testing only; stored separately to prevent COW copies
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
32 |
33 | /// Initializes a new BigUInt with value 0.
/Users/admin/builder/spi-builder-workspace/BigInt/Classes/PrimeTest.swift:18:5: warning: let 'pseudoPrimes' is not concurrency-safe because non-'Sendable' type '[BigUInt]' may have shared mutable state; this is an error in the Swift 6 language mode
16 | ///
17 | /// This is sequence [A014233](http://oeis.org/A014233) on the [Online Encyclopaedia of Integer Sequences](http://oeis.org).
18 | let pseudoPrimes: [BigUInt] = [
| |- warning: let 'pseudoPrimes' is not concurrency-safe because non-'Sendable' type '[BigUInt]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'pseudoPrimes' 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
19 | /* 2 */ 2_047,
20 | /* 3 */ 1_373_653,
/Users/admin/builder/spi-builder-workspace/BigInt/Classes/BigUInt.swift:16:15: note: consider making struct 'BigUInt' conform to the 'Sendable' protocol
14 | /// This particular big integer type uses base-2^64 digits to represent integers; you can think of it as a wrapper
15 | /// around `Array<UInt64>`. (In fact, `BigUInt` only uses an array if there are more than two digits.)
16 | public struct BigUInt: UnsignedInteger {
| `- note: consider making struct 'BigUInt' conform to the 'Sendable' protocol
17 | /// The type representing a digit in `BigUInt`'s underlying number system.
18 | public typealias Word = UInt
[13/25] Compiling BigInt Random.swift
/Users/admin/builder/spi-builder-workspace/BigInt/Classes/BigUInt.swift:30:14: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
28 | }
29 |
30 | internal fileprivate (set) var kind: Kind // Internal for testing only
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
31 | internal fileprivate (set) var storage: [Word] // Internal for testing only; stored separately to prevent COW copies
32 |
/Users/admin/builder/spi-builder-workspace/BigInt/Classes/BigUInt.swift:31:14: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
29 |
30 | internal fileprivate (set) var kind: Kind // Internal for testing only
31 | internal fileprivate (set) var storage: [Word] // Internal for testing only; stored separately to prevent COW copies
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
32 |
33 | /// Initializes a new BigUInt with value 0.
/Users/admin/builder/spi-builder-workspace/BigInt/Classes/PrimeTest.swift:18:5: warning: let 'pseudoPrimes' is not concurrency-safe because non-'Sendable' type '[BigUInt]' may have shared mutable state; this is an error in the Swift 6 language mode
16 | ///
17 | /// This is sequence [A014233](http://oeis.org/A014233) on the [Online Encyclopaedia of Integer Sequences](http://oeis.org).
18 | let pseudoPrimes: [BigUInt] = [
| |- warning: let 'pseudoPrimes' is not concurrency-safe because non-'Sendable' type '[BigUInt]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'pseudoPrimes' 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
19 | /* 2 */ 2_047,
20 | /* 3 */ 1_373_653,
/Users/admin/builder/spi-builder-workspace/BigInt/Classes/BigUInt.swift:16:15: note: consider making struct 'BigUInt' conform to the 'Sendable' protocol
14 | /// This particular big integer type uses base-2^64 digits to represent integers; you can think of it as a wrapper
15 | /// around `Array<UInt64>`. (In fact, `BigUInt` only uses an array if there are more than two digits.)
16 | public struct BigUInt: UnsignedInteger {
| `- note: consider making struct 'BigUInt' conform to the 'Sendable' protocol
17 | /// The type representing a digit in `BigUInt`'s underlying number system.
18 | public typealias Word = UInt
[14/25] Compiling BigInt Addition.swift
/Users/admin/builder/spi-builder-workspace/BigInt/Classes/BigUInt.swift:30:14: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
28 | }
29 |
30 | internal fileprivate (set) var kind: Kind // Internal for testing only
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
31 | internal fileprivate (set) var storage: [Word] // Internal for testing only; stored separately to prevent COW copies
32 |
/Users/admin/builder/spi-builder-workspace/BigInt/Classes/BigUInt.swift:31:14: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
29 |
30 | internal fileprivate (set) var kind: Kind // Internal for testing only
31 | internal fileprivate (set) var storage: [Word] // Internal for testing only; stored separately to prevent COW copies
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
32 |
33 | /// Initializes a new BigUInt with value 0.
[15/25] Compiling BigInt BigInt.swift
/Users/admin/builder/spi-builder-workspace/BigInt/Classes/BigUInt.swift:30:14: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
28 | }
29 |
30 | internal fileprivate (set) var kind: Kind // Internal for testing only
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
31 | internal fileprivate (set) var storage: [Word] // Internal for testing only; stored separately to prevent COW copies
32 |
/Users/admin/builder/spi-builder-workspace/BigInt/Classes/BigUInt.swift:31:14: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
29 |
30 | internal fileprivate (set) var kind: Kind // Internal for testing only
31 | internal fileprivate (set) var storage: [Word] // Internal for testing only; stored separately to prevent COW copies
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
32 |
33 | /// Initializes a new BigUInt with value 0.
[16/25] Compiling BigInt BigUInt.swift
/Users/admin/builder/spi-builder-workspace/BigInt/Classes/BigUInt.swift:30:14: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
28 | }
29 |
30 | internal fileprivate (set) var kind: Kind // Internal for testing only
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
31 | internal fileprivate (set) var storage: [Word] // Internal for testing only; stored separately to prevent COW copies
32 |
/Users/admin/builder/spi-builder-workspace/BigInt/Classes/BigUInt.swift:31:14: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
29 |
30 | internal fileprivate (set) var kind: Kind // Internal for testing only
31 | internal fileprivate (set) var storage: [Word] // Internal for testing only; stored separately to prevent COW copies
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
32 |
33 | /// Initializes a new BigUInt with value 0.
[17/25] Compiling BigInt Strideable.swift
/Users/admin/builder/spi-builder-workspace/BigInt/Classes/BigUInt.swift:30:14: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
28 | }
29 |
30 | internal fileprivate (set) var kind: Kind // Internal for testing only
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
31 | internal fileprivate (set) var storage: [Word] // Internal for testing only; stored separately to prevent COW copies
32 |
/Users/admin/builder/spi-builder-workspace/BigInt/Classes/BigUInt.swift:31:14: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
29 |
30 | internal fileprivate (set) var kind: Kind // Internal for testing only
31 | internal fileprivate (set) var storage: [Word] // Internal for testing only; stored separately to prevent COW copies
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
32 |
33 | /// Initializes a new BigUInt with value 0.
[18/25] Compiling BigInt StringConversion.swift
/Users/admin/builder/spi-builder-workspace/BigInt/Classes/BigUInt.swift:30:14: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
28 | }
29 |
30 | internal fileprivate (set) var kind: Kind // Internal for testing only
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
31 | internal fileprivate (set) var storage: [Word] // Internal for testing only; stored separately to prevent COW copies
32 |
/Users/admin/builder/spi-builder-workspace/BigInt/Classes/BigUInt.swift:31:14: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
29 |
30 | internal fileprivate (set) var kind: Kind // Internal for testing only
31 | internal fileprivate (set) var storage: [Word] // Internal for testing only; stored separately to prevent COW copies
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
32 |
33 | /// Initializes a new BigUInt with value 0.
[19/25] Compiling BigInt Exponentiation.swift
/Users/admin/builder/spi-builder-workspace/BigInt/Classes/BigUInt.swift:30:14: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
28 | }
29 |
30 | internal fileprivate (set) var kind: Kind // Internal for testing only
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
31 | internal fileprivate (set) var storage: [Word] // Internal for testing only; stored separately to prevent COW copies
32 |
/Users/admin/builder/spi-builder-workspace/BigInt/Classes/BigUInt.swift:31:14: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
29 |
30 | internal fileprivate (set) var kind: Kind // Internal for testing only
31 | internal fileprivate (set) var storage: [Word] // Internal for testing only; stored separately to prevent COW copies
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
32 |
33 | /// Initializes a new BigUInt with value 0.
[20/25] Compiling BigInt FloatingPointConversion.swift
/Users/admin/builder/spi-builder-workspace/BigInt/Classes/BigUInt.swift:30:14: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
28 | }
29 |
30 | internal fileprivate (set) var kind: Kind // Internal for testing only
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
31 | internal fileprivate (set) var storage: [Word] // Internal for testing only; stored separately to prevent COW copies
32 |
/Users/admin/builder/spi-builder-workspace/BigInt/Classes/BigUInt.swift:31:14: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
29 |
30 | internal fileprivate (set) var kind: Kind // Internal for testing only
31 | internal fileprivate (set) var storage: [Word] // Internal for testing only; stored separately to prevent COW copies
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
32 |
33 | /// Initializes a new BigUInt with value 0.
[21/25] Compiling BigInt GCD.swift
/Users/admin/builder/spi-builder-workspace/BigInt/Classes/BigUInt.swift:30:14: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
28 | }
29 |
30 | internal fileprivate (set) var kind: Kind // Internal for testing only
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
31 | internal fileprivate (set) var storage: [Word] // Internal for testing only; stored separately to prevent COW copies
32 |
/Users/admin/builder/spi-builder-workspace/BigInt/Classes/BigUInt.swift:31:14: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
29 |
30 | internal fileprivate (set) var kind: Kind // Internal for testing only
31 | internal fileprivate (set) var storage: [Word] // Internal for testing only; stored separately to prevent COW copies
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
32 |
33 | /// Initializes a new BigUInt with value 0.
/Users/admin/builder/spi-builder-workspace/BigInt/Classes/Hashable.swift:15:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'BigUInt' to 'Hashable' by implementing 'hash(into:)' instead
13 | //MARK: Hashing
14 |
15 | public var hashValue: Int {
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'BigUInt' to 'Hashable' by implementing 'hash(into:)' instead
16 | let words = self.words.map({ Int(bitPattern: $0) })
17 |
/Users/admin/builder/spi-builder-workspace/BigInt/Classes/Hashable.swift:27:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'BigInt' to 'Hashable' by implementing 'hash(into:)' instead
25 | extension BigInt: Hashable {
26 |
27 | public var hashValue: Int {
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'BigInt' to 'Hashable' by implementing 'hash(into:)' instead
28 | var words = self.words.map({ Int(bitPattern: $0) })
29 |
[22/25] Compiling BigInt Hashable.swift
/Users/admin/builder/spi-builder-workspace/BigInt/Classes/BigUInt.swift:30:14: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
28 | }
29 |
30 | internal fileprivate (set) var kind: Kind // Internal for testing only
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
31 | internal fileprivate (set) var storage: [Word] // Internal for testing only; stored separately to prevent COW copies
32 |
/Users/admin/builder/spi-builder-workspace/BigInt/Classes/BigUInt.swift:31:14: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
29 |
30 | internal fileprivate (set) var kind: Kind // Internal for testing only
31 | internal fileprivate (set) var storage: [Word] // Internal for testing only; stored separately to prevent COW copies
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
32 |
33 | /// Initializes a new BigUInt with value 0.
/Users/admin/builder/spi-builder-workspace/BigInt/Classes/Hashable.swift:15:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'BigUInt' to 'Hashable' by implementing 'hash(into:)' instead
13 | //MARK: Hashing
14 |
15 | public var hashValue: Int {
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'BigUInt' to 'Hashable' by implementing 'hash(into:)' instead
16 | let words = self.words.map({ Int(bitPattern: $0) })
17 |
/Users/admin/builder/spi-builder-workspace/BigInt/Classes/Hashable.swift:27:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'BigInt' to 'Hashable' by implementing 'hash(into:)' instead
25 | extension BigInt: Hashable {
26 |
27 | public var hashValue: Int {
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'BigInt' to 'Hashable' by implementing 'hash(into:)' instead
28 | var words = self.words.map({ Int(bitPattern: $0) })
29 |
[23/25] Compiling BigInt DataConversion.swift
/Users/admin/builder/spi-builder-workspace/BigInt/Classes/BigUInt.swift:30:14: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
28 | }
29 |
30 | internal fileprivate (set) var kind: Kind // Internal for testing only
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
31 | internal fileprivate (set) var storage: [Word] // Internal for testing only; stored separately to prevent COW copies
32 |
/Users/admin/builder/spi-builder-workspace/BigInt/Classes/BigUInt.swift:31:14: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
29 |
30 | internal fileprivate (set) var kind: Kind // Internal for testing only
31 | internal fileprivate (set) var storage: [Word] // Internal for testing only; stored separately to prevent COW copies
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
32 |
33 | /// Initializes a new BigUInt with value 0.
[24/25] Compiling BigInt Division.swift
/Users/admin/builder/spi-builder-workspace/BigInt/Classes/BigUInt.swift:30:14: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
28 | }
29 |
30 | internal fileprivate (set) var kind: Kind // Internal for testing only
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
31 | internal fileprivate (set) var storage: [Word] // Internal for testing only; stored separately to prevent COW copies
32 |
/Users/admin/builder/spi-builder-workspace/BigInt/Classes/BigUInt.swift:31:14: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
29 |
30 | internal fileprivate (set) var kind: Kind // Internal for testing only
31 | internal fileprivate (set) var storage: [Word] // Internal for testing only; stored separately to prevent COW copies
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
32 |
33 | /// Initializes a new BigUInt with value 0.
[25/25] Emitting module BigInt
/Users/admin/builder/spi-builder-workspace/BigInt/Classes/BigUInt.swift:30:14: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
28 | }
29 |
30 | internal fileprivate (set) var kind: Kind // Internal for testing only
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
31 | internal fileprivate (set) var storage: [Word] // Internal for testing only; stored separately to prevent COW copies
32 |
/Users/admin/builder/spi-builder-workspace/BigInt/Classes/BigUInt.swift:31:14: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
29 |
30 | internal fileprivate (set) var kind: Kind // Internal for testing only
31 | internal fileprivate (set) var storage: [Word] // Internal for testing only; stored separately to prevent COW copies
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
32 |
33 | /// Initializes a new BigUInt with value 0.
/Users/admin/builder/spi-builder-workspace/BigInt/Classes/Hashable.swift:15:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'BigUInt' to 'Hashable' by implementing 'hash(into:)' instead
13 | //MARK: Hashing
14 |
15 | public var hashValue: Int {
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'BigUInt' to 'Hashable' by implementing 'hash(into:)' instead
16 | let words = self.words.map({ Int(bitPattern: $0) })
17 |
/Users/admin/builder/spi-builder-workspace/BigInt/Classes/Hashable.swift:27:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'BigInt' to 'Hashable' by implementing 'hash(into:)' instead
25 | extension BigInt: Hashable {
26 |
27 | public var hashValue: Int {
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'BigInt' to 'Hashable' by implementing 'hash(into:)' instead
28 | var words = self.words.map({ Int(bitPattern: $0) })
29 |
/Users/admin/builder/spi-builder-workspace/BigInt/Classes/Multiplication.swift:84:23: warning: static property 'directMultiplicationLimit' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
82 |
83 | /// Multiplication switches to an asymptotically better recursive algorithm when arguments have more words than this limit.
84 | public static var directMultiplicationLimit: Int = 1024
| |- warning: static property 'directMultiplicationLimit' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'directMultiplicationLimit' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'directMultiplicationLimit' 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
85 |
86 | /// Multiply `a` by `b` and return the result.
/Users/admin/builder/spi-builder-workspace/BigInt/Classes/PrimeTest.swift:18:5: warning: let 'pseudoPrimes' is not concurrency-safe because non-'Sendable' type '[BigUInt]' may have shared mutable state; this is an error in the Swift 6 language mode
16 | ///
17 | /// This is sequence [A014233](http://oeis.org/A014233) on the [Online Encyclopaedia of Integer Sequences](http://oeis.org).
18 | let pseudoPrimes: [BigUInt] = [
| |- warning: let 'pseudoPrimes' is not concurrency-safe because non-'Sendable' type '[BigUInt]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'pseudoPrimes' 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
19 | /* 2 */ 2_047,
20 | /* 3 */ 1_373_653,
/Users/admin/builder/spi-builder-workspace/BigInt/Classes/BigUInt.swift:16:15: note: consider making struct 'BigUInt' conform to the 'Sendable' protocol
14 | /// This particular big integer type uses base-2^64 digits to represent integers; you can think of it as a wrapper
15 | /// around `Array<UInt64>`. (In fact, `BigUInt` only uses an array if there are more than two digits.)
16 | public struct BigUInt: UnsignedInteger {
| `- note: consider making struct 'BigUInt' conform to the 'Sendable' protocol
17 | /// The type representing a digit in `BigUInt`'s underlying number system.
18 | public typealias Word = UInt
Build complete! (19.28s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "BigInt",
"name" : "BigInt",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "BigInt",
"targets" : [
"BigInt"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "BigIntTests",
"module_type" : "SwiftTarget",
"name" : "BigIntTests",
"path" : "Tests/BigIntTests",
"sources" : [
"BigIntTests.swift",
"BigUIntTests.swift",
"ProfileTests.swift",
"Tools.swift",
"WordTests.swift"
],
"target_dependencies" : [
"BigInt"
],
"type" : "test"
},
{
"c99name" : "BigInt",
"module_type" : "SwiftTarget",
"name" : "BigInt",
"path" : "BigInt/Classes",
"product_memberships" : [
"BigInt"
],
"sources" : [
"Addition.swift",
"BigInt.swift",
"BigUInt.swift",
"BitwiseOps.swift",
"Codable.swift",
"Comparable.swift",
"DataConversion.swift",
"Division.swift",
"Exponentiation.swift",
"FloatingPointConversion.swift",
"GCD.swift",
"Hashable.swift",
"IntegerConversion.swift",
"Multiplication.swift",
"PrimeTest.swift",
"Random.swift",
"Shifts.swift",
"SquareRoot.swift",
"Strideable.swift",
"StringConversion.swift",
"Subtraction.swift",
"WordsAndBits.swift"
],
"type" : "library"
}
],
"tools_version" : "4.0"
}
Done.