Build Information
Successful build of swift-chess-neo, reference 2.0.0 (36df37), with Swift 6.4 for Android on 23 Sep 2026 00:53:59 UTC.
Swift 6 data race errors: 0
Build Command
bash -c docker run --pull=always --rm -v "checkouts-53886769-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:android-6.4-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1Build Log
[0;36m22 |[0;0m ///
[0;36m23 |[0;0m /// Defines whether a `Color` has the right to castle for a `Board.Side`.
[0;36m24 |[0;0m public struct CastlingRights: CustomStringConvertible {
[0;36m|[0;0m `- [1;39mnote: [1;39mconsider making struct 'CastlingRights' conform to the 'Sendable' protocol[0;0m
[0;36m25 |[0;0m
[0;36m26 |[0;0m /// A castling right.
[0;36m:[0;0m
[0;36m180 |[0;0m
[0;36m181 |[0;0m /// Black castling rights.
[0;36m182 |[0;0m public static let black = CastlingRights(Right.black)
[0;36m|[0;0m |- [1;33mwarning: [1;39mstatic property 'black' is not concurrency-safe because non-'Sendable' type 'CastlingRights' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m|[0;0m |- [1;39mnote: [1;39madd '@MainActor' to make static property 'black' part of global actor 'MainActor'[0;0m
[0;36m|[0;0m `- [1;39mnote: [1;39mdisable concurrency-safety checks if accesses are protected by an external synchronization mechanism[0;0m
[0;36m183 |[0;0m
[0;36m184 |[0;0m /// Kingside castling rights.
/host/spi-builder-workspace/Sources/SwiftChessCore/CastlingRights.swift:185:21: [1;33mwarning: [1;39mstatic property 'kingside' is not concurrency-safe because non-'Sendable' type 'CastlingRights' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m22 |[0;0m ///
[0;36m23 |[0;0m /// Defines whether a `Color` has the right to castle for a `Board.Side`.
[0;36m24 |[0;0m public struct CastlingRights: CustomStringConvertible {
[0;36m|[0;0m `- [1;39mnote: [1;39mconsider making struct 'CastlingRights' conform to the 'Sendable' protocol[0;0m
[0;36m25 |[0;0m
[0;36m26 |[0;0m /// A castling right.
[0;36m:[0;0m
[0;36m183 |[0;0m
[0;36m184 |[0;0m /// Kingside castling rights.
[0;36m185 |[0;0m public static let kingside = CastlingRights(Right.kingside)
[0;36m|[0;0m |- [1;33mwarning: [1;39mstatic property 'kingside' is not concurrency-safe because non-'Sendable' type 'CastlingRights' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m|[0;0m |- [1;39mnote: [1;39madd '@MainActor' to make static property 'kingside' part of global actor 'MainActor'[0;0m
[0;36m|[0;0m `- [1;39mnote: [1;39mdisable concurrency-safety checks if accesses are protected by an external synchronization mechanism[0;0m
[0;36m186 |[0;0m
[0;36m187 |[0;0m /// Queenside castling rights.
/host/spi-builder-workspace/Sources/SwiftChessCore/CastlingRights.swift:188:21: [1;33mwarning: [1;39mstatic property 'queenside' is not concurrency-safe because non-'Sendable' type 'CastlingRights' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m22 |[0;0m ///
[0;36m23 |[0;0m /// Defines whether a `Color` has the right to castle for a `Board.Side`.
[0;36m24 |[0;0m public struct CastlingRights: CustomStringConvertible {
[0;36m|[0;0m `- [1;39mnote: [1;39mconsider making struct 'CastlingRights' conform to the 'Sendable' protocol[0;0m
[0;36m25 |[0;0m
[0;36m26 |[0;0m /// A castling right.
[0;36m:[0;0m
[0;36m186 |[0;0m
[0;36m187 |[0;0m /// Queenside castling rights.
[0;36m188 |[0;0m public static let queenside = CastlingRights(Right.queenside)
[0;36m|[0;0m |- [1;33mwarning: [1;39mstatic property 'queenside' is not concurrency-safe because non-'Sendable' type 'CastlingRights' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m|[0;0m |- [1;39mnote: [1;39madd '@MainActor' to make static property 'queenside' part of global actor 'MainActor'[0;0m
[0;36m|[0;0m `- [1;39mnote: [1;39mdisable concurrency-safety checks if accesses are protected by an external synchronization mechanism[0;0m
[0;36m189 |[0;0m
[0;36m190 |[0;0m /// The rights.
/host/spi-builder-workspace/Sources/SwiftChessCore/Color.swift:31:23: [1;33mwarning: [1;39mstatic property '_white' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m20 |[0;0m
[0;36m21 |[0;0m /// A chess color.
[0;36m22 |[0;0m public enum Color: String, CustomStringConvertible {
[0;36m|[0;0m `- [1;39mnote: [1;39mconsider making enum 'Color' conform to the 'Sendable' protocol[0;0m
[0;36m23 |[0;0m
[0;36m24 |[0;0m /// White chess color.
[0;36m:[0;0m
[0;36m29 |[0;0m
[0;36m30 |[0;0m /// White color regardless of Swift version.
[0;36m31 |[0;0m internal static let _white = Color.white
[0;36m|[0;0m |- [1;33mwarning: [1;39mstatic property '_white' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m|[0;0m |- [1;39mnote: [1;39madd '@MainActor' to make static property '_white' part of global actor 'MainActor'[0;0m
[0;36m|[0;0m `- [1;39mnote: [1;39mdisable concurrency-safety checks if accesses are protected by an external synchronization mechanism[0;0m
[0;36m32 |[0;0m
[0;36m33 |[0;0m /// Black color regardless of Swift version.
/host/spi-builder-workspace/Sources/SwiftChessCore/Color.swift:34:23: [1;33mwarning: [1;39mstatic property '_black' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m20 |[0;0m
[0;36m21 |[0;0m /// A chess color.
[0;36m22 |[0;0m public enum Color: String, CustomStringConvertible {
[0;36m|[0;0m `- [1;39mnote: [1;39mconsider making enum 'Color' conform to the 'Sendable' protocol[0;0m
[0;36m23 |[0;0m
[0;36m24 |[0;0m /// White chess color.
[0;36m:[0;0m
[0;36m32 |[0;0m
[0;36m33 |[0;0m /// Black color regardless of Swift version.
[0;36m34 |[0;0m internal static let _black = Color.black
[0;36m|[0;0m |- [1;33mwarning: [1;39mstatic property '_black' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m|[0;0m |- [1;39mnote: [1;39madd '@MainActor' to make static property '_black' part of global actor 'MainActor'[0;0m
[0;36m|[0;0m `- [1;39mnote: [1;39mdisable concurrency-safety checks if accesses are protected by an external synchronization mechanism[0;0m
[0;36m35 |[0;0m
[0;36m36 |[0;0m /// An array of all colors.
/host/spi-builder-workspace/Sources/SwiftChessCore/Color.swift:37:21: [1;33mwarning: [1;39mstatic property 'all' is not concurrency-safe because non-'Sendable' type '[Color]' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m20 |[0;0m
[0;36m21 |[0;0m /// A chess color.
[0;36m22 |[0;0m public enum Color: String, CustomStringConvertible {
[0;36m|[0;0m `- [1;39mnote: [1;39mconsider making enum 'Color' conform to the 'Sendable' protocol[0;0m
[0;36m23 |[0;0m
[0;36m24 |[0;0m /// White chess color.
[0;36m:[0;0m
[0;36m35 |[0;0m
[0;36m36 |[0;0m /// An array of all colors.
[0;36m37 |[0;0m public static let all: [Color] = [.white, .black]
[0;36m|[0;0m |- [1;33mwarning: [1;39mstatic property 'all' is not concurrency-safe because non-'Sendable' type '[Color]' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m|[0;0m |- [1;39mnote: [1;39madd '@MainActor' to make static property 'all' part of global actor 'MainActor'[0;0m
[0;36m|[0;0m `- [1;39mnote: [1;39mdisable concurrency-safety checks if accesses are protected by an external synchronization mechanism[0;0m
[0;36m38 |[0;0m
[0;36m39 |[0;0m /// Whether the color is white or not.
/host/spi-builder-workspace/Sources/SwiftChessCore/File.swift:62:23: [1;33mwarning: [1;39mstatic property '_a' is not concurrency-safe because non-'Sendable' type 'File' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m22 |[0;0m ///
[0;36m23 |[0;0m /// Files refer to the eight columns of a chess board, beginning with A and ending with H from left to right.
[0;36m24 |[0;0m public enum File: Int, Comparable, CustomStringConvertible {
[0;36m|[0;0m `- [1;39mnote: [1;39mconsider making enum 'File' conform to the 'Sendable' protocol[0;0m
[0;36m25 |[0;0m
[0;36m26 |[0;0m /// A direction in file.
[0;36m:[0;0m
[0;36m60 |[0;0m
[0;36m61 |[0;0m /// A regardless of Swift version.
[0;36m62 |[0;0m internal static let _a = File.a
[0;36m|[0;0m |- [1;33mwarning: [1;39mstatic property '_a' is not concurrency-safe because non-'Sendable' type 'File' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m|[0;0m |- [1;39mnote: [1;39madd '@MainActor' to make static property '_a' part of global actor 'MainActor'[0;0m
[0;36m|[0;0m `- [1;39mnote: [1;39mdisable concurrency-safety checks if accesses are protected by an external synchronization mechanism[0;0m
[0;36m63 |[0;0m
[0;36m64 |[0;0m /// B regardless of Swift version.
/host/spi-builder-workspace/Sources/SwiftChessCore/File.swift:65:23: [1;33mwarning: [1;39mstatic property '_b' is not concurrency-safe because non-'Sendable' type 'File' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m22 |[0;0m ///
[0;36m23 |[0;0m /// Files refer to the eight columns of a chess board, beginning with A and ending with H from left to right.
[0;36m24 |[0;0m public enum File: Int, Comparable, CustomStringConvertible {
[0;36m|[0;0m `- [1;39mnote: [1;39mconsider making enum 'File' conform to the 'Sendable' protocol[0;0m
[0;36m25 |[0;0m
[0;36m26 |[0;0m /// A direction in file.
[0;36m:[0;0m
[0;36m63 |[0;0m
[0;36m64 |[0;0m /// B regardless of Swift version.
[0;36m65 |[0;0m internal static let _b = File.b
[0;36m|[0;0m |- [1;33mwarning: [1;39mstatic property '_b' is not concurrency-safe because non-'Sendable' type 'File' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m|[0;0m |- [1;39mnote: [1;39madd '@MainActor' to make static property '_b' part of global actor 'MainActor'[0;0m
[0;36m|[0;0m `- [1;39mnote: [1;39mdisable concurrency-safety checks if accesses are protected by an external synchronization mechanism[0;0m
[0;36m66 |[0;0m
[0;36m67 |[0;0m /// C regardless of Swift version.
/host/spi-builder-workspace/Sources/SwiftChessCore/File.swift:68:23: [1;33mwarning: [1;39mstatic property '_c' is not concurrency-safe because non-'Sendable' type 'File' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m22 |[0;0m ///
[0;36m23 |[0;0m /// Files refer to the eight columns of a chess board, beginning with A and ending with H from left to right.
[0;36m24 |[0;0m public enum File: Int, Comparable, CustomStringConvertible {
[0;36m|[0;0m `- [1;39mnote: [1;39mconsider making enum 'File' conform to the 'Sendable' protocol[0;0m
[0;36m25 |[0;0m
[0;36m26 |[0;0m /// A direction in file.
[0;36m:[0;0m
[0;36m66 |[0;0m
[0;36m67 |[0;0m /// C regardless of Swift version.
[0;36m68 |[0;0m internal static let _c = File.c
[0;36m|[0;0m |- [1;33mwarning: [1;39mstatic property '_c' is not concurrency-safe because non-'Sendable' type 'File' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m|[0;0m |- [1;39mnote: [1;39madd '@MainActor' to make static property '_c' part of global actor 'MainActor'[0;0m
[0;36m|[0;0m `- [1;39mnote: [1;39mdisable concurrency-safety checks if accesses are protected by an external synchronization mechanism[0;0m
[0;36m69 |[0;0m
[0;36m70 |[0;0m /// D regardless of Swift version.
/host/spi-builder-workspace/Sources/SwiftChessCore/File.swift:71:23: [1;33mwarning: [1;39mstatic property '_d' is not concurrency-safe because non-'Sendable' type 'File' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m22 |[0;0m ///
[0;36m23 |[0;0m /// Files refer to the eight columns of a chess board, beginning with A and ending with H from left to right.
[0;36m24 |[0;0m public enum File: Int, Comparable, CustomStringConvertible {
[0;36m|[0;0m `- [1;39mnote: [1;39mconsider making enum 'File' conform to the 'Sendable' protocol[0;0m
[0;36m25 |[0;0m
[0;36m26 |[0;0m /// A direction in file.
[0;36m:[0;0m
[0;36m69 |[0;0m
[0;36m70 |[0;0m /// D regardless of Swift version.
[0;36m71 |[0;0m internal static let _d = File.d
[0;36m|[0;0m |- [1;33mwarning: [1;39mstatic property '_d' is not concurrency-safe because non-'Sendable' type 'File' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m|[0;0m |- [1;39mnote: [1;39madd '@MainActor' to make static property '_d' part of global actor 'MainActor'[0;0m
[0;36m|[0;0m `- [1;39mnote: [1;39mdisable concurrency-safety checks if accesses are protected by an external synchronization mechanism[0;0m
[0;36m72 |[0;0m
[0;36m73 |[0;0m /// E regardless of Swift version.
/host/spi-builder-workspace/Sources/SwiftChessCore/File.swift:74:23: [1;33mwarning: [1;39mstatic property '_e' is not concurrency-safe because non-'Sendable' type 'File' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m22 |[0;0m ///
[0;36m23 |[0;0m /// Files refer to the eight columns of a chess board, beginning with A and ending with H from left to right.
[0;36m24 |[0;0m public enum File: Int, Comparable, CustomStringConvertible {
[0;36m|[0;0m `- [1;39mnote: [1;39mconsider making enum 'File' conform to the 'Sendable' protocol[0;0m
[0;36m25 |[0;0m
[0;36m26 |[0;0m /// A direction in file.
[0;36m:[0;0m
[0;36m72 |[0;0m
[0;36m73 |[0;0m /// E regardless of Swift version.
[0;36m74 |[0;0m internal static let _e = File.e
[0;36m|[0;0m |- [1;33mwarning: [1;39mstatic property '_e' is not concurrency-safe because non-'Sendable' type 'File' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m|[0;0m |- [1;39mnote: [1;39madd '@MainActor' to make static property '_e' part of global actor 'MainActor'[0;0m
[0;36m|[0;0m `- [1;39mnote: [1;39mdisable concurrency-safety checks if accesses are protected by an external synchronization mechanism[0;0m
[0;36m75 |[0;0m
[0;36m76 |[0;0m /// F regardless of Swift version.
/host/spi-builder-workspace/Sources/SwiftChessCore/File.swift:77:23: [1;33mwarning: [1;39mstatic property '_f' is not concurrency-safe because non-'Sendable' type 'File' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m22 |[0;0m ///
[0;36m23 |[0;0m /// Files refer to the eight columns of a chess board, beginning with A and ending with H from left to right.
[0;36m24 |[0;0m public enum File: Int, Comparable, CustomStringConvertible {
[0;36m|[0;0m `- [1;39mnote: [1;39mconsider making enum 'File' conform to the 'Sendable' protocol[0;0m
[0;36m25 |[0;0m
[0;36m26 |[0;0m /// A direction in file.
[0;36m:[0;0m
[0;36m75 |[0;0m
[0;36m76 |[0;0m /// F regardless of Swift version.
[0;36m77 |[0;0m internal static let _f = File.f
[0;36m|[0;0m |- [1;33mwarning: [1;39mstatic property '_f' is not concurrency-safe because non-'Sendable' type 'File' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m|[0;0m |- [1;39mnote: [1;39madd '@MainActor' to make static property '_f' part of global actor 'MainActor'[0;0m
[0;36m|[0;0m `- [1;39mnote: [1;39mdisable concurrency-safety checks if accesses are protected by an external synchronization mechanism[0;0m
[0;36m78 |[0;0m
[0;36m79 |[0;0m /// G regardless of Swift version.
/host/spi-builder-workspace/Sources/SwiftChessCore/File.swift:80:23: [1;33mwarning: [1;39mstatic property '_g' is not concurrency-safe because non-'Sendable' type 'File' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m22 |[0;0m ///
[0;36m23 |[0;0m /// Files refer to the eight columns of a chess board, beginning with A and ending with H from left to right.
[0;36m24 |[0;0m public enum File: Int, Comparable, CustomStringConvertible {
[0;36m|[0;0m `- [1;39mnote: [1;39mconsider making enum 'File' conform to the 'Sendable' protocol[0;0m
[0;36m25 |[0;0m
[0;36m26 |[0;0m /// A direction in file.
[0;36m:[0;0m
[0;36m78 |[0;0m
[0;36m79 |[0;0m /// G regardless of Swift version.
[0;36m80 |[0;0m internal static let _g = File.g
[0;36m|[0;0m |- [1;33mwarning: [1;39mstatic property '_g' is not concurrency-safe because non-'Sendable' type 'File' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m|[0;0m |- [1;39mnote: [1;39madd '@MainActor' to make static property '_g' part of global actor 'MainActor'[0;0m
[0;36m|[0;0m `- [1;39mnote: [1;39mdisable concurrency-safety checks if accesses are protected by an external synchronization mechanism[0;0m
[0;36m81 |[0;0m
[0;36m82 |[0;0m /// H regardless of Swift version.
/host/spi-builder-workspace/Sources/SwiftChessCore/File.swift:83:23: [1;33mwarning: [1;39mstatic property '_h' is not concurrency-safe because non-'Sendable' type 'File' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m22 |[0;0m ///
[0;36m23 |[0;0m /// Files refer to the eight columns of a chess board, beginning with A and ending with H from left to right.
[0;36m24 |[0;0m public enum File: Int, Comparable, CustomStringConvertible {
[0;36m|[0;0m `- [1;39mnote: [1;39mconsider making enum 'File' conform to the 'Sendable' protocol[0;0m
[0;36m25 |[0;0m
[0;36m26 |[0;0m /// A direction in file.
[0;36m:[0;0m
[0;36m81 |[0;0m
[0;36m82 |[0;0m /// H regardless of Swift version.
[0;36m83 |[0;0m internal static let _h = File.h
[0;36m|[0;0m |- [1;33mwarning: [1;39mstatic property '_h' is not concurrency-safe because non-'Sendable' type 'File' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m|[0;0m |- [1;39mnote: [1;39madd '@MainActor' to make static property '_h' part of global actor 'MainActor'[0;0m
[0;36m|[0;0m `- [1;39mnote: [1;39mdisable concurrency-safety checks if accesses are protected by an external synchronization mechanism[0;0m
[0;36m84 |[0;0m
[0;36m85 |[0;0m }
/host/spi-builder-workspace/Sources/SwiftChessCore/File.swift:90:21: [1;33mwarning: [1;39mstatic property 'all' is not concurrency-safe because non-'Sendable' type '[File]' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m22 |[0;0m ///
[0;36m23 |[0;0m /// Files refer to the eight columns of a chess board, beginning with A and ending with H from left to right.
[0;36m24 |[0;0m public enum File: Int, Comparable, CustomStringConvertible {
[0;36m|[0;0m `- [1;39mnote: [1;39mconsider making enum 'File' conform to the 'Sendable' protocol[0;0m
[0;36m25 |[0;0m
[0;36m26 |[0;0m /// A direction in file.
[0;36m:[0;0m
[0;36m88 |[0;0m
[0;36m89 |[0;0m /// An array of all files.
[0;36m90 |[0;0m public static let all: [File] = [.a, .b, .c, .d, .e, .f, .g, .h]
[0;36m|[0;0m |- [1;33mwarning: [1;39mstatic property 'all' is not concurrency-safe because non-'Sendable' type '[File]' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m|[0;0m |- [1;39mnote: [1;39madd '@MainActor' to make static property 'all' part of global actor 'MainActor'[0;0m
[0;36m|[0;0m `- [1;39mnote: [1;39mdisable concurrency-safety checks if accesses are protected by an external synchronization mechanism[0;0m
[0;36m91 |[0;0m
[0;36m92 |[0;0m /// The column index of `self`.
/host/spi-builder-workspace/Sources/SwiftChessCore/Game.swift:35:25: [1;33mwarning: [1;39mstatic property '_draw' is not concurrency-safe because non-'Sendable' type 'Game.Outcome' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m24 |[0;0m
[0;36m25 |[0;0m /// A chess game outcome.
[0;36m26 |[0;0m public enum Outcome: Hashable, CustomStringConvertible {
[0;36m|[0;0m `- [1;39mnote: [1;39mconsider making enum 'Outcome' conform to the 'Sendable' protocol[0;0m
[0;36m27 |[0;0m
[0;36m28 |[0;0m /// A win for a `Color`.
[0;36m:[0;0m
[0;36m33 |[0;0m
[0;36m34 |[0;0m /// Draw.
[0;36m35 |[0;0m internal static let _draw = Outcome.draw
[0;36m|[0;0m |- [1;33mwarning: [1;39mstatic property '_draw' is not concurrency-safe because non-'Sendable' type 'Game.Outcome' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m|[0;0m |- [1;39mnote: [1;39madd '@MainActor' to make static property '_draw' part of global actor 'MainActor'[0;0m
[0;36m|[0;0m `- [1;39mnote: [1;39mdisable concurrency-safety checks if accesses are protected by an external synchronization mechanism[0;0m
[0;36m36 |[0;0m
[0;36m37 |[0;0m /// Win.
/host/spi-builder-workspace/Sources/SwiftChessCore/Game.swift:240:10: [1;33mwarning: [1;39massociated value 'wrongKingCount' of 'Sendable'-conforming enum 'PositionError' has non-Sendable type 'Color'[0;0m
[0;36m238 |[0;0m
[0;36m239 |[0;0m /// Found number other than 1 for king count.
[0;36m240 |[0;0m case wrongKingCount(Color)
[0;36m|[0;0m `- [1;33mwarning: [1;39massociated value 'wrongKingCount' of 'Sendable'-conforming enum 'PositionError' has non-Sendable type 'Color'[0;0m
[0;36m241 |[0;0m
[0;36m242 |[0;0m /// King missing for castling right.
/host/spi-builder-workspace/Sources/SwiftChessCore/Color.swift:22:13: [1;39mnote: [1;39mconsider making enum 'Color' conform to the 'Sendable' protocol[0;0m
[0;36m20 |[0;0m
[0;36m21 |[0;0m /// A chess color.
[0;36m22 |[0;0m public enum Color: String, CustomStringConvertible {
[0;36m|[0;0m `- [1;39mnote: [1;39mconsider making enum 'Color' conform to the 'Sendable' protocol[0;0m
[0;36m23 |[0;0m
[0;36m24 |[0;0m /// White chess color.
/host/spi-builder-workspace/Sources/SwiftChessCore/Game.swift:243:10: [1;33mwarning: [1;39massociated value 'missingKing' of 'Sendable'-conforming enum 'PositionError' has non-Sendable type 'CastlingRights.Right'[0;0m
[0;36m241 |[0;0m
[0;36m242 |[0;0m /// King missing for castling right.
[0;36m243 |[0;0m case missingKing(CastlingRights.Right)
[0;36m|[0;0m `- [1;33mwarning: [1;39massociated value 'missingKing' of 'Sendable'-conforming enum 'PositionError' has non-Sendable type 'CastlingRights.Right'[0;0m
[0;36m244 |[0;0m
[0;36m245 |[0;0m /// Rook missing for castling right.
/host/spi-builder-workspace/Sources/SwiftChessCore/CastlingRights.swift:27:15: [1;39mnote: [1;39mconsider making enum 'Right' conform to the 'Sendable' protocol[0;0m
[0;36m25 |[0;0m
[0;36m26 |[0;0m /// A castling right.
[0;36m27 |[0;0m public enum Right: String, CustomStringConvertible {
[0;36m|[0;0m `- [1;39mnote: [1;39mconsider making enum 'Right' conform to the 'Sendable' protocol[0;0m
[0;36m28 |[0;0m
[0;36m29 |[0;0m /// White can castle kingside.
/host/spi-builder-workspace/Sources/SwiftChessCore/Game.swift:246:10: [1;33mwarning: [1;39massociated value 'missingRook' of 'Sendable'-conforming enum 'PositionError' has non-Sendable type 'CastlingRights.Right'[0;0m
[0;36m244 |[0;0m
[0;36m245 |[0;0m /// Rook missing for castling right.
[0;36m246 |[0;0m case missingRook(CastlingRights.Right)
[0;36m|[0;0m `- [1;33mwarning: [1;39massociated value 'missingRook' of 'Sendable'-conforming enum 'PositionError' has non-Sendable type 'CastlingRights.Right'[0;0m
[0;36m247 |[0;0m
[0;36m248 |[0;0m /// Wrong rank for en passant target.
/host/spi-builder-workspace/Sources/SwiftChessCore/CastlingRights.swift:27:15: [1;39mnote: [1;39mconsider making enum 'Right' conform to the 'Sendable' protocol[0;0m
[0;36m25 |[0;0m
[0;36m26 |[0;0m /// A castling right.
[0;36m27 |[0;0m public enum Right: String, CustomStringConvertible {
[0;36m|[0;0m `- [1;39mnote: [1;39mconsider making enum 'Right' conform to the 'Sendable' protocol[0;0m
[0;36m28 |[0;0m
[0;36m29 |[0;0m /// White can castle kingside.
/host/spi-builder-workspace/Sources/SwiftChessCore/Game.swift:249:10: [1;33mwarning: [1;39massociated value 'wrongEnPassantTargetRank' of 'Sendable'-conforming enum 'PositionError' has non-Sendable type 'Rank'[0;0m
[0;36m247 |[0;0m
[0;36m248 |[0;0m /// Wrong rank for en passant target.
[0;36m249 |[0;0m case wrongEnPassantTargetRank(Rank)
[0;36m|[0;0m `- [1;33mwarning: [1;39massociated value 'wrongEnPassantTargetRank' of 'Sendable'-conforming enum 'PositionError' has non-Sendable type 'Rank'[0;0m
[0;36m250 |[0;0m
[0;36m251 |[0;0m /// Non empty en passant target square.
/host/spi-builder-workspace/Sources/SwiftChessCore/Rank.swift:24:13: [1;39mnote: [1;39mconsider making enum 'Rank' conform to the 'Sendable' protocol[0;0m
[0;36m22 |[0;0m ///
[0;36m23 |[0;0m /// `Rank`s refer to the eight rows of a chess board, beginning with 1 at the bottom and ending with 8 at the top.
[0;36m24 |[0;0m public enum Rank: Int, Comparable, CustomStringConvertible {
[0;36m|[0;0m `- [1;39mnote: [1;39mconsider making enum 'Rank' conform to the 'Sendable' protocol[0;0m
[0;36m25 |[0;0m
[0;36m26 |[0;0m /// A direction in rank.
/host/spi-builder-workspace/Sources/SwiftChessCore/Game.swift:252:10: [1;33mwarning: [1;39massociated value 'nonEmptyEnPassantTarget' of 'Sendable'-conforming enum 'PositionError' contains non-Sendable type 'Square'[0;0m
[0;36m250 |[0;0m
[0;36m251 |[0;0m /// Non empty en passant target square.
[0;36m252 |[0;0m case nonEmptyEnPassantTarget(Square, Piece)
[0;36m|[0;0m `- [1;33mwarning: [1;39massociated value 'nonEmptyEnPassantTarget' of 'Sendable'-conforming enum 'PositionError' contains non-Sendable type 'Square'[0;0m
[0;36m253 |[0;0m
[0;36m254 |[0;0m /// Pawn missing for previous en passant.
/host/spi-builder-workspace/Sources/SwiftChessCore/Square.swift:27:13: [1;39mnote: [1;39mconsider making enum 'Square' conform to the 'Sendable' protocol[0;0m
[0;36m25 |[0;0m ///
[0;36m26 |[0;0m /// A `Square` can be one of sixty-four possible values, ranging from `A1` to `H8`.
[0;36m27 |[0;0m public enum Square: Int, CustomStringConvertible {
[0;36m|[0;0m `- [1;39mnote: [1;39mconsider making enum 'Square' conform to the 'Sendable' protocol[0;0m
[0;36m28 |[0;0m
[0;36m29 |[0;0m /// A1 square.
/host/spi-builder-workspace/Sources/SwiftChessCore/Game.swift:252:10: [1;33mwarning: [1;39massociated value 'nonEmptyEnPassantTarget' of 'Sendable'-conforming enum 'PositionError' contains non-Sendable type 'Piece'[0;0m
[0;36m250 |[0;0m
[0;36m251 |[0;0m /// Non empty en passant target square.
[0;36m252 |[0;0m case nonEmptyEnPassantTarget(Square, Piece)
[0;36m|[0;0m `- [1;33mwarning: [1;39massociated value 'nonEmptyEnPassantTarget' of 'Sendable'-conforming enum 'PositionError' contains non-Sendable type 'Piece'[0;0m
[0;36m253 |[0;0m
[0;36m254 |[0;0m /// Pawn missing for previous en passant.
/host/spi-builder-workspace/Sources/SwiftChessCore/Piece.swift:22:15: [1;39mnote: [1;39mconsider making struct 'Piece' conform to the 'Sendable' protocol[0;0m
[0;36m20 |[0;0m
[0;36m21 |[0;0m /// A chess piece.
[0;36m22 |[0;0m public struct Piece: Hashable, CustomStringConvertible {
[0;36m|[0;0m `- [1;39mnote: [1;39mconsider making struct 'Piece' conform to the 'Sendable' protocol[0;0m
[0;36m23 |[0;0m
[0;36m24 |[0;0m /// A piece kind.
/host/spi-builder-workspace/Sources/SwiftChessCore/Game.swift:255:10: [1;33mwarning: [1;39massociated value 'missingEnPassantPawn' of 'Sendable'-conforming enum 'PositionError' has non-Sendable type 'Square'[0;0m
[0;36m253 |[0;0m
[0;36m254 |[0;0m /// Pawn missing for previous en passant.
[0;36m255 |[0;0m case missingEnPassantPawn(Square)
[0;36m|[0;0m `- [1;33mwarning: [1;39massociated value 'missingEnPassantPawn' of 'Sendable'-conforming enum 'PositionError' has non-Sendable type 'Square'[0;0m
[0;36m256 |[0;0m
[0;36m257 |[0;0m /// Piece found at start of en passant move.
/host/spi-builder-workspace/Sources/SwiftChessCore/Square.swift:27:13: [1;39mnote: [1;39mconsider making enum 'Square' conform to the 'Sendable' protocol[0;0m
[0;36m25 |[0;0m ///
[0;36m26 |[0;0m /// A `Square` can be one of sixty-four possible values, ranging from `A1` to `H8`.
[0;36m27 |[0;0m public enum Square: Int, CustomStringConvertible {
[0;36m|[0;0m `- [1;39mnote: [1;39mconsider making enum 'Square' conform to the 'Sendable' protocol[0;0m
[0;36m28 |[0;0m
[0;36m29 |[0;0m /// A1 square.
/host/spi-builder-workspace/Sources/SwiftChessCore/Game.swift:258:10: [1;33mwarning: [1;39massociated value 'nonEmptyEnPassantSquare' of 'Sendable'-conforming enum 'PositionError' contains non-Sendable type 'Square'[0;0m
[0;36m256 |[0;0m
[0;36m257 |[0;0m /// Piece found at start of en passant move.
[0;36m258 |[0;0m case nonEmptyEnPassantSquare(Square, Piece)
[0;36m|[0;0m `- [1;33mwarning: [1;39massociated value 'nonEmptyEnPassantSquare' of 'Sendable'-conforming enum 'PositionError' contains non-Sendable type 'Square'[0;0m
[0;36m259 |[0;0m
[0;36m260 |[0;0m }
/host/spi-builder-workspace/Sources/SwiftChessCore/Square.swift:27:13: [1;39mnote: [1;39mconsider making enum 'Square' conform to the 'Sendable' protocol[0;0m
[0;36m25 |[0;0m ///
[0;36m26 |[0;0m /// A `Square` can be one of sixty-four possible values, ranging from `A1` to `H8`.
[0;36m27 |[0;0m public enum Square: Int, CustomStringConvertible {
[0;36m|[0;0m `- [1;39mnote: [1;39mconsider making enum 'Square' conform to the 'Sendable' protocol[0;0m
[0;36m28 |[0;0m
[0;36m29 |[0;0m /// A1 square.
/host/spi-builder-workspace/Sources/SwiftChessCore/Game.swift:258:10: [1;33mwarning: [1;39massociated value 'nonEmptyEnPassantSquare' of 'Sendable'-conforming enum 'PositionError' contains non-Sendable type 'Piece'[0;0m
[0;36m256 |[0;0m
[0;36m257 |[0;0m /// Piece found at start of en passant move.
[0;36m258 |[0;0m case nonEmptyEnPassantSquare(Square, Piece)
[0;36m|[0;0m `- [1;33mwarning: [1;39massociated value 'nonEmptyEnPassantSquare' of 'Sendable'-conforming enum 'PositionError' contains non-Sendable type 'Piece'[0;0m
[0;36m259 |[0;0m
[0;36m260 |[0;0m }
/host/spi-builder-workspace/Sources/SwiftChessCore/Piece.swift:22:15: [1;39mnote: [1;39mconsider making struct 'Piece' conform to the 'Sendable' protocol[0;0m
[0;36m20 |[0;0m
[0;36m21 |[0;0m /// A chess piece.
[0;36m22 |[0;0m public struct Piece: Hashable, CustomStringConvertible {
[0;36m|[0;0m `- [1;39mnote: [1;39mconsider making struct 'Piece' conform to the 'Sendable' protocol[0;0m
[0;36m23 |[0;0m
[0;36m24 |[0;0m /// A piece kind.
/host/spi-builder-workspace/Sources/SwiftChessCore/Game.swift:268:10: [1;33mwarning: [1;39massociated value 'missingPiece' of 'Sendable'-conforming enum 'ExecutionError' has non-Sendable type 'Square'[0;0m
[0;36m266 |[0;0m
[0;36m267 |[0;0m /// Missing piece at a square.
[0;36m268 |[0;0m case missingPiece(Square)
[0;36m|[0;0m `- [1;33mwarning: [1;39massociated value 'missingPiece' of 'Sendable'-conforming enum 'ExecutionError' has non-Sendable type 'Square'[0;0m
[0;36m269 |[0;0m
[0;36m270 |[0;0m /// Attempted illegal move.
/host/spi-builder-workspace/Sources/SwiftChessCore/Square.swift:27:13: [1;39mnote: [1;39mconsider making enum 'Square' conform to the 'Sendable' protocol[0;0m
[0;36m25 |[0;0m ///
[0;36m26 |[0;0m /// A `Square` can be one of sixty-four possible values, ranging from `A1` to `H8`.
[0;36m27 |[0;0m public enum Square: Int, CustomStringConvertible {
[0;36m|[0;0m `- [1;39mnote: [1;39mconsider making enum 'Square' conform to the 'Sendable' protocol[0;0m
[0;36m28 |[0;0m
[0;36m29 |[0;0m /// A1 square.
/host/spi-builder-workspace/Sources/SwiftChessCore/Game.swift:271:10: [1;33mwarning: [1;39massociated value 'illegalMove' of 'Sendable'-conforming enum 'ExecutionError' contains non-Sendable type 'Move'[0;0m
[0;36m269 |[0;0m
[0;36m270 |[0;0m /// Attempted illegal move.
[0;36m271 |[0;0m case illegalMove(Move, Color, Board)
[0;36m|[0;0m `- [1;33mwarning: [1;39massociated value 'illegalMove' of 'Sendable'-conforming enum 'ExecutionError' contains non-Sendable type 'Move'[0;0m
[0;36m272 |[0;0m
[0;36m273 |[0;0m /// Could not promote with a piece kind.
/host/spi-builder-workspace/Sources/SwiftChessCore/Move.swift:22:15: [1;39mnote: [1;39mconsider making struct 'Move' conform to the 'Sendable' protocol[0;0m
[0;36m20 |[0;0m
[0;36m21 |[0;0m /// A chess move from a start `Square` to an end `Square`.
[0;36m22 |[0;0m public struct Move: Hashable, CustomStringConvertible {
[0;36m|[0;0m `- [1;39mnote: [1;39mconsider making struct 'Move' conform to the 'Sendable' protocol[0;0m
[0;36m23 |[0;0m
[0;36m24 |[0;0m /// The move's start square.
/host/spi-builder-workspace/Sources/SwiftChessCore/Game.swift:271:10: [1;33mwarning: [1;39massociated value 'illegalMove' of 'Sendable'-conforming enum 'ExecutionError' contains non-Sendable type 'Color'[0;0m
[0;36m269 |[0;0m
[0;36m270 |[0;0m /// Attempted illegal move.
[0;36m271 |[0;0m case illegalMove(Move, Color, Board)
[0;36m|[0;0m `- [1;33mwarning: [1;39massociated value 'illegalMove' of 'Sendable'-conforming enum 'ExecutionError' contains non-Sendable type 'Color'[0;0m
[0;36m272 |[0;0m
[0;36m273 |[0;0m /// Could not promote with a piece kind.
/host/spi-builder-workspace/Sources/SwiftChessCore/Color.swift:22:13: [1;39mnote: [1;39mconsider making enum 'Color' conform to the 'Sendable' protocol[0;0m
[0;36m20 |[0;0m
[0;36m21 |[0;0m /// A chess color.
[0;36m22 |[0;0m public enum Color: String, CustomStringConvertible {
[0;36m|[0;0m `- [1;39mnote: [1;39mconsider making enum 'Color' conform to the 'Sendable' protocol[0;0m
[0;36m23 |[0;0m
[0;36m24 |[0;0m /// White chess color.
/host/spi-builder-workspace/Sources/SwiftChessCore/Game.swift:271:10: [1;33mwarning: [1;39massociated value 'illegalMove' of 'Sendable'-conforming enum 'ExecutionError' contains non-Sendable type 'Board'[0;0m
[0;36m269 |[0;0m
[0;36m270 |[0;0m /// Attempted illegal move.
[0;36m271 |[0;0m case illegalMove(Move, Color, Board)
[0;36m|[0;0m `- [1;33mwarning: [1;39massociated value 'illegalMove' of 'Sendable'-conforming enum 'ExecutionError' contains non-Sendable type 'Board'[0;0m
[0;36m272 |[0;0m
[0;36m273 |[0;0m /// Could not promote with a piece kind.
/host/spi-builder-workspace/Sources/SwiftChessCore/Board.swift:24:15: [1;39mnote: [1;39mconsider making struct 'Board' conform to the 'Sendable' protocol[0;0m
[0;36m22 |[0;0m ///
[0;36m23 |[0;0m /// Pieces map to separate instances of `Bitboard` which can be retrieved with `bitboard(for:)`.
[0;36m24 |[0;0m public struct Board: Hashable, CustomStringConvertible {
[0;36m|[0;0m `- [1;39mnote: [1;39mconsider making struct 'Board' conform to the 'Sendable' protocol[0;0m
[0;36m25 |[0;0m
[0;36m26 |[0;0m /// A chess board space.
/host/spi-builder-workspace/Sources/SwiftChessCore/Game.swift:274:10: [1;33mwarning: [1;39massociated value 'invalidPromotion' of 'Sendable'-conforming enum 'ExecutionError' has non-Sendable type 'Piece.Kind'[0;0m
[0;36m272 |[0;0m
[0;36m273 |[0;0m /// Could not promote with a piece kind.
[0;36m274 |[0;0m case invalidPromotion(Piece.Kind)
[0;36m|[0;0m `- [1;33mwarning: [1;39massociated value 'invalidPromotion' of 'Sendable'-conforming enum 'ExecutionError' has non-Sendable type 'Piece.Kind'[0;0m
[0;36m275 |[0;0m
[0;36m276 |[0;0m /// The error message.
/host/spi-builder-workspace/Sources/SwiftChessCore/Piece.swift:25:15: [1;39mnote: [1;39mconsider making enum 'Kind' conform to the 'Sendable' protocol[0;0m
[0;36m23 |[0;0m
[0;36m24 |[0;0m /// A piece kind.
[0;36m25 |[0;0m public enum Kind: Int {
[0;36m|[0;0m `- [1;39mnote: [1;39mconsider making enum 'Kind' conform to the 'Sendable' protocol[0;0m
[0;36m26 |[0;0m
[0;36m27 |[0;0m /// Pawn piece kind.
/host/spi-builder-workspace/Sources/SwiftChessCore/Piece.swift:46:25: [1;33mwarning: [1;39mstatic property '_pawn' is not concurrency-safe because non-'Sendable' type 'Piece.Kind' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m23 |[0;0m
[0;36m24 |[0;0m /// A piece kind.
[0;36m25 |[0;0m public enum Kind: Int {
[0;36m|[0;0m `- [1;39mnote: [1;39mconsider making enum 'Kind' conform to the 'Sendable' protocol[0;0m
[0;36m26 |[0;0m
[0;36m27 |[0;0m /// Pawn piece kind.
[0;36m:[0;0m
[0;36m44 |[0;0m
[0;36m45 |[0;0m /// Pawn
[0;36m46 |[0;0m internal static let _pawn = Kind.pawn
[0;36m|[0;0m |- [1;33mwarning: [1;39mstatic property '_pawn' is not concurrency-safe because non-'Sendable' type 'Piece.Kind' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m|[0;0m |- [1;39mnote: [1;39madd '@MainActor' to make static property '_pawn' part of global actor 'MainActor'[0;0m
[0;36m|[0;0m `- [1;39mnote: [1;39mdisable concurrency-safety checks if accesses are protected by an external synchronization mechanism[0;0m
[0;36m47 |[0;0m
[0;36m48 |[0;0m /// Knight
/host/spi-builder-workspace/Sources/SwiftChessCore/Piece.swift:49:25: [1;33mwarning: [1;39mstatic property '_knight' is not concurrency-safe because non-'Sendable' type 'Piece.Kind' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m23 |[0;0m
[0;36m24 |[0;0m /// A piece kind.
[0;36m25 |[0;0m public enum Kind: Int {
[0;36m|[0;0m `- [1;39mnote: [1;39mconsider making enum 'Kind' conform to the 'Sendable' protocol[0;0m
[0;36m26 |[0;0m
[0;36m27 |[0;0m /// Pawn piece kind.
[0;36m:[0;0m
[0;36m47 |[0;0m
[0;36m48 |[0;0m /// Knight
[0;36m49 |[0;0m internal static let _knight = Kind.knight
[0;36m|[0;0m |- [1;33mwarning: [1;39mstatic property '_knight' is not concurrency-safe because non-'Sendable' type 'Piece.Kind' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m|[0;0m |- [1;39mnote: [1;39madd '@MainActor' to make static property '_knight' part of global actor 'MainActor'[0;0m
[0;36m|[0;0m `- [1;39mnote: [1;39mdisable concurrency-safety checks if accesses are protected by an external synchronization mechanism[0;0m
[0;36m50 |[0;0m
[0;36m51 |[0;0m /// Bishop
/host/spi-builder-workspace/Sources/SwiftChessCore/Piece.swift:52:25: [1;33mwarning: [1;39mstatic property '_bishop' is not concurrency-safe because non-'Sendable' type 'Piece.Kind' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m23 |[0;0m
[0;36m24 |[0;0m /// A piece kind.
[0;36m25 |[0;0m public enum Kind: Int {
[0;36m|[0;0m `- [1;39mnote: [1;39mconsider making enum 'Kind' conform to the 'Sendable' protocol[0;0m
[0;36m26 |[0;0m
[0;36m27 |[0;0m /// Pawn piece kind.
[0;36m:[0;0m
[0;36m50 |[0;0m
[0;36m51 |[0;0m /// Bishop
[0;36m52 |[0;0m internal static let _bishop = Kind.bishop
[0;36m|[0;0m |- [1;33mwarning: [1;39mstatic property '_bishop' is not concurrency-safe because non-'Sendable' type 'Piece.Kind' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m|[0;0m |- [1;39mnote: [1;39madd '@MainActor' to make static property '_bishop' part of global actor 'MainActor'[0;0m
[0;36m|[0;0m `- [1;39mnote: [1;39mdisable concurrency-safety checks if accesses are protected by an external synchronization mechanism[0;0m
[0;36m53 |[0;0m
[0;36m54 |[0;0m /// Rook
/host/spi-builder-workspace/Sources/SwiftChessCore/Piece.swift:55:25: [1;33mwarning: [1;39mstatic property '_rook' is not concurrency-safe because non-'Sendable' type 'Piece.Kind' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m23 |[0;0m
[0;36m24 |[0;0m /// A piece kind.
[0;36m25 |[0;0m public enum Kind: Int {
[0;36m|[0;0m `- [1;39mnote: [1;39mconsider making enum 'Kind' conform to the 'Sendable' protocol[0;0m
[0;36m26 |[0;0m
[0;36m27 |[0;0m /// Pawn piece kind.
[0;36m:[0;0m
[0;36m53 |[0;0m
[0;36m54 |[0;0m /// Rook
[0;36m55 |[0;0m internal static let _rook = Kind.rook
[0;36m|[0;0m |- [1;33mwarning: [1;39mstatic property '_rook' is not concurrency-safe because non-'Sendable' type 'Piece.Kind' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m|[0;0m |- [1;39mnote: [1;39madd '@MainActor' to make static property '_rook' part of global actor 'MainActor'[0;0m
[0;36m|[0;0m `- [1;39mnote: [1;39mdisable concurrency-safety checks if accesses are protected by an external synchronization mechanism[0;0m
[0;36m56 |[0;0m
[0;36m57 |[0;0m /// Queen
/host/spi-builder-workspace/Sources/SwiftChessCore/Piece.swift:58:25: [1;33mwarning: [1;39mstatic property '_queen' is not concurrency-safe because non-'Sendable' type 'Piece.Kind' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m23 |[0;0m
[0;36m24 |[0;0m /// A piece kind.
[0;36m25 |[0;0m public enum Kind: Int {
[0;36m|[0;0m `- [1;39mnote: [1;39mconsider making enum 'Kind' conform to the 'Sendable' protocol[0;0m
[0;36m26 |[0;0m
[0;36m27 |[0;0m /// Pawn piece kind.
[0;36m:[0;0m
[0;36m56 |[0;0m
[0;36m57 |[0;0m /// Queen
[0;36m58 |[0;0m internal static let _queen = Kind.queen
[0;36m|[0;0m |- [1;33mwarning: [1;39mstatic property '_queen' is not concurrency-safe because non-'Sendable' type 'Piece.Kind' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m|[0;0m |- [1;39mnote: [1;39madd '@MainActor' to make static property '_queen' part of global actor 'MainActor'[0;0m
[0;36m|[0;0m `- [1;39mnote: [1;39mdisable concurrency-safety checks if accesses are protected by an external synchronization mechanism[0;0m
[0;36m59 |[0;0m
[0;36m60 |[0;0m /// King
/host/spi-builder-workspace/Sources/SwiftChessCore/Piece.swift:61:25: [1;33mwarning: [1;39mstatic property '_king' is not concurrency-safe because non-'Sendable' type 'Piece.Kind' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m23 |[0;0m
[0;36m24 |[0;0m /// A piece kind.
[0;36m25 |[0;0m public enum Kind: Int {
[0;36m|[0;0m `- [1;39mnote: [1;39mconsider making enum 'Kind' conform to the 'Sendable' protocol[0;0m
[0;36m26 |[0;0m
[0;36m27 |[0;0m /// Pawn piece kind.
[0;36m:[0;0m
[0;36m59 |[0;0m
[0;36m60 |[0;0m /// King
[0;36m61 |[0;0m internal static let _king = Kind.king
[0;36m|[0;0m |- [1;33mwarning: [1;39mstatic property '_king' is not concurrency-safe because non-'Sendable' type 'Piece.Kind' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m|[0;0m |- [1;39mnote: [1;39madd '@MainActor' to make static property '_king' part of global actor 'MainActor'[0;0m
[0;36m|[0;0m `- [1;39mnote: [1;39mdisable concurrency-safety checks if accesses are protected by an external synchronization mechanism[0;0m
[0;36m62 |[0;0m
[0;36m63 |[0;0m /// An array of all piece kinds.
/host/spi-builder-workspace/Sources/SwiftChessCore/Piece.swift:64:23: [1;33mwarning: [1;39mstatic property 'all' is not concurrency-safe because non-'Sendable' type '[Piece.Kind]' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m23 |[0;0m
[0;36m24 |[0;0m /// A piece kind.
[0;36m25 |[0;0m public enum Kind: Int {
[0;36m|[0;0m `- [1;39mnote: [1;39mconsider making enum 'Kind' conform to the 'Sendable' protocol[0;0m
[0;36m26 |[0;0m
[0;36m27 |[0;0m /// Pawn piece kind.
[0;36m:[0;0m
[0;36m62 |[0;0m
[0;36m63 |[0;0m /// An array of all piece kinds.
[0;36m64 |[0;0m public static let all: [Kind] = [.pawn, .knight, .bishop, .rook, .queen, .king]
[0;36m|[0;0m |- [1;33mwarning: [1;39mstatic property 'all' is not concurrency-safe because non-'Sendable' type '[Piece.Kind]' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m|[0;0m |- [1;39mnote: [1;39madd '@MainActor' to make static property 'all' part of global actor 'MainActor'[0;0m
[0;36m|[0;0m `- [1;39mnote: [1;39mdisable concurrency-safety checks if accesses are protected by an external synchronization mechanism[0;0m
[0;36m65 |[0;0m
[0;36m66 |[0;0m /// The piece kind's name.
/host/spi-builder-workspace/Sources/SwiftChessCore/Piece.swift:140:23: [1;33mwarning: [1;39mstatic property '_whiteNonQueens' is not concurrency-safe because non-'Sendable' type '[Piece]' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m20 |[0;0m
[0;36m21 |[0;0m /// A chess piece.
[0;36m22 |[0;0m public struct Piece: Hashable, CustomStringConvertible {
[0;36m|[0;0m `- [1;39mnote: [1;39mconsider making struct 'Piece' conform to the 'Sendable' protocol[0;0m
[0;36m23 |[0;0m
[0;36m24 |[0;0m /// A piece kind.
[0;36m:[0;0m
[0;36m138 |[0;0m }
[0;36m139 |[0;0m
[0;36m140 |[0;0m internal static let _whiteNonQueens: [Piece] = whitePieces.filter({ !$0.kind.isQueen })
[0;36m|[0;0m |- [1;33mwarning: [1;39mstatic property '_whiteNonQueens' is not concurrency-safe because non-'Sendable' type '[Piece]' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m|[0;0m |- [1;39mnote: [1;39madd '@MainActor' to make static property '_whiteNonQueens' part of global actor 'MainActor'[0;0m
[0;36m|[0;0m `- [1;39mnote: [1;39mdisable concurrency-safety checks if accesses are protected by an external synchronization mechanism[0;0m
[0;36m141 |[0;0m
[0;36m142 |[0;0m internal static let _blackNonQueens: [Piece] = blackPieces.filter({ !$0.kind.isQueen })
/host/spi-builder-workspace/Sources/SwiftChessCore/Piece.swift:142:23: [1;33mwarning: [1;39mstatic property '_blackNonQueens' is not concurrency-safe because non-'Sendable' type '[Piece]' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m20 |[0;0m
[0;36m21 |[0;0m /// A chess piece.
[0;36m22 |[0;0m public struct Piece: Hashable, CustomStringConvertible {
[0;36m|[0;0m `- [1;39mnote: [1;39mconsider making struct 'Piece' conform to the 'Sendable' protocol[0;0m
[0;36m23 |[0;0m
[0;36m24 |[0;0m /// A piece kind.
[0;36m:[0;0m
[0;36m140 |[0;0m internal static let _whiteNonQueens: [Piece] = whitePieces.filter({ !$0.kind.isQueen })
[0;36m141 |[0;0m
[0;36m142 |[0;0m internal static let _blackNonQueens: [Piece] = blackPieces.filter({ !$0.kind.isQueen })
[0;36m|[0;0m |- [1;33mwarning: [1;39mstatic property '_blackNonQueens' is not concurrency-safe because non-'Sendable' type '[Piece]' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m|[0;0m |- [1;39mnote: [1;39madd '@MainActor' to make static property '_blackNonQueens' part of global actor 'MainActor'[0;0m
[0;36m|[0;0m `- [1;39mnote: [1;39mdisable concurrency-safety checks if accesses are protected by an external synchronization mechanism[0;0m
[0;36m143 |[0;0m
[0;36m144 |[0;0m internal static func _nonQueens(for color: Color) -> [Piece] {
/host/spi-builder-workspace/Sources/SwiftChessCore/Piece.swift:149:21: [1;33mwarning: [1;39mstatic property 'all' is not concurrency-safe because non-'Sendable' type '[Piece]' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m20 |[0;0m
[0;36m21 |[0;0m /// A chess piece.
[0;36m22 |[0;0m public struct Piece: Hashable, CustomStringConvertible {
[0;36m|[0;0m `- [1;39mnote: [1;39mconsider making struct 'Piece' conform to the 'Sendable' protocol[0;0m
[0;36m23 |[0;0m
[0;36m24 |[0;0m /// A piece kind.
[0;36m:[0;0m
[0;36m147 |[0;0m
[0;36m148 |[0;0m /// An array of all pieces.
[0;36m149 |[0;0m public static let all: [Piece] = {
[0;36m|[0;0m |- [1;33mwarning: [1;39mstatic property 'all' is not concurrency-safe because non-'Sendable' type '[Piece]' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m|[0;0m |- [1;39mnote: [1;39madd '@MainActor' to make static property 'all' part of global actor 'MainActor'[0;0m
[0;36m|[0;0m `- [1;39mnote: [1;39mdisable concurrency-safety checks if accesses are protected by an external synchronization mechanism[0;0m
[0;36m150 |[0;0m return [.white, .black].reduce([]) { pieces, color in
[0;36m151 |[0;0m return pieces + Kind.all.map({ Piece(kind: $0, color: color) })
/host/spi-builder-workspace/Sources/SwiftChessCore/Piece.swift:156:21: [1;33mwarning: [1;39mstatic property 'whitePieces' is not concurrency-safe because non-'Sendable' type '[Piece]' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m20 |[0;0m
[0;36m21 |[0;0m /// A chess piece.
[0;36m22 |[0;0m public struct Piece: Hashable, CustomStringConvertible {
[0;36m|[0;0m `- [1;39mnote: [1;39mconsider making struct 'Piece' conform to the 'Sendable' protocol[0;0m
[0;36m23 |[0;0m
[0;36m24 |[0;0m /// A piece kind.
[0;36m:[0;0m
[0;36m154 |[0;0m
[0;36m155 |[0;0m /// An array of all white pieces.
[0;36m156 |[0;0m public static let whitePieces: [Piece] = all.filter({ $0.color.isWhite })
[0;36m|[0;0m |- [1;33mwarning: [1;39mstatic property 'whitePieces' is not concurrency-safe because non-'Sendable' type '[Piece]' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m|[0;0m |- [1;39mnote: [1;39madd '@MainActor' to make static property 'whitePieces' part of global actor 'MainActor'[0;0m
[0;36m|[0;0m `- [1;39mnote: [1;39mdisable concurrency-safety checks if accesses are protected by an external synchronization mechanism[0;0m
[0;36m157 |[0;0m
[0;36m158 |[0;0m /// An array of all black pieces.
/host/spi-builder-workspace/Sources/SwiftChessCore/Piece.swift:159:21: [1;33mwarning: [1;39mstatic property 'blackPieces' is not concurrency-safe because non-'Sendable' type '[Piece]' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m20 |[0;0m
[0;36m21 |[0;0m /// A chess piece.
[0;36m22 |[0;0m public struct Piece: Hashable, CustomStringConvertible {
[0;36m|[0;0m `- [1;39mnote: [1;39mconsider making struct 'Piece' conform to the 'Sendable' protocol[0;0m
[0;36m23 |[0;0m
[0;36m24 |[0;0m /// A piece kind.
[0;36m:[0;0m
[0;36m157 |[0;0m
[0;36m158 |[0;0m /// An array of all black pieces.
[0;36m159 |[0;0m public static let blackPieces: [Piece] = all.filter({ $0.color.isBlack })
[0;36m|[0;0m |- [1;33mwarning: [1;39mstatic property 'blackPieces' is not concurrency-safe because non-'Sendable' type '[Piece]' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m|[0;0m |- [1;39mnote: [1;39madd '@MainActor' to make static property 'blackPieces' part of global actor 'MainActor'[0;0m
[0;36m|[0;0m `- [1;39mnote: [1;39mdisable concurrency-safety checks if accesses are protected by an external synchronization mechanism[0;0m
[0;36m160 |[0;0m
[0;36m161 |[0;0m /// Returns an array of all pieces for `color`.
/host/spi-builder-workspace/Sources/SwiftChessCore/Rank.swift:66:21: [1;33mwarning: [1;39mstatic property 'all' is not concurrency-safe because non-'Sendable' type '[Rank]' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m22 |[0;0m ///
[0;36m23 |[0;0m /// `Rank`s refer to the eight rows of a chess board, beginning with 1 at the bottom and ending with 8 at the top.
[0;36m24 |[0;0m public enum Rank: Int, Comparable, CustomStringConvertible {
[0;36m|[0;0m `- [1;39mnote: [1;39mconsider making enum 'Rank' conform to the 'Sendable' protocol[0;0m
[0;36m25 |[0;0m
[0;36m26 |[0;0m /// A direction in rank.
[0;36m:[0;0m
[0;36m64 |[0;0m
[0;36m65 |[0;0m /// An array of all ranks.
[0;36m66 |[0;0m public static let all: [Rank] = [1, 2, 3, 4, 5, 6, 7, 8]
[0;36m|[0;0m |- [1;33mwarning: [1;39mstatic property 'all' is not concurrency-safe because non-'Sendable' type '[Rank]' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m|[0;0m |- [1;39mnote: [1;39madd '@MainActor' to make static property 'all' part of global actor 'MainActor'[0;0m
[0;36m|[0;0m `- [1;39mnote: [1;39mdisable concurrency-safety checks if accesses are protected by an external synchronization mechanism[0;0m
[0;36m67 |[0;0m
[0;36m68 |[0;0m /// The row index of `self`.
/host/spi-builder-workspace/Sources/SwiftChessCore/Square.swift:226:21: [1;33mwarning: [1;39mstatic property 'all' is not concurrency-safe because non-'Sendable' type '[Square]' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m25 |[0;0m ///
[0;36m26 |[0;0m /// A `Square` can be one of sixty-four possible values, ranging from `A1` to `H8`.
[0;36m27 |[0;0m public enum Square: Int, CustomStringConvertible {
[0;36m|[0;0m `- [1;39mnote: [1;39mconsider making enum 'Square' conform to the 'Sendable' protocol[0;0m
[0;36m28 |[0;0m
[0;36m29 |[0;0m /// A1 square.
[0;36m:[0;0m
[0;36m224 |[0;0m
[0;36m225 |[0;0m /// An array of all squares.
[0;36m226 |[0;0m public static let all: [Square] = (0..<64).compactMap(Square.init(rawValue:))
[0;36m|[0;0m |- [1;33mwarning: [1;39mstatic property 'all' is not concurrency-safe because non-'Sendable' type '[Square]' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m|[0;0m |- [1;39mnote: [1;39madd '@MainActor' to make static property 'all' part of global actor 'MainActor'[0;0m
[0;36m|[0;0m `- [1;39mnote: [1;39mdisable concurrency-safety checks if accesses are protected by an external synchronization mechanism[0;0m
[0;36m227 |[0;0m
[0;36m228 |[0;0m /// The file of `self`.
/host/spi-builder-workspace/Sources/SwiftChessCore/Tables.swift:31:14: [1;33mwarning: [1;39mlet '_whitePawnAttackTable' is not concurrency-safe because non-'Sendable' type '[Bitboard]' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m29 |[0;0m
[0;36m30 |[0;0m /// A lookup table of all white pawn attack bitboards.
[0;36m31 |[0;0m internal let _whitePawnAttackTable = Square.all.map { square in
[0;36m|[0;0m |- [1;33mwarning: [1;39mlet '_whitePawnAttackTable' is not concurrency-safe because non-'Sendable' type '[Bitboard]' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m|[0;0m |- [1;39mnote: [1;39madd '@MainActor' to make let '_whitePawnAttackTable' part of global actor 'MainActor'[0;0m
[0;36m|[0;0m `- [1;39mnote: [1;39mdisable concurrency-safety checks if accesses are protected by an external synchronization mechanism[0;0m
[0;36m32 |[0;0m return Bitboard(square: square)._pawnAttacks(for: ._white)
[0;36m33 |[0;0m }
/host/spi-builder-workspace/Sources/SwiftChessCore/Bitboard.swift:82:15: [1;39mnote: [1;39mconsider making struct 'Bitboard' conform to the 'Sendable' protocol[0;0m
[0;36m80 |[0;0m /// - see also: [Bitboard (Wikipedia)](https://en.wikipedia.org/wiki/Bitboard ),
[0;36m81 |[0;0m /// [Bitboards (Chess Programming Wiki)](https://chessprogramming.org/Bitboards)
[0;36m82 |[0;0m public struct Bitboard: RawRepresentable, Hashable, CustomStringConvertible {
[0;36m|[0;0m `- [1;39mnote: [1;39mconsider making struct 'Bitboard' conform to the 'Sendable' protocol[0;0m
[0;36m83 |[0;0m
[0;36m84 |[0;0m /// A bitboard shift direction.
/host/spi-builder-workspace/Sources/SwiftChessCore/Tables.swift:36:14: [1;33mwarning: [1;39mlet '_blackPawnAttackTable' is not concurrency-safe because non-'Sendable' type '[Bitboard]' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m34 |[0;0m
[0;36m35 |[0;0m /// A lookup table of all black pawn attack bitboards.
[0;36m36 |[0;0m internal let _blackPawnAttackTable = Square.all.map { square in
[0;36m|[0;0m |- [1;33mwarning: [1;39mlet '_blackPawnAttackTable' is not concurrency-safe because non-'Sendable' type '[Bitboard]' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m|[0;0m |- [1;39mnote: [1;39madd '@MainActor' to make let '_blackPawnAttackTable' part of global actor 'MainActor'[0;0m
[0;36m|[0;0m `- [1;39mnote: [1;39mdisable concurrency-safety checks if accesses are protected by an external synchronization mechanism[0;0m
[0;36m37 |[0;0m return Bitboard(square: square)._pawnAttacks(for: ._black)
[0;36m38 |[0;0m }
/host/spi-builder-workspace/Sources/SwiftChessCore/Bitboard.swift:82:15: [1;39mnote: [1;39mconsider making struct 'Bitboard' conform to the 'Sendable' protocol[0;0m
[0;36m80 |[0;0m /// - see also: [Bitboard (Wikipedia)](https://en.wikipedia.org/wiki/Bitboard ),
[0;36m81 |[0;0m /// [Bitboards (Chess Programming Wiki)](https://chessprogramming.org/Bitboards)
[0;36m82 |[0;0m public struct Bitboard: RawRepresentable, Hashable, CustomStringConvertible {
[0;36m|[0;0m `- [1;39mnote: [1;39mconsider making struct 'Bitboard' conform to the 'Sendable' protocol[0;0m
[0;36m83 |[0;0m
[0;36m84 |[0;0m /// A bitboard shift direction.
/host/spi-builder-workspace/Sources/SwiftChessCore/Tables.swift:41:14: [1;33mwarning: [1;39mlet '_kingAttackTable' is not concurrency-safe because non-'Sendable' type '[Bitboard]' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m39 |[0;0m
[0;36m40 |[0;0m /// A lookup table of all king attack bitboards.
[0;36m41 |[0;0m internal let _kingAttackTable = Square.all.map { square in
[0;36m|[0;0m |- [1;33mwarning: [1;39mlet '_kingAttackTable' is not concurrency-safe because non-'Sendable' type '[Bitboard]' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m|[0;0m |- [1;39mnote: [1;39madd '@MainActor' to make let '_kingAttackTable' part of global actor 'MainActor'[0;0m
[0;36m|[0;0m `- [1;39mnote: [1;39mdisable concurrency-safety checks if accesses are protected by an external synchronization mechanism[0;0m
[0;36m42 |[0;0m return Bitboard(square: square)._kingAttacks()
[0;36m43 |[0;0m }
/host/spi-builder-workspace/Sources/SwiftChessCore/Bitboard.swift:82:15: [1;39mnote: [1;39mconsider making struct 'Bitboard' conform to the 'Sendable' protocol[0;0m
[0;36m80 |[0;0m /// - see also: [Bitboard (Wikipedia)](https://en.wikipedia.org/wiki/Bitboard ),
[0;36m81 |[0;0m /// [Bitboards (Chess Programming Wiki)](https://chessprogramming.org/Bitboards)
[0;36m82 |[0;0m public struct Bitboard: RawRepresentable, Hashable, CustomStringConvertible {
[0;36m|[0;0m `- [1;39mnote: [1;39mconsider making struct 'Bitboard' conform to the 'Sendable' protocol[0;0m
[0;36m83 |[0;0m
[0;36m84 |[0;0m /// A bitboard shift direction.
/host/spi-builder-workspace/Sources/SwiftChessCore/Tables.swift:46:14: [1;33mwarning: [1;39mlet '_knightAttackTable' is not concurrency-safe because non-'Sendable' type '[Bitboard]' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m44 |[0;0m
[0;36m45 |[0;0m /// A lookup table of all knight attack bitboards.
[0;36m46 |[0;0m internal let _knightAttackTable = Square.all.map { square in
[0;36m|[0;0m |- [1;33mwarning: [1;39mlet '_knightAttackTable' is not concurrency-safe because non-'Sendable' type '[Bitboard]' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m|[0;0m |- [1;39mnote: [1;39madd '@MainActor' to make let '_knightAttackTable' part of global actor 'MainActor'[0;0m
[0;36m|[0;0m `- [1;39mnote: [1;39mdisable concurrency-safety checks if accesses are protected by an external synchronization mechanism[0;0m
[0;36m47 |[0;0m return Bitboard(square: square)._knightAttacks()
[0;36m48 |[0;0m }
/host/spi-builder-workspace/Sources/SwiftChessCore/Bitboard.swift:82:15: [1;39mnote: [1;39mconsider making struct 'Bitboard' conform to the 'Sendable' protocol[0;0m
[0;36m80 |[0;0m /// - see also: [Bitboard (Wikipedia)](https://en.wikipedia.org/wiki/Bitboard ),
[0;36m81 |[0;0m /// [Bitboards (Chess Programming Wiki)](https://chessprogramming.org/Bitboards)
[0;36m82 |[0;0m public struct Bitboard: RawRepresentable, Hashable, CustomStringConvertible {
[0;36m|[0;0m `- [1;39mnote: [1;39mconsider making struct 'Bitboard' conform to the 'Sendable' protocol[0;0m
[0;36m83 |[0;0m
[0;36m84 |[0;0m /// A bitboard shift direction.
/host/spi-builder-workspace/Sources/SwiftChessCore/Tables.swift:85:14: [1;33mwarning: [1;39mlet '_betweenTable' is not concurrency-safe because non-'Sendable' type '[Bitboard]' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m83 |[0;0m
[0;36m84 |[0;0m /// A lookup table of squares between two squares.
[0;36m85 |[0;0m internal let _betweenTable: [Bitboard] = {
[0;36m|[0;0m |- [1;33mwarning: [1;39mlet '_betweenTable' is not concurrency-safe because non-'Sendable' type '[Bitboard]' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m|[0;0m |- [1;39mnote: [1;39madd '@MainActor' to make let '_betweenTable' part of global actor 'MainActor'[0;0m
[0;36m|[0;0m `- [1;39mnote: [1;39mdisable concurrency-safety checks if accesses are protected by an external synchronization mechanism[0;0m
[0;36m86 |[0;0m var table = [Bitboard](repeating: 0, count: 2080)
[0;36m87 |[0;0m for start in Square.all {
/host/spi-builder-workspace/Sources/SwiftChessCore/Bitboard.swift:82:15: [1;39mnote: [1;39mconsider making struct 'Bitboard' conform to the 'Sendable' protocol[0;0m
[0;36m80 |[0;0m /// - see also: [Bitboard (Wikipedia)](https://en.wikipedia.org/wiki/Bitboard ),
[0;36m81 |[0;0m /// [Bitboards (Chess Programming Wiki)](https://chessprogramming.org/Bitboards)
[0;36m82 |[0;0m public struct Bitboard: RawRepresentable, Hashable, CustomStringConvertible {
[0;36m|[0;0m `- [1;39mnote: [1;39mconsider making struct 'Bitboard' conform to the 'Sendable' protocol[0;0m
[0;36m83 |[0;0m
[0;36m84 |[0;0m /// A bitboard shift direction.
/host/spi-builder-workspace/Sources/SwiftChessCore/Tables.swift:97:14: [1;33mwarning: [1;39mlet '_lineTable' is not concurrency-safe because non-'Sendable' type '[Bitboard]' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m95 |[0;0m
[0;36m96 |[0;0m /// A lookup table of lines for two squares.
[0;36m97 |[0;0m internal let _lineTable: [Bitboard] = {
[0;36m|[0;0m |- [1;33mwarning: [1;39mlet '_lineTable' is not concurrency-safe because non-'Sendable' type '[Bitboard]' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m|[0;0m |- [1;39mnote: [1;39madd '@MainActor' to make let '_lineTable' part of global actor 'MainActor'[0;0m
[0;36m|[0;0m `- [1;39mnote: [1;39mdisable concurrency-safety checks if accesses are protected by an external synchronization mechanism[0;0m
[0;36m98 |[0;0m var table = [Bitboard](repeating: 0, count: 2080)
[0;36m99 |[0;0m for start in Square.all {
/host/spi-builder-workspace/Sources/SwiftChessCore/Bitboard.swift:82:15: [1;39mnote: [1;39mconsider making struct 'Bitboard' conform to the 'Sendable' protocol[0;0m
[0;36m80 |[0;0m /// - see also: [Bitboard (Wikipedia)](https://en.wikipedia.org/wiki/Bitboard ),
[0;36m81 |[0;0m /// [Bitboards (Chess Programming Wiki)](https://chessprogramming.org/Bitboards)
[0;36m82 |[0;0m public struct Bitboard: RawRepresentable, Hashable, CustomStringConvertible {
[0;36m|[0;0m `- [1;39mnote: [1;39mconsider making struct 'Bitboard' conform to the 'Sendable' protocol[0;0m
[0;36m83 |[0;0m
[0;36m84 |[0;0m /// A bitboard shift direction.
/host/spi-builder-workspace/Sources/SwiftChessCore/Variant.swift:31:23: [1;33mwarning: [1;39mstatic property '_standard' is not concurrency-safe because non-'Sendable' type 'Variant' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m20 |[0;0m
[0;36m21 |[0;0m /// A chess variant that defines how a `Board` is populated or how a `Game` is played.
[0;36m22 |[0;0m public enum Variant {
[0;36m|[0;0m `- [1;39mnote: [1;39mconsider making enum 'Variant' conform to the 'Sendable' protocol[0;0m
[0;36m23 |[0;0m
[0;36m24 |[0;0m /// Standard chess.
[0;36m:[0;0m
[0;36m29 |[0;0m
[0;36m30 |[0;0m /// Standard regardless of Swift version.
[0;36m31 |[0;0m internal static let _standard = Variant.standard
[0;36m|[0;0m |- [1;33mwarning: [1;39mstatic property '_standard' is not concurrency-safe because non-'Sendable' type 'Variant' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m|[0;0m |- [1;39mnote: [1;39madd '@MainActor' to make static property '_standard' part of global actor 'MainActor'[0;0m
[0;36m|[0;0m `- [1;39mnote: [1;39mdisable concurrency-safety checks if accesses are protected by an external synchronization mechanism[0;0m
[0;36m32 |[0;0m
[0;36m33 |[0;0m /// UpsideDown regardless of Swift version.
/host/spi-builder-workspace/Sources/SwiftChessCore/Variant.swift:34:23: [1;33mwarning: [1;39mstatic property '_upsideDown' is not concurrency-safe because non-'Sendable' type 'Variant' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m20 |[0;0m
[0;36m21 |[0;0m /// A chess variant that defines how a `Board` is populated or how a `Game` is played.
[0;36m22 |[0;0m public enum Variant {
[0;36m|[0;0m `- [1;39mnote: [1;39mconsider making enum 'Variant' conform to the 'Sendable' protocol[0;0m
[0;36m23 |[0;0m
[0;36m24 |[0;0m /// Standard chess.
[0;36m:[0;0m
[0;36m32 |[0;0m
[0;36m33 |[0;0m /// UpsideDown regardless of Swift version.
[0;36m34 |[0;0m internal static let _upsideDown = Variant.upsideDown
[0;36m|[0;0m |- [1;33mwarning: [1;39mstatic property '_upsideDown' is not concurrency-safe because non-'Sendable' type 'Variant' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m|[0;0m |- [1;39mnote: [1;39madd '@MainActor' to make static property '_upsideDown' part of global actor 'MainActor'[0;0m
[0;36m|[0;0m `- [1;39mnote: [1;39mdisable concurrency-safety checks if accesses are protected by an external synchronization mechanism[0;0m
[0;36m35 |[0;0m
[0;36m36 |[0;0m /// `self` is standard variant.
[#MutableGlobalVariable]: <https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable>
/host/spi-builder-workspace/Sources/SwiftChessCore/Square.swift:226:21: [1;33mwarning: [1;39mstatic property 'all' is not concurrency-safe because non-'Sendable' type '[Square]' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m25 |[0;0m ///
[0;36m26 |[0;0m /// A `Square` can be one of sixty-four possible values, ranging from `A1` to `H8`.
[0;36m27 |[0;0m public enum Square: Int, CustomStringConvertible {
[0;36m|[0;0m `- [1;39mnote: [1;39mconsider making enum 'Square' conform to the 'Sendable' protocol[0;0m
[0;36m28 |[0;0m
[0;36m29 |[0;0m /// A1 square.
[0;36m:[0;0m
[0;36m224 |[0;0m
[0;36m225 |[0;0m /// An array of all squares.
[0;36m226 |[0;0m public static let all: [Square] = (0..<64).compactMap(Square.init(rawValue:))
[0;36m|[0;0m |- [1;33mwarning: [1;39mstatic property 'all' is not concurrency-safe because non-'Sendable' type '[Square]' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m|[0;0m |- [1;39mnote: [1;39madd '@MainActor' to make static property 'all' part of global actor 'MainActor'[0;0m
[0;36m|[0;0m `- [1;39mnote: [1;39mdisable concurrency-safety checks if accesses are protected by an external synchronization mechanism[0;0m
[0;36m227 |[0;0m
[0;36m228 |[0;0m /// The file of `self`.
[#MutableGlobalVariable]: <https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable>
[45 / 55] SwiftChessCore
/host/spi-builder-workspace/Sources/SwiftChessCore/Rank.swift:66:21: [1;33mwarning: [1;39mstatic property 'all' is not concurrency-safe because non-'Sendable' type '[Rank]' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m22 |[0;0m ///
[0;36m23 |[0;0m /// `Rank`s refer to the eight rows of a chess board, beginning with 1 at the bottom and ending with 8 at the top.
[0;36m24 |[0;0m public enum Rank: Int, Comparable, CustomStringConvertible {
[0;36m|[0;0m `- [1;39mnote: [1;39mconsider making enum 'Rank' conform to the 'Sendable' protocol[0;0m
[0;36m25 |[0;0m
[0;36m26 |[0;0m /// A direction in rank.
[0;36m:[0;0m
[0;36m64 |[0;0m
[0;36m65 |[0;0m /// An array of all ranks.
[0;36m66 |[0;0m public static let all: [Rank] = [1, 2, 3, 4, 5, 6, 7, 8]
[0;36m|[0;0m |- [1;33mwarning: [1;39mstatic property 'all' is not concurrency-safe because non-'Sendable' type '[Rank]' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m|[0;0m |- [1;39mnote: [1;39madd '@MainActor' to make static property 'all' part of global actor 'MainActor'[0;0m
[0;36m|[0;0m `- [1;39mnote: [1;39mdisable concurrency-safety checks if accesses are protected by an external synchronization mechanism[0;0m
[0;36m67 |[0;0m
[0;36m68 |[0;0m /// The row index of `self`.
[#MutableGlobalVariable]: <https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable>
/host/spi-builder-workspace/Sources/SwiftChessCore/Tables.swift:31:14: [1;33mwarning: [1;39mlet '_whitePawnAttackTable' is not concurrency-safe because non-'Sendable' type '[Bitboard]' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m29 |[0;0m
[0;36m30 |[0;0m /// A lookup table of all white pawn attack bitboards.
[0;36m31 |[0;0m internal let _whitePawnAttackTable = Square.all.map { square in
[0;36m|[0;0m |- [1;33mwarning: [1;39mlet '_whitePawnAttackTable' is not concurrency-safe because non-'Sendable' type '[Bitboard]' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m|[0;0m |- [1;39mnote: [1;39madd '@MainActor' to make let '_whitePawnAttackTable' part of global actor 'MainActor'[0;0m
[0;36m|[0;0m `- [1;39mnote: [1;39mdisable concurrency-safety checks if accesses are protected by an external synchronization mechanism[0;0m
[0;36m32 |[0;0m return Bitboard(square: square)._pawnAttacks(for: ._white)
[0;36m33 |[0;0m }
/host/spi-builder-workspace/Sources/SwiftChessCore/Bitboard.swift:82:15: [1;39mnote: [1;39mconsider making struct 'Bitboard' conform to the 'Sendable' protocol[0;0m
[0;36m80 |[0;0m /// - see also: [Bitboard (Wikipedia)](https://en.wikipedia.org/wiki/Bitboard ),
[0;36m81 |[0;0m /// [Bitboards (Chess Programming Wiki)](https://chessprogramming.org/Bitboards)
[0;36m82 |[0;0m public struct Bitboard: RawRepresentable, Hashable, CustomStringConvertible {
[0;36m|[0;0m `- [1;39mnote: [1;39mconsider making struct 'Bitboard' conform to the 'Sendable' protocol[0;0m
[0;36m83 |[0;0m
[0;36m84 |[0;0m /// A bitboard shift direction.
/host/spi-builder-workspace/Sources/SwiftChessCore/Tables.swift:36:14: [1;33mwarning: [1;39mlet '_blackPawnAttackTable' is not concurrency-safe because non-'Sendable' type '[Bitboard]' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m34 |[0;0m
[0;36m35 |[0;0m /// A lookup table of all black pawn attack bitboards.
[0;36m36 |[0;0m internal let _blackPawnAttackTable = Square.all.map { square in
[0;36m|[0;0m |- [1;33mwarning: [1;39mlet '_blackPawnAttackTable' is not concurrency-safe because non-'Sendable' type '[Bitboard]' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m|[0;0m |- [1;39mnote: [1;39madd '@MainActor' to make let '_blackPawnAttackTable' part of global actor 'MainActor'[0;0m
[0;36m|[0;0m `- [1;39mnote: [1;39mdisable concurrency-safety checks if accesses are protected by an external synchronization mechanism[0;0m
[0;36m37 |[0;0m return Bitboard(square: square)._pawnAttacks(for: ._black)
[0;36m38 |[0;0m }
/host/spi-builder-workspace/Sources/SwiftChessCore/Bitboard.swift:82:15: [1;39mnote: [1;39mconsider making struct 'Bitboard' conform to the 'Sendable' protocol[0;0m
[0;36m80 |[0;0m /// - see also: [Bitboard (Wikipedia)](https://en.wikipedia.org/wiki/Bitboard ),
[0;36m81 |[0;0m /// [Bitboards (Chess Programming Wiki)](https://chessprogramming.org/Bitboards)
[0;36m82 |[0;0m public struct Bitboard: RawRepresentable, Hashable, CustomStringConvertible {
[0;36m|[0;0m `- [1;39mnote: [1;39mconsider making struct 'Bitboard' conform to the 'Sendable' protocol[0;0m
[0;36m83 |[0;0m
[0;36m84 |[0;0m /// A bitboard shift direction.
/host/spi-builder-workspace/Sources/SwiftChessCore/Tables.swift:41:14: [1;33mwarning: [1;39mlet '_kingAttackTable' is not concurrency-safe because non-'Sendable' type '[Bitboard]' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m39 |[0;0m
[0;36m40 |[0;0m /// A lookup table of all king attack bitboards.
[0;36m41 |[0;0m internal let _kingAttackTable = Square.all.map { square in
[0;36m|[0;0m |- [1;33mwarning: [1;39mlet '_kingAttackTable' is not concurrency-safe because non-'Sendable' type '[Bitboard]' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m|[0;0m |- [1;39mnote: [1;39madd '@MainActor' to make let '_kingAttackTable' part of global actor 'MainActor'[0;0m
[0;36m|[0;0m `- [1;39mnote: [1;39mdisable concurrency-safety checks if accesses are protected by an external synchronization mechanism[0;0m
[0;36m42 |[0;0m return Bitboard(square: square)._kingAttacks()
[0;36m43 |[0;0m }
/host/spi-builder-workspace/Sources/SwiftChessCore/Bitboard.swift:82:15: [1;39mnote: [1;39mconsider making struct 'Bitboard' conform to the 'Sendable' protocol[0;0m
[0;36m80 |[0;0m /// - see also: [Bitboard (Wikipedia)](https://en.wikipedia.org/wiki/Bitboard ),
[0;36m81 |[0;0m /// [Bitboards (Chess Programming Wiki)](https://chessprogramming.org/Bitboards)
[0;36m82 |[0;0m public struct Bitboard: RawRepresentable, Hashable, CustomStringConvertible {
[0;36m|[0;0m `- [1;39mnote: [1;39mconsider making struct 'Bitboard' conform to the 'Sendable' protocol[0;0m
[0;36m83 |[0;0m
[0;36m84 |[0;0m /// A bitboard shift direction.
/host/spi-builder-workspace/Sources/SwiftChessCore/Tables.swift:46:14: [1;33mwarning: [1;39mlet '_knightAttackTable' is not concurrency-safe because non-'Sendable' type '[Bitboard]' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m44 |[0;0m
[0;36m45 |[0;0m /// A lookup table of all knight attack bitboards.
[0;36m46 |[0;0m internal let _knightAttackTable = Square.all.map { square in
[0;36m|[0;0m |- [1;33mwarning: [1;39mlet '_knightAttackTable' is not concurrency-safe because non-'Sendable' type '[Bitboard]' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m|[0;0m |- [1;39mnote: [1;39madd '@MainActor' to make let '_knightAttackTable' part of global actor 'MainActor'[0;0m
[0;36m|[0;0m `- [1;39mnote: [1;39mdisable concurrency-safety checks if accesses are protected by an external synchronization mechanism[0;0m
[0;36m47 |[0;0m return Bitboard(square: square)._knightAttacks()
[0;36m48 |[0;0m }
/host/spi-builder-workspace/Sources/SwiftChessCore/Bitboard.swift:82:15: [1;39mnote: [1;39mconsider making struct 'Bitboard' conform to the 'Sendable' protocol[0;0m
[0;36m80 |[0;0m /// - see also: [Bitboard (Wikipedia)](https://en.wikipedia.org/wiki/Bitboard ),
[0;36m81 |[0;0m /// [Bitboards (Chess Programming Wiki)](https://chessprogramming.org/Bitboards)
[0;36m82 |[0;0m public struct Bitboard: RawRepresentable, Hashable, CustomStringConvertible {
[0;36m|[0;0m `- [1;39mnote: [1;39mconsider making struct 'Bitboard' conform to the 'Sendable' protocol[0;0m
[0;36m83 |[0;0m
[0;36m84 |[0;0m /// A bitboard shift direction.
/host/spi-builder-workspace/Sources/SwiftChessCore/Tables.swift:85:14: [1;33mwarning: [1;39mlet '_betweenTable' is not concurrency-safe because non-'Sendable' type '[Bitboard]' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m83 |[0;0m
[0;36m84 |[0;0m /// A lookup table of squares between two squares.
[0;36m85 |[0;0m internal let _betweenTable: [Bitboard] = {
[0;36m|[0;0m |- [1;33mwarning: [1;39mlet '_betweenTable' is not concurrency-safe because non-'Sendable' type '[Bitboard]' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m|[0;0m |- [1;39mnote: [1;39madd '@MainActor' to make let '_betweenTable' part of global actor 'MainActor'[0;0m
[0;36m|[0;0m `- [1;39mnote: [1;39mdisable concurrency-safety checks if accesses are protected by an external synchronization mechanism[0;0m
[0;36m86 |[0;0m var table = [Bitboard](repeating: 0, count: 2080)
[0;36m87 |[0;0m for start in Square.all {
/host/spi-builder-workspace/Sources/SwiftChessCore/Bitboard.swift:82:15: [1;39mnote: [1;39mconsider making struct 'Bitboard' conform to the 'Sendable' protocol[0;0m
[0;36m80 |[0;0m /// - see also: [Bitboard (Wikipedia)](https://en.wikipedia.org/wiki/Bitboard ),
[0;36m81 |[0;0m /// [Bitboards (Chess Programming Wiki)](https://chessprogramming.org/Bitboards)
[0;36m82 |[0;0m public struct Bitboard: RawRepresentable, Hashable, CustomStringConvertible {
[0;36m|[0;0m `- [1;39mnote: [1;39mconsider making struct 'Bitboard' conform to the 'Sendable' protocol[0;0m
[0;36m83 |[0;0m
[0;36m84 |[0;0m /// A bitboard shift direction.
/host/spi-builder-workspace/Sources/SwiftChessCore/Tables.swift:97:14: [1;33mwarning: [1;39mlet '_lineTable' is not concurrency-safe because non-'Sendable' type '[Bitboard]' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m95 |[0;0m
[0;36m96 |[0;0m /// A lookup table of lines for two squares.
[0;36m97 |[0;0m internal let _lineTable: [Bitboard] = {
[0;36m|[0;0m |- [1;33mwarning: [1;39mlet '_lineTable' is not concurrency-safe because non-'Sendable' type '[Bitboard]' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m|[0;0m |- [1;39mnote: [1;39madd '@MainActor' to make let '_lineTable' part of global actor 'MainActor'[0;0m
[0;36m|[0;0m `- [1;39mnote: [1;39mdisable concurrency-safety checks if accesses are protected by an external synchronization mechanism[0;0m
[0;36m98 |[0;0m var table = [Bitboard](repeating: 0, count: 2080)
[0;36m99 |[0;0m for start in Square.all {
/host/spi-builder-workspace/Sources/SwiftChessCore/Bitboard.swift:82:15: [1;39mnote: [1;39mconsider making struct 'Bitboard' conform to the 'Sendable' protocol[0;0m
[0;36m80 |[0;0m /// - see also: [Bitboard (Wikipedia)](https://en.wikipedia.org/wiki/Bitboard ),
[0;36m81 |[0;0m /// [Bitboards (Chess Programming Wiki)](https://chessprogramming.org/Bitboards)
[0;36m82 |[0;0m public struct Bitboard: RawRepresentable, Hashable, CustomStringConvertible {
[0;36m|[0;0m `- [1;39mnote: [1;39mconsider making struct 'Bitboard' conform to the 'Sendable' protocol[0;0m
[0;36m83 |[0;0m
[0;36m84 |[0;0m /// A bitboard shift direction.
/host/spi-builder-workspace/Sources/SwiftChessCore/Variant.swift:31:23: [1;33mwarning: [1;39mstatic property '_standard' is not concurrency-safe because non-'Sendable' type 'Variant' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m20 |[0;0m
[0;36m21 |[0;0m /// A chess variant that defines how a `Board` is populated or how a `Game` is played.
[0;36m22 |[0;0m public enum Variant {
[0;36m|[0;0m `- [1;39mnote: [1;39mconsider making enum 'Variant' conform to the 'Sendable' protocol[0;0m
[0;36m23 |[0;0m
[0;36m24 |[0;0m /// Standard chess.
[0;36m:[0;0m
[0;36m29 |[0;0m
[0;36m30 |[0;0m /// Standard regardless of Swift version.
[0;36m31 |[0;0m internal static let _standard = Variant.standard
[0;36m|[0;0m |- [1;33mwarning: [1;39mstatic property '_standard' is not concurrency-safe because non-'Sendable' type 'Variant' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m|[0;0m |- [1;39mnote: [1;39madd '@MainActor' to make static property '_standard' part of global actor 'MainActor'[0;0m
[0;36m|[0;0m `- [1;39mnote: [1;39mdisable concurrency-safety checks if accesses are protected by an external synchronization mechanism[0;0m
[0;36m32 |[0;0m
[0;36m33 |[0;0m /// UpsideDown regardless of Swift version.
/host/spi-builder-workspace/Sources/SwiftChessCore/Variant.swift:34:23: [1;33mwarning: [1;39mstatic property '_upsideDown' is not concurrency-safe because non-'Sendable' type 'Variant' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m20 |[0;0m
[0;36m21 |[0;0m /// A chess variant that defines how a `Board` is populated or how a `Game` is played.
[0;36m22 |[0;0m public enum Variant {
[0;36m|[0;0m `- [1;39mnote: [1;39mconsider making enum 'Variant' conform to the 'Sendable' protocol[0;0m
[0;36m23 |[0;0m
[0;36m24 |[0;0m /// Standard chess.
[0;36m:[0;0m
[0;36m32 |[0;0m
[0;36m33 |[0;0m /// UpsideDown regardless of Swift version.
[0;36m34 |[0;0m internal static let _upsideDown = Variant.upsideDown
[0;36m|[0;0m |- [1;33mwarning: [1;39mstatic property '_upsideDown' is not concurrency-safe because non-'Sendable' type 'Variant' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m|[0;0m |- [1;39mnote: [1;39madd '@MainActor' to make static property '_upsideDown' part of global actor 'MainActor'[0;0m
[0;36m|[0;0m `- [1;39mnote: [1;39mdisable concurrency-safety checks if accesses are protected by an external synchronization mechanism[0;0m
[0;36m35 |[0;0m
[0;36m36 |[0;0m /// `self` is standard variant.
[#MutableGlobalVariable]: <https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable>
[50 / 55] SwiftChessCore
/host/spi-builder-workspace/Sources/SwiftChessCore/Bitboard.swift:46:13: [1;33mwarning: [1;39mlet '_bitboardTable' is not concurrency-safe because non-'Sendable' type '[Bitboard]' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m44 |[0;0m
[0;36m45 |[0;0m /// A lookup table of bitboards for all squares.
[0;36m46 |[0;0m private let _bitboardTable: [Bitboard] = (0..<64).map { Bitboard(rawValue: 1 << $0) }
[0;36m|[0;0m |- [1;33mwarning: [1;39mlet '_bitboardTable' is not concurrency-safe because non-'Sendable' type '[Bitboard]' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m|[0;0m |- [1;39mnote: [1;39madd '@MainActor' to make let '_bitboardTable' part of global actor 'MainActor'[0;0m
[0;36m|[0;0m `- [1;39mnote: [1;39mdisable concurrency-safety checks if accesses are protected by an external synchronization mechanism[0;0m
[0;36m47 |[0;0m
[0;36m48 |[0;0m /// The De Bruijn multiplier.
[0;36m:[0;0m
[0;36m80 |[0;0m /// - see also: [Bitboard (Wikipedia)](https://en.wikipedia.org/wiki/Bitboard ),
[0;36m81 |[0;0m /// [Bitboards (Chess Programming Wiki)](https://chessprogramming.org/Bitboards)
[0;36m82 |[0;0m public struct Bitboard: RawRepresentable, Hashable, CustomStringConvertible {
[0;36m|[0;0m `- [1;39mnote: [1;39mconsider making struct 'Bitboard' conform to the 'Sendable' protocol[0;0m
[0;36m83 |[0;0m
[0;36m84 |[0;0m /// A bitboard shift direction.
/host/spi-builder-workspace/Sources/SwiftChessCore/Bitboard.swift:60:13: [1;33mwarning: [1;39mlet '_notFileA' is not concurrency-safe because non-'Sendable' type 'Bitboard' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m58 |[0;0m
[0;36m59 |[0;0m /// Mask for bits not in File A.
[0;36m60 |[0;0m private let _notFileA: Bitboard = 0xfefe_fefe_fefe_fefe
[0;36m|[0;0m |- [1;33mwarning: [1;39mlet '_notFileA' is not concurrency-safe because non-'Sendable' type 'Bitboard' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m|[0;0m |- [1;39mnote: [1;39madd '@MainActor' to make let '_notFileA' part of global actor 'MainActor'[0;0m
[0;36m|[0;0m `- [1;39mnote: [1;39mdisable concurrency-safety checks if accesses are protected by an external synchronization mechanism[0;0m
[0;36m61 |[0;0m
[0;36m62 |[0;0m /// Mask for bits not in Files A and B.
[0;36m:[0;0m
[0;36m80 |[0;0m /// - see also: [Bitboard (Wikipedia)](https://en.wikipedia.org/wiki/Bitboard ),
[0;36m81 |[0;0m /// [Bitboards (Chess Programming Wiki)](https://chessprogramming.org/Bitboards)
[0;36m82 |[0;0m public struct Bitboard: RawRepresentable, Hashable, CustomStringConvertible {
[0;36m|[0;0m `- [1;39mnote: [1;39mconsider making struct 'Bitboard' conform to the 'Sendable' protocol[0;0m
[0;36m83 |[0;0m
[0;36m84 |[0;0m /// A bitboard shift direction.
/host/spi-builder-workspace/Sources/SwiftChessCore/Bitboard.swift:63:13: [1;33mwarning: [1;39mlet '_notFileAB' is not concurrency-safe because non-'Sendable' type 'Bitboard' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m61 |[0;0m
[0;36m62 |[0;0m /// Mask for bits not in Files A and B.
[0;36m63 |[0;0m private let _notFileAB: Bitboard = 0xfcfc_fcfc_fcfc_fcfc
[0;36m|[0;0m |- [1;33mwarning: [1;39mlet '_notFileAB' is not concurrency-safe because non-'Sendable' type 'Bitboard' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m|[0;0m |- [1;39mnote: [1;39madd '@MainActor' to make let '_notFileAB' part of global actor 'MainActor'[0;0m
[0;36m|[0;0m `- [1;39mnote: [1;39mdisable concurrency-safety checks if accesses are protected by an external synchronization mechanism[0;0m
[0;36m64 |[0;0m
[0;36m65 |[0;0m /// Mask for bits not in File H.
[0;36m:[0;0m
[0;36m80 |[0;0m /// - see also: [Bitboard (Wikipedia)](https://en.wikipedia.org/wiki/Bitboard ),
[0;36m81 |[0;0m /// [Bitboards (Chess Programming Wiki)](https://chessprogramming.org/Bitboards)
[0;36m82 |[0;0m public struct Bitboard: RawRepresentable, Hashable, CustomStringConvertible {
[0;36m|[0;0m `- [1;39mnote: [1;39mconsider making struct 'Bitboard' conform to the 'Sendable' protocol[0;0m
[0;36m83 |[0;0m
[0;36m84 |[0;0m /// A bitboard shift direction.
/host/spi-builder-workspace/Sources/SwiftChessCore/Bitboard.swift:66:13: [1;33mwarning: [1;39mlet '_notFileH' is not concurrency-safe because non-'Sendable' type 'Bitboard' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m64 |[0;0m
[0;36m65 |[0;0m /// Mask for bits not in File H.
[0;36m66 |[0;0m private let _notFileH: Bitboard = 0x7f7f_7f7f_7f7f_7f7f
[0;36m|[0;0m |- [1;33mwarning: [1;39mlet '_notFileH' is not concurrency-safe because non-'Sendable' type 'Bitboard' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m|[0;0m |- [1;39mnote: [1;39madd '@MainActor' to make let '_notFileH' part of global actor 'MainActor'[0;0m
[0;36m|[0;0m `- [1;39mnote: [1;39mdisable concurrency-safety checks if accesses are protected by an external synchronization mechanism[0;0m
[0;36m67 |[0;0m
[0;36m68 |[0;0m /// Mask for bits not in Files G and H.
[0;36m:[0;0m
[0;36m80 |[0;0m /// - see also: [Bitboard (Wikipedia)](https://en.wikipedia.org/wiki/Bitboard ),
[0;36m81 |[0;0m /// [Bitboards (Chess Programming Wiki)](https://chessprogramming.org/Bitboards)
[0;36m82 |[0;0m public struct Bitboard: RawRepresentable, Hashable, CustomStringConvertible {
[0;36m|[0;0m `- [1;39mnote: [1;39mconsider making struct 'Bitboard' conform to the 'Sendable' protocol[0;0m
[0;36m83 |[0;0m
[0;36m84 |[0;0m /// A bitboard shift direction.
/host/spi-builder-workspace/Sources/SwiftChessCore/Bitboard.swift:69:13: [1;33mwarning: [1;39mlet '_notFileGH' is not concurrency-safe because non-'Sendable' type 'Bitboard' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m67 |[0;0m
[0;36m68 |[0;0m /// Mask for bits not in Files G and H.
[0;36m69 |[0;0m private let _notFileGH: Bitboard = 0x3f3f_3f3f_3f3f_3f3f
[0;36m|[0;0m |- [1;33mwarning: [1;39mlet '_notFileGH' is not concurrency-safe because non-'Sendable' type 'Bitboard' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m|[0;0m |- [1;39mnote: [1;39madd '@MainActor' to make let '_notFileGH' part of global actor 'MainActor'[0;0m
[0;36m|[0;0m `- [1;39mnote: [1;39mdisable concurrency-safety checks if accesses are protected by an external synchronization mechanism[0;0m
[0;36m70 |[0;0m
[0;36m71 |[0;0m /// A bitmap of sixty-four bits suitable for storing squares for various pieces.
[0;36m:[0;0m
[0;36m80 |[0;0m /// - see also: [Bitboard (Wikipedia)](https://en.wikipedia.org/wiki/Bitboard ),
[0;36m81 |[0;0m /// [Bitboards (Chess Programming Wiki)](https://chessprogramming.org/Bitboards)
[0;36m82 |[0;0m public struct Bitboard: RawRepresentable, Hashable, CustomStringConvertible {
[0;36m|[0;0m `- [1;39mnote: [1;39mconsider making struct 'Bitboard' conform to the 'Sendable' protocol[0;0m
[0;36m83 |[0;0m
[0;36m84 |[0;0m /// A bitboard shift direction.
/host/spi-builder-workspace/Sources/SwiftChessCore/Bitboard.swift:112:25: [1;33mwarning: [1;39mstatic property '_north' is not concurrency-safe because non-'Sendable' type 'Bitboard.ShiftDirection' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m83 |[0;0m
[0;36m84 |[0;0m /// A bitboard shift direction.
[0;36m85 |[0;0m public enum ShiftDirection {
[0;36m|[0;0m `- [1;39mnote: [1;39mconsider making enum 'ShiftDirection' conform to the 'Sendable' protocol[0;0m
[0;36m86 |[0;0m
[0;36m87 |[0;0m /// North direction.
[0;36m:[0;0m
[0;36m110 |[0;0m
[0;36m111 |[0;0m /// North regardless of Swift version.
[0;36m112 |[0;0m internal static let _north = ShiftDirection.north
[0;36m|[0;0m |- [1;33mwarning: [1;39mstatic property '_north' is not concurrency-safe because non-'Sendable' type 'Bitboard.ShiftDirection' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m|[0;0m |- [1;39mnote: [1;39madd '@MainActor' to make static property '_north' part of global actor 'MainActor'[0;0m
[0;36m|[0;0m `- [1;39mnote: [1;39mdisable concurrency-safety checks if accesses are protected by an external synchronization mechanism[0;0m
[0;36m113 |[0;0m
[0;36m114 |[0;0m /// South regardless of Swift version.
/host/spi-builder-workspace/Sources/SwiftChessCore/Bitboard.swift:115:25: [1;33mwarning: [1;39mstatic property '_south' is not concurrency-safe because non-'Sendable' type 'Bitboard.ShiftDirection' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m83 |[0;0m
[0;36m84 |[0;0m /// A bitboard shift direction.
[0;36m85 |[0;0m public enum ShiftDirection {
[0;36m|[0;0m `- [1;39mnote: [1;39mconsider making enum 'ShiftDirection' conform to the 'Sendable' protocol[0;0m
[0;36m86 |[0;0m
[0;36m87 |[0;0m /// North direction.
[0;36m:[0;0m
[0;36m113 |[0;0m
[0;36m114 |[0;0m /// South regardless of Swift version.
[0;36m115 |[0;0m internal static let _south = ShiftDirection.south
[0;36m|[0;0m |- [1;33mwarning: [1;39mstatic property '_south' is not concurrency-safe because non-'Sendable' type 'Bitboard.ShiftDirection' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m|[0;0m |- [1;39mnote: [1;39madd '@MainActor' to make static property '_south' part of global actor 'MainActor'[0;0m
[0;36m|[0;0m `- [1;39mnote: [1;39mdisable concurrency-safety checks if accesses are protected by an external synchronization mechanism[0;0m
[0;36m116 |[0;0m
[0;36m117 |[0;0m /// East regardless of Swift version.
/host/spi-builder-workspace/Sources/SwiftChessCore/Bitboard.swift:118:25: [1;33mwarning: [1;39mstatic property '_east' is not concurrency-safe because non-'Sendable' type 'Bitboard.ShiftDirection' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m83 |[0;0m
[0;36m84 |[0;0m /// A bitboard shift direction.
[0;36m85 |[0;0m public enum ShiftDirection {
[0;36m|[0;0m `- [1;39mnote: [1;39mconsider making enum 'ShiftDirection' conform to the 'Sendable' protocol[0;0m
[0;36m86 |[0;0m
[0;36m87 |[0;0m /// North direction.
[0;36m:[0;0m
[0;36m116 |[0;0m
[0;36m117 |[0;0m /// East regardless of Swift version.
[0;36m118 |[0;0m internal static let _east = ShiftDirection.east
[0;36m|[0;0m |- [1;33mwarning: [1;39mstatic property '_east' is not concurrency-safe because non-'Sendable' type 'Bitboard.ShiftDirection' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m|[0;0m |- [1;39mnote: [1;39madd '@MainActor' to make static property '_east' part of global actor 'MainActor'[0;0m
[0;36m|[0;0m `- [1;39mnote: [1;39mdisable concurrency-safety checks if accesses are protected by an external synchronization mechanism[0;0m
[0;36m119 |[0;0m
[0;36m120 |[0;0m /// West regardless of Swift version.
/host/spi-builder-workspace/Sources/SwiftChessCore/Bitboard.swift:121:25: [1;33mwarning: [1;39mstatic property '_west' is not concurrency-safe because non-'Sendable' type 'Bitboard.ShiftDirection' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m83 |[0;0m
[0;36m84 |[0;0m /// A bitboard shift direction.
[0;36m85 |[0;0m public enum ShiftDirection {
[0;36m|[0;0m `- [1;39mnote: [1;39mconsider making enum 'ShiftDirection' conform to the 'Sendable' protocol[0;0m
[0;36m86 |[0;0m
[0;36m87 |[0;0m /// North direction.
[0;36m:[0;0m
[0;36m119 |[0;0m
[0;36m120 |[0;0m /// West regardless of Swift version.
[0;36m121 |[0;0m internal static let _west = ShiftDirection.west
[0;36m|[0;0m |- [1;33mwarning: [1;39mstatic property '_west' is not concurrency-safe because non-'Sendable' type 'Bitboard.ShiftDirection' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m|[0;0m |- [1;39mnote: [1;39madd '@MainActor' to make static property '_west' part of global actor 'MainActor'[0;0m
[0;36m|[0;0m `- [1;39mnote: [1;39mdisable concurrency-safety checks if accesses are protected by an external synchronization mechanism[0;0m
[0;36m122 |[0;0m
[0;36m123 |[0;0m /// Northeast regardless of Swift version.
/host/spi-builder-workspace/Sources/SwiftChessCore/Bitboard.swift:124:25: [1;33mwarning: [1;39mstatic property '_northeast' is not concurrency-safe because non-'Sendable' type 'Bitboard.ShiftDirection' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m83 |[0;0m
[0;36m84 |[0;0m /// A bitboard shift direction.
[0;36m85 |[0;0m public enum ShiftDirection {
[0;36m|[0;0m `- [1;39mnote: [1;39mconsider making enum 'ShiftDirection' conform to the 'Sendable' protocol[0;0m
[0;36m86 |[0;0m
[0;36m87 |[0;0m /// North direction.
[0;36m:[0;0m
[0;36m122 |[0;0m
[0;36m123 |[0;0m /// Northeast regardless of Swift version.
[0;36m124 |[0;0m internal static let _northeast = ShiftDirection.northeast
[0;36m|[0;0m |- [1;33mwarning: [1;39mstatic property '_northeast' is not concurrency-safe because non-'Sendable' type 'Bitboard.ShiftDirection' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m|[0;0m |- [1;39mnote: [1;39madd '@MainActor' to make static property '_northeast' part of global actor 'MainActor'[0;0m
[0;36m|[0;0m `- [1;39mnote: [1;39mdisable concurrency-safety checks if accesses are protected by an external synchronization mechanism[0;0m
[0;36m125 |[0;0m
[0;36m126 |[0;0m /// Southeast regardless of Swift version.
/host/spi-builder-workspace/Sources/SwiftChessCore/Bitboard.swift:127:25: [1;33mwarning: [1;39mstatic property '_southeast' is not concurrency-safe because non-'Sendable' type 'Bitboard.ShiftDirection' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m83 |[0;0m
[0;36m84 |[0;0m /// A bitboard shift direction.
[0;36m85 |[0;0m public enum ShiftDirection {
[0;36m|[0;0m `- [1;39mnote: [1;39mconsider making enum 'ShiftDirection' conform to the 'Sendable' protocol[0;0m
[0;36m86 |[0;0m
[0;36m87 |[0;0m /// North direction.
[0;36m:[0;0m
[0;36m125 |[0;0m
[0;36m126 |[0;0m /// Southeast regardless of Swift version.
[0;36m127 |[0;0m internal static let _southeast = ShiftDirection.southeast
[0;36m|[0;0m |- [1;33mwarning: [1;39mstatic property '_southeast' is not concurrency-safe because non-'Sendable' type 'Bitboard.ShiftDirection' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m|[0;0m |- [1;39mnote: [1;39madd '@MainActor' to make static property '_southeast' part of global actor 'MainActor'[0;0m
[0;36m|[0;0m `- [1;39mnote: [1;39mdisable concurrency-safety checks if accesses are protected by an external synchronization mechanism[0;0m
[0;36m128 |[0;0m
[0;36m129 |[0;0m /// Northwest regardless of Swift version.
/host/spi-builder-workspace/Sources/SwiftChessCore/Bitboard.swift:130:25: [1;33mwarning: [1;39mstatic property '_northwest' is not concurrency-safe because non-'Sendable' type 'Bitboard.ShiftDirection' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m83 |[0;0m
[0;36m84 |[0;0m /// A bitboard shift direction.
[0;36m85 |[0;0m public enum ShiftDirection {
[0;36m|[0;0m `- [1;39mnote: [1;39mconsider making enum 'ShiftDirection' conform to the 'Sendable' protocol[0;0m
[0;36m86 |[0;0m
[0;36m87 |[0;0m /// North direction.
[0;36m:[0;0m
[0;36m128 |[0;0m
[0;36m129 |[0;0m /// Northwest regardless of Swift version.
[0;36m130 |[0;0m internal static let _northwest = ShiftDirection.northwest
[0;36m|[0;0m |- [1;33mwarning: [1;39mstatic property '_northwest' is not concurrency-safe because non-'Sendable' type 'Bitboard.ShiftDirection' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m|[0;0m |- [1;39mnote: [1;39madd '@MainActor' to make static property '_northwest' part of global actor 'MainActor'[0;0m
[0;36m|[0;0m `- [1;39mnote: [1;39mdisable concurrency-safety checks if accesses are protected by an external synchronization mechanism[0;0m
[0;36m131 |[0;0m
[0;36m132 |[0;0m /// Southwest regardless of Swift version.
/host/spi-builder-workspace/Sources/SwiftChessCore/Bitboard.swift:133:25: [1;33mwarning: [1;39mstatic property '_southwest' is not concurrency-safe because non-'Sendable' type 'Bitboard.ShiftDirection' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m83 |[0;0m
[0;36m84 |[0;0m /// A bitboard shift direction.
[0;36m85 |[0;0m public enum ShiftDirection {
[0;36m|[0;0m `- [1;39mnote: [1;39mconsider making enum 'ShiftDirection' conform to the 'Sendable' protocol[0;0m
[0;36m86 |[0;0m
[0;36m87 |[0;0m /// North direction.
[0;36m:[0;0m
[0;36m131 |[0;0m
[0;36m132 |[0;0m /// Southwest regardless of Swift version.
[0;36m133 |[0;0m internal static let _southwest = ShiftDirection.southwest
[0;36m|[0;0m |- [1;33mwarning: [1;39mstatic property '_southwest' is not concurrency-safe because non-'Sendable' type 'Bitboard.ShiftDirection' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m|[0;0m |- [1;39mnote: [1;39madd '@MainActor' to make static property '_southwest' part of global actor 'MainActor'[0;0m
[0;36m|[0;0m `- [1;39mnote: [1;39mdisable concurrency-safety checks if accesses are protected by an external synchronization mechanism[0;0m
[0;36m134 |[0;0m
[0;36m135 |[0;0m }
/host/spi-builder-workspace/Sources/SwiftChessCore/Bitboard.swift:156:21: [1;33mwarning: [1;39mstatic property 'edges' is not concurrency-safe because non-'Sendable' type 'Bitboard' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m80 |[0;0m /// - see also: [Bitboard (Wikipedia)](https://en.wikipedia.org/wiki/Bitboard ),
[0;36m81 |[0;0m /// [Bitboards (Chess Programming Wiki)](https://chessprogramming.org/Bitboards)
[0;36m82 |[0;0m public struct Bitboard: RawRepresentable, Hashable, CustomStringConvertible {
[0;36m|[0;0m `- [1;39mnote: [1;39mconsider making struct 'Bitboard' conform to the 'Sendable' protocol[0;0m
[0;36m83 |[0;0m
[0;36m84 |[0;0m /// A bitboard shift direction.
[0;36m:[0;0m
[0;36m154 |[0;0m
[0;36m155 |[0;0m /// The edges of a board.
[0;36m156 |[0;0m public static let edges: Bitboard = 0xff81_8181_8181_81ff
[0;36m|[0;0m |- [1;33mwarning: [1;39mstatic property 'edges' is not concurrency-safe because non-'Sendable' type 'Bitboard' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m|[0;0m |- [1;39mnote: [1;39madd '@MainActor' to make static property 'edges' part of global actor 'MainActor'[0;0m
[0;36m|[0;0m `- [1;39mnote: [1;39mdisable concurrency-safety checks if accesses are protected by an external synchronization mechanism[0;0m
[0;36m157 |[0;0m
[0;36m158 |[0;0m /// The corresponding value of the "raw" type.
/host/spi-builder-workspace/Sources/SwiftChessCore/CastlingRights.swift:42:23: [1;33mwarning: [1;39mstatic property 'all' is not concurrency-safe because non-'Sendable' type '[CastlingRights.Right]' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m25 |[0;0m
[0;36m26 |[0;0m /// A castling right.
[0;36m27 |[0;0m public enum Right: String, CustomStringConvertible {
[0;36m|[0;0m `- [1;39mnote: [1;39mconsider making enum 'Right' conform to the 'Sendable' protocol[0;0m
[0;36m28 |[0;0m
[0;36m29 |[0;0m /// White can castle kingside.
[0;36m:[0;0m
[0;36m40 |[0;0m
[0;36m41 |[0;0m /// All rights.
[0;36m42 |[0;0m public static let all: [Right] = [
[0;36m|[0;0m |- [1;33mwarning: [1;39mstatic property 'all' is not concurrency-safe because non-'Sendable' type '[CastlingRights.Right]' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m|[0;0m |- [1;39mnote: [1;39madd '@MainActor' to make static property 'all' part of global actor 'MainActor'[0;0m
[0;36m|[0;0m `- [1;39mnote: [1;39mdisable concurrency-safety checks if accesses are protected by an external synchronization mechanism[0;0m
[0;36m43 |[0;0m .whiteKingside, .whiteQueenside, .blackKingside, .blackQueenside,
[0;36m44 |[0;0m ]
/host/spi-builder-workspace/Sources/SwiftChessCore/CastlingRights.swift:47:23: [1;33mwarning: [1;39mstatic property 'white' is not concurrency-safe because non-'Sendable' type '[CastlingRights.Right]' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m25 |[0;0m
[0;36m26 |[0;0m /// A castling right.
[0;36m27 |[0;0m public enum Right: String, CustomStringConvertible {
[0;36m|[0;0m `- [1;39mnote: [1;39mconsider making enum 'Right' conform to the 'Sendable' protocol[0;0m
[0;36m28 |[0;0m
[0;36m29 |[0;0m /// White can castle kingside.
[0;36m:[0;0m
[0;36m45 |[0;0m
[0;36m46 |[0;0m /// White rights.
[0;36m47 |[0;0m public static let white: [Right] = all.filter({ $0.color.isWhite })
[0;36m|[0;0m |- [1;33mwarning: [1;39mstatic property 'white' is not concurrency-safe because non-'Sendable' type '[CastlingRights.Right]' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m|[0;0m |- [1;39mnote: [1;39madd '@MainActor' to make static property 'white' part of global actor 'MainActor'[0;0m
[0;36m|[0;0m `- [1;39mnote: [1;39mdisable concurrency-safety checks if accesses are protected by an external synchronization mechanism[0;0m
[0;36m48 |[0;0m
[0;36m49 |[0;0m /// Black rights.
/host/spi-builder-workspace/Sources/SwiftChessCore/CastlingRights.swift:50:23: [1;33mwarning: [1;39mstatic property 'black' is not concurrency-safe because non-'Sendable' type '[CastlingRights.Right]' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m25 |[0;0m
[0;36m26 |[0;0m /// A castling right.
[0;36m27 |[0;0m public enum Right: String, CustomStringConvertible {
[0;36m|[0;0m `- [1;39mnote: [1;39mconsider making enum 'Right' conform to the 'Sendable' protocol[0;0m
[0;36m28 |[0;0m
[0;36m29 |[0;0m /// White can castle kingside.
[0;36m:[0;0m
[0;36m48 |[0;0m
[0;36m49 |[0;0m /// Black rights.
[0;36m50 |[0;0m public static let black: [Right] = all.filter({ $0.color.isBlack })
[0;36m|[0;0m |- [1;33mwarning: [1;39mstatic property 'black' is not concurrency-safe because non-'Sendable' type '[CastlingRights.Right]' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m|[0;0m |- [1;39mnote: [1;39madd '@MainActor' to make static property 'black' part of global actor 'MainActor'[0;0m
[0;36m|[0;0m `- [1;39mnote: [1;39mdisable concurrency-safety checks if accesses are protected by an external synchronization mechanism[0;0m
[0;36m51 |[0;0m
[0;36m52 |[0;0m /// Kingside rights.
/host/spi-builder-workspace/Sources/SwiftChessCore/CastlingRights.swift:53:23: [1;33mwarning: [1;39mstatic property 'kingside' is not concurrency-safe because non-'Sendable' type '[CastlingRights.Right]' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m25 |[0;0m
[0;36m26 |[0;0m /// A castling right.
[0;36m27 |[0;0m public enum Right: String, CustomStringConvertible {
[0;36m|[0;0m `- [1;39mnote: [1;39mconsider making enum 'Right' conform to the 'Sendable' protocol[0;0m
[0;36m28 |[0;0m
[0;36m29 |[0;0m /// White can castle kingside.
[0;36m:[0;0m
[0;36m51 |[0;0m
[0;36m52 |[0;0m /// Kingside rights.
[0;36m53 |[0;0m public static let kingside: [Right] = all.filter({ $0.side.isKingside })
[0;36m|[0;0m |- [1;33mwarning: [1;39mstatic property 'kingside' is not concurrency-safe because non-'Sendable' type '[CastlingRights.Right]' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m|[0;0m |- [1;39mnote: [1;39madd '@MainActor' to make static property 'kingside' part of global actor 'MainActor'[0;0m
[0;36m|[0;0m `- [1;39mnote: [1;39mdisable concurrency-safety checks if accesses are protected by an external synchronization mechanism[0;0m
[0;36m54 |[0;0m
[0;36m55 |[0;0m /// Queenside rights.
/host/spi-builder-workspace/Sources/SwiftChessCore/CastlingRights.swift:56:23: [1;33mwarning: [1;39mstatic property 'queenside' is not concurrency-safe because non-'Sendable' type '[CastlingRights.Right]' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m25 |[0;0m
[0;36m26 |[0;0m /// A castling right.
[0;36m27 |[0;0m public enum Right: String, CustomStringConvertible {
[0;36m|[0;0m `- [1;39mnote: [1;39mconsider making enum 'Right' conform to the 'Sendable' protocol[0;0m
[0;36m28 |[0;0m
[0;36m29 |[0;0m /// White can castle kingside.
[0;36m:[0;0m
[0;36m54 |[0;0m
[0;36m55 |[0;0m /// Queenside rights.
[0;36m56 |[0;0m public static let queenside: [Right] = all.filter({ $0.side.isQueenside })
[0;36m|[0;0m |- [1;33mwarning: [1;39mstatic property 'queenside' is not concurrency-safe because non-'Sendable' type '[CastlingRights.Right]' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m|[0;0m |- [1;39mnote: [1;39madd '@MainActor' to make static property 'queenside' part of global actor 'MainActor'[0;0m
[0;36m|[0;0m `- [1;39mnote: [1;39mdisable concurrency-safety checks if accesses are protected by an external synchronization mechanism[0;0m
[0;36m57 |[0;0m
[0;36m58 |[0;0m /// The color for `self`.
/host/spi-builder-workspace/Sources/SwiftChessCore/CastlingRights.swift:176:21: [1;33mwarning: [1;39mstatic property 'all' is not concurrency-safe because non-'Sendable' type 'CastlingRights' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m22 |[0;0m ///
[0;36m23 |[0;0m /// Defines whether a `Color` has the right to castle for a `Board.Side`.
[0;36m24 |[0;0m public struct CastlingRights: CustomStringConvertible {
[0;36m|[0;0m `- [1;39mnote: [1;39mconsider making struct 'CastlingRights' conform to the 'Sendable' protocol[0;0m
[0;36m25 |[0;0m
[0;36m26 |[0;0m /// A castling right.
[0;36m:[0;0m
[0;36m174 |[0;0m
[0;36m175 |[0;0m /// All castling rights.
[0;36m176 |[0;0m public static let all = CastlingRights(Right.all)
[0;36m|[0;0m |- [1;33mwarning: [1;39mstatic property 'all' is not concurrency-safe because non-'Sendable' type 'CastlingRights' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m|[0;0m |- [1;39mnote: [1;39madd '@MainActor' to make static property 'all' part of global actor 'MainActor'[0;0m
[0;36m|[0;0m `- [1;39mnote: [1;39mdisable concurrency-safety checks if accesses are protected by an external synchronization mechanism[0;0m
[0;36m177 |[0;0m
[0;36m178 |[0;0m /// White castling rights.
/host/spi-builder-workspace/Sources/SwiftChessCore/CastlingRights.swift:179:21: [1;33mwarning: [1;39mstatic property 'white' is not concurrency-safe because non-'Sendable' type 'CastlingRights' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m22 |[0;0m ///
[0;36m23 |[0;0m /// Defines whether a `Color` has the right to castle for a `Board.Side`.
[0;36m24 |[0;0m public struct CastlingRights: CustomStringConvertible {
[0;36m|[0;0m `- [1;39mnote: [1;39mconsider making struct 'CastlingRights' conform to the 'Sendable' protocol[0;0m
[0;36m25 |[0;0m
[0;36m26 |[0;0m /// A castling right.
[0;36m:[0;0m
[0;36m177 |[0;0m
[0;36m178 |[0;0m /// White castling rights.
[0;36m179 |[0;0m public static let white = CastlingRights(Right.white)
[0;36m|[0;0m |- [1;33mwarning: [1;39mstatic property 'white' is not concurrency-safe because non-'Sendable' type 'CastlingRights' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m|[0;0m |- [1;39mnote: [1;39madd '@MainActor' to make static property 'white' part of global actor 'MainActor'[0;0m
[0;36m|[0;0m `- [1;39mnote: [1;39mdisable concurrency-safety checks if accesses are protected by an external synchronization mechanism[0;0m
[0;36m180 |[0;0m
[0;36m181 |[0;0m /// Black castling rights.
/host/spi-builder-workspace/Sources/SwiftChessCore/CastlingRights.swift:182:21: [1;33mwarning: [1;39mstatic property 'black' is not concurrency-safe because non-'Sendable' type 'CastlingRights' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m22 |[0;0m ///
[0;36m23 |[0;0m /// Defines whether a `Color` has the right to castle for a `Board.Side`.
[0;36m24 |[0;0m public struct CastlingRights: CustomStringConvertible {
[0;36m|[0;0m `- [1;39mnote: [1;39mconsider making struct 'CastlingRights' conform to the 'Sendable' protocol[0;0m
[0;36m25 |[0;0m
[0;36m26 |[0;0m /// A castling right.
[0;36m:[0;0m
[0;36m180 |[0;0m
[0;36m181 |[0;0m /// Black castling rights.
[0;36m182 |[0;0m public static let black = CastlingRights(Right.black)
[0;36m|[0;0m |- [1;33mwarning: [1;39mstatic property 'black' is not concurrency-safe because non-'Sendable' type 'CastlingRights' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m|[0;0m |- [1;39mnote: [1;39madd '@MainActor' to make static property 'black' part of global actor 'MainActor'[0;0m
[0;36m|[0;0m `- [1;39mnote: [1;39mdisable concurrency-safety checks if accesses are protected by an external synchronization mechanism[0;0m
[0;36m183 |[0;0m
[0;36m184 |[0;0m /// Kingside castling rights.
/host/spi-builder-workspace/Sources/SwiftChessCore/CastlingRights.swift:185:21: [1;33mwarning: [1;39mstatic property 'kingside' is not concurrency-safe because non-'Sendable' type 'CastlingRights' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m22 |[0;0m ///
[0;36m23 |[0;0m /// Defines whether a `Color` has the right to castle for a `Board.Side`.
[0;36m24 |[0;0m public struct CastlingRights: CustomStringConvertible {
[0;36m|[0;0m `- [1;39mnote: [1;39mconsider making struct 'CastlingRights' conform to the 'Sendable' protocol[0;0m
[0;36m25 |[0;0m
[0;36m26 |[0;0m /// A castling right.
[0;36m:[0;0m
[0;36m183 |[0;0m
[0;36m184 |[0;0m /// Kingside castling rights.
[0;36m185 |[0;0m public static let kingside = CastlingRights(Right.kingside)
[0;36m|[0;0m |- [1;33mwarning: [1;39mstatic property 'kingside' is not concurrency-safe because non-'Sendable' type 'CastlingRights' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m|[0;0m |- [1;39mnote: [1;39madd '@MainActor' to make static property 'kingside' part of global actor 'MainActor'[0;0m
[0;36m|[0;0m `- [1;39mnote: [1;39mdisable concurrency-safety checks if accesses are protected by an external synchronization mechanism[0;0m
[0;36m186 |[0;0m
[0;36m187 |[0;0m /// Queenside castling rights.
/host/spi-builder-workspace/Sources/SwiftChessCore/CastlingRights.swift:188:21: [1;33mwarning: [1;39mstatic property 'queenside' is not concurrency-safe because non-'Sendable' type 'CastlingRights' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m22 |[0;0m ///
[0;36m23 |[0;0m /// Defines whether a `Color` has the right to castle for a `Board.Side`.
[0;36m24 |[0;0m public struct CastlingRights: CustomStringConvertible {
[0;36m|[0;0m `- [1;39mnote: [1;39mconsider making struct 'CastlingRights' conform to the 'Sendable' protocol[0;0m
[0;36m25 |[0;0m
[0;36m26 |[0;0m /// A castling right.
[0;36m:[0;0m
[0;36m186 |[0;0m
[0;36m187 |[0;0m /// Queenside castling rights.
[0;36m188 |[0;0m public static let queenside = CastlingRights(Right.queenside)
[0;36m|[0;0m |- [1;33mwarning: [1;39mstatic property 'queenside' is not concurrency-safe because non-'Sendable' type 'CastlingRights' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m|[0;0m |- [1;39mnote: [1;39madd '@MainActor' to make static property 'queenside' part of global actor 'MainActor'[0;0m
[0;36m|[0;0m `- [1;39mnote: [1;39mdisable concurrency-safety checks if accesses are protected by an external synchronization mechanism[0;0m
[0;36m189 |[0;0m
[0;36m190 |[0;0m /// The rights.
[#MutableGlobalVariable]: <https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable>
/host/spi-builder-workspace/Sources/SwiftChessCore/Color.swift:31:23: [1;33mwarning: [1;39mstatic property '_white' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m20 |[0;0m
[0;36m21 |[0;0m /// A chess color.
[0;36m22 |[0;0m public enum Color: String, CustomStringConvertible {
[0;36m|[0;0m `- [1;39mnote: [1;39mconsider making enum 'Color' conform to the 'Sendable' protocol[0;0m
[0;36m23 |[0;0m
[0;36m24 |[0;0m /// White chess color.
[0;36m:[0;0m
[0;36m29 |[0;0m
[0;36m30 |[0;0m /// White color regardless of Swift version.
[0;36m31 |[0;0m internal static let _white = Color.white
[0;36m|[0;0m |- [1;33mwarning: [1;39mstatic property '_white' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m|[0;0m |- [1;39mnote: [1;39madd '@MainActor' to make static property '_white' part of global actor 'MainActor'[0;0m
[0;36m|[0;0m `- [1;39mnote: [1;39mdisable concurrency-safety checks if accesses are protected by an external synchronization mechanism[0;0m
[0;36m32 |[0;0m
[0;36m33 |[0;0m /// Black color regardless of Swift version.
/host/spi-builder-workspace/Sources/SwiftChessCore/Color.swift:34:23: [1;33mwarning: [1;39mstatic property '_black' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m20 |[0;0m
[0;36m21 |[0;0m /// A chess color.
[0;36m22 |[0;0m public enum Color: String, CustomStringConvertible {
[0;36m|[0;0m `- [1;39mnote: [1;39mconsider making enum 'Color' conform to the 'Sendable' protocol[0;0m
[0;36m23 |[0;0m
[0;36m24 |[0;0m /// White chess color.
[0;36m:[0;0m
[0;36m32 |[0;0m
[0;36m33 |[0;0m /// Black color regardless of Swift version.
[0;36m34 |[0;0m internal static let _black = Color.black
[0;36m|[0;0m |- [1;33mwarning: [1;39mstatic property '_black' is not concurrency-safe because non-'Sendable' type 'Color' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m|[0;0m |- [1;39mnote: [1;39madd '@MainActor' to make static property '_black' part of global actor 'MainActor'[0;0m
[0;36m|[0;0m `- [1;39mnote: [1;39mdisable concurrency-safety checks if accesses are protected by an external synchronization mechanism[0;0m
[0;36m35 |[0;0m
[0;36m36 |[0;0m /// An array of all colors.
/host/spi-builder-workspace/Sources/SwiftChessCore/Color.swift:37:21: [1;33mwarning: [1;39mstatic property 'all' is not concurrency-safe because non-'Sendable' type '[Color]' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m20 |[0;0m
[0;36m21 |[0;0m /// A chess color.
[0;36m22 |[0;0m public enum Color: String, CustomStringConvertible {
[0;36m|[0;0m `- [1;39mnote: [1;39mconsider making enum 'Color' conform to the 'Sendable' protocol[0;0m
[0;36m23 |[0;0m
[0;36m24 |[0;0m /// White chess color.
[0;36m:[0;0m
[0;36m35 |[0;0m
[0;36m36 |[0;0m /// An array of all colors.
[0;36m37 |[0;0m public static let all: [Color] = [.white, .black]
[0;36m|[0;0m |- [1;33mwarning: [1;39mstatic property 'all' is not concurrency-safe because non-'Sendable' type '[Color]' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m|[0;0m |- [1;39mnote: [1;39madd '@MainActor' to make static property 'all' part of global actor 'MainActor'[0;0m
[0;36m|[0;0m `- [1;39mnote: [1;39mdisable concurrency-safety checks if accesses are protected by an external synchronization mechanism[0;0m
[0;36m38 |[0;0m
[0;36m39 |[0;0m /// Whether the color is white or not.
/host/spi-builder-workspace/Sources/SwiftChessCore/File.swift:62:23: [1;33mwarning: [1;39mstatic property '_a' is not concurrency-safe because non-'Sendable' type 'File' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m22 |[0;0m ///
[0;36m23 |[0;0m /// Files refer to the eight columns of a chess board, beginning with A and ending with H from left to right.
[0;36m24 |[0;0m public enum File: Int, Comparable, CustomStringConvertible {
[0;36m|[0;0m `- [1;39mnote: [1;39mconsider making enum 'File' conform to the 'Sendable' protocol[0;0m
[0;36m25 |[0;0m
[0;36m26 |[0;0m /// A direction in file.
[0;36m:[0;0m
[0;36m60 |[0;0m
[0;36m61 |[0;0m /// A regardless of Swift version.
[0;36m62 |[0;0m internal static let _a = File.a
[0;36m|[0;0m |- [1;33mwarning: [1;39mstatic property '_a' is not concurrency-safe because non-'Sendable' type 'File' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m|[0;0m |- [1;39mnote: [1;39madd '@MainActor' to make static property '_a' part of global actor 'MainActor'[0;0m
[0;36m|[0;0m `- [1;39mnote: [1;39mdisable concurrency-safety checks if accesses are protected by an external synchronization mechanism[0;0m
[0;36m63 |[0;0m
[0;36m64 |[0;0m /// B regardless of Swift version.
/host/spi-builder-workspace/Sources/SwiftChessCore/File.swift:65:23: [1;33mwarning: [1;39mstatic property '_b' is not concurrency-safe because non-'Sendable' type 'File' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m22 |[0;0m ///
[0;36m23 |[0;0m /// Files refer to the eight columns of a chess board, beginning with A and ending with H from left to right.
[0;36m24 |[0;0m public enum File: Int, Comparable, CustomStringConvertible {
[0;36m|[0;0m `- [1;39mnote: [1;39mconsider making enum 'File' conform to the 'Sendable' protocol[0;0m
[0;36m25 |[0;0m
[0;36m26 |[0;0m /// A direction in file.
[0;36m:[0;0m
[0;36m63 |[0;0m
[0;36m64 |[0;0m /// B regardless of Swift version.
[0;36m65 |[0;0m internal static let _b = File.b
[0;36m|[0;0m |- [1;33mwarning: [1;39mstatic property '_b' is not concurrency-safe because non-'Sendable' type 'File' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m|[0;0m |- [1;39mnote: [1;39madd '@MainActor' to make static property '_b' part of global actor 'MainActor'[0;0m
[0;36m|[0;0m `- [1;39mnote: [1;39mdisable concurrency-safety checks if accesses are protected by an external synchronization mechanism[0;0m
[0;36m66 |[0;0m
[0;36m67 |[0;0m /// C regardless of Swift version.
/host/spi-builder-workspace/Sources/SwiftChessCore/File.swift:68:23: [1;33mwarning: [1;39mstatic property '_c' is not concurrency-safe because non-'Sendable' type 'File' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m22 |[0;0m ///
[0;36m23 |[0;0m /// Files refer to the eight columns of a chess board, beginning with A and ending with H from left to right.
[0;36m24 |[0;0m public enum File: Int, Comparable, CustomStringConvertible {
[0;36m|[0;0m `- [1;39mnote: [1;39mconsider making enum 'File' conform to the 'Sendable' protocol[0;0m
[0;36m25 |[0;0m
[0;36m26 |[0;0m /// A direction in file.
[0;36m:[0;0m
[0;36m66 |[0;0m
[0;36m67 |[0;0m /// C regardless of Swift version.
[0;36m68 |[0;0m internal static let _c = File.c
[0;36m|[0;0m |- [1;33mwarning: [1;39mstatic property '_c' is not concurrency-safe because non-'Sendable' type 'File' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m|[0;0m |- [1;39mnote: [1;39madd '@MainActor' to make static property '_c' part of global actor 'MainActor'[0;0m
[0;36m|[0;0m `- [1;39mnote: [1;39mdisable concurrency-safety checks if accesses are protected by an external synchronization mechanism[0;0m
[0;36m69 |[0;0m
[0;36m70 |[0;0m /// D regardless of Swift version.
/host/spi-builder-workspace/Sources/SwiftChessCore/File.swift:71:23: [1;33mwarning: [1;39mstatic property '_d' is not concurrency-safe because non-'Sendable' type 'File' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m22 |[0;0m ///
[0;36m23 |[0;0m /// Files refer to the eight columns of a chess board, beginning with A and ending with H from left to right.
[0;36m24 |[0;0m public enum File: Int, Comparable, CustomStringConvertible {
[0;36m|[0;0m `- [1;39mnote: [1;39mconsider making enum 'File' conform to the 'Sendable' protocol[0;0m
[0;36m25 |[0;0m
[0;36m26 |[0;0m /// A direction in file.
[0;36m:[0;0m
[0;36m69 |[0;0m
[0;36m70 |[0;0m /// D regardless of Swift version.
[0;36m71 |[0;0m internal static let _d = File.d
[0;36m|[0;0m |- [1;33mwarning: [1;39mstatic property '_d' is not concurrency-safe because non-'Sendable' type 'File' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m|[0;0m |- [1;39mnote: [1;39madd '@MainActor' to make static property '_d' part of global actor 'MainActor'[0;0m
[0;36m|[0;0m `- [1;39mnote: [1;39mdisable concurrency-safety checks if accesses are protected by an external synchronization mechanism[0;0m
[0;36m72 |[0;0m
[0;36m73 |[0;0m /// E regardless of Swift version.
/host/spi-builder-workspace/Sources/SwiftChessCore/File.swift:74:23: [1;33mwarning: [1;39mstatic property '_e' is not concurrency-safe because non-'Sendable' type 'File' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m22 |[0;0m ///
[0;36m23 |[0;0m /// Files refer to the eight columns of a chess board, beginning with A and ending with H from left to right.
[0;36m24 |[0;0m public enum File: Int, Comparable, CustomStringConvertible {
[0;36m|[0;0m `- [1;39mnote: [1;39mconsider making enum 'File' conform to the 'Sendable' protocol[0;0m
[0;36m25 |[0;0m
[0;36m26 |[0;0m /// A direction in file.
[0;36m:[0;0m
[0;36m72 |[0;0m
[0;36m73 |[0;0m /// E regardless of Swift version.
[0;36m74 |[0;0m internal static let _e = File.e
[0;36m|[0;0m |- [1;33mwarning: [1;39mstatic property '_e' is not concurrency-safe because non-'Sendable' type 'File' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m|[0;0m |- [1;39mnote: [1;39madd '@MainActor' to make static property '_e' part of global actor 'MainActor'[0;0m
[0;36m|[0;0m `- [1;39mnote: [1;39mdisable concurrency-safety checks if accesses are protected by an external synchronization mechanism[0;0m
[0;36m75 |[0;0m
[0;36m76 |[0;0m /// F regardless of Swift version.
/host/spi-builder-workspace/Sources/SwiftChessCore/File.swift:77:23: [1;33mwarning: [1;39mstatic property '_f' is not concurrency-safe because non-'Sendable' type 'File' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m22 |[0;0m ///
[0;36m23 |[0;0m /// Files refer to the eight columns of a chess board, beginning with A and ending with H from left to right.
[0;36m24 |[0;0m public enum File: Int, Comparable, CustomStringConvertible {
[0;36m|[0;0m `- [1;39mnote: [1;39mconsider making enum 'File' conform to the 'Sendable' protocol[0;0m
[0;36m25 |[0;0m
[0;36m26 |[0;0m /// A direction in file.
[0;36m:[0;0m
[0;36m75 |[0;0m
[0;36m76 |[0;0m /// F regardless of Swift version.
[0;36m77 |[0;0m internal static let _f = File.f
[0;36m|[0;0m |- [1;33mwarning: [1;39mstatic property '_f' is not concurrency-safe because non-'Sendable' type 'File' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m|[0;0m |- [1;39mnote: [1;39madd '@MainActor' to make static property '_f' part of global actor 'MainActor'[0;0m
[0;36m|[0;0m `- [1;39mnote: [1;39mdisable concurrency-safety checks if accesses are protected by an external synchronization mechanism[0;0m
[0;36m78 |[0;0m
[0;36m79 |[0;0m /// G regardless of Swift version.
/host/spi-builder-workspace/Sources/SwiftChessCore/File.swift:80:23: [1;33mwarning: [1;39mstatic property '_g' is not concurrency-safe because non-'Sendable' type 'File' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m22 |[0;0m ///
[0;36m23 |[0;0m /// Files refer to the eight columns of a chess board, beginning with A and ending with H from left to right.
[0;36m24 |[0;0m public enum File: Int, Comparable, CustomStringConvertible {
[0;36m|[0;0m `- [1;39mnote: [1;39mconsider making enum 'File' conform to the 'Sendable' protocol[0;0m
[0;36m25 |[0;0m
[0;36m26 |[0;0m /// A direction in file.
[0;36m:[0;0m
[0;36m78 |[0;0m
[0;36m79 |[0;0m /// G regardless of Swift version.
[0;36m80 |[0;0m internal static let _g = File.g
[0;36m|[0;0m |- [1;33mwarning: [1;39mstatic property '_g' is not concurrency-safe because non-'Sendable' type 'File' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m|[0;0m |- [1;39mnote: [1;39madd '@MainActor' to make static property '_g' part of global actor 'MainActor'[0;0m
[0;36m|[0;0m `- [1;39mnote: [1;39mdisable concurrency-safety checks if accesses are protected by an external synchronization mechanism[0;0m
[0;36m81 |[0;0m
[0;36m82 |[0;0m /// H regardless of Swift version.
/host/spi-builder-workspace/Sources/SwiftChessCore/File.swift:83:23: [1;33mwarning: [1;39mstatic property '_h' is not concurrency-safe because non-'Sendable' type 'File' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m22 |[0;0m ///
[0;36m23 |[0;0m /// Files refer to the eight columns of a chess board, beginning with A and ending with H from left to right.
[0;36m24 |[0;0m public enum File: Int, Comparable, CustomStringConvertible {
[0;36m|[0;0m `- [1;39mnote: [1;39mconsider making enum 'File' conform to the 'Sendable' protocol[0;0m
[0;36m25 |[0;0m
[0;36m26 |[0;0m /// A direction in file.
[0;36m:[0;0m
[0;36m81 |[0;0m
[0;36m82 |[0;0m /// H regardless of Swift version.
[0;36m83 |[0;0m internal static let _h = File.h
[0;36m|[0;0m |- [1;33mwarning: [1;39mstatic property '_h' is not concurrency-safe because non-'Sendable' type 'File' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m|[0;0m |- [1;39mnote: [1;39madd '@MainActor' to make static property '_h' part of global actor 'MainActor'[0;0m
[0;36m|[0;0m `- [1;39mnote: [1;39mdisable concurrency-safety checks if accesses are protected by an external synchronization mechanism[0;0m
[0;36m84 |[0;0m
[0;36m85 |[0;0m }
/host/spi-builder-workspace/Sources/SwiftChessCore/File.swift:90:21: [1;33mwarning: [1;39mstatic property 'all' is not concurrency-safe because non-'Sendable' type '[File]' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m22 |[0;0m ///
[0;36m23 |[0;0m /// Files refer to the eight columns of a chess board, beginning with A and ending with H from left to right.
[0;36m24 |[0;0m public enum File: Int, Comparable, CustomStringConvertible {
[0;36m|[0;0m `- [1;39mnote: [1;39mconsider making enum 'File' conform to the 'Sendable' protocol[0;0m
[0;36m25 |[0;0m
[0;36m26 |[0;0m /// A direction in file.
[0;36m:[0;0m
[0;36m88 |[0;0m
[0;36m89 |[0;0m /// An array of all files.
[0;36m90 |[0;0m public static let all: [File] = [.a, .b, .c, .d, .e, .f, .g, .h]
[0;36m|[0;0m |- [1;33mwarning: [1;39mstatic property 'all' is not concurrency-safe because non-'Sendable' type '[File]' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m|[0;0m |- [1;39mnote: [1;39madd '@MainActor' to make static property 'all' part of global actor 'MainActor'[0;0m
[0;36m|[0;0m `- [1;39mnote: [1;39mdisable concurrency-safety checks if accesses are protected by an external synchronization mechanism[0;0m
[0;36m91 |[0;0m
[0;36m92 |[0;0m /// The column index of `self`.
/host/spi-builder-workspace/Sources/SwiftChessCore/Game.swift:35:25: [1;33mwarning: [1;39mstatic property '_draw' is not concurrency-safe because non-'Sendable' type 'Game.Outcome' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m24 |[0;0m
[0;36m25 |[0;0m /// A chess game outcome.
[0;36m26 |[0;0m public enum Outcome: Hashable, CustomStringConvertible {
[0;36m|[0;0m `- [1;39mnote: [1;39mconsider making enum 'Outcome' conform to the 'Sendable' protocol[0;0m
[0;36m27 |[0;0m
[0;36m28 |[0;0m /// A win for a `Color`.
[0;36m:[0;0m
[0;36m33 |[0;0m
[0;36m34 |[0;0m /// Draw.
[0;36m35 |[0;0m internal static let _draw = Outcome.draw
[0;36m|[0;0m |- [1;33mwarning: [1;39mstatic property '_draw' is not concurrency-safe because non-'Sendable' type 'Game.Outcome' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m|[0;0m |- [1;39mnote: [1;39madd '@MainActor' to make static property '_draw' part of global actor 'MainActor'[0;0m
[0;36m|[0;0m `- [1;39mnote: [1;39mdisable concurrency-safety checks if accesses are protected by an external synchronization mechanism[0;0m
[0;36m36 |[0;0m
[0;36m37 |[0;0m /// Win.
/host/spi-builder-workspace/Sources/SwiftChessCore/Game.swift:240:10: [1;33mwarning: [1;39massociated value 'wrongKingCount' of 'Sendable'-conforming enum 'PositionError' has non-Sendable type 'Color'[0;0m
[0;36m238 |[0;0m
[0;36m239 |[0;0m /// Found number other than 1 for king count.
[0;36m240 |[0;0m case wrongKingCount(Color)
[0;36m|[0;0m `- [1;33mwarning: [1;39massociated value 'wrongKingCount' of 'Sendable'-conforming enum 'PositionError' has non-Sendable type 'Color'[0;0m
[0;36m241 |[0;0m
[0;36m242 |[0;0m /// King missing for castling right.
/host/spi-builder-workspace/Sources/SwiftChessCore/Color.swift:22:13: [1;39mnote: [1;39mconsider making enum 'Color' conform to the 'Sendable' protocol[0;0m
[0;36m20 |[0;0m
[0;36m21 |[0;0m /// A chess color.
[0;36m22 |[0;0m public enum Color: String, CustomStringConvertible {
[0;36m|[0;0m `- [1;39mnote: [1;39mconsider making enum 'Color' conform to the 'Sendable' protocol[0;0m
[0;36m23 |[0;0m
[0;36m24 |[0;0m /// White chess color.
/host/spi-builder-workspace/Sources/SwiftChessCore/Game.swift:243:10: [1;33mwarning: [1;39massociated value 'missingKing' of 'Sendable'-conforming enum 'PositionError' has non-Sendable type 'CastlingRights.Right'[0;0m
[0;36m241 |[0;0m
[0;36m242 |[0;0m /// King missing for castling right.
[0;36m243 |[0;0m case missingKing(CastlingRights.Right)
[0;36m|[0;0m `- [1;33mwarning: [1;39massociated value 'missingKing' of 'Sendable'-conforming enum 'PositionError' has non-Sendable type 'CastlingRights.Right'[0;0m
[0;36m244 |[0;0m
[0;36m245 |[0;0m /// Rook missing for castling right.
/host/spi-builder-workspace/Sources/SwiftChessCore/CastlingRights.swift:27:15: [1;39mnote: [1;39mconsider making enum 'Right' conform to the 'Sendable' protocol[0;0m
[0;36m25 |[0;0m
[0;36m26 |[0;0m /// A castling right.
[0;36m27 |[0;0m public enum Right: String, CustomStringConvertible {
[0;36m|[0;0m `- [1;39mnote: [1;39mconsider making enum 'Right' conform to the 'Sendable' protocol[0;0m
[0;36m28 |[0;0m
[0;36m29 |[0;0m /// White can castle kingside.
/host/spi-builder-workspace/Sources/SwiftChessCore/Game.swift:246:10: [1;33mwarning: [1;39massociated value 'missingRook' of 'Sendable'-conforming enum 'PositionError' has non-Sendable type 'CastlingRights.Right'[0;0m
[0;36m244 |[0;0m
[0;36m245 |[0;0m /// Rook missing for castling right.
[0;36m246 |[0;0m case missingRook(CastlingRights.Right)
[0;36m|[0;0m `- [1;33mwarning: [1;39massociated value 'missingRook' of 'Sendable'-conforming enum 'PositionError' has non-Sendable type 'CastlingRights.Right'[0;0m
[0;36m247 |[0;0m
[0;36m248 |[0;0m /// Wrong rank for en passant target.
/host/spi-builder-workspace/Sources/SwiftChessCore/CastlingRights.swift:27:15: [1;39mnote: [1;39mconsider making enum 'Right' conform to the 'Sendable' protocol[0;0m
[0;36m25 |[0;0m
[0;36m26 |[0;0m /// A castling right.
[0;36m27 |[0;0m public enum Right: String, CustomStringConvertible {
[0;36m|[0;0m `- [1;39mnote: [1;39mconsider making enum 'Right' conform to the 'Sendable' protocol[0;0m
[0;36m28 |[0;0m
[0;36m29 |[0;0m /// White can castle kingside.
/host/spi-builder-workspace/Sources/SwiftChessCore/Game.swift:249:10: [1;33mwarning: [1;39massociated value 'wrongEnPassantTargetRank' of 'Sendable'-conforming enum 'PositionError' has non-Sendable type 'Rank'[0;0m
[0;36m247 |[0;0m
[0;36m248 |[0;0m /// Wrong rank for en passant target.
[0;36m249 |[0;0m case wrongEnPassantTargetRank(Rank)
[0;36m|[0;0m `- [1;33mwarning: [1;39massociated value 'wrongEnPassantTargetRank' of 'Sendable'-conforming enum 'PositionError' has non-Sendable type 'Rank'[0;0m
[0;36m250 |[0;0m
[0;36m251 |[0;0m /// Non empty en passant target square.
/host/spi-builder-workspace/Sources/SwiftChessCore/Rank.swift:24:13: [1;39mnote: [1;39mconsider making enum 'Rank' conform to the 'Sendable' protocol[0;0m
[0;36m22 |[0;0m ///
[0;36m23 |[0;0m /// `Rank`s refer to the eight rows of a chess board, beginning with 1 at the bottom and ending with 8 at the top.
[0;36m24 |[0;0m public enum Rank: Int, Comparable, CustomStringConvertible {
[0;36m|[0;0m `- [1;39mnote: [1;39mconsider making enum 'Rank' conform to the 'Sendable' protocol[0;0m
[0;36m25 |[0;0m
[0;36m26 |[0;0m /// A direction in rank.
/host/spi-builder-workspace/Sources/SwiftChessCore/Game.swift:252:10: [1;33mwarning: [1;39massociated value 'nonEmptyEnPassantTarget' of 'Sendable'-conforming enum 'PositionError' contains non-Sendable type 'Square'[0;0m
[0;36m250 |[0;0m
[0;36m251 |[0;0m /// Non empty en passant target square.
[0;36m252 |[0;0m case nonEmptyEnPassantTarget(Square, Piece)
[0;36m|[0;0m `- [1;33mwarning: [1;39massociated value 'nonEmptyEnPassantTarget' of 'Sendable'-conforming enum 'PositionError' contains non-Sendable type 'Square'[0;0m
[0;36m253 |[0;0m
[0;36m254 |[0;0m /// Pawn missing for previous en passant.
/host/spi-builder-workspace/Sources/SwiftChessCore/Square.swift:27:13: [1;39mnote: [1;39mconsider making enum 'Square' conform to the 'Sendable' protocol[0;0m
[0;36m25 |[0;0m ///
[0;36m26 |[0;0m /// A `Square` can be one of sixty-four possible values, ranging from `A1` to `H8`.
[0;36m27 |[0;0m public enum Square: Int, CustomStringConvertible {
[0;36m|[0;0m `- [1;39mnote: [1;39mconsider making enum 'Square' conform to the 'Sendable' protocol[0;0m
[0;36m28 |[0;0m
[0;36m29 |[0;0m /// A1 square.
/host/spi-builder-workspace/Sources/SwiftChessCore/Game.swift:252:10: [1;33mwarning: [1;39massociated value 'nonEmptyEnPassantTarget' of 'Sendable'-conforming enum 'PositionError' contains non-Sendable type 'Piece'[0;0m
[0;36m250 |[0;0m
[0;36m251 |[0;0m /// Non empty en passant target square.
[0;36m252 |[0;0m case nonEmptyEnPassantTarget(Square, Piece)
[0;36m|[0;0m `- [1;33mwarning: [1;39massociated value 'nonEmptyEnPassantTarget' of 'Sendable'-conforming enum 'PositionError' contains non-Sendable type 'Piece'[0;0m
[0;36m253 |[0;0m
[0;36m254 |[0;0m /// Pawn missing for previous en passant.
/host/spi-builder-workspace/Sources/SwiftChessCore/Piece.swift:22:15: [1;39mnote: [1;39mconsider making struct 'Piece' conform to the 'Sendable' protocol[0;0m
[0;36m20 |[0;0m
[0;36m21 |[0;0m /// A chess piece.
[0;36m22 |[0;0m public struct Piece: Hashable, CustomStringConvertible {
[0;36m|[0;0m `- [1;39mnote: [1;39mconsider making struct 'Piece' conform to the 'Sendable' protocol[0;0m
[0;36m23 |[0;0m
[0;36m24 |[0;0m /// A piece kind.
/host/spi-builder-workspace/Sources/SwiftChessCore/Game.swift:255:10: [1;33mwarning: [1;39massociated value 'missingEnPassantPawn' of 'Sendable'-conforming enum 'PositionError' has non-Sendable type 'Square'[0;0m
[0;36m253 |[0;0m
[0;36m254 |[0;0m /// Pawn missing for previous en passant.
[0;36m255 |[0;0m case missingEnPassantPawn(Square)
[0;36m|[0;0m `- [1;33mwarning: [1;39massociated value 'missingEnPassantPawn' of 'Sendable'-conforming enum 'PositionError' has non-Sendable type 'Square'[0;0m
[0;36m256 |[0;0m
[0;36m257 |[0;0m /// Piece found at start of en passant move.
/host/spi-builder-workspace/Sources/SwiftChessCore/Square.swift:27:13: [1;39mnote: [1;39mconsider making enum 'Square' conform to the 'Sendable' protocol[0;0m
[0;36m25 |[0;0m ///
[0;36m26 |[0;0m /// A `Square` can be one of sixty-four possible values, ranging from `A1` to `H8`.
[0;36m27 |[0;0m public enum Square: Int, CustomStringConvertible {
[0;36m|[0;0m `- [1;39mnote: [1;39mconsider making enum 'Square' conform to the 'Sendable' protocol[0;0m
[0;36m28 |[0;0m
[0;36m29 |[0;0m /// A1 square.
/host/spi-builder-workspace/Sources/SwiftChessCore/Game.swift:258:10: [1;33mwarning: [1;39massociated value 'nonEmptyEnPassantSquare' of 'Sendable'-conforming enum 'PositionError' contains non-Sendable type 'Square'[0;0m
[0;36m256 |[0;0m
[0;36m257 |[0;0m /// Piece found at start of en passant move.
[0;36m258 |[0;0m case nonEmptyEnPassantSquare(Square, Piece)
[0;36m|[0;0m `- [1;33mwarning: [1;39massociated value 'nonEmptyEnPassantSquare' of 'Sendable'-conforming enum 'PositionError' contains non-Sendable type 'Square'[0;0m
[0;36m259 |[0;0m
[0;36m260 |[0;0m }
/host/spi-builder-workspace/Sources/SwiftChessCore/Square.swift:27:13: [1;39mnote: [1;39mconsider making enum 'Square' conform to the 'Sendable' protocol[0;0m
[0;36m25 |[0;0m ///
[0;36m26 |[0;0m /// A `Square` can be one of sixty-four possible values, ranging from `A1` to `H8`.
[0;36m27 |[0;0m public enum Square: Int, CustomStringConvertible {
[0;36m|[0;0m `- [1;39mnote: [1;39mconsider making enum 'Square' conform to the 'Sendable' protocol[0;0m
[0;36m28 |[0;0m
[0;36m29 |[0;0m /// A1 square.
/host/spi-builder-workspace/Sources/SwiftChessCore/Game.swift:258:10: [1;33mwarning: [1;39massociated value 'nonEmptyEnPassantSquare' of 'Sendable'-conforming enum 'PositionError' contains non-Sendable type 'Piece'[0;0m
[0;36m256 |[0;0m
[0;36m257 |[0;0m /// Piece found at start of en passant move.
[0;36m258 |[0;0m case nonEmptyEnPassantSquare(Square, Piece)
[0;36m|[0;0m `- [1;33mwarning: [1;39massociated value 'nonEmptyEnPassantSquare' of 'Sendable'-conforming enum 'PositionError' contains non-Sendable type 'Piece'[0;0m
[0;36m259 |[0;0m
[0;36m260 |[0;0m }
/host/spi-builder-workspace/Sources/SwiftChessCore/Piece.swift:22:15: [1;39mnote: [1;39mconsider making struct 'Piece' conform to the 'Sendable' protocol[0;0m
[0;36m20 |[0;0m
[0;36m21 |[0;0m /// A chess piece.
[0;36m22 |[0;0m public struct Piece: Hashable, CustomStringConvertible {
[0;36m|[0;0m `- [1;39mnote: [1;39mconsider making struct 'Piece' conform to the 'Sendable' protocol[0;0m
[0;36m23 |[0;0m
[0;36m24 |[0;0m /// A piece kind.
/host/spi-builder-workspace/Sources/SwiftChessCore/Game.swift:268:10: [1;33mwarning: [1;39massociated value 'missingPiece' of 'Sendable'-conforming enum 'ExecutionError' has non-Sendable type 'Square'[0;0m
[0;36m266 |[0;0m
[0;36m267 |[0;0m /// Missing piece at a square.
[0;36m268 |[0;0m case missingPiece(Square)
[0;36m|[0;0m `- [1;33mwarning: [1;39massociated value 'missingPiece' of 'Sendable'-conforming enum 'ExecutionError' has non-Sendable type 'Square'[0;0m
[0;36m269 |[0;0m
[0;36m270 |[0;0m /// Attempted illegal move.
/host/spi-builder-workspace/Sources/SwiftChessCore/Square.swift:27:13: [1;39mnote: [1;39mconsider making enum 'Square' conform to the 'Sendable' protocol[0;0m
[0;36m25 |[0;0m ///
[0;36m26 |[0;0m /// A `Square` can be one of sixty-four possible values, ranging from `A1` to `H8`.
[0;36m27 |[0;0m public enum Square: Int, CustomStringConvertible {
[0;36m|[0;0m `- [1;39mnote: [1;39mconsider making enum 'Square' conform to the 'Sendable' protocol[0;0m
[0;36m28 |[0;0m
[0;36m29 |[0;0m /// A1 square.
/host/spi-builder-workspace/Sources/SwiftChessCore/Game.swift:271:10: [1;33mwarning: [1;39massociated value 'illegalMove' of 'Sendable'-conforming enum 'ExecutionError' contains non-Sendable type 'Move'[0;0m
[0;36m269 |[0;0m
[0;36m270 |[0;0m /// Attempted illegal move.
[0;36m271 |[0;0m case illegalMove(Move, Color, Board)
[0;36m|[0;0m `- [1;33mwarning: [1;39massociated value 'illegalMove' of 'Sendable'-conforming enum 'ExecutionError' contains non-Sendable type 'Move'[0;0m
[0;36m272 |[0;0m
[0;36m273 |[0;0m /// Could not promote with a piece kind.
/host/spi-builder-workspace/Sources/SwiftChessCore/Move.swift:22:15: [1;39mnote: [1;39mconsider making struct 'Move' conform to the 'Sendable' protocol[0;0m
[0;36m20 |[0;0m
[0;36m21 |[0;0m /// A chess move from a start `Square` to an end `Square`.
[0;36m22 |[0;0m public struct Move: Hashable, CustomStringConvertible {
[0;36m|[0;0m `- [1;39mnote: [1;39mconsider making struct 'Move' conform to the 'Sendable' protocol[0;0m
[0;36m23 |[0;0m
[0;36m24 |[0;0m /// The move's start square.
/host/spi-builder-workspace/Sources/SwiftChessCore/Game.swift:271:10: [1;33mwarning: [1;39massociated value 'illegalMove' of 'Sendable'-conforming enum 'ExecutionError' contains non-Sendable type 'Color'[0;0m
[0;36m269 |[0;0m
[0;36m270 |[0;0m /// Attempted illegal move.
[0;36m271 |[0;0m case illegalMove(Move, Color, Board)
[0;36m|[0;0m `- [1;33mwarning: [1;39massociated value 'illegalMove' of 'Sendable'-conforming enum 'ExecutionError' contains non-Sendable type 'Color'[0;0m
[0;36m272 |[0;0m
[0;36m273 |[0;0m /// Could not promote with a piece kind.
/host/spi-builder-workspace/Sources/SwiftChessCore/Color.swift:22:13: [1;39mnote: [1;39mconsider making enum 'Color' conform to the 'Sendable' protocol[0;0m
[0;36m20 |[0;0m
[0;36m21 |[0;0m /// A chess color.
[0;36m22 |[0;0m public enum Color: String, CustomStringConvertible {
[0;36m|[0;0m `- [1;39mnote: [1;39mconsider making enum 'Color' conform to the 'Sendable' protocol[0;0m
[0;36m23 |[0;0m
[0;36m24 |[0;0m /// White chess color.
/host/spi-builder-workspace/Sources/SwiftChessCore/Game.swift:271:10: [1;33mwarning: [1;39massociated value 'illegalMove' of 'Sendable'-conforming enum 'ExecutionError' contains non-Sendable type 'Board'[0;0m
[0;36m269 |[0;0m
[0;36m270 |[0;0m /// Attempted illegal move.
[0;36m271 |[0;0m case illegalMove(Move, Color, Board)
[0;36m|[0;0m `- [1;33mwarning: [1;39massociated value 'illegalMove' of 'Sendable'-conforming enum 'ExecutionError' contains non-Sendable type 'Board'[0;0m
[0;36m272 |[0;0m
[0;36m273 |[0;0m /// Could not promote with a piece kind.
/host/spi-builder-workspace/Sources/SwiftChessCore/Board.swift:24:15: [1;39mnote: [1;39mconsider making struct 'Board' conform to the 'Sendable' protocol[0;0m
[0;36m22 |[0;0m ///
[0;36m23 |[0;0m /// Pieces map to separate instances of `Bitboard` which can be retrieved with `bitboard(for:)`.
[0;36m24 |[0;0m public struct Board: Hashable, CustomStringConvertible {
[0;36m|[0;0m `- [1;39mnote: [1;39mconsider making struct 'Board' conform to the 'Sendable' protocol[0;0m
[0;36m25 |[0;0m
[0;36m26 |[0;0m /// A chess board space.
/host/spi-builder-workspace/Sources/SwiftChessCore/Game.swift:274:10: [1;33mwarning: [1;39massociated value 'invalidPromotion' of 'Sendable'-conforming enum 'ExecutionError' has non-Sendable type 'Piece.Kind'[0;0m
[0;36m272 |[0;0m
[0;36m273 |[0;0m /// Could not promote with a piece kind.
[0;36m274 |[0;0m case invalidPromotion(Piece.Kind)
[0;36m|[0;0m `- [1;33mwarning: [1;39massociated value 'invalidPromotion' of 'Sendable'-conforming enum 'ExecutionError' has non-Sendable type 'Piece.Kind'[0;0m
[0;36m275 |[0;0m
[0;36m276 |[0;0m /// The error message.
/host/spi-builder-workspace/Sources/SwiftChessCore/Piece.swift:25:15: [1;39mnote: [1;39mconsider making enum 'Kind' conform to the 'Sendable' protocol[0;0m
[0;36m23 |[0;0m
[0;36m24 |[0;0m /// A piece kind.
[0;36m25 |[0;0m public enum Kind: Int {
[0;36m|[0;0m `- [1;39mnote: [1;39mconsider making enum 'Kind' conform to the 'Sendable' protocol[0;0m
[0;36m26 |[0;0m
[0;36m27 |[0;0m /// Pawn piece kind.
[#MutableGlobalVariable]: <https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable>
/host/spi-builder-workspace/Sources/SwiftChessCore/Piece.swift:46:25: [1;33mwarning: [1;39mstatic property '_pawn' is not concurrency-safe because non-'Sendable' type 'Piece.Kind' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m23 |[0;0m
[0;36m24 |[0;0m /// A piece kind.
[0;36m25 |[0;0m public enum Kind: Int {
[0;36m|[0;0m `- [1;39mnote: [1;39mconsider making enum 'Kind' conform to the 'Sendable' protocol[0;0m
[0;36m26 |[0;0m
[0;36m27 |[0;0m /// Pawn piece kind.
[0;36m:[0;0m
[0;36m44 |[0;0m
[0;36m45 |[0;0m /// Pawn
[0;36m46 |[0;0m internal static let _pawn = Kind.pawn
[0;36m|[0;0m |- [1;33mwarning: [1;39mstatic property '_pawn' is not concurrency-safe because non-'Sendable' type 'Piece.Kind' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m|[0;0m |- [1;39mnote: [1;39madd '@MainActor' to make static property '_pawn' part of global actor 'MainActor'[0;0m
[0;36m|[0;0m `- [1;39mnote: [1;39mdisable concurrency-safety checks if accesses are protected by an external synchronization mechanism[0;0m
[0;36m47 |[0;0m
[0;36m48 |[0;0m /// Knight
/host/spi-builder-workspace/Sources/SwiftChessCore/Piece.swift:49:25: [1;33mwarning: [1;39mstatic property '_knight' is not concurrency-safe because non-'Sendable' type 'Piece.Kind' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m23 |[0;0m
[0;36m24 |[0;0m /// A piece kind.
[0;36m25 |[0;0m public enum Kind: Int {
[0;36m|[0;0m `- [1;39mnote: [1;39mconsider making enum 'Kind' conform to the 'Sendable' protocol[0;0m
[0;36m26 |[0;0m
[0;36m27 |[0;0m /// Pawn piece kind.
[0;36m:[0;0m
[0;36m47 |[0;0m
[0;36m48 |[0;0m /// Knight
[0;36m49 |[0;0m internal static let _knight = Kind.knight
[0;36m|[0;0m |- [1;33mwarning: [1;39mstatic property '_knight' is not concurrency-safe because non-'Sendable' type 'Piece.Kind' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m|[0;0m |- [1;39mnote: [1;39madd '@MainActor' to make static property '_knight' part of global actor 'MainActor'[0;0m
[0;36m|[0;0m `- [1;39mnote: [1;39mdisable concurrency-safety checks if accesses are protected by an external synchronization mechanism[0;0m
[0;36m50 |[0;0m
[0;36m51 |[0;0m /// Bishop
/host/spi-builder-workspace/Sources/SwiftChessCore/Piece.swift:52:25: [1;33mwarning: [1;39mstatic property '_bishop' is not concurrency-safe because non-'Sendable' type 'Piece.Kind' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m23 |[0;0m
[0;36m24 |[0;0m /// A piece kind.
[0;36m25 |[0;0m public enum Kind: Int {
[0;36m|[0;0m `- [1;39mnote: [1;39mconsider making enum 'Kind' conform to the 'Sendable' protocol[0;0m
[0;36m26 |[0;0m
[0;36m27 |[0;0m /// Pawn piece kind.
[0;36m:[0;0m
[0;36m50 |[0;0m
[0;36m51 |[0;0m /// Bishop
[0;36m52 |[0;0m internal static let _bishop = Kind.bishop
[0;36m|[0;0m |- [1;33mwarning: [1;39mstatic property '_bishop' is not concurrency-safe because non-'Sendable' type 'Piece.Kind' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m|[0;0m |- [1;39mnote: [1;39madd '@MainActor' to make static property '_bishop' part of global actor 'MainActor'[0;0m
[0;36m|[0;0m `- [1;39mnote: [1;39mdisable concurrency-safety checks if accesses are protected by an external synchronization mechanism[0;0m
[0;36m53 |[0;0m
[0;36m54 |[0;0m /// Rook
/host/spi-builder-workspace/Sources/SwiftChessCore/Piece.swift:55:25: [1;33mwarning: [1;39mstatic property '_rook' is not concurrency-safe because non-'Sendable' type 'Piece.Kind' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m23 |[0;0m
[0;36m24 |[0;0m /// A piece kind.
[0;36m25 |[0;0m public enum Kind: Int {
[0;36m|[0;0m `- [1;39mnote: [1;39mconsider making enum 'Kind' conform to the 'Sendable' protocol[0;0m
[0;36m26 |[0;0m
[0;36m27 |[0;0m /// Pawn piece kind.
[0;36m:[0;0m
[0;36m53 |[0;0m
[0;36m54 |[0;0m /// Rook
[0;36m55 |[0;0m internal static let _rook = Kind.rook
[0;36m|[0;0m |- [1;33mwarning: [1;39mstatic property '_rook' is not concurrency-safe because non-'Sendable' type 'Piece.Kind' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m|[0;0m |- [1;39mnote: [1;39madd '@MainActor' to make static property '_rook' part of global actor 'MainActor'[0;0m
[0;36m|[0;0m `- [1;39mnote: [1;39mdisable concurrency-safety checks if accesses are protected by an external synchronization mechanism[0;0m
[0;36m56 |[0;0m
[0;36m57 |[0;0m /// Queen
/host/spi-builder-workspace/Sources/SwiftChessCore/Piece.swift:58:25: [1;33mwarning: [1;39mstatic property '_queen' is not concurrency-safe because non-'Sendable' type 'Piece.Kind' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m23 |[0;0m
[0;36m24 |[0;0m /// A piece kind.
[0;36m25 |[0;0m public enum Kind: Int {
[0;36m|[0;0m `- [1;39mnote: [1;39mconsider making enum 'Kind' conform to the 'Sendable' protocol[0;0m
[0;36m26 |[0;0m
[0;36m27 |[0;0m /// Pawn piece kind.
[0;36m:[0;0m
[0;36m56 |[0;0m
[0;36m57 |[0;0m /// Queen
[0;36m58 |[0;0m internal static let _queen = Kind.queen
[0;36m|[0;0m |- [1;33mwarning: [1;39mstatic property '_queen' is not concurrency-safe because non-'Sendable' type 'Piece.Kind' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m|[0;0m |- [1;39mnote: [1;39madd '@MainActor' to make static property '_queen' part of global actor 'MainActor'[0;0m
[0;36m|[0;0m `- [1;39mnote: [1;39mdisable concurrency-safety checks if accesses are protected by an external synchronization mechanism[0;0m
[0;36m59 |[0;0m
[0;36m60 |[0;0m /// King
/host/spi-builder-workspace/Sources/SwiftChessCore/Piece.swift:61:25: [1;33mwarning: [1;39mstatic property '_king' is not concurrency-safe because non-'Sendable' type 'Piece.Kind' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m23 |[0;0m
[0;36m24 |[0;0m /// A piece kind.
[0;36m25 |[0;0m public enum Kind: Int {
[0;36m|[0;0m `- [1;39mnote: [1;39mconsider making enum 'Kind' conform to the 'Sendable' protocol[0;0m
[0;36m26 |[0;0m
[0;36m27 |[0;0m /// Pawn piece kind.
[0;36m:[0;0m
[0;36m59 |[0;0m
[0;36m60 |[0;0m /// King
[0;36m61 |[0;0m internal static let _king = Kind.king
[0;36m|[0;0m |- [1;33mwarning: [1;39mstatic property '_king' is not concurrency-safe because non-'Sendable' type 'Piece.Kind' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m|[0;0m |- [1;39mnote: [1;39madd '@MainActor' to make static property '_king' part of global actor 'MainActor'[0;0m
[0;36m|[0;0m `- [1;39mnote: [1;39mdisable concurrency-safety checks if accesses are protected by an external synchronization mechanism[0;0m
[0;36m62 |[0;0m
[0;36m63 |[0;0m /// An array of all piece kinds.
/host/spi-builder-workspace/Sources/SwiftChessCore/Piece.swift:64:23: [1;33mwarning: [1;39mstatic property 'all' is not concurrency-safe because non-'Sendable' type '[Piece.Kind]' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m23 |[0;0m
[0;36m24 |[0;0m /// A piece kind.
[0;36m25 |[0;0m public enum Kind: Int {
[0;36m|[0;0m `- [1;39mnote: [1;39mconsider making enum 'Kind' conform to the 'Sendable' protocol[0;0m
[0;36m26 |[0;0m
[0;36m27 |[0;0m /// Pawn piece kind.
[0;36m:[0;0m
[0;36m62 |[0;0m
[0;36m63 |[0;0m /// An array of all piece kinds.
[0;36m64 |[0;0m public static let all: [Kind] = [.pawn, .knight, .bishop, .rook, .queen, .king]
[0;36m|[0;0m |- [1;33mwarning: [1;39mstatic property 'all' is not concurrency-safe because non-'Sendable' type '[Piece.Kind]' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m|[0;0m |- [1;39mnote: [1;39madd '@MainActor' to make static property 'all' part of global actor 'MainActor'[0;0m
[0;36m|[0;0m `- [1;39mnote: [1;39mdisable concurrency-safety checks if accesses are protected by an external synchronization mechanism[0;0m
[0;36m65 |[0;0m
[0;36m66 |[0;0m /// The piece kind's name.
/host/spi-builder-workspace/Sources/SwiftChessCore/Piece.swift:140:23: [1;33mwarning: [1;39mstatic property '_whiteNonQueens' is not concurrency-safe because non-'Sendable' type '[Piece]' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m20 |[0;0m
[0;36m21 |[0;0m /// A chess piece.
[0;36m22 |[0;0m public struct Piece: Hashable, CustomStringConvertible {
[0;36m|[0;0m `- [1;39mnote: [1;39mconsider making struct 'Piece' conform to the 'Sendable' protocol[0;0m
[0;36m23 |[0;0m
[0;36m24 |[0;0m /// A piece kind.
[0;36m:[0;0m
[0;36m138 |[0;0m }
[0;36m139 |[0;0m
[0;36m140 |[0;0m internal static let _whiteNonQueens: [Piece] = whitePieces.filter({ !$0.kind.isQueen })
[0;36m|[0;0m |- [1;33mwarning: [1;39mstatic property '_whiteNonQueens' is not concurrency-safe because non-'Sendable' type '[Piece]' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m|[0;0m |- [1;39mnote: [1;39madd '@MainActor' to make static property '_whiteNonQueens' part of global actor 'MainActor'[0;0m
[0;36m|[0;0m `- [1;39mnote: [1;39mdisable concurrency-safety checks if accesses are protected by an external synchronization mechanism[0;0m
[0;36m141 |[0;0m
[0;36m142 |[0;0m internal static let _blackNonQueens: [Piece] = blackPieces.filter({ !$0.kind.isQueen })
/host/spi-builder-workspace/Sources/SwiftChessCore/Piece.swift:142:23: [1;33mwarning: [1;39mstatic property '_blackNonQueens' is not concurrency-safe because non-'Sendable' type '[Piece]' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m20 |[0;0m
[0;36m21 |[0;0m /// A chess piece.
[0;36m22 |[0;0m public struct Piece: Hashable, CustomStringConvertible {
[0;36m|[0;0m `- [1;39mnote: [1;39mconsider making struct 'Piece' conform to the 'Sendable' protocol[0;0m
[0;36m23 |[0;0m
[0;36m24 |[0;0m /// A piece kind.
[0;36m:[0;0m
[0;36m140 |[0;0m internal static let _whiteNonQueens: [Piece] = whitePieces.filter({ !$0.kind.isQueen })
[0;36m141 |[0;0m
[0;36m142 |[0;0m internal static let _blackNonQueens: [Piece] = blackPieces.filter({ !$0.kind.isQueen })
[0;36m|[0;0m |- [1;33mwarning: [1;39mstatic property '_blackNonQueens' is not concurrency-safe because non-'Sendable' type '[Piece]' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m|[0;0m |- [1;39mnote: [1;39madd '@MainActor' to make static property '_blackNonQueens' part of global actor 'MainActor'[0;0m
[0;36m|[0;0m `- [1;39mnote: [1;39mdisable concurrency-safety checks if accesses are protected by an external synchronization mechanism[0;0m
[0;36m143 |[0;0m
[0;36m144 |[0;0m internal static func _nonQueens(for color: Color) -> [Piece] {
/host/spi-builder-workspace/Sources/SwiftChessCore/Piece.swift:149:21: [1;33mwarning: [1;39mstatic property 'all' is not concurrency-safe because non-'Sendable' type '[Piece]' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m20 |[0;0m
[0;36m21 |[0;0m /// A chess piece.
[0;36m22 |[0;0m public struct Piece: Hashable, CustomStringConvertible {
[0;36m|[0;0m `- [1;39mnote: [1;39mconsider making struct 'Piece' conform to the 'Sendable' protocol[0;0m
[0;36m23 |[0;0m
[0;36m24 |[0;0m /// A piece kind.
[0;36m:[0;0m
[0;36m147 |[0;0m
[0;36m148 |[0;0m /// An array of all pieces.
[0;36m149 |[0;0m public static let all: [Piece] = {
[0;36m|[0;0m |- [1;33mwarning: [1;39mstatic property 'all' is not concurrency-safe because non-'Sendable' type '[Piece]' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m|[0;0m |- [1;39mnote: [1;39madd '@MainActor' to make static property 'all' part of global actor 'MainActor'[0;0m
[0;36m|[0;0m `- [1;39mnote: [1;39mdisable concurrency-safety checks if accesses are protected by an external synchronization mechanism[0;0m
[0;36m150 |[0;0m return [.white, .black].reduce([]) { pieces, color in
[0;36m151 |[0;0m return pieces + Kind.all.map({ Piece(kind: $0, color: color) })
/host/spi-builder-workspace/Sources/SwiftChessCore/Piece.swift:156:21: [1;33mwarning: [1;39mstatic property 'whitePieces' is not concurrency-safe because non-'Sendable' type '[Piece]' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m20 |[0;0m
[0;36m21 |[0;0m /// A chess piece.
[0;36m22 |[0;0m public struct Piece: Hashable, CustomStringConvertible {
[0;36m|[0;0m `- [1;39mnote: [1;39mconsider making struct 'Piece' conform to the 'Sendable' protocol[0;0m
[0;36m23 |[0;0m
[0;36m24 |[0;0m /// A piece kind.
[0;36m:[0;0m
[0;36m154 |[0;0m
[0;36m155 |[0;0m /// An array of all white pieces.
[0;36m156 |[0;0m public static let whitePieces: [Piece] = all.filter({ $0.color.isWhite })
[0;36m|[0;0m |- [1;33mwarning: [1;39mstatic property 'whitePieces' is not concurrency-safe because non-'Sendable' type '[Piece]' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m|[0;0m |- [1;39mnote: [1;39madd '@MainActor' to make static property 'whitePieces' part of global actor 'MainActor'[0;0m
[0;36m|[0;0m `- [1;39mnote: [1;39mdisable concurrency-safety checks if accesses are protected by an external synchronization mechanism[0;0m
[0;36m157 |[0;0m
[0;36m158 |[0;0m /// An array of all black pieces.
/host/spi-builder-workspace/Sources/SwiftChessCore/Piece.swift:159:21: [1;33mwarning: [1;39mstatic property 'blackPieces' is not concurrency-safe because non-'Sendable' type '[Piece]' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m20 |[0;0m
[0;36m21 |[0;0m /// A chess piece.
[0;36m22 |[0;0m public struct Piece: Hashable, CustomStringConvertible {
[0;36m|[0;0m `- [1;39mnote: [1;39mconsider making struct 'Piece' conform to the 'Sendable' protocol[0;0m
[0;36m23 |[0;0m
[0;36m24 |[0;0m /// A piece kind.
[0;36m:[0;0m
[0;36m157 |[0;0m
[0;36m158 |[0;0m /// An array of all black pieces.
[0;36m159 |[0;0m public static let blackPieces: [Piece] = all.filter({ $0.color.isBlack })
[0;36m|[0;0m |- [1;33mwarning: [1;39mstatic property 'blackPieces' is not concurrency-safe because non-'Sendable' type '[Piece]' may have shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m|[0;0m |- [1;39mnote: [1;39madd '@MainActor' to make static property 'blackPieces' part of global actor 'MainActor'[0;0m
[0;36m|[0;0m `- [1;39mnote: [1;39mdisable concurrency-safety checks if accesses are protected by an external synchronization mechanism[0;0m
[0;36m160 |[0;0m
[0;36m161 |[0;0m /// Returns an array of all pieces for `color`.
[#MutableGlobalVariable]: <https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable>
Build complete! (6.16 secs)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "swift-chess-neo",
"name" : "swift-chess-neo",
"path" : "/host/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "SwiftChessCore",
"targets" : [
"SwiftChessCore"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "SwiftChessUI",
"targets" : [
"SwiftChessUI"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "SwiftChessUI",
"module_type" : "SwiftTarget",
"name" : "SwiftChessUI",
"path" : "Sources/SwiftChessUI",
"product_memberships" : [
"SwiftChessUI"
],
"sources" : [
"Board+View.swift"
],
"target_dependencies" : [
"SwiftChessCore"
],
"type" : "library"
},
{
"c99name" : "SwiftChessCoreTests",
"module_type" : "SwiftTarget",
"name" : "SwiftChessCoreTests",
"path" : "Tests/SwiftChessCoreTests",
"sources" : [
"MiscTests.swift",
"PGNParsingTests.swift",
"SwiftChessCoreTests.swift"
],
"target_dependencies" : [
"SwiftChessCore"
],
"type" : "test"
},
{
"c99name" : "SwiftChessCore",
"module_type" : "SwiftTarget",
"name" : "SwiftChessCore",
"path" : "Sources/SwiftChessCore",
"product_memberships" : [
"SwiftChessCore",
"SwiftChessUI"
],
"sources" : [
"Bitboard.swift",
"Board.swift",
"CastlingRights.swift",
"Color.swift",
"File.swift",
"Game.swift",
"InternalTypes.swift",
"Minimax.swift",
"Move.swift",
"PGN.swift",
"PGNMove.swift",
"Piece.swift",
"Player.swift",
"Rank.swift",
"Sequence+Sage.swift",
"Square.swift",
"Tables.swift",
"Variant.swift"
],
"type" : "library"
}
],
"tools_version" : "5.9"
}
android-6.4-latest: Pulling from saguaro1/spi-images
Digest: sha256:abadcff584c273feba50641b454858d377ba30b35ea7287a94f45ebd8afd0ea0
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:android-6.4-latest
Done.