Build Information
Successful build of sort-state-university, reference main (6f721f
), with Swift 6.0 for Linux on 4 Nov 2024 16:45:47 UTC.
Swift 6 data race errors: 5
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/kylehughes/sort-state-university.git
Reference: main
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: git branch -m <name>
From https://github.com/kylehughes/sort-state-university
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 6f721f2 Improve quicksort algorithm with harmonic numbers
Cloned https://github.com/kylehughes/sort-state-university.git
Revision (git rev-parse @):
6f721f2274b0965dd5e54ba156c4e82e953a47d3
SUCCESS checkout https://github.com/kylehughes/sort-state-university.git at main
========================================
Build
========================================
Selected platform: linux
Swift version: 6.0
Building package at path: $PWD
https://github.com/kylehughes/sort-state-university.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/16] Compiling SortStateUniversity SortingAlgorithmLabel.swift
/host/spi-builder-workspace/Sources/SortStateUniversity/SortingAlgorithmLabel.swift:38:23: warning: static property 'insertionSort' is not concurrency-safe because non-'Sendable' type 'SortingAlgorithmLabel' may have shared mutable state; this is an error in the Swift 6 language mode
7 |
8 | /// The type used to uniquely identify a sorting algorithm implementation.
9 | public struct SortingAlgorithmLabel: Codable, Equatable, Hashable, Identifiable {
| `- note: consider making struct 'SortingAlgorithmLabel' conform to the 'Sendable' protocol
10 | /// The stable identity of the sorting algorithm label.
11 | public let id: String
:
36 |
37 | /// The label of the ``InsertionSort`` algorithm.
38 | public static let insertionSort = SortingAlgorithmLabel(id: "insertion-sort", name: "Insertion Sort")
| |- warning: static property 'insertionSort' is not concurrency-safe because non-'Sendable' type 'SortingAlgorithmLabel' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'insertionSort' 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
39 |
40 | /// The label of the ``MergeSort`` algorithm.
/host/spi-builder-workspace/Sources/SortStateUniversity/SortingAlgorithmLabel.swift:41:23: warning: static property 'mergeSort' is not concurrency-safe because non-'Sendable' type 'SortingAlgorithmLabel' may have shared mutable state; this is an error in the Swift 6 language mode
7 |
8 | /// The type used to uniquely identify a sorting algorithm implementation.
9 | public struct SortingAlgorithmLabel: Codable, Equatable, Hashable, Identifiable {
| `- note: consider making struct 'SortingAlgorithmLabel' conform to the 'Sendable' protocol
10 | /// The stable identity of the sorting algorithm label.
11 | public let id: String
:
39 |
40 | /// The label of the ``MergeSort`` algorithm.
41 | public static let mergeSort = SortingAlgorithmLabel(id: "merge-sort", name: "Merge Sort")
| |- warning: static property 'mergeSort' is not concurrency-safe because non-'Sendable' type 'SortingAlgorithmLabel' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'mergeSort' 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
42 |
43 | /// The label of the ``Quicksort`` algorithm.
/host/spi-builder-workspace/Sources/SortStateUniversity/SortingAlgorithmLabel.swift:44:23: warning: static property 'quicksort' is not concurrency-safe because non-'Sendable' type 'SortingAlgorithmLabel' may have shared mutable state; this is an error in the Swift 6 language mode
7 |
8 | /// The type used to uniquely identify a sorting algorithm implementation.
9 | public struct SortingAlgorithmLabel: Codable, Equatable, Hashable, Identifiable {
| `- note: consider making struct 'SortingAlgorithmLabel' conform to the 'Sendable' protocol
10 | /// The stable identity of the sorting algorithm label.
11 | public let id: String
:
42 |
43 | /// The label of the ``Quicksort`` algorithm.
44 | public static let quicksort = SortingAlgorithmLabel(id: "quicksort", name: "Quicksort")
| |- warning: static property 'quicksort' is not concurrency-safe because non-'Sendable' type 'SortingAlgorithmLabel' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'quicksort' 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
45 | }
46 |
[4/17] Compiling SortStateUniversity SortingAlgorithmStep.swift
[5/17] Compiling SortStateUniversity BuiltInSortingAlgorithmType.swift
/host/spi-builder-workspace/Sources/SortStateUniversity/BuiltInSortingAlgorithmType.swift:28:23: warning: static property 'allCasesInAlphabeticalOrder' is not concurrency-safe because non-'Sendable' type '[BuiltInSortingAlgorithmType]' may have shared mutable state; this is an error in the Swift 6 language mode
7 |
8 | /// Enumeration of all sorting algorithms that are built into the library.
9 | public enum BuiltInSortingAlgorithmType: String, CaseIterable, Equatable, Hashable {
| `- note: consider making enum 'BuiltInSortingAlgorithmType' conform to the 'Sendable' protocol
10 | /// A simple sorting algorithm that sorts its elements one at a time.
11 | ///
:
26 |
27 | /// A collection of all values in this type, in alphabetical order (in American English).
28 | public static let allCasesInAlphabeticalOrder: [Self] = [.insertionSort, .mergeSort, .quicksort,]
| |- warning: static property 'allCasesInAlphabeticalOrder' is not concurrency-safe because non-'Sendable' type '[BuiltInSortingAlgorithmType]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'allCasesInAlphabeticalOrder' 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
29 |
30 | // MARK: Public Instance Interface
/host/spi-builder-workspace/Sources/SortStateUniversity/SortingAlgorithmLabel.swift:38:23: warning: static property 'insertionSort' is not concurrency-safe because non-'Sendable' type 'SortingAlgorithmLabel' may have shared mutable state; this is an error in the Swift 6 language mode
7 |
8 | /// The type used to uniquely identify a sorting algorithm implementation.
9 | public struct SortingAlgorithmLabel: Codable, Equatable, Hashable, Identifiable {
| `- note: consider making struct 'SortingAlgorithmLabel' conform to the 'Sendable' protocol
10 | /// The stable identity of the sorting algorithm label.
11 | public let id: String
:
36 |
37 | /// The label of the ``InsertionSort`` algorithm.
38 | public static let insertionSort = SortingAlgorithmLabel(id: "insertion-sort", name: "Insertion Sort")
| |- warning: static property 'insertionSort' is not concurrency-safe because non-'Sendable' type 'SortingAlgorithmLabel' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'insertionSort' 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
39 |
40 | /// The label of the ``MergeSort`` algorithm.
/host/spi-builder-workspace/Sources/SortStateUniversity/SortingAlgorithmLabel.swift:41:23: warning: static property 'mergeSort' is not concurrency-safe because non-'Sendable' type 'SortingAlgorithmLabel' may have shared mutable state; this is an error in the Swift 6 language mode
7 |
8 | /// The type used to uniquely identify a sorting algorithm implementation.
9 | public struct SortingAlgorithmLabel: Codable, Equatable, Hashable, Identifiable {
| `- note: consider making struct 'SortingAlgorithmLabel' conform to the 'Sendable' protocol
10 | /// The stable identity of the sorting algorithm label.
11 | public let id: String
:
39 |
40 | /// The label of the ``MergeSort`` algorithm.
41 | public static let mergeSort = SortingAlgorithmLabel(id: "merge-sort", name: "Merge Sort")
| |- warning: static property 'mergeSort' is not concurrency-safe because non-'Sendable' type 'SortingAlgorithmLabel' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'mergeSort' 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
42 |
43 | /// The label of the ``Quicksort`` algorithm.
/host/spi-builder-workspace/Sources/SortStateUniversity/SortingAlgorithmLabel.swift:44:23: warning: static property 'quicksort' is not concurrency-safe because non-'Sendable' type 'SortingAlgorithmLabel' may have shared mutable state; this is an error in the Swift 6 language mode
7 |
8 | /// The type used to uniquely identify a sorting algorithm implementation.
9 | public struct SortingAlgorithmLabel: Codable, Equatable, Hashable, Identifiable {
| `- note: consider making struct 'SortingAlgorithmLabel' conform to the 'Sendable' protocol
10 | /// The stable identity of the sorting algorithm label.
11 | public let id: String
:
42 |
43 | /// The label of the ``Quicksort`` algorithm.
44 | public static let quicksort = SortingAlgorithmLabel(id: "quicksort", name: "Quicksort")
| |- warning: static property 'quicksort' is not concurrency-safe because non-'Sendable' type 'SortingAlgorithmLabel' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'quicksort' 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
45 | }
46 |
[6/17] Compiling SortStateUniversity Comparison.swift
/host/spi-builder-workspace/Sources/SortStateUniversity/BuiltInSortingAlgorithmType.swift:28:23: warning: static property 'allCasesInAlphabeticalOrder' is not concurrency-safe because non-'Sendable' type '[BuiltInSortingAlgorithmType]' may have shared mutable state; this is an error in the Swift 6 language mode
7 |
8 | /// Enumeration of all sorting algorithms that are built into the library.
9 | public enum BuiltInSortingAlgorithmType: String, CaseIterable, Equatable, Hashable {
| `- note: consider making enum 'BuiltInSortingAlgorithmType' conform to the 'Sendable' protocol
10 | /// A simple sorting algorithm that sorts its elements one at a time.
11 | ///
:
26 |
27 | /// A collection of all values in this type, in alphabetical order (in American English).
28 | public static let allCasesInAlphabeticalOrder: [Self] = [.insertionSort, .mergeSort, .quicksort,]
| |- warning: static property 'allCasesInAlphabeticalOrder' is not concurrency-safe because non-'Sendable' type '[BuiltInSortingAlgorithmType]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'allCasesInAlphabeticalOrder' 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
29 |
30 | // MARK: Public Instance Interface
/host/spi-builder-workspace/Sources/SortStateUniversity/SortingAlgorithmLabel.swift:38:23: warning: static property 'insertionSort' is not concurrency-safe because non-'Sendable' type 'SortingAlgorithmLabel' may have shared mutable state; this is an error in the Swift 6 language mode
7 |
8 | /// The type used to uniquely identify a sorting algorithm implementation.
9 | public struct SortingAlgorithmLabel: Codable, Equatable, Hashable, Identifiable {
| `- note: consider making struct 'SortingAlgorithmLabel' conform to the 'Sendable' protocol
10 | /// The stable identity of the sorting algorithm label.
11 | public let id: String
:
36 |
37 | /// The label of the ``InsertionSort`` algorithm.
38 | public static let insertionSort = SortingAlgorithmLabel(id: "insertion-sort", name: "Insertion Sort")
| |- warning: static property 'insertionSort' is not concurrency-safe because non-'Sendable' type 'SortingAlgorithmLabel' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'insertionSort' 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
39 |
40 | /// The label of the ``MergeSort`` algorithm.
/host/spi-builder-workspace/Sources/SortStateUniversity/SortingAlgorithmLabel.swift:41:23: warning: static property 'mergeSort' is not concurrency-safe because non-'Sendable' type 'SortingAlgorithmLabel' may have shared mutable state; this is an error in the Swift 6 language mode
7 |
8 | /// The type used to uniquely identify a sorting algorithm implementation.
9 | public struct SortingAlgorithmLabel: Codable, Equatable, Hashable, Identifiable {
| `- note: consider making struct 'SortingAlgorithmLabel' conform to the 'Sendable' protocol
10 | /// The stable identity of the sorting algorithm label.
11 | public let id: String
:
39 |
40 | /// The label of the ``MergeSort`` algorithm.
41 | public static let mergeSort = SortingAlgorithmLabel(id: "merge-sort", name: "Merge Sort")
| |- warning: static property 'mergeSort' is not concurrency-safe because non-'Sendable' type 'SortingAlgorithmLabel' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'mergeSort' 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
42 |
43 | /// The label of the ``Quicksort`` algorithm.
/host/spi-builder-workspace/Sources/SortStateUniversity/SortingAlgorithmLabel.swift:44:23: warning: static property 'quicksort' is not concurrency-safe because non-'Sendable' type 'SortingAlgorithmLabel' may have shared mutable state; this is an error in the Swift 6 language mode
7 |
8 | /// The type used to uniquely identify a sorting algorithm implementation.
9 | public struct SortingAlgorithmLabel: Codable, Equatable, Hashable, Identifiable {
| `- note: consider making struct 'SortingAlgorithmLabel' conform to the 'Sendable' protocol
10 | /// The stable identity of the sorting algorithm label.
11 | public let id: String
:
42 |
43 | /// The label of the ``Quicksort`` algorithm.
44 | public static let quicksort = SortingAlgorithmLabel(id: "quicksort", name: "Quicksort")
| |- warning: static property 'quicksort' is not concurrency-safe because non-'Sendable' type 'SortingAlgorithmLabel' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'quicksort' 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
45 | }
46 |
[7/17] Compiling SortStateUniversity Quicksort.swift
/host/spi-builder-workspace/Sources/SortStateUniversity/SortingAlgorithmLabel.swift:44:23: warning: static property 'quicksort' is not concurrency-safe because non-'Sendable' type 'SortingAlgorithmLabel' may have shared mutable state; this is an error in the Swift 6 language mode
7 |
8 | /// The type used to uniquely identify a sorting algorithm implementation.
9 | public struct SortingAlgorithmLabel: Codable, Equatable, Hashable, Identifiable {
| `- note: consider making struct 'SortingAlgorithmLabel' conform to the 'Sendable' protocol
10 | /// The stable identity of the sorting algorithm label.
11 | public let id: String
:
42 |
43 | /// The label of the ``Quicksort`` algorithm.
44 | public static let quicksort = SortingAlgorithmLabel(id: "quicksort", name: "Quicksort")
| |- warning: static property 'quicksort' is not concurrency-safe because non-'Sendable' type 'SortingAlgorithmLabel' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'quicksort' 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
45 | }
46 |
[8/17] Compiling SortStateUniversity SortingAlgorithm.swift
/host/spi-builder-workspace/Sources/SortStateUniversity/SortingAlgorithmLabel.swift:44:23: warning: static property 'quicksort' is not concurrency-safe because non-'Sendable' type 'SortingAlgorithmLabel' may have shared mutable state; this is an error in the Swift 6 language mode
7 |
8 | /// The type used to uniquely identify a sorting algorithm implementation.
9 | public struct SortingAlgorithmLabel: Codable, Equatable, Hashable, Identifiable {
| `- note: consider making struct 'SortingAlgorithmLabel' conform to the 'Sendable' protocol
10 | /// The stable identity of the sorting algorithm label.
11 | public let id: String
:
42 |
43 | /// The label of the ``Quicksort`` algorithm.
44 | public static let quicksort = SortingAlgorithmLabel(id: "quicksort", name: "Quicksort")
| |- warning: static property 'quicksort' is not concurrency-safe because non-'Sendable' type 'SortingAlgorithmLabel' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'quicksort' 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
45 | }
46 |
[9/17] Compiling SortStateUniversity MergeSort.swift
/host/spi-builder-workspace/Sources/SortStateUniversity/SortingAlgorithmLabel.swift:41:23: warning: static property 'mergeSort' is not concurrency-safe because non-'Sendable' type 'SortingAlgorithmLabel' may have shared mutable state; this is an error in the Swift 6 language mode
7 |
8 | /// The type used to uniquely identify a sorting algorithm implementation.
9 | public struct SortingAlgorithmLabel: Codable, Equatable, Hashable, Identifiable {
| `- note: consider making struct 'SortingAlgorithmLabel' conform to the 'Sendable' protocol
10 | /// The stable identity of the sorting algorithm label.
11 | public let id: String
:
39 |
40 | /// The label of the ``MergeSort`` algorithm.
41 | public static let mergeSort = SortingAlgorithmLabel(id: "merge-sort", name: "Merge Sort")
| |- warning: static property 'mergeSort' is not concurrency-safe because non-'Sendable' type 'SortingAlgorithmLabel' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'mergeSort' 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
42 |
43 | /// The label of the ``Quicksort`` algorithm.
[10/17] Compiling SortStateUniversity Quicksort+Partition.swift
/host/spi-builder-workspace/Sources/SortStateUniversity/SortingAlgorithmLabel.swift:41:23: warning: static property 'mergeSort' is not concurrency-safe because non-'Sendable' type 'SortingAlgorithmLabel' may have shared mutable state; this is an error in the Swift 6 language mode
7 |
8 | /// The type used to uniquely identify a sorting algorithm implementation.
9 | public struct SortingAlgorithmLabel: Codable, Equatable, Hashable, Identifiable {
| `- note: consider making struct 'SortingAlgorithmLabel' conform to the 'Sendable' protocol
10 | /// The stable identity of the sorting algorithm label.
11 | public let id: String
:
39 |
40 | /// The label of the ``MergeSort`` algorithm.
41 | public static let mergeSort = SortingAlgorithmLabel(id: "merge-sort", name: "Merge Sort")
| |- warning: static property 'mergeSort' is not concurrency-safe because non-'Sendable' type 'SortingAlgorithmLabel' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'mergeSort' 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
42 |
43 | /// The label of the ``Quicksort`` algorithm.
[11/17] Compiling SortStateUniversity Double+SortStateUniversity.swift
[12/17] Compiling SortStateUniversity Int+SortStateUniversity.swift
[13/17] Compiling SortStateUniversity Complexity.swift
/host/spi-builder-workspace/Sources/SortStateUniversity/Complexity.swift:44:23: warning: static property 'allCasesInOrder' is not concurrency-safe because non-'Sendable' type '[Complexity]' may have shared mutable state; this is an error in the Swift 6 language mode
17 | ///
18 | /// - SeeAlso: https://en.wikipedia.org/wiki/Big_O_notation
19 | public enum Complexity: Equatable, Hashable, CaseIterable {
| `- note: consider making enum 'Complexity' conform to the 'Sendable' protocol
20 | /// O(1)
21 | case constant
:
42 |
43 | /// A collection of all complexity values from least complex to most complex.
44 | public static let allCasesInOrder: [Complexity] = [
| |- warning: static property 'allCasesInOrder' is not concurrency-safe because non-'Sendable' type '[Complexity]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'allCasesInOrder' 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
45 | .constant,
46 | .logarithmic,
[14/17] Compiling SortStateUniversity Array+SortStateUniversity.swift
/host/spi-builder-workspace/Sources/SortStateUniversity/Complexity.swift:44:23: warning: static property 'allCasesInOrder' is not concurrency-safe because non-'Sendable' type '[Complexity]' may have shared mutable state; this is an error in the Swift 6 language mode
17 | ///
18 | /// - SeeAlso: https://en.wikipedia.org/wiki/Big_O_notation
19 | public enum Complexity: Equatable, Hashable, CaseIterable {
| `- note: consider making enum 'Complexity' conform to the 'Sendable' protocol
20 | /// O(1)
21 | case constant
:
42 |
43 | /// A collection of all complexity values from least complex to most complex.
44 | public static let allCasesInOrder: [Complexity] = [
| |- warning: static property 'allCasesInOrder' is not concurrency-safe because non-'Sendable' type '[Complexity]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'allCasesInOrder' 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
45 | .constant,
46 | .logarithmic,
[15/17] Emitting module SortStateUniversity
/host/spi-builder-workspace/Sources/SortStateUniversity/BuiltInSortingAlgorithmType.swift:28:23: warning: static property 'allCasesInAlphabeticalOrder' is not concurrency-safe because non-'Sendable' type '[BuiltInSortingAlgorithmType]' may have shared mutable state; this is an error in the Swift 6 language mode
7 |
8 | /// Enumeration of all sorting algorithms that are built into the library.
9 | public enum BuiltInSortingAlgorithmType: String, CaseIterable, Equatable, Hashable {
| `- note: consider making enum 'BuiltInSortingAlgorithmType' conform to the 'Sendable' protocol
10 | /// A simple sorting algorithm that sorts its elements one at a time.
11 | ///
:
26 |
27 | /// A collection of all values in this type, in alphabetical order (in American English).
28 | public static let allCasesInAlphabeticalOrder: [Self] = [.insertionSort, .mergeSort, .quicksort,]
| |- warning: static property 'allCasesInAlphabeticalOrder' is not concurrency-safe because non-'Sendable' type '[BuiltInSortingAlgorithmType]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'allCasesInAlphabeticalOrder' 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
29 |
30 | // MARK: Public Instance Interface
/host/spi-builder-workspace/Sources/SortStateUniversity/SortingAlgorithmLabel.swift:38:23: warning: static property 'insertionSort' is not concurrency-safe because non-'Sendable' type 'SortingAlgorithmLabel' may have shared mutable state; this is an error in the Swift 6 language mode
7 |
8 | /// The type used to uniquely identify a sorting algorithm implementation.
9 | public struct SortingAlgorithmLabel: Codable, Equatable, Hashable, Identifiable {
| `- note: consider making struct 'SortingAlgorithmLabel' conform to the 'Sendable' protocol
10 | /// The stable identity of the sorting algorithm label.
11 | public let id: String
:
36 |
37 | /// The label of the ``InsertionSort`` algorithm.
38 | public static let insertionSort = SortingAlgorithmLabel(id: "insertion-sort", name: "Insertion Sort")
| |- warning: static property 'insertionSort' is not concurrency-safe because non-'Sendable' type 'SortingAlgorithmLabel' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'insertionSort' 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
39 |
40 | /// The label of the ``MergeSort`` algorithm.
/host/spi-builder-workspace/Sources/SortStateUniversity/SortingAlgorithmLabel.swift:41:23: warning: static property 'mergeSort' is not concurrency-safe because non-'Sendable' type 'SortingAlgorithmLabel' may have shared mutable state; this is an error in the Swift 6 language mode
7 |
8 | /// The type used to uniquely identify a sorting algorithm implementation.
9 | public struct SortingAlgorithmLabel: Codable, Equatable, Hashable, Identifiable {
| `- note: consider making struct 'SortingAlgorithmLabel' conform to the 'Sendable' protocol
10 | /// The stable identity of the sorting algorithm label.
11 | public let id: String
:
39 |
40 | /// The label of the ``MergeSort`` algorithm.
41 | public static let mergeSort = SortingAlgorithmLabel(id: "merge-sort", name: "Merge Sort")
| |- warning: static property 'mergeSort' is not concurrency-safe because non-'Sendable' type 'SortingAlgorithmLabel' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'mergeSort' 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
42 |
43 | /// The label of the ``Quicksort`` algorithm.
/host/spi-builder-workspace/Sources/SortStateUniversity/SortingAlgorithmLabel.swift:44:23: warning: static property 'quicksort' is not concurrency-safe because non-'Sendable' type 'SortingAlgorithmLabel' may have shared mutable state; this is an error in the Swift 6 language mode
7 |
8 | /// The type used to uniquely identify a sorting algorithm implementation.
9 | public struct SortingAlgorithmLabel: Codable, Equatable, Hashable, Identifiable {
| `- note: consider making struct 'SortingAlgorithmLabel' conform to the 'Sendable' protocol
10 | /// The stable identity of the sorting algorithm label.
11 | public let id: String
:
42 |
43 | /// The label of the ``Quicksort`` algorithm.
44 | public static let quicksort = SortingAlgorithmLabel(id: "quicksort", name: "Quicksort")
| |- warning: static property 'quicksort' is not concurrency-safe because non-'Sendable' type 'SortingAlgorithmLabel' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'quicksort' 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
45 | }
46 |
/host/spi-builder-workspace/Sources/SortStateUniversity/Complexity.swift:44:23: warning: static property 'allCasesInOrder' is not concurrency-safe because non-'Sendable' type '[Complexity]' may have shared mutable state; this is an error in the Swift 6 language mode
17 | ///
18 | /// - SeeAlso: https://en.wikipedia.org/wiki/Big_O_notation
19 | public enum Complexity: Equatable, Hashable, CaseIterable {
| `- note: consider making enum 'Complexity' conform to the 'Sendable' protocol
20 | /// O(1)
21 | case constant
:
42 |
43 | /// A collection of all complexity values from least complex to most complex.
44 | public static let allCasesInOrder: [Complexity] = [
| |- warning: static property 'allCasesInOrder' is not concurrency-safe because non-'Sendable' type '[Complexity]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'allCasesInOrder' 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
45 | .constant,
46 | .logarithmic,
[16/17] Compiling SortStateUniversity InsertionSort.swift
/host/spi-builder-workspace/Sources/SortStateUniversity/SortingAlgorithmLabel.swift:38:23: warning: static property 'insertionSort' is not concurrency-safe because non-'Sendable' type 'SortingAlgorithmLabel' may have shared mutable state; this is an error in the Swift 6 language mode
7 |
8 | /// The type used to uniquely identify a sorting algorithm implementation.
9 | public struct SortingAlgorithmLabel: Codable, Equatable, Hashable, Identifiable {
| `- note: consider making struct 'SortingAlgorithmLabel' conform to the 'Sendable' protocol
10 | /// The stable identity of the sorting algorithm label.
11 | public let id: String
:
36 |
37 | /// The label of the ``InsertionSort`` algorithm.
38 | public static let insertionSort = SortingAlgorithmLabel(id: "insertion-sort", name: "Insertion Sort")
| |- warning: static property 'insertionSort' is not concurrency-safe because non-'Sendable' type 'SortingAlgorithmLabel' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'insertionSort' 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
39 |
40 | /// The label of the ``MergeSort`` algorithm.
[17/17] Compiling SortStateUniversity MergeSort+Merge.swift
/host/spi-builder-workspace/Sources/SortStateUniversity/SortingAlgorithmLabel.swift:38:23: warning: static property 'insertionSort' is not concurrency-safe because non-'Sendable' type 'SortingAlgorithmLabel' may have shared mutable state; this is an error in the Swift 6 language mode
7 |
8 | /// The type used to uniquely identify a sorting algorithm implementation.
9 | public struct SortingAlgorithmLabel: Codable, Equatable, Hashable, Identifiable {
| `- note: consider making struct 'SortingAlgorithmLabel' conform to the 'Sendable' protocol
10 | /// The stable identity of the sorting algorithm label.
11 | public let id: String
:
36 |
37 | /// The label of the ``InsertionSort`` algorithm.
38 | public static let insertionSort = SortingAlgorithmLabel(id: "insertion-sort", name: "Insertion Sort")
| |- warning: static property 'insertionSort' is not concurrency-safe because non-'Sendable' type 'SortingAlgorithmLabel' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'insertionSort' 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
39 |
40 | /// The label of the ``MergeSort`` algorithm.
Build complete! (10.24s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "sort-state-university",
"name" : "sort-state-university",
"path" : "/host/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "14.0"
},
{
"name" : "macos",
"version" : "10.15"
},
{
"name" : "tvos",
"version" : "14.0"
},
{
"name" : "watchos",
"version" : "7.0"
}
],
"products" : [
{
"name" : "SortStateUniversity",
"targets" : [
"SortStateUniversity"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "SortStateUniversityTests",
"module_type" : "SwiftTarget",
"name" : "SortStateUniversityTests",
"path" : "Tests/SortStateUniversityTests",
"sources" : [
"Tests/AbstractSortingAlgorithmTest.swift",
"Tests/BuiltInSortingAlgorithmTypeTests.swift",
"Tests/ComparisonTests.swift",
"Tests/ComplexityTests.swift",
"Tests/Insertion Sort/InsertionSortTests.swift",
"Tests/Merge Sort/MergeSortTests.swift",
"Tests/Quicksort/QuicksortTests.swift",
"Tests/SortingAlgorithmStepTests.swift",
"Utilities/DefaultSortingAlgorithmInputFactory.swift",
"Utilities/SortingAlgorithmInputCase.swift",
"Utilities/SortingAlgorithmInputFactory.swift"
],
"target_dependencies" : [
"SortStateUniversity"
],
"type" : "test"
},
{
"c99name" : "SortStateUniversity",
"module_type" : "SwiftTarget",
"name" : "SortStateUniversity",
"path" : "Sources/SortStateUniversity",
"product_memberships" : [
"SortStateUniversity"
],
"sources" : [
"BuiltInSortingAlgorithmType.swift",
"Comparison.swift",
"Complexity.swift",
"Extensions/Standard Library/Array+SortStateUniversity.swift",
"Extensions/Standard Library/Double+SortStateUniversity.swift",
"Extensions/Standard Library/Int+SortStateUniversity.swift",
"Insertion Sort/InsertionSort.swift",
"Merge Sort/MergeSort+Merge.swift",
"Merge Sort/MergeSort.swift",
"Quicksort/Quicksort+Partition.swift",
"Quicksort/Quicksort.swift",
"SortingAlgorithm.swift",
"SortingAlgorithmLabel.swift",
"SortingAlgorithmStep.swift"
],
"type" : "library"
}
],
"tools_version" : "5.9"
}
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Done.