Build Information
Successful build of swift-chess-neo, reference 2.0.0 (36df37), with Swift 6.1 for macOS (SPM) on 15 Sep 2025 23:13:27 UTC.
Swift 6 data race errors: 73
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCapturesBuild Log
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/Game.swift:271:10: warning: associated value 'illegalMove' of 'Sendable'-conforming enum 'ExecutionError' has non-sendable type 'Board'; this is an error in the Swift 6 language mode
269 |
270 | /// Attempted illegal move.
271 | case illegalMove(Move, Color, Board)
| `- warning: associated value 'illegalMove' of 'Sendable'-conforming enum 'ExecutionError' has non-sendable type 'Board'; this is an error in the Swift 6 language mode
272 |
273 | /// Could not promote with a piece kind.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/Board.swift:24:15: note: consider making struct 'Board' conform to the 'Sendable' protocol
22 | ///
23 | /// Pieces map to separate instances of `Bitboard` which can be retrieved with `bitboard(for:)`.
24 | public struct Board: Hashable, CustomStringConvertible {
| `- note: consider making struct 'Board' conform to the 'Sendable' protocol
25 |
26 | /// A chess board space.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/Game.swift:274:10: warning: associated value 'invalidPromotion' of 'Sendable'-conforming enum 'ExecutionError' has non-sendable type 'Piece.Kind'; this is an error in the Swift 6 language mode
272 |
273 | /// Could not promote with a piece kind.
274 | case invalidPromotion(Piece.Kind)
| `- warning: associated value 'invalidPromotion' of 'Sendable'-conforming enum 'ExecutionError' has non-sendable type 'Piece.Kind'; this is an error in the Swift 6 language mode
275 |
276 | /// The error message.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/Piece.swift:25:15: note: consider making enum 'Kind' conform to the 'Sendable' protocol
23 |
24 | /// A piece kind.
25 | public enum Kind: Int {
| `- note: consider making enum 'Kind' conform to the 'Sendable' protocol
26 |
27 | /// Pawn piece kind.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/Piece.swift:46:25: warning: static 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
23 |
24 | /// A piece kind.
25 | public enum Kind: Int {
| `- note: consider making enum 'Kind' conform to the 'Sendable' protocol
26 |
27 | /// Pawn piece kind.
:
44 |
45 | /// Pawn
46 | internal static let _pawn = Kind.pawn
| |- warning: static 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
| |- note: add '@MainActor' to make static property '_pawn' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
47 |
48 | /// Knight
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/Piece.swift:49:25: warning: static 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
23 |
24 | /// A piece kind.
25 | public enum Kind: Int {
| `- note: consider making enum 'Kind' conform to the 'Sendable' protocol
26 |
27 | /// Pawn piece kind.
:
47 |
48 | /// Knight
49 | internal static let _knight = Kind.knight
| |- warning: static 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
| |- note: add '@MainActor' to make static property '_knight' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
50 |
51 | /// Bishop
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/Piece.swift:52:25: warning: static 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
23 |
24 | /// A piece kind.
25 | public enum Kind: Int {
| `- note: consider making enum 'Kind' conform to the 'Sendable' protocol
26 |
27 | /// Pawn piece kind.
:
50 |
51 | /// Bishop
52 | internal static let _bishop = Kind.bishop
| |- warning: static 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
| |- note: add '@MainActor' to make static property '_bishop' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
53 |
54 | /// Rook
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/Piece.swift:55:25: warning: static 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
23 |
24 | /// A piece kind.
25 | public enum Kind: Int {
| `- note: consider making enum 'Kind' conform to the 'Sendable' protocol
26 |
27 | /// Pawn piece kind.
:
53 |
54 | /// Rook
55 | internal static let _rook = Kind.rook
| |- warning: static 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
| |- note: add '@MainActor' to make static property '_rook' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
56 |
57 | /// Queen
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/Piece.swift:58:25: warning: static 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
23 |
24 | /// A piece kind.
25 | public enum Kind: Int {
| `- note: consider making enum 'Kind' conform to the 'Sendable' protocol
26 |
27 | /// Pawn piece kind.
:
56 |
57 | /// Queen
58 | internal static let _queen = Kind.queen
| |- warning: static 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
| |- note: add '@MainActor' to make static property '_queen' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
59 |
60 | /// King
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/Piece.swift:61:25: warning: static 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
23 |
24 | /// A piece kind.
25 | public enum Kind: Int {
| `- note: consider making enum 'Kind' conform to the 'Sendable' protocol
26 |
27 | /// Pawn piece kind.
:
59 |
60 | /// King
61 | internal static let _king = Kind.king
| |- warning: static 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
| |- note: add '@MainActor' to make static property '_king' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
62 |
63 | /// An array of all piece kinds.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/Piece.swift:64:23: warning: static 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
23 |
24 | /// A piece kind.
25 | public enum Kind: Int {
| `- note: consider making enum 'Kind' conform to the 'Sendable' protocol
26 |
27 | /// Pawn piece kind.
:
62 |
63 | /// An array of all piece kinds.
64 | public static let all: [Kind] = [.pawn, .knight, .bishop, .rook, .queen, .king]
| |- warning: static 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
| |- note: add '@MainActor' to make static property 'all' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
65 |
66 | /// The piece kind's name.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/Piece.swift:140:23: warning: static 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
20 |
21 | /// A chess piece.
22 | public struct Piece: Hashable, CustomStringConvertible {
| `- note: consider making struct 'Piece' conform to the 'Sendable' protocol
23 |
24 | /// A piece kind.
:
138 | }
139 |
140 | internal static let _whiteNonQueens: [Piece] = whitePieces.filter({ !$0.kind.isQueen })
| |- warning: static 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
| |- note: add '@MainActor' to make static property '_whiteNonQueens' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
141 |
142 | internal static let _blackNonQueens: [Piece] = blackPieces.filter({ !$0.kind.isQueen })
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/Piece.swift:142:23: warning: static 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
20 |
21 | /// A chess piece.
22 | public struct Piece: Hashable, CustomStringConvertible {
| `- note: consider making struct 'Piece' conform to the 'Sendable' protocol
23 |
24 | /// A piece kind.
:
140 | internal static let _whiteNonQueens: [Piece] = whitePieces.filter({ !$0.kind.isQueen })
141 |
142 | internal static let _blackNonQueens: [Piece] = blackPieces.filter({ !$0.kind.isQueen })
| |- warning: static 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
| |- note: add '@MainActor' to make static property '_blackNonQueens' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
143 |
144 | internal static func _nonQueens(for color: Color) -> [Piece] {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/Piece.swift:149:21: warning: static 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
20 |
21 | /// A chess piece.
22 | public struct Piece: Hashable, CustomStringConvertible {
| `- note: consider making struct 'Piece' conform to the 'Sendable' protocol
23 |
24 | /// A piece kind.
:
147 |
148 | /// An array of all pieces.
149 | public static let all: [Piece] = {
| |- warning: static 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
| |- note: add '@MainActor' to make static property 'all' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
150 | return [.white, .black].reduce([]) { pieces, color in
151 | return pieces + Kind.all.map({ Piece(kind: $0, color: color) })
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/Piece.swift:156:21: warning: static 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
20 |
21 | /// A chess piece.
22 | public struct Piece: Hashable, CustomStringConvertible {
| `- note: consider making struct 'Piece' conform to the 'Sendable' protocol
23 |
24 | /// A piece kind.
:
154 |
155 | /// An array of all white pieces.
156 | public static let whitePieces: [Piece] = all.filter({ $0.color.isWhite })
| |- warning: static 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
| |- note: add '@MainActor' to make static property 'whitePieces' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
157 |
158 | /// An array of all black pieces.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/Piece.swift:159:21: warning: static 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
20 |
21 | /// A chess piece.
22 | public struct Piece: Hashable, CustomStringConvertible {
| `- note: consider making struct 'Piece' conform to the 'Sendable' protocol
23 |
24 | /// A piece kind.
:
157 |
158 | /// An array of all black pieces.
159 | public static let blackPieces: [Piece] = all.filter({ $0.color.isBlack })
| |- warning: static 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
| |- note: add '@MainActor' to make static property 'blackPieces' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
160 |
161 | /// Returns an array of all pieces for `color`.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/Rank.swift:66:21: warning: static 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
22 | ///
23 | /// `Rank`s refer to the eight rows of a chess board, beginning with 1 at the bottom and ending with 8 at the top.
24 | public enum Rank: Int, Comparable, CustomStringConvertible {
| `- note: consider making enum 'Rank' conform to the 'Sendable' protocol
25 |
26 | /// A direction in rank.
:
64 |
65 | /// An array of all ranks.
66 | public static let all: [Rank] = [1, 2, 3, 4, 5, 6, 7, 8]
| |- warning: static 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
| |- note: add '@MainActor' to make static property 'all' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
67 |
68 | /// The row index of `self`.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/Square.swift:226:21: warning: static 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
25 | ///
26 | /// A `Square` can be one of sixty-four possible values, ranging from `A1` to `H8`.
27 | public enum Square: Int, CustomStringConvertible {
| `- note: consider making enum 'Square' conform to the 'Sendable' protocol
28 |
29 | /// A1 square.
:
224 |
225 | /// An array of all squares.
226 | public static let all: [Square] = (0..<64).compactMap(Square.init(rawValue:))
| |- warning: static 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
| |- note: add '@MainActor' to make static property 'all' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
227 |
228 | /// The file of `self`.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/Tables.swift:31:14: warning: let '_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
29 |
30 | /// A lookup table of all white pawn attack bitboards.
31 | internal let _whitePawnAttackTable = Square.all.map { square in
| |- warning: let '_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
| |- note: add '@MainActor' to make let '_whitePawnAttackTable' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
32 | return Bitboard(square: square)._pawnAttacks(for: ._white)
33 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/Bitboard.swift:82:15: note: consider making struct 'Bitboard' conform to the 'Sendable' protocol
80 | /// - see also: [Bitboard (Wikipedia)](https://en.wikipedia.org/wiki/Bitboard ),
81 | /// [Bitboards (Chess Programming Wiki)](https://chessprogramming.org/Bitboards)
82 | public struct Bitboard: RawRepresentable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'Bitboard' conform to the 'Sendable' protocol
83 |
84 | /// A bitboard shift direction.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/Tables.swift:36:14: warning: let '_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
34 |
35 | /// A lookup table of all black pawn attack bitboards.
36 | internal let _blackPawnAttackTable = Square.all.map { square in
| |- warning: let '_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
| |- note: add '@MainActor' to make let '_blackPawnAttackTable' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
37 | return Bitboard(square: square)._pawnAttacks(for: ._black)
38 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/Bitboard.swift:82:15: note: consider making struct 'Bitboard' conform to the 'Sendable' protocol
80 | /// - see also: [Bitboard (Wikipedia)](https://en.wikipedia.org/wiki/Bitboard ),
81 | /// [Bitboards (Chess Programming Wiki)](https://chessprogramming.org/Bitboards)
82 | public struct Bitboard: RawRepresentable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'Bitboard' conform to the 'Sendable' protocol
83 |
84 | /// A bitboard shift direction.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/Tables.swift:41:14: warning: let '_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
39 |
40 | /// A lookup table of all king attack bitboards.
41 | internal let _kingAttackTable = Square.all.map { square in
| |- warning: let '_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
| |- note: add '@MainActor' to make let '_kingAttackTable' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
42 | return Bitboard(square: square)._kingAttacks()
43 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/Bitboard.swift:82:15: note: consider making struct 'Bitboard' conform to the 'Sendable' protocol
80 | /// - see also: [Bitboard (Wikipedia)](https://en.wikipedia.org/wiki/Bitboard ),
81 | /// [Bitboards (Chess Programming Wiki)](https://chessprogramming.org/Bitboards)
82 | public struct Bitboard: RawRepresentable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'Bitboard' conform to the 'Sendable' protocol
83 |
84 | /// A bitboard shift direction.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/Tables.swift:46:14: warning: let '_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
44 |
45 | /// A lookup table of all knight attack bitboards.
46 | internal let _knightAttackTable = Square.all.map { square in
| |- warning: let '_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
| |- note: add '@MainActor' to make let '_knightAttackTable' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
47 | return Bitboard(square: square)._knightAttacks()
48 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/Bitboard.swift:82:15: note: consider making struct 'Bitboard' conform to the 'Sendable' protocol
80 | /// - see also: [Bitboard (Wikipedia)](https://en.wikipedia.org/wiki/Bitboard ),
81 | /// [Bitboards (Chess Programming Wiki)](https://chessprogramming.org/Bitboards)
82 | public struct Bitboard: RawRepresentable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'Bitboard' conform to the 'Sendable' protocol
83 |
84 | /// A bitboard shift direction.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/Tables.swift:85:14: warning: let '_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
83 |
84 | /// A lookup table of squares between two squares.
85 | internal let _betweenTable: [Bitboard] = {
| |- warning: let '_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
| |- note: add '@MainActor' to make let '_betweenTable' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
86 | var table = [Bitboard](repeating: 0, count: 2080)
87 | for start in Square.all {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/Bitboard.swift:82:15: note: consider making struct 'Bitboard' conform to the 'Sendable' protocol
80 | /// - see also: [Bitboard (Wikipedia)](https://en.wikipedia.org/wiki/Bitboard ),
81 | /// [Bitboards (Chess Programming Wiki)](https://chessprogramming.org/Bitboards)
82 | public struct Bitboard: RawRepresentable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'Bitboard' conform to the 'Sendable' protocol
83 |
84 | /// A bitboard shift direction.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/Tables.swift:97:14: warning: let '_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
95 |
96 | /// A lookup table of lines for two squares.
97 | internal let _lineTable: [Bitboard] = {
| |- warning: let '_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
| |- note: add '@MainActor' to make let '_lineTable' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
98 | var table = [Bitboard](repeating: 0, count: 2080)
99 | for start in Square.all {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/Bitboard.swift:82:15: note: consider making struct 'Bitboard' conform to the 'Sendable' protocol
80 | /// - see also: [Bitboard (Wikipedia)](https://en.wikipedia.org/wiki/Bitboard ),
81 | /// [Bitboards (Chess Programming Wiki)](https://chessprogramming.org/Bitboards)
82 | public struct Bitboard: RawRepresentable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'Bitboard' conform to the 'Sendable' protocol
83 |
84 | /// A bitboard shift direction.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/Variant.swift:31:23: warning: static 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
20 |
21 | /// A chess variant that defines how a `Board` is populated or how a `Game` is played.
22 | public enum Variant {
| `- note: consider making enum 'Variant' conform to the 'Sendable' protocol
23 |
24 | /// Standard chess.
:
29 |
30 | /// Standard regardless of Swift version.
31 | internal static let _standard = Variant.standard
| |- warning: static 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
| |- note: add '@MainActor' to make static property '_standard' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
32 |
33 | /// UpsideDown regardless of Swift version.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/Variant.swift:34:23: warning: static 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
20 |
21 | /// A chess variant that defines how a `Board` is populated or how a `Game` is played.
22 | public enum Variant {
| `- note: consider making enum 'Variant' conform to the 'Sendable' protocol
23 |
24 | /// Standard chess.
:
32 |
33 | /// UpsideDown regardless of Swift version.
34 | internal static let _upsideDown = Variant.upsideDown
| |- warning: static 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
| |- note: add '@MainActor' to make static property '_upsideDown' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
35 |
36 | /// `self` is standard variant.
[15/22] Compiling SwiftChessCore PGNMove.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/Piece.swift:46:25: warning: static 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
23 |
24 | /// A piece kind.
25 | public enum Kind: Int {
| `- note: consider making enum 'Kind' conform to the 'Sendable' protocol
26 |
27 | /// Pawn piece kind.
:
44 |
45 | /// Pawn
46 | internal static let _pawn = Kind.pawn
| |- warning: static 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
| |- note: add '@MainActor' to make static property '_pawn' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
47 |
48 | /// Knight
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/Piece.swift:49:25: warning: static 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
23 |
24 | /// A piece kind.
25 | public enum Kind: Int {
| `- note: consider making enum 'Kind' conform to the 'Sendable' protocol
26 |
27 | /// Pawn piece kind.
:
47 |
48 | /// Knight
49 | internal static let _knight = Kind.knight
| |- warning: static 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
| |- note: add '@MainActor' to make static property '_knight' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
50 |
51 | /// Bishop
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/Piece.swift:52:25: warning: static 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
23 |
24 | /// A piece kind.
25 | public enum Kind: Int {
| `- note: consider making enum 'Kind' conform to the 'Sendable' protocol
26 |
27 | /// Pawn piece kind.
:
50 |
51 | /// Bishop
52 | internal static let _bishop = Kind.bishop
| |- warning: static 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
| |- note: add '@MainActor' to make static property '_bishop' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
53 |
54 | /// Rook
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/Piece.swift:55:25: warning: static 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
23 |
24 | /// A piece kind.
25 | public enum Kind: Int {
| `- note: consider making enum 'Kind' conform to the 'Sendable' protocol
26 |
27 | /// Pawn piece kind.
:
53 |
54 | /// Rook
55 | internal static let _rook = Kind.rook
| |- warning: static 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
| |- note: add '@MainActor' to make static property '_rook' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
56 |
57 | /// Queen
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/Piece.swift:58:25: warning: static 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
23 |
24 | /// A piece kind.
25 | public enum Kind: Int {
| `- note: consider making enum 'Kind' conform to the 'Sendable' protocol
26 |
27 | /// Pawn piece kind.
:
56 |
57 | /// Queen
58 | internal static let _queen = Kind.queen
| |- warning: static 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
| |- note: add '@MainActor' to make static property '_queen' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
59 |
60 | /// King
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/Piece.swift:61:25: warning: static 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
23 |
24 | /// A piece kind.
25 | public enum Kind: Int {
| `- note: consider making enum 'Kind' conform to the 'Sendable' protocol
26 |
27 | /// Pawn piece kind.
:
59 |
60 | /// King
61 | internal static let _king = Kind.king
| |- warning: static 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
| |- note: add '@MainActor' to make static property '_king' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
62 |
63 | /// An array of all piece kinds.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/Piece.swift:64:23: warning: static 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
23 |
24 | /// A piece kind.
25 | public enum Kind: Int {
| `- note: consider making enum 'Kind' conform to the 'Sendable' protocol
26 |
27 | /// Pawn piece kind.
:
62 |
63 | /// An array of all piece kinds.
64 | public static let all: [Kind] = [.pawn, .knight, .bishop, .rook, .queen, .king]
| |- warning: static 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
| |- note: add '@MainActor' to make static property 'all' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
65 |
66 | /// The piece kind's name.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/Piece.swift:140:23: warning: static 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
20 |
21 | /// A chess piece.
22 | public struct Piece: Hashable, CustomStringConvertible {
| `- note: consider making struct 'Piece' conform to the 'Sendable' protocol
23 |
24 | /// A piece kind.
:
138 | }
139 |
140 | internal static let _whiteNonQueens: [Piece] = whitePieces.filter({ !$0.kind.isQueen })
| |- warning: static 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
| |- note: add '@MainActor' to make static property '_whiteNonQueens' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
141 |
142 | internal static let _blackNonQueens: [Piece] = blackPieces.filter({ !$0.kind.isQueen })
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/Piece.swift:142:23: warning: static 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
20 |
21 | /// A chess piece.
22 | public struct Piece: Hashable, CustomStringConvertible {
| `- note: consider making struct 'Piece' conform to the 'Sendable' protocol
23 |
24 | /// A piece kind.
:
140 | internal static let _whiteNonQueens: [Piece] = whitePieces.filter({ !$0.kind.isQueen })
141 |
142 | internal static let _blackNonQueens: [Piece] = blackPieces.filter({ !$0.kind.isQueen })
| |- warning: static 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
| |- note: add '@MainActor' to make static property '_blackNonQueens' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
143 |
144 | internal static func _nonQueens(for color: Color) -> [Piece] {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/Piece.swift:149:21: warning: static 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
20 |
21 | /// A chess piece.
22 | public struct Piece: Hashable, CustomStringConvertible {
| `- note: consider making struct 'Piece' conform to the 'Sendable' protocol
23 |
24 | /// A piece kind.
:
147 |
148 | /// An array of all pieces.
149 | public static let all: [Piece] = {
| |- warning: static 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
| |- note: add '@MainActor' to make static property 'all' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
150 | return [.white, .black].reduce([]) { pieces, color in
151 | return pieces + Kind.all.map({ Piece(kind: $0, color: color) })
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/Piece.swift:156:21: warning: static 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
20 |
21 | /// A chess piece.
22 | public struct Piece: Hashable, CustomStringConvertible {
| `- note: consider making struct 'Piece' conform to the 'Sendable' protocol
23 |
24 | /// A piece kind.
:
154 |
155 | /// An array of all white pieces.
156 | public static let whitePieces: [Piece] = all.filter({ $0.color.isWhite })
| |- warning: static 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
| |- note: add '@MainActor' to make static property 'whitePieces' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
157 |
158 | /// An array of all black pieces.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/Piece.swift:159:21: warning: static 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
20 |
21 | /// A chess piece.
22 | public struct Piece: Hashable, CustomStringConvertible {
| `- note: consider making struct 'Piece' conform to the 'Sendable' protocol
23 |
24 | /// A piece kind.
:
157 |
158 | /// An array of all black pieces.
159 | public static let blackPieces: [Piece] = all.filter({ $0.color.isBlack })
| |- warning: static 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
| |- note: add '@MainActor' to make static property 'blackPieces' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
160 |
161 | /// Returns an array of all pieces for `color`.
[16/22] Compiling SwiftChessCore Piece.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/Piece.swift:46:25: warning: static 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
23 |
24 | /// A piece kind.
25 | public enum Kind: Int {
| `- note: consider making enum 'Kind' conform to the 'Sendable' protocol
26 |
27 | /// Pawn piece kind.
:
44 |
45 | /// Pawn
46 | internal static let _pawn = Kind.pawn
| |- warning: static 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
| |- note: add '@MainActor' to make static property '_pawn' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
47 |
48 | /// Knight
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/Piece.swift:49:25: warning: static 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
23 |
24 | /// A piece kind.
25 | public enum Kind: Int {
| `- note: consider making enum 'Kind' conform to the 'Sendable' protocol
26 |
27 | /// Pawn piece kind.
:
47 |
48 | /// Knight
49 | internal static let _knight = Kind.knight
| |- warning: static 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
| |- note: add '@MainActor' to make static property '_knight' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
50 |
51 | /// Bishop
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/Piece.swift:52:25: warning: static 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
23 |
24 | /// A piece kind.
25 | public enum Kind: Int {
| `- note: consider making enum 'Kind' conform to the 'Sendable' protocol
26 |
27 | /// Pawn piece kind.
:
50 |
51 | /// Bishop
52 | internal static let _bishop = Kind.bishop
| |- warning: static 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
| |- note: add '@MainActor' to make static property '_bishop' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
53 |
54 | /// Rook
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/Piece.swift:55:25: warning: static 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
23 |
24 | /// A piece kind.
25 | public enum Kind: Int {
| `- note: consider making enum 'Kind' conform to the 'Sendable' protocol
26 |
27 | /// Pawn piece kind.
:
53 |
54 | /// Rook
55 | internal static let _rook = Kind.rook
| |- warning: static 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
| |- note: add '@MainActor' to make static property '_rook' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
56 |
57 | /// Queen
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/Piece.swift:58:25: warning: static 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
23 |
24 | /// A piece kind.
25 | public enum Kind: Int {
| `- note: consider making enum 'Kind' conform to the 'Sendable' protocol
26 |
27 | /// Pawn piece kind.
:
56 |
57 | /// Queen
58 | internal static let _queen = Kind.queen
| |- warning: static 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
| |- note: add '@MainActor' to make static property '_queen' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
59 |
60 | /// King
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/Piece.swift:61:25: warning: static 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
23 |
24 | /// A piece kind.
25 | public enum Kind: Int {
| `- note: consider making enum 'Kind' conform to the 'Sendable' protocol
26 |
27 | /// Pawn piece kind.
:
59 |
60 | /// King
61 | internal static let _king = Kind.king
| |- warning: static 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
| |- note: add '@MainActor' to make static property '_king' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
62 |
63 | /// An array of all piece kinds.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/Piece.swift:64:23: warning: static 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
23 |
24 | /// A piece kind.
25 | public enum Kind: Int {
| `- note: consider making enum 'Kind' conform to the 'Sendable' protocol
26 |
27 | /// Pawn piece kind.
:
62 |
63 | /// An array of all piece kinds.
64 | public static let all: [Kind] = [.pawn, .knight, .bishop, .rook, .queen, .king]
| |- warning: static 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
| |- note: add '@MainActor' to make static property 'all' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
65 |
66 | /// The piece kind's name.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/Piece.swift:140:23: warning: static 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
20 |
21 | /// A chess piece.
22 | public struct Piece: Hashable, CustomStringConvertible {
| `- note: consider making struct 'Piece' conform to the 'Sendable' protocol
23 |
24 | /// A piece kind.
:
138 | }
139 |
140 | internal static let _whiteNonQueens: [Piece] = whitePieces.filter({ !$0.kind.isQueen })
| |- warning: static 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
| |- note: add '@MainActor' to make static property '_whiteNonQueens' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
141 |
142 | internal static let _blackNonQueens: [Piece] = blackPieces.filter({ !$0.kind.isQueen })
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/Piece.swift:142:23: warning: static 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
20 |
21 | /// A chess piece.
22 | public struct Piece: Hashable, CustomStringConvertible {
| `- note: consider making struct 'Piece' conform to the 'Sendable' protocol
23 |
24 | /// A piece kind.
:
140 | internal static let _whiteNonQueens: [Piece] = whitePieces.filter({ !$0.kind.isQueen })
141 |
142 | internal static let _blackNonQueens: [Piece] = blackPieces.filter({ !$0.kind.isQueen })
| |- warning: static 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
| |- note: add '@MainActor' to make static property '_blackNonQueens' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
143 |
144 | internal static func _nonQueens(for color: Color) -> [Piece] {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/Piece.swift:149:21: warning: static 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
20 |
21 | /// A chess piece.
22 | public struct Piece: Hashable, CustomStringConvertible {
| `- note: consider making struct 'Piece' conform to the 'Sendable' protocol
23 |
24 | /// A piece kind.
:
147 |
148 | /// An array of all pieces.
149 | public static let all: [Piece] = {
| |- warning: static 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
| |- note: add '@MainActor' to make static property 'all' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
150 | return [.white, .black].reduce([]) { pieces, color in
151 | return pieces + Kind.all.map({ Piece(kind: $0, color: color) })
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/Piece.swift:156:21: warning: static 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
20 |
21 | /// A chess piece.
22 | public struct Piece: Hashable, CustomStringConvertible {
| `- note: consider making struct 'Piece' conform to the 'Sendable' protocol
23 |
24 | /// A piece kind.
:
154 |
155 | /// An array of all white pieces.
156 | public static let whitePieces: [Piece] = all.filter({ $0.color.isWhite })
| |- warning: static 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
| |- note: add '@MainActor' to make static property 'whitePieces' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
157 |
158 | /// An array of all black pieces.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/Piece.swift:159:21: warning: static 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
20 |
21 | /// A chess piece.
22 | public struct Piece: Hashable, CustomStringConvertible {
| `- note: consider making struct 'Piece' conform to the 'Sendable' protocol
23 |
24 | /// A piece kind.
:
157 |
158 | /// An array of all black pieces.
159 | public static let blackPieces: [Piece] = all.filter({ $0.color.isBlack })
| |- warning: static 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
| |- note: add '@MainActor' to make static property 'blackPieces' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
160 |
161 | /// Returns an array of all pieces for `color`.
[17/22] Compiling SwiftChessCore File.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/File.swift:62:23: warning: static 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
22 | ///
23 | /// Files refer to the eight columns of a chess board, beginning with A and ending with H from left to right.
24 | public enum File: Int, Comparable, CustomStringConvertible {
| `- note: consider making enum 'File' conform to the 'Sendable' protocol
25 |
26 | /// A direction in file.
:
60 |
61 | /// A regardless of Swift version.
62 | internal static let _a = File.a
| |- warning: static 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
| |- note: add '@MainActor' to make static property '_a' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
63 |
64 | /// B regardless of Swift version.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/File.swift:65:23: warning: static 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
22 | ///
23 | /// Files refer to the eight columns of a chess board, beginning with A and ending with H from left to right.
24 | public enum File: Int, Comparable, CustomStringConvertible {
| `- note: consider making enum 'File' conform to the 'Sendable' protocol
25 |
26 | /// A direction in file.
:
63 |
64 | /// B regardless of Swift version.
65 | internal static let _b = File.b
| |- warning: static 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
| |- note: add '@MainActor' to make static property '_b' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
66 |
67 | /// C regardless of Swift version.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/File.swift:68:23: warning: static 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
22 | ///
23 | /// Files refer to the eight columns of a chess board, beginning with A and ending with H from left to right.
24 | public enum File: Int, Comparable, CustomStringConvertible {
| `- note: consider making enum 'File' conform to the 'Sendable' protocol
25 |
26 | /// A direction in file.
:
66 |
67 | /// C regardless of Swift version.
68 | internal static let _c = File.c
| |- warning: static 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
| |- note: add '@MainActor' to make static property '_c' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
69 |
70 | /// D regardless of Swift version.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/File.swift:71:23: warning: static 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
22 | ///
23 | /// Files refer to the eight columns of a chess board, beginning with A and ending with H from left to right.
24 | public enum File: Int, Comparable, CustomStringConvertible {
| `- note: consider making enum 'File' conform to the 'Sendable' protocol
25 |
26 | /// A direction in file.
:
69 |
70 | /// D regardless of Swift version.
71 | internal static let _d = File.d
| |- warning: static 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
| |- note: add '@MainActor' to make static property '_d' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
72 |
73 | /// E regardless of Swift version.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/File.swift:74:23: warning: static 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
22 | ///
23 | /// Files refer to the eight columns of a chess board, beginning with A and ending with H from left to right.
24 | public enum File: Int, Comparable, CustomStringConvertible {
| `- note: consider making enum 'File' conform to the 'Sendable' protocol
25 |
26 | /// A direction in file.
:
72 |
73 | /// E regardless of Swift version.
74 | internal static let _e = File.e
| |- warning: static 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
| |- note: add '@MainActor' to make static property '_e' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
75 |
76 | /// F regardless of Swift version.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/File.swift:77:23: warning: static 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
22 | ///
23 | /// Files refer to the eight columns of a chess board, beginning with A and ending with H from left to right.
24 | public enum File: Int, Comparable, CustomStringConvertible {
| `- note: consider making enum 'File' conform to the 'Sendable' protocol
25 |
26 | /// A direction in file.
:
75 |
76 | /// F regardless of Swift version.
77 | internal static let _f = File.f
| |- warning: static 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
| |- note: add '@MainActor' to make static property '_f' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
78 |
79 | /// G regardless of Swift version.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/File.swift:80:23: warning: static 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
22 | ///
23 | /// Files refer to the eight columns of a chess board, beginning with A and ending with H from left to right.
24 | public enum File: Int, Comparable, CustomStringConvertible {
| `- note: consider making enum 'File' conform to the 'Sendable' protocol
25 |
26 | /// A direction in file.
:
78 |
79 | /// G regardless of Swift version.
80 | internal static let _g = File.g
| |- warning: static 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
| |- note: add '@MainActor' to make static property '_g' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
81 |
82 | /// H regardless of Swift version.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/File.swift:83:23: warning: static 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
22 | ///
23 | /// Files refer to the eight columns of a chess board, beginning with A and ending with H from left to right.
24 | public enum File: Int, Comparable, CustomStringConvertible {
| `- note: consider making enum 'File' conform to the 'Sendable' protocol
25 |
26 | /// A direction in file.
:
81 |
82 | /// H regardless of Swift version.
83 | internal static let _h = File.h
| |- warning: static 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
| |- note: add '@MainActor' to make static property '_h' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
84 |
85 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/File.swift:90:21: warning: static 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
22 | ///
23 | /// Files refer to the eight columns of a chess board, beginning with A and ending with H from left to right.
24 | public enum File: Int, Comparable, CustomStringConvertible {
| `- note: consider making enum 'File' conform to the 'Sendable' protocol
25 |
26 | /// A direction in file.
:
88 |
89 | /// An array of all files.
90 | public static let all: [File] = [.a, .b, .c, .d, .e, .f, .g, .h]
| |- warning: static 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
| |- note: add '@MainActor' to make static property 'all' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
91 |
92 | /// The column index of `self`.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/Game.swift:35:25: warning: static 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
24 |
25 | /// A chess game outcome.
26 | public enum Outcome: Hashable, CustomStringConvertible {
| `- note: consider making enum 'Outcome' conform to the 'Sendable' protocol
27 |
28 | /// A win for a `Color`.
:
33 |
34 | /// Draw.
35 | internal static let _draw = Outcome.draw
| |- warning: static 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
| |- note: add '@MainActor' to make static property '_draw' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
36 |
37 | /// Win.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/Game.swift:240:10: warning: associated value 'wrongKingCount' of 'Sendable'-conforming enum 'PositionError' has non-sendable type 'Color'; this is an error in the Swift 6 language mode
238 |
239 | /// Found number other than 1 for king count.
240 | case wrongKingCount(Color)
| `- warning: associated value 'wrongKingCount' of 'Sendable'-conforming enum 'PositionError' has non-sendable type 'Color'; this is an error in the Swift 6 language mode
241 |
242 | /// King missing for castling right.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/Color.swift:22:13: note: consider making enum 'Color' conform to the 'Sendable' protocol
20 |
21 | /// A chess color.
22 | public enum Color: String, CustomStringConvertible {
| `- note: consider making enum 'Color' conform to the 'Sendable' protocol
23 |
24 | /// White chess color.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/Game.swift:243:10: warning: associated value 'missingKing' of 'Sendable'-conforming enum 'PositionError' has non-sendable type 'CastlingRights.Right'; this is an error in the Swift 6 language mode
241 |
242 | /// King missing for castling right.
243 | case missingKing(CastlingRights.Right)
| `- warning: associated value 'missingKing' of 'Sendable'-conforming enum 'PositionError' has non-sendable type 'CastlingRights.Right'; this is an error in the Swift 6 language mode
244 |
245 | /// Rook missing for castling right.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/CastlingRights.swift:27:15: note: consider making enum 'Right' conform to the 'Sendable' protocol
25 |
26 | /// A castling right.
27 | public enum Right: String, CustomStringConvertible {
| `- note: consider making enum 'Right' conform to the 'Sendable' protocol
28 |
29 | /// White can castle kingside.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/Game.swift:246:10: warning: associated value 'missingRook' of 'Sendable'-conforming enum 'PositionError' has non-sendable type 'CastlingRights.Right'; this is an error in the Swift 6 language mode
244 |
245 | /// Rook missing for castling right.
246 | case missingRook(CastlingRights.Right)
| `- warning: associated value 'missingRook' of 'Sendable'-conforming enum 'PositionError' has non-sendable type 'CastlingRights.Right'; this is an error in the Swift 6 language mode
247 |
248 | /// Wrong rank for en passant target.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/CastlingRights.swift:27:15: note: consider making enum 'Right' conform to the 'Sendable' protocol
25 |
26 | /// A castling right.
27 | public enum Right: String, CustomStringConvertible {
| `- note: consider making enum 'Right' conform to the 'Sendable' protocol
28 |
29 | /// White can castle kingside.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/Game.swift:249:10: warning: associated value 'wrongEnPassantTargetRank' of 'Sendable'-conforming enum 'PositionError' has non-sendable type 'Rank'; this is an error in the Swift 6 language mode
247 |
248 | /// Wrong rank for en passant target.
249 | case wrongEnPassantTargetRank(Rank)
| `- warning: associated value 'wrongEnPassantTargetRank' of 'Sendable'-conforming enum 'PositionError' has non-sendable type 'Rank'; this is an error in the Swift 6 language mode
250 |
251 | /// Non empty en passant target square.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/Rank.swift:24:13: note: consider making enum 'Rank' conform to the 'Sendable' protocol
22 | ///
23 | /// `Rank`s refer to the eight rows of a chess board, beginning with 1 at the bottom and ending with 8 at the top.
24 | public enum Rank: Int, Comparable, CustomStringConvertible {
| `- note: consider making enum 'Rank' conform to the 'Sendable' protocol
25 |
26 | /// A direction in rank.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/Game.swift:252:10: warning: associated value 'nonEmptyEnPassantTarget' of 'Sendable'-conforming enum 'PositionError' has non-sendable type 'Square'; this is an error in the Swift 6 language mode
250 |
251 | /// Non empty en passant target square.
252 | case nonEmptyEnPassantTarget(Square, Piece)
| `- warning: associated value 'nonEmptyEnPassantTarget' of 'Sendable'-conforming enum 'PositionError' has non-sendable type 'Square'; this is an error in the Swift 6 language mode
253 |
254 | /// Pawn missing for previous en passant.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/Square.swift:27:13: note: consider making enum 'Square' conform to the 'Sendable' protocol
25 | ///
26 | /// A `Square` can be one of sixty-four possible values, ranging from `A1` to `H8`.
27 | public enum Square: Int, CustomStringConvertible {
| `- note: consider making enum 'Square' conform to the 'Sendable' protocol
28 |
29 | /// A1 square.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/Game.swift:252:10: warning: associated value 'nonEmptyEnPassantTarget' of 'Sendable'-conforming enum 'PositionError' has non-sendable type 'Piece'; this is an error in the Swift 6 language mode
250 |
251 | /// Non empty en passant target square.
252 | case nonEmptyEnPassantTarget(Square, Piece)
| `- warning: associated value 'nonEmptyEnPassantTarget' of 'Sendable'-conforming enum 'PositionError' has non-sendable type 'Piece'; this is an error in the Swift 6 language mode
253 |
254 | /// Pawn missing for previous en passant.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/Piece.swift:22:15: note: consider making struct 'Piece' conform to the 'Sendable' protocol
20 |
21 | /// A chess piece.
22 | public struct Piece: Hashable, CustomStringConvertible {
| `- note: consider making struct 'Piece' conform to the 'Sendable' protocol
23 |
24 | /// A piece kind.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/Game.swift:255:10: warning: associated value 'missingEnPassantPawn' of 'Sendable'-conforming enum 'PositionError' has non-sendable type 'Square'; this is an error in the Swift 6 language mode
253 |
254 | /// Pawn missing for previous en passant.
255 | case missingEnPassantPawn(Square)
| `- warning: associated value 'missingEnPassantPawn' of 'Sendable'-conforming enum 'PositionError' has non-sendable type 'Square'; this is an error in the Swift 6 language mode
256 |
257 | /// Piece found at start of en passant move.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/Square.swift:27:13: note: consider making enum 'Square' conform to the 'Sendable' protocol
25 | ///
26 | /// A `Square` can be one of sixty-four possible values, ranging from `A1` to `H8`.
27 | public enum Square: Int, CustomStringConvertible {
| `- note: consider making enum 'Square' conform to the 'Sendable' protocol
28 |
29 | /// A1 square.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/Game.swift:258:10: warning: associated value 'nonEmptyEnPassantSquare' of 'Sendable'-conforming enum 'PositionError' has non-sendable type 'Square'; this is an error in the Swift 6 language mode
256 |
257 | /// Piece found at start of en passant move.
258 | case nonEmptyEnPassantSquare(Square, Piece)
| `- warning: associated value 'nonEmptyEnPassantSquare' of 'Sendable'-conforming enum 'PositionError' has non-sendable type 'Square'; this is an error in the Swift 6 language mode
259 |
260 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/Square.swift:27:13: note: consider making enum 'Square' conform to the 'Sendable' protocol
25 | ///
26 | /// A `Square` can be one of sixty-four possible values, ranging from `A1` to `H8`.
27 | public enum Square: Int, CustomStringConvertible {
| `- note: consider making enum 'Square' conform to the 'Sendable' protocol
28 |
29 | /// A1 square.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/Game.swift:258:10: warning: associated value 'nonEmptyEnPassantSquare' of 'Sendable'-conforming enum 'PositionError' has non-sendable type 'Piece'; this is an error in the Swift 6 language mode
256 |
257 | /// Piece found at start of en passant move.
258 | case nonEmptyEnPassantSquare(Square, Piece)
| `- warning: associated value 'nonEmptyEnPassantSquare' of 'Sendable'-conforming enum 'PositionError' has non-sendable type 'Piece'; this is an error in the Swift 6 language mode
259 |
260 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/Piece.swift:22:15: note: consider making struct 'Piece' conform to the 'Sendable' protocol
20 |
21 | /// A chess piece.
22 | public struct Piece: Hashable, CustomStringConvertible {
| `- note: consider making struct 'Piece' conform to the 'Sendable' protocol
23 |
24 | /// A piece kind.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/Game.swift:268:10: warning: associated value 'missingPiece' of 'Sendable'-conforming enum 'ExecutionError' has non-sendable type 'Square'; this is an error in the Swift 6 language mode
266 |
267 | /// Missing piece at a square.
268 | case missingPiece(Square)
| `- warning: associated value 'missingPiece' of 'Sendable'-conforming enum 'ExecutionError' has non-sendable type 'Square'; this is an error in the Swift 6 language mode
269 |
270 | /// Attempted illegal move.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/Square.swift:27:13: note: consider making enum 'Square' conform to the 'Sendable' protocol
25 | ///
26 | /// A `Square` can be one of sixty-four possible values, ranging from `A1` to `H8`.
27 | public enum Square: Int, CustomStringConvertible {
| `- note: consider making enum 'Square' conform to the 'Sendable' protocol
28 |
29 | /// A1 square.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/Game.swift:271:10: warning: associated value 'illegalMove' of 'Sendable'-conforming enum 'ExecutionError' has non-sendable type 'Move'; this is an error in the Swift 6 language mode
269 |
270 | /// Attempted illegal move.
271 | case illegalMove(Move, Color, Board)
| `- warning: associated value 'illegalMove' of 'Sendable'-conforming enum 'ExecutionError' has non-sendable type 'Move'; this is an error in the Swift 6 language mode
272 |
273 | /// Could not promote with a piece kind.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/Move.swift:22:15: note: consider making struct 'Move' conform to the 'Sendable' protocol
20 |
21 | /// A chess move from a start `Square` to an end `Square`.
22 | public struct Move: Hashable, CustomStringConvertible {
| `- note: consider making struct 'Move' conform to the 'Sendable' protocol
23 |
24 | /// The move's start square.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/Game.swift:271:10: warning: associated value 'illegalMove' of 'Sendable'-conforming enum 'ExecutionError' has non-sendable type 'Color'; this is an error in the Swift 6 language mode
269 |
270 | /// Attempted illegal move.
271 | case illegalMove(Move, Color, Board)
| `- warning: associated value 'illegalMove' of 'Sendable'-conforming enum 'ExecutionError' has non-sendable type 'Color'; this is an error in the Swift 6 language mode
272 |
273 | /// Could not promote with a piece kind.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/Color.swift:22:13: note: consider making enum 'Color' conform to the 'Sendable' protocol
20 |
21 | /// A chess color.
22 | public enum Color: String, CustomStringConvertible {
| `- note: consider making enum 'Color' conform to the 'Sendable' protocol
23 |
24 | /// White chess color.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/Game.swift:271:10: warning: associated value 'illegalMove' of 'Sendable'-conforming enum 'ExecutionError' has non-sendable type 'Board'; this is an error in the Swift 6 language mode
269 |
270 | /// Attempted illegal move.
271 | case illegalMove(Move, Color, Board)
| `- warning: associated value 'illegalMove' of 'Sendable'-conforming enum 'ExecutionError' has non-sendable type 'Board'; this is an error in the Swift 6 language mode
272 |
273 | /// Could not promote with a piece kind.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/Board.swift:24:15: note: consider making struct 'Board' conform to the 'Sendable' protocol
22 | ///
23 | /// Pieces map to separate instances of `Bitboard` which can be retrieved with `bitboard(for:)`.
24 | public struct Board: Hashable, CustomStringConvertible {
| `- note: consider making struct 'Board' conform to the 'Sendable' protocol
25 |
26 | /// A chess board space.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/Game.swift:274:10: warning: associated value 'invalidPromotion' of 'Sendable'-conforming enum 'ExecutionError' has non-sendable type 'Piece.Kind'; this is an error in the Swift 6 language mode
272 |
273 | /// Could not promote with a piece kind.
274 | case invalidPromotion(Piece.Kind)
| `- warning: associated value 'invalidPromotion' of 'Sendable'-conforming enum 'ExecutionError' has non-sendable type 'Piece.Kind'; this is an error in the Swift 6 language mode
275 |
276 | /// The error message.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/Piece.swift:25:15: note: consider making enum 'Kind' conform to the 'Sendable' protocol
23 |
24 | /// A piece kind.
25 | public enum Kind: Int {
| `- note: consider making enum 'Kind' conform to the 'Sendable' protocol
26 |
27 | /// Pawn piece kind.
[18/22] Compiling SwiftChessCore Game.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/File.swift:62:23: warning: static 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
22 | ///
23 | /// Files refer to the eight columns of a chess board, beginning with A and ending with H from left to right.
24 | public enum File: Int, Comparable, CustomStringConvertible {
| `- note: consider making enum 'File' conform to the 'Sendable' protocol
25 |
26 | /// A direction in file.
:
60 |
61 | /// A regardless of Swift version.
62 | internal static let _a = File.a
| |- warning: static 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
| |- note: add '@MainActor' to make static property '_a' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
63 |
64 | /// B regardless of Swift version.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/File.swift:65:23: warning: static 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
22 | ///
23 | /// Files refer to the eight columns of a chess board, beginning with A and ending with H from left to right.
24 | public enum File: Int, Comparable, CustomStringConvertible {
| `- note: consider making enum 'File' conform to the 'Sendable' protocol
25 |
26 | /// A direction in file.
:
63 |
64 | /// B regardless of Swift version.
65 | internal static let _b = File.b
| |- warning: static 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
| |- note: add '@MainActor' to make static property '_b' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
66 |
67 | /// C regardless of Swift version.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/File.swift:68:23: warning: static 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
22 | ///
23 | /// Files refer to the eight columns of a chess board, beginning with A and ending with H from left to right.
24 | public enum File: Int, Comparable, CustomStringConvertible {
| `- note: consider making enum 'File' conform to the 'Sendable' protocol
25 |
26 | /// A direction in file.
:
66 |
67 | /// C regardless of Swift version.
68 | internal static let _c = File.c
| |- warning: static 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
| |- note: add '@MainActor' to make static property '_c' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
69 |
70 | /// D regardless of Swift version.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/File.swift:71:23: warning: static 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
22 | ///
23 | /// Files refer to the eight columns of a chess board, beginning with A and ending with H from left to right.
24 | public enum File: Int, Comparable, CustomStringConvertible {
| `- note: consider making enum 'File' conform to the 'Sendable' protocol
25 |
26 | /// A direction in file.
:
69 |
70 | /// D regardless of Swift version.
71 | internal static let _d = File.d
| |- warning: static 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
| |- note: add '@MainActor' to make static property '_d' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
72 |
73 | /// E regardless of Swift version.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/File.swift:74:23: warning: static 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
22 | ///
23 | /// Files refer to the eight columns of a chess board, beginning with A and ending with H from left to right.
24 | public enum File: Int, Comparable, CustomStringConvertible {
| `- note: consider making enum 'File' conform to the 'Sendable' protocol
25 |
26 | /// A direction in file.
:
72 |
73 | /// E regardless of Swift version.
74 | internal static let _e = File.e
| |- warning: static 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
| |- note: add '@MainActor' to make static property '_e' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
75 |
76 | /// F regardless of Swift version.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/File.swift:77:23: warning: static 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
22 | ///
23 | /// Files refer to the eight columns of a chess board, beginning with A and ending with H from left to right.
24 | public enum File: Int, Comparable, CustomStringConvertible {
| `- note: consider making enum 'File' conform to the 'Sendable' protocol
25 |
26 | /// A direction in file.
:
75 |
76 | /// F regardless of Swift version.
77 | internal static let _f = File.f
| |- warning: static 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
| |- note: add '@MainActor' to make static property '_f' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
78 |
79 | /// G regardless of Swift version.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/File.swift:80:23: warning: static 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
22 | ///
23 | /// Files refer to the eight columns of a chess board, beginning with A and ending with H from left to right.
24 | public enum File: Int, Comparable, CustomStringConvertible {
| `- note: consider making enum 'File' conform to the 'Sendable' protocol
25 |
26 | /// A direction in file.
:
78 |
79 | /// G regardless of Swift version.
80 | internal static let _g = File.g
| |- warning: static 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
| |- note: add '@MainActor' to make static property '_g' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
81 |
82 | /// H regardless of Swift version.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/File.swift:83:23: warning: static 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
22 | ///
23 | /// Files refer to the eight columns of a chess board, beginning with A and ending with H from left to right.
24 | public enum File: Int, Comparable, CustomStringConvertible {
| `- note: consider making enum 'File' conform to the 'Sendable' protocol
25 |
26 | /// A direction in file.
:
81 |
82 | /// H regardless of Swift version.
83 | internal static let _h = File.h
| |- warning: static 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
| |- note: add '@MainActor' to make static property '_h' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
84 |
85 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/File.swift:90:21: warning: static 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
22 | ///
23 | /// Files refer to the eight columns of a chess board, beginning with A and ending with H from left to right.
24 | public enum File: Int, Comparable, CustomStringConvertible {
| `- note: consider making enum 'File' conform to the 'Sendable' protocol
25 |
26 | /// A direction in file.
:
88 |
89 | /// An array of all files.
90 | public static let all: [File] = [.a, .b, .c, .d, .e, .f, .g, .h]
| |- warning: static 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
| |- note: add '@MainActor' to make static property 'all' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
91 |
92 | /// The column index of `self`.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/Game.swift:35:25: warning: static 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
24 |
25 | /// A chess game outcome.
26 | public enum Outcome: Hashable, CustomStringConvertible {
| `- note: consider making enum 'Outcome' conform to the 'Sendable' protocol
27 |
28 | /// A win for a `Color`.
:
33 |
34 | /// Draw.
35 | internal static let _draw = Outcome.draw
| |- warning: static 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
| |- note: add '@MainActor' to make static property '_draw' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
36 |
37 | /// Win.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/Game.swift:240:10: warning: associated value 'wrongKingCount' of 'Sendable'-conforming enum 'PositionError' has non-sendable type 'Color'; this is an error in the Swift 6 language mode
238 |
239 | /// Found number other than 1 for king count.
240 | case wrongKingCount(Color)
| `- warning: associated value 'wrongKingCount' of 'Sendable'-conforming enum 'PositionError' has non-sendable type 'Color'; this is an error in the Swift 6 language mode
241 |
242 | /// King missing for castling right.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/Color.swift:22:13: note: consider making enum 'Color' conform to the 'Sendable' protocol
20 |
21 | /// A chess color.
22 | public enum Color: String, CustomStringConvertible {
| `- note: consider making enum 'Color' conform to the 'Sendable' protocol
23 |
24 | /// White chess color.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/Game.swift:243:10: warning: associated value 'missingKing' of 'Sendable'-conforming enum 'PositionError' has non-sendable type 'CastlingRights.Right'; this is an error in the Swift 6 language mode
241 |
242 | /// King missing for castling right.
243 | case missingKing(CastlingRights.Right)
| `- warning: associated value 'missingKing' of 'Sendable'-conforming enum 'PositionError' has non-sendable type 'CastlingRights.Right'; this is an error in the Swift 6 language mode
244 |
245 | /// Rook missing for castling right.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/CastlingRights.swift:27:15: note: consider making enum 'Right' conform to the 'Sendable' protocol
25 |
26 | /// A castling right.
27 | public enum Right: String, CustomStringConvertible {
| `- note: consider making enum 'Right' conform to the 'Sendable' protocol
28 |
29 | /// White can castle kingside.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/Game.swift:246:10: warning: associated value 'missingRook' of 'Sendable'-conforming enum 'PositionError' has non-sendable type 'CastlingRights.Right'; this is an error in the Swift 6 language mode
244 |
245 | /// Rook missing for castling right.
246 | case missingRook(CastlingRights.Right)
| `- warning: associated value 'missingRook' of 'Sendable'-conforming enum 'PositionError' has non-sendable type 'CastlingRights.Right'; this is an error in the Swift 6 language mode
247 |
248 | /// Wrong rank for en passant target.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/CastlingRights.swift:27:15: note: consider making enum 'Right' conform to the 'Sendable' protocol
25 |
26 | /// A castling right.
27 | public enum Right: String, CustomStringConvertible {
| `- note: consider making enum 'Right' conform to the 'Sendable' protocol
28 |
29 | /// White can castle kingside.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/Game.swift:249:10: warning: associated value 'wrongEnPassantTargetRank' of 'Sendable'-conforming enum 'PositionError' has non-sendable type 'Rank'; this is an error in the Swift 6 language mode
247 |
248 | /// Wrong rank for en passant target.
249 | case wrongEnPassantTargetRank(Rank)
| `- warning: associated value 'wrongEnPassantTargetRank' of 'Sendable'-conforming enum 'PositionError' has non-sendable type 'Rank'; this is an error in the Swift 6 language mode
250 |
251 | /// Non empty en passant target square.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/Rank.swift:24:13: note: consider making enum 'Rank' conform to the 'Sendable' protocol
22 | ///
23 | /// `Rank`s refer to the eight rows of a chess board, beginning with 1 at the bottom and ending with 8 at the top.
24 | public enum Rank: Int, Comparable, CustomStringConvertible {
| `- note: consider making enum 'Rank' conform to the 'Sendable' protocol
25 |
26 | /// A direction in rank.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/Game.swift:252:10: warning: associated value 'nonEmptyEnPassantTarget' of 'Sendable'-conforming enum 'PositionError' has non-sendable type 'Square'; this is an error in the Swift 6 language mode
250 |
251 | /// Non empty en passant target square.
252 | case nonEmptyEnPassantTarget(Square, Piece)
| `- warning: associated value 'nonEmptyEnPassantTarget' of 'Sendable'-conforming enum 'PositionError' has non-sendable type 'Square'; this is an error in the Swift 6 language mode
253 |
254 | /// Pawn missing for previous en passant.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/Square.swift:27:13: note: consider making enum 'Square' conform to the 'Sendable' protocol
25 | ///
26 | /// A `Square` can be one of sixty-four possible values, ranging from `A1` to `H8`.
27 | public enum Square: Int, CustomStringConvertible {
| `- note: consider making enum 'Square' conform to the 'Sendable' protocol
28 |
29 | /// A1 square.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/Game.swift:252:10: warning: associated value 'nonEmptyEnPassantTarget' of 'Sendable'-conforming enum 'PositionError' has non-sendable type 'Piece'; this is an error in the Swift 6 language mode
250 |
251 | /// Non empty en passant target square.
252 | case nonEmptyEnPassantTarget(Square, Piece)
| `- warning: associated value 'nonEmptyEnPassantTarget' of 'Sendable'-conforming enum 'PositionError' has non-sendable type 'Piece'; this is an error in the Swift 6 language mode
253 |
254 | /// Pawn missing for previous en passant.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/Piece.swift:22:15: note: consider making struct 'Piece' conform to the 'Sendable' protocol
20 |
21 | /// A chess piece.
22 | public struct Piece: Hashable, CustomStringConvertible {
| `- note: consider making struct 'Piece' conform to the 'Sendable' protocol
23 |
24 | /// A piece kind.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/Game.swift:255:10: warning: associated value 'missingEnPassantPawn' of 'Sendable'-conforming enum 'PositionError' has non-sendable type 'Square'; this is an error in the Swift 6 language mode
253 |
254 | /// Pawn missing for previous en passant.
255 | case missingEnPassantPawn(Square)
| `- warning: associated value 'missingEnPassantPawn' of 'Sendable'-conforming enum 'PositionError' has non-sendable type 'Square'; this is an error in the Swift 6 language mode
256 |
257 | /// Piece found at start of en passant move.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/Square.swift:27:13: note: consider making enum 'Square' conform to the 'Sendable' protocol
25 | ///
26 | /// A `Square` can be one of sixty-four possible values, ranging from `A1` to `H8`.
27 | public enum Square: Int, CustomStringConvertible {
| `- note: consider making enum 'Square' conform to the 'Sendable' protocol
28 |
29 | /// A1 square.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/Game.swift:258:10: warning: associated value 'nonEmptyEnPassantSquare' of 'Sendable'-conforming enum 'PositionError' has non-sendable type 'Square'; this is an error in the Swift 6 language mode
256 |
257 | /// Piece found at start of en passant move.
258 | case nonEmptyEnPassantSquare(Square, Piece)
| `- warning: associated value 'nonEmptyEnPassantSquare' of 'Sendable'-conforming enum 'PositionError' has non-sendable type 'Square'; this is an error in the Swift 6 language mode
259 |
260 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/Square.swift:27:13: note: consider making enum 'Square' conform to the 'Sendable' protocol
25 | ///
26 | /// A `Square` can be one of sixty-four possible values, ranging from `A1` to `H8`.
27 | public enum Square: Int, CustomStringConvertible {
| `- note: consider making enum 'Square' conform to the 'Sendable' protocol
28 |
29 | /// A1 square.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/Game.swift:258:10: warning: associated value 'nonEmptyEnPassantSquare' of 'Sendable'-conforming enum 'PositionError' has non-sendable type 'Piece'; this is an error in the Swift 6 language mode
256 |
257 | /// Piece found at start of en passant move.
258 | case nonEmptyEnPassantSquare(Square, Piece)
| `- warning: associated value 'nonEmptyEnPassantSquare' of 'Sendable'-conforming enum 'PositionError' has non-sendable type 'Piece'; this is an error in the Swift 6 language mode
259 |
260 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/Piece.swift:22:15: note: consider making struct 'Piece' conform to the 'Sendable' protocol
20 |
21 | /// A chess piece.
22 | public struct Piece: Hashable, CustomStringConvertible {
| `- note: consider making struct 'Piece' conform to the 'Sendable' protocol
23 |
24 | /// A piece kind.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/Game.swift:268:10: warning: associated value 'missingPiece' of 'Sendable'-conforming enum 'ExecutionError' has non-sendable type 'Square'; this is an error in the Swift 6 language mode
266 |
267 | /// Missing piece at a square.
268 | case missingPiece(Square)
| `- warning: associated value 'missingPiece' of 'Sendable'-conforming enum 'ExecutionError' has non-sendable type 'Square'; this is an error in the Swift 6 language mode
269 |
270 | /// Attempted illegal move.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/Square.swift:27:13: note: consider making enum 'Square' conform to the 'Sendable' protocol
25 | ///
26 | /// A `Square` can be one of sixty-four possible values, ranging from `A1` to `H8`.
27 | public enum Square: Int, CustomStringConvertible {
| `- note: consider making enum 'Square' conform to the 'Sendable' protocol
28 |
29 | /// A1 square.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/Game.swift:271:10: warning: associated value 'illegalMove' of 'Sendable'-conforming enum 'ExecutionError' has non-sendable type 'Move'; this is an error in the Swift 6 language mode
269 |
270 | /// Attempted illegal move.
271 | case illegalMove(Move, Color, Board)
| `- warning: associated value 'illegalMove' of 'Sendable'-conforming enum 'ExecutionError' has non-sendable type 'Move'; this is an error in the Swift 6 language mode
272 |
273 | /// Could not promote with a piece kind.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/Move.swift:22:15: note: consider making struct 'Move' conform to the 'Sendable' protocol
20 |
21 | /// A chess move from a start `Square` to an end `Square`.
22 | public struct Move: Hashable, CustomStringConvertible {
| `- note: consider making struct 'Move' conform to the 'Sendable' protocol
23 |
24 | /// The move's start square.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/Game.swift:271:10: warning: associated value 'illegalMove' of 'Sendable'-conforming enum 'ExecutionError' has non-sendable type 'Color'; this is an error in the Swift 6 language mode
269 |
270 | /// Attempted illegal move.
271 | case illegalMove(Move, Color, Board)
| `- warning: associated value 'illegalMove' of 'Sendable'-conforming enum 'ExecutionError' has non-sendable type 'Color'; this is an error in the Swift 6 language mode
272 |
273 | /// Could not promote with a piece kind.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/Color.swift:22:13: note: consider making enum 'Color' conform to the 'Sendable' protocol
20 |
21 | /// A chess color.
22 | public enum Color: String, CustomStringConvertible {
| `- note: consider making enum 'Color' conform to the 'Sendable' protocol
23 |
24 | /// White chess color.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/Game.swift:271:10: warning: associated value 'illegalMove' of 'Sendable'-conforming enum 'ExecutionError' has non-sendable type 'Board'; this is an error in the Swift 6 language mode
269 |
270 | /// Attempted illegal move.
271 | case illegalMove(Move, Color, Board)
| `- warning: associated value 'illegalMove' of 'Sendable'-conforming enum 'ExecutionError' has non-sendable type 'Board'; this is an error in the Swift 6 language mode
272 |
273 | /// Could not promote with a piece kind.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/Board.swift:24:15: note: consider making struct 'Board' conform to the 'Sendable' protocol
22 | ///
23 | /// Pieces map to separate instances of `Bitboard` which can be retrieved with `bitboard(for:)`.
24 | public struct Board: Hashable, CustomStringConvertible {
| `- note: consider making struct 'Board' conform to the 'Sendable' protocol
25 |
26 | /// A chess board space.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/Game.swift:274:10: warning: associated value 'invalidPromotion' of 'Sendable'-conforming enum 'ExecutionError' has non-sendable type 'Piece.Kind'; this is an error in the Swift 6 language mode
272 |
273 | /// Could not promote with a piece kind.
274 | case invalidPromotion(Piece.Kind)
| `- warning: associated value 'invalidPromotion' of 'Sendable'-conforming enum 'ExecutionError' has non-sendable type 'Piece.Kind'; this is an error in the Swift 6 language mode
275 |
276 | /// The error message.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/Piece.swift:25:15: note: consider making enum 'Kind' conform to the 'Sendable' protocol
23 |
24 | /// A piece kind.
25 | public enum Kind: Int {
| `- note: consider making enum 'Kind' conform to the 'Sendable' protocol
26 |
27 | /// Pawn piece kind.
[19/22] Compiling SwiftChessCore CastlingRights.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/CastlingRights.swift:42:23: warning: static 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
25 |
26 | /// A castling right.
27 | public enum Right: String, CustomStringConvertible {
| `- note: consider making enum 'Right' conform to the 'Sendable' protocol
28 |
29 | /// White can castle kingside.
:
40 |
41 | /// All rights.
42 | public static let all: [Right] = [
| |- warning: static 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
| |- note: add '@MainActor' to make static property 'all' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
43 | .whiteKingside, .whiteQueenside, .blackKingside, .blackQueenside,
44 | ]
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/CastlingRights.swift:47:23: warning: static 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
25 |
26 | /// A castling right.
27 | public enum Right: String, CustomStringConvertible {
| `- note: consider making enum 'Right' conform to the 'Sendable' protocol
28 |
29 | /// White can castle kingside.
:
45 |
46 | /// White rights.
47 | public static let white: [Right] = all.filter({ $0.color.isWhite })
| |- warning: static 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
| |- note: add '@MainActor' to make static property 'white' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
48 |
49 | /// Black rights.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/CastlingRights.swift:50:23: warning: static 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
25 |
26 | /// A castling right.
27 | public enum Right: String, CustomStringConvertible {
| `- note: consider making enum 'Right' conform to the 'Sendable' protocol
28 |
29 | /// White can castle kingside.
:
48 |
49 | /// Black rights.
50 | public static let black: [Right] = all.filter({ $0.color.isBlack })
| |- warning: static 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
| |- note: add '@MainActor' to make static property 'black' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
51 |
52 | /// Kingside rights.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/CastlingRights.swift:53:23: warning: static 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
25 |
26 | /// A castling right.
27 | public enum Right: String, CustomStringConvertible {
| `- note: consider making enum 'Right' conform to the 'Sendable' protocol
28 |
29 | /// White can castle kingside.
:
51 |
52 | /// Kingside rights.
53 | public static let kingside: [Right] = all.filter({ $0.side.isKingside })
| |- warning: static 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
| |- note: add '@MainActor' to make static property 'kingside' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
54 |
55 | /// Queenside rights.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/CastlingRights.swift:56:23: warning: static 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
25 |
26 | /// A castling right.
27 | public enum Right: String, CustomStringConvertible {
| `- note: consider making enum 'Right' conform to the 'Sendable' protocol
28 |
29 | /// White can castle kingside.
:
54 |
55 | /// Queenside rights.
56 | public static let queenside: [Right] = all.filter({ $0.side.isQueenside })
| |- warning: static 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
| |- note: add '@MainActor' to make static property 'queenside' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
57 |
58 | /// The color for `self`.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/CastlingRights.swift:176:21: warning: static 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
22 | ///
23 | /// Defines whether a `Color` has the right to castle for a `Board.Side`.
24 | public struct CastlingRights: CustomStringConvertible {
| `- note: consider making struct 'CastlingRights' conform to the 'Sendable' protocol
25 |
26 | /// A castling right.
:
174 |
175 | /// All castling rights.
176 | public static let all = CastlingRights(Right.all)
| |- warning: static 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
| |- note: add '@MainActor' to make static property 'all' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
177 |
178 | /// White castling rights.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/CastlingRights.swift:179:21: warning: static 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
22 | ///
23 | /// Defines whether a `Color` has the right to castle for a `Board.Side`.
24 | public struct CastlingRights: CustomStringConvertible {
| `- note: consider making struct 'CastlingRights' conform to the 'Sendable' protocol
25 |
26 | /// A castling right.
:
177 |
178 | /// White castling rights.
179 | public static let white = CastlingRights(Right.white)
| |- warning: static 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
| |- note: add '@MainActor' to make static property 'white' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
180 |
181 | /// Black castling rights.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/CastlingRights.swift:182:21: warning: static 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
22 | ///
23 | /// Defines whether a `Color` has the right to castle for a `Board.Side`.
24 | public struct CastlingRights: CustomStringConvertible {
| `- note: consider making struct 'CastlingRights' conform to the 'Sendable' protocol
25 |
26 | /// A castling right.
:
180 |
181 | /// Black castling rights.
182 | public static let black = CastlingRights(Right.black)
| |- warning: static 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
| |- note: add '@MainActor' to make static property 'black' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
183 |
184 | /// Kingside castling rights.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/CastlingRights.swift:185:21: warning: static 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
22 | ///
23 | /// Defines whether a `Color` has the right to castle for a `Board.Side`.
24 | public struct CastlingRights: CustomStringConvertible {
| `- note: consider making struct 'CastlingRights' conform to the 'Sendable' protocol
25 |
26 | /// A castling right.
:
183 |
184 | /// Kingside castling rights.
185 | public static let kingside = CastlingRights(Right.kingside)
| |- warning: static 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
| |- note: add '@MainActor' to make static property 'kingside' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
186 |
187 | /// Queenside castling rights.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/CastlingRights.swift:188:21: warning: static 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
22 | ///
23 | /// Defines whether a `Color` has the right to castle for a `Board.Side`.
24 | public struct CastlingRights: CustomStringConvertible {
| `- note: consider making struct 'CastlingRights' conform to the 'Sendable' protocol
25 |
26 | /// A castling right.
:
186 |
187 | /// Queenside castling rights.
188 | public static let queenside = CastlingRights(Right.queenside)
| |- warning: static 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
| |- note: add '@MainActor' to make static property 'queenside' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
189 |
190 | /// The rights.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/Color.swift:31:23: warning: static 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
20 |
21 | /// A chess color.
22 | public enum Color: String, CustomStringConvertible {
| `- note: consider making enum 'Color' conform to the 'Sendable' protocol
23 |
24 | /// White chess color.
:
29 |
30 | /// White color regardless of Swift version.
31 | internal static let _white = Color.white
| |- warning: static 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
| |- note: add '@MainActor' to make static property '_white' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
32 |
33 | /// Black color regardless of Swift version.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/Color.swift:34:23: warning: static 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
20 |
21 | /// A chess color.
22 | public enum Color: String, CustomStringConvertible {
| `- note: consider making enum 'Color' conform to the 'Sendable' protocol
23 |
24 | /// White chess color.
:
32 |
33 | /// Black color regardless of Swift version.
34 | internal static let _black = Color.black
| |- warning: static 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
| |- note: add '@MainActor' to make static property '_black' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
35 |
36 | /// An array of all colors.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/Color.swift:37:21: warning: static 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
20 |
21 | /// A chess color.
22 | public enum Color: String, CustomStringConvertible {
| `- note: consider making enum 'Color' conform to the 'Sendable' protocol
23 |
24 | /// White chess color.
:
35 |
36 | /// An array of all colors.
37 | public static let all: [Color] = [.white, .black]
| |- warning: static 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
| |- note: add '@MainActor' to make static property 'all' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
38 |
39 | /// Whether the color is white or not.
[20/22] Compiling SwiftChessCore Color.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/CastlingRights.swift:42:23: warning: static 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
25 |
26 | /// A castling right.
27 | public enum Right: String, CustomStringConvertible {
| `- note: consider making enum 'Right' conform to the 'Sendable' protocol
28 |
29 | /// White can castle kingside.
:
40 |
41 | /// All rights.
42 | public static let all: [Right] = [
| |- warning: static 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
| |- note: add '@MainActor' to make static property 'all' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
43 | .whiteKingside, .whiteQueenside, .blackKingside, .blackQueenside,
44 | ]
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/CastlingRights.swift:47:23: warning: static 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
25 |
26 | /// A castling right.
27 | public enum Right: String, CustomStringConvertible {
| `- note: consider making enum 'Right' conform to the 'Sendable' protocol
28 |
29 | /// White can castle kingside.
:
45 |
46 | /// White rights.
47 | public static let white: [Right] = all.filter({ $0.color.isWhite })
| |- warning: static 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
| |- note: add '@MainActor' to make static property 'white' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
48 |
49 | /// Black rights.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/CastlingRights.swift:50:23: warning: static 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
25 |
26 | /// A castling right.
27 | public enum Right: String, CustomStringConvertible {
| `- note: consider making enum 'Right' conform to the 'Sendable' protocol
28 |
29 | /// White can castle kingside.
:
48 |
49 | /// Black rights.
50 | public static let black: [Right] = all.filter({ $0.color.isBlack })
| |- warning: static 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
| |- note: add '@MainActor' to make static property 'black' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
51 |
52 | /// Kingside rights.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/CastlingRights.swift:53:23: warning: static 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
25 |
26 | /// A castling right.
27 | public enum Right: String, CustomStringConvertible {
| `- note: consider making enum 'Right' conform to the 'Sendable' protocol
28 |
29 | /// White can castle kingside.
:
51 |
52 | /// Kingside rights.
53 | public static let kingside: [Right] = all.filter({ $0.side.isKingside })
| |- warning: static 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
| |- note: add '@MainActor' to make static property 'kingside' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
54 |
55 | /// Queenside rights.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/CastlingRights.swift:56:23: warning: static 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
25 |
26 | /// A castling right.
27 | public enum Right: String, CustomStringConvertible {
| `- note: consider making enum 'Right' conform to the 'Sendable' protocol
28 |
29 | /// White can castle kingside.
:
54 |
55 | /// Queenside rights.
56 | public static let queenside: [Right] = all.filter({ $0.side.isQueenside })
| |- warning: static 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
| |- note: add '@MainActor' to make static property 'queenside' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
57 |
58 | /// The color for `self`.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/CastlingRights.swift:176:21: warning: static 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
22 | ///
23 | /// Defines whether a `Color` has the right to castle for a `Board.Side`.
24 | public struct CastlingRights: CustomStringConvertible {
| `- note: consider making struct 'CastlingRights' conform to the 'Sendable' protocol
25 |
26 | /// A castling right.
:
174 |
175 | /// All castling rights.
176 | public static let all = CastlingRights(Right.all)
| |- warning: static 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
| |- note: add '@MainActor' to make static property 'all' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
177 |
178 | /// White castling rights.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/CastlingRights.swift:179:21: warning: static 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
22 | ///
23 | /// Defines whether a `Color` has the right to castle for a `Board.Side`.
24 | public struct CastlingRights: CustomStringConvertible {
| `- note: consider making struct 'CastlingRights' conform to the 'Sendable' protocol
25 |
26 | /// A castling right.
:
177 |
178 | /// White castling rights.
179 | public static let white = CastlingRights(Right.white)
| |- warning: static 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
| |- note: add '@MainActor' to make static property 'white' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
180 |
181 | /// Black castling rights.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/CastlingRights.swift:182:21: warning: static 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
22 | ///
23 | /// Defines whether a `Color` has the right to castle for a `Board.Side`.
24 | public struct CastlingRights: CustomStringConvertible {
| `- note: consider making struct 'CastlingRights' conform to the 'Sendable' protocol
25 |
26 | /// A castling right.
:
180 |
181 | /// Black castling rights.
182 | public static let black = CastlingRights(Right.black)
| |- warning: static 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
| |- note: add '@MainActor' to make static property 'black' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
183 |
184 | /// Kingside castling rights.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/CastlingRights.swift:185:21: warning: static 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
22 | ///
23 | /// Defines whether a `Color` has the right to castle for a `Board.Side`.
24 | public struct CastlingRights: CustomStringConvertible {
| `- note: consider making struct 'CastlingRights' conform to the 'Sendable' protocol
25 |
26 | /// A castling right.
:
183 |
184 | /// Kingside castling rights.
185 | public static let kingside = CastlingRights(Right.kingside)
| |- warning: static 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
| |- note: add '@MainActor' to make static property 'kingside' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
186 |
187 | /// Queenside castling rights.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/CastlingRights.swift:188:21: warning: static 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
22 | ///
23 | /// Defines whether a `Color` has the right to castle for a `Board.Side`.
24 | public struct CastlingRights: CustomStringConvertible {
| `- note: consider making struct 'CastlingRights' conform to the 'Sendable' protocol
25 |
26 | /// A castling right.
:
186 |
187 | /// Queenside castling rights.
188 | public static let queenside = CastlingRights(Right.queenside)
| |- warning: static 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
| |- note: add '@MainActor' to make static property 'queenside' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
189 |
190 | /// The rights.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/Color.swift:31:23: warning: static 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
20 |
21 | /// A chess color.
22 | public enum Color: String, CustomStringConvertible {
| `- note: consider making enum 'Color' conform to the 'Sendable' protocol
23 |
24 | /// White chess color.
:
29 |
30 | /// White color regardless of Swift version.
31 | internal static let _white = Color.white
| |- warning: static 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
| |- note: add '@MainActor' to make static property '_white' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
32 |
33 | /// Black color regardless of Swift version.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/Color.swift:34:23: warning: static 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
20 |
21 | /// A chess color.
22 | public enum Color: String, CustomStringConvertible {
| `- note: consider making enum 'Color' conform to the 'Sendable' protocol
23 |
24 | /// White chess color.
:
32 |
33 | /// Black color regardless of Swift version.
34 | internal static let _black = Color.black
| |- warning: static 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
| |- note: add '@MainActor' to make static property '_black' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
35 |
36 | /// An array of all colors.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/Color.swift:37:21: warning: static 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
20 |
21 | /// A chess color.
22 | public enum Color: String, CustomStringConvertible {
| `- note: consider making enum 'Color' conform to the 'Sendable' protocol
23 |
24 | /// White chess color.
:
35 |
36 | /// An array of all colors.
37 | public static let all: [Color] = [.white, .black]
| |- warning: static 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
| |- note: add '@MainActor' to make static property 'all' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
38 |
39 | /// Whether the color is white or not.
[21/22] Compiling SwiftChessCore Bitboard.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/Bitboard.swift:46:13: warning: let '_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
44 |
45 | /// A lookup table of bitboards for all squares.
46 | private let _bitboardTable: [Bitboard] = (0..<64).map { Bitboard(rawValue: 1 << $0) }
| |- warning: let '_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
| |- note: add '@MainActor' to make let '_bitboardTable' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
47 |
48 | /// The De Bruijn multiplier.
:
80 | /// - see also: [Bitboard (Wikipedia)](https://en.wikipedia.org/wiki/Bitboard ),
81 | /// [Bitboards (Chess Programming Wiki)](https://chessprogramming.org/Bitboards)
82 | public struct Bitboard: RawRepresentable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'Bitboard' conform to the 'Sendable' protocol
83 |
84 | /// A bitboard shift direction.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/Bitboard.swift:60:13: warning: let '_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
58 |
59 | /// Mask for bits not in File A.
60 | private let _notFileA: Bitboard = 0xfefe_fefe_fefe_fefe
| |- warning: let '_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
| |- note: add '@MainActor' to make let '_notFileA' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
61 |
62 | /// Mask for bits not in Files A and B.
:
80 | /// - see also: [Bitboard (Wikipedia)](https://en.wikipedia.org/wiki/Bitboard ),
81 | /// [Bitboards (Chess Programming Wiki)](https://chessprogramming.org/Bitboards)
82 | public struct Bitboard: RawRepresentable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'Bitboard' conform to the 'Sendable' protocol
83 |
84 | /// A bitboard shift direction.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/Bitboard.swift:63:13: warning: let '_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
61 |
62 | /// Mask for bits not in Files A and B.
63 | private let _notFileAB: Bitboard = 0xfcfc_fcfc_fcfc_fcfc
| |- warning: let '_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
| |- note: add '@MainActor' to make let '_notFileAB' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
64 |
65 | /// Mask for bits not in File H.
:
80 | /// - see also: [Bitboard (Wikipedia)](https://en.wikipedia.org/wiki/Bitboard ),
81 | /// [Bitboards (Chess Programming Wiki)](https://chessprogramming.org/Bitboards)
82 | public struct Bitboard: RawRepresentable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'Bitboard' conform to the 'Sendable' protocol
83 |
84 | /// A bitboard shift direction.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/Bitboard.swift:66:13: warning: let '_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
64 |
65 | /// Mask for bits not in File H.
66 | private let _notFileH: Bitboard = 0x7f7f_7f7f_7f7f_7f7f
| |- warning: let '_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
| |- note: add '@MainActor' to make let '_notFileH' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
67 |
68 | /// Mask for bits not in Files G and H.
:
80 | /// - see also: [Bitboard (Wikipedia)](https://en.wikipedia.org/wiki/Bitboard ),
81 | /// [Bitboards (Chess Programming Wiki)](https://chessprogramming.org/Bitboards)
82 | public struct Bitboard: RawRepresentable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'Bitboard' conform to the 'Sendable' protocol
83 |
84 | /// A bitboard shift direction.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/Bitboard.swift:69:13: warning: let '_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
67 |
68 | /// Mask for bits not in Files G and H.
69 | private let _notFileGH: Bitboard = 0x3f3f_3f3f_3f3f_3f3f
| |- warning: let '_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
| |- note: add '@MainActor' to make let '_notFileGH' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
70 |
71 | /// A bitmap of sixty-four bits suitable for storing squares for various pieces.
:
80 | /// - see also: [Bitboard (Wikipedia)](https://en.wikipedia.org/wiki/Bitboard ),
81 | /// [Bitboards (Chess Programming Wiki)](https://chessprogramming.org/Bitboards)
82 | public struct Bitboard: RawRepresentable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'Bitboard' conform to the 'Sendable' protocol
83 |
84 | /// A bitboard shift direction.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/Bitboard.swift:112:25: warning: static 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
83 |
84 | /// A bitboard shift direction.
85 | public enum ShiftDirection {
| `- note: consider making enum 'ShiftDirection' conform to the 'Sendable' protocol
86 |
87 | /// North direction.
:
110 |
111 | /// North regardless of Swift version.
112 | internal static let _north = ShiftDirection.north
| |- warning: static 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
| |- note: add '@MainActor' to make static property '_north' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
113 |
114 | /// South regardless of Swift version.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/Bitboard.swift:115:25: warning: static 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
83 |
84 | /// A bitboard shift direction.
85 | public enum ShiftDirection {
| `- note: consider making enum 'ShiftDirection' conform to the 'Sendable' protocol
86 |
87 | /// North direction.
:
113 |
114 | /// South regardless of Swift version.
115 | internal static let _south = ShiftDirection.south
| |- warning: static 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
| |- note: add '@MainActor' to make static property '_south' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
116 |
117 | /// East regardless of Swift version.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/Bitboard.swift:118:25: warning: static 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
83 |
84 | /// A bitboard shift direction.
85 | public enum ShiftDirection {
| `- note: consider making enum 'ShiftDirection' conform to the 'Sendable' protocol
86 |
87 | /// North direction.
:
116 |
117 | /// East regardless of Swift version.
118 | internal static let _east = ShiftDirection.east
| |- warning: static 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
| |- note: add '@MainActor' to make static property '_east' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
119 |
120 | /// West regardless of Swift version.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/Bitboard.swift:121:25: warning: static 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
83 |
84 | /// A bitboard shift direction.
85 | public enum ShiftDirection {
| `- note: consider making enum 'ShiftDirection' conform to the 'Sendable' protocol
86 |
87 | /// North direction.
:
119 |
120 | /// West regardless of Swift version.
121 | internal static let _west = ShiftDirection.west
| |- warning: static 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
| |- note: add '@MainActor' to make static property '_west' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
122 |
123 | /// Northeast regardless of Swift version.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/Bitboard.swift:124:25: warning: static 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
83 |
84 | /// A bitboard shift direction.
85 | public enum ShiftDirection {
| `- note: consider making enum 'ShiftDirection' conform to the 'Sendable' protocol
86 |
87 | /// North direction.
:
122 |
123 | /// Northeast regardless of Swift version.
124 | internal static let _northeast = ShiftDirection.northeast
| |- warning: static 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
| |- note: add '@MainActor' to make static property '_northeast' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
125 |
126 | /// Southeast regardless of Swift version.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/Bitboard.swift:127:25: warning: static 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
83 |
84 | /// A bitboard shift direction.
85 | public enum ShiftDirection {
| `- note: consider making enum 'ShiftDirection' conform to the 'Sendable' protocol
86 |
87 | /// North direction.
:
125 |
126 | /// Southeast regardless of Swift version.
127 | internal static let _southeast = ShiftDirection.southeast
| |- warning: static 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
| |- note: add '@MainActor' to make static property '_southeast' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
128 |
129 | /// Northwest regardless of Swift version.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/Bitboard.swift:130:25: warning: static 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
83 |
84 | /// A bitboard shift direction.
85 | public enum ShiftDirection {
| `- note: consider making enum 'ShiftDirection' conform to the 'Sendable' protocol
86 |
87 | /// North direction.
:
128 |
129 | /// Northwest regardless of Swift version.
130 | internal static let _northwest = ShiftDirection.northwest
| |- warning: static 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
| |- note: add '@MainActor' to make static property '_northwest' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
131 |
132 | /// Southwest regardless of Swift version.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/Bitboard.swift:133:25: warning: static 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
83 |
84 | /// A bitboard shift direction.
85 | public enum ShiftDirection {
| `- note: consider making enum 'ShiftDirection' conform to the 'Sendable' protocol
86 |
87 | /// North direction.
:
131 |
132 | /// Southwest regardless of Swift version.
133 | internal static let _southwest = ShiftDirection.southwest
| |- warning: static 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
| |- note: add '@MainActor' to make static property '_southwest' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
134 |
135 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/Bitboard.swift:156:21: warning: static 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
80 | /// - see also: [Bitboard (Wikipedia)](https://en.wikipedia.org/wiki/Bitboard ),
81 | /// [Bitboards (Chess Programming Wiki)](https://chessprogramming.org/Bitboards)
82 | public struct Bitboard: RawRepresentable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'Bitboard' conform to the 'Sendable' protocol
83 |
84 | /// A bitboard shift direction.
:
154 |
155 | /// The edges of a board.
156 | public static let edges: Bitboard = 0xff81_8181_8181_81ff
| |- warning: static 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
| |- note: add '@MainActor' to make static property 'edges' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
157 |
158 | /// The corresponding value of the "raw" type.
[22/22] Compiling SwiftChessCore Board.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/Bitboard.swift:46:13: warning: let '_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
44 |
45 | /// A lookup table of bitboards for all squares.
46 | private let _bitboardTable: [Bitboard] = (0..<64).map { Bitboard(rawValue: 1 << $0) }
| |- warning: let '_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
| |- note: add '@MainActor' to make let '_bitboardTable' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
47 |
48 | /// The De Bruijn multiplier.
:
80 | /// - see also: [Bitboard (Wikipedia)](https://en.wikipedia.org/wiki/Bitboard ),
81 | /// [Bitboards (Chess Programming Wiki)](https://chessprogramming.org/Bitboards)
82 | public struct Bitboard: RawRepresentable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'Bitboard' conform to the 'Sendable' protocol
83 |
84 | /// A bitboard shift direction.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/Bitboard.swift:60:13: warning: let '_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
58 |
59 | /// Mask for bits not in File A.
60 | private let _notFileA: Bitboard = 0xfefe_fefe_fefe_fefe
| |- warning: let '_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
| |- note: add '@MainActor' to make let '_notFileA' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
61 |
62 | /// Mask for bits not in Files A and B.
:
80 | /// - see also: [Bitboard (Wikipedia)](https://en.wikipedia.org/wiki/Bitboard ),
81 | /// [Bitboards (Chess Programming Wiki)](https://chessprogramming.org/Bitboards)
82 | public struct Bitboard: RawRepresentable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'Bitboard' conform to the 'Sendable' protocol
83 |
84 | /// A bitboard shift direction.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/Bitboard.swift:63:13: warning: let '_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
61 |
62 | /// Mask for bits not in Files A and B.
63 | private let _notFileAB: Bitboard = 0xfcfc_fcfc_fcfc_fcfc
| |- warning: let '_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
| |- note: add '@MainActor' to make let '_notFileAB' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
64 |
65 | /// Mask for bits not in File H.
:
80 | /// - see also: [Bitboard (Wikipedia)](https://en.wikipedia.org/wiki/Bitboard ),
81 | /// [Bitboards (Chess Programming Wiki)](https://chessprogramming.org/Bitboards)
82 | public struct Bitboard: RawRepresentable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'Bitboard' conform to the 'Sendable' protocol
83 |
84 | /// A bitboard shift direction.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/Bitboard.swift:66:13: warning: let '_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
64 |
65 | /// Mask for bits not in File H.
66 | private let _notFileH: Bitboard = 0x7f7f_7f7f_7f7f_7f7f
| |- warning: let '_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
| |- note: add '@MainActor' to make let '_notFileH' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
67 |
68 | /// Mask for bits not in Files G and H.
:
80 | /// - see also: [Bitboard (Wikipedia)](https://en.wikipedia.org/wiki/Bitboard ),
81 | /// [Bitboards (Chess Programming Wiki)](https://chessprogramming.org/Bitboards)
82 | public struct Bitboard: RawRepresentable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'Bitboard' conform to the 'Sendable' protocol
83 |
84 | /// A bitboard shift direction.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/Bitboard.swift:69:13: warning: let '_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
67 |
68 | /// Mask for bits not in Files G and H.
69 | private let _notFileGH: Bitboard = 0x3f3f_3f3f_3f3f_3f3f
| |- warning: let '_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
| |- note: add '@MainActor' to make let '_notFileGH' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
70 |
71 | /// A bitmap of sixty-four bits suitable for storing squares for various pieces.
:
80 | /// - see also: [Bitboard (Wikipedia)](https://en.wikipedia.org/wiki/Bitboard ),
81 | /// [Bitboards (Chess Programming Wiki)](https://chessprogramming.org/Bitboards)
82 | public struct Bitboard: RawRepresentable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'Bitboard' conform to the 'Sendable' protocol
83 |
84 | /// A bitboard shift direction.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/Bitboard.swift:112:25: warning: static 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
83 |
84 | /// A bitboard shift direction.
85 | public enum ShiftDirection {
| `- note: consider making enum 'ShiftDirection' conform to the 'Sendable' protocol
86 |
87 | /// North direction.
:
110 |
111 | /// North regardless of Swift version.
112 | internal static let _north = ShiftDirection.north
| |- warning: static 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
| |- note: add '@MainActor' to make static property '_north' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
113 |
114 | /// South regardless of Swift version.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/Bitboard.swift:115:25: warning: static 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
83 |
84 | /// A bitboard shift direction.
85 | public enum ShiftDirection {
| `- note: consider making enum 'ShiftDirection' conform to the 'Sendable' protocol
86 |
87 | /// North direction.
:
113 |
114 | /// South regardless of Swift version.
115 | internal static let _south = ShiftDirection.south
| |- warning: static 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
| |- note: add '@MainActor' to make static property '_south' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
116 |
117 | /// East regardless of Swift version.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/Bitboard.swift:118:25: warning: static 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
83 |
84 | /// A bitboard shift direction.
85 | public enum ShiftDirection {
| `- note: consider making enum 'ShiftDirection' conform to the 'Sendable' protocol
86 |
87 | /// North direction.
:
116 |
117 | /// East regardless of Swift version.
118 | internal static let _east = ShiftDirection.east
| |- warning: static 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
| |- note: add '@MainActor' to make static property '_east' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
119 |
120 | /// West regardless of Swift version.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/Bitboard.swift:121:25: warning: static 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
83 |
84 | /// A bitboard shift direction.
85 | public enum ShiftDirection {
| `- note: consider making enum 'ShiftDirection' conform to the 'Sendable' protocol
86 |
87 | /// North direction.
:
119 |
120 | /// West regardless of Swift version.
121 | internal static let _west = ShiftDirection.west
| |- warning: static 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
| |- note: add '@MainActor' to make static property '_west' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
122 |
123 | /// Northeast regardless of Swift version.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/Bitboard.swift:124:25: warning: static 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
83 |
84 | /// A bitboard shift direction.
85 | public enum ShiftDirection {
| `- note: consider making enum 'ShiftDirection' conform to the 'Sendable' protocol
86 |
87 | /// North direction.
:
122 |
123 | /// Northeast regardless of Swift version.
124 | internal static let _northeast = ShiftDirection.northeast
| |- warning: static 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
| |- note: add '@MainActor' to make static property '_northeast' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
125 |
126 | /// Southeast regardless of Swift version.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/Bitboard.swift:127:25: warning: static 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
83 |
84 | /// A bitboard shift direction.
85 | public enum ShiftDirection {
| `- note: consider making enum 'ShiftDirection' conform to the 'Sendable' protocol
86 |
87 | /// North direction.
:
125 |
126 | /// Southeast regardless of Swift version.
127 | internal static let _southeast = ShiftDirection.southeast
| |- warning: static 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
| |- note: add '@MainActor' to make static property '_southeast' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
128 |
129 | /// Northwest regardless of Swift version.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/Bitboard.swift:130:25: warning: static 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
83 |
84 | /// A bitboard shift direction.
85 | public enum ShiftDirection {
| `- note: consider making enum 'ShiftDirection' conform to the 'Sendable' protocol
86 |
87 | /// North direction.
:
128 |
129 | /// Northwest regardless of Swift version.
130 | internal static let _northwest = ShiftDirection.northwest
| |- warning: static 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
| |- note: add '@MainActor' to make static property '_northwest' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
131 |
132 | /// Southwest regardless of Swift version.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/Bitboard.swift:133:25: warning: static 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
83 |
84 | /// A bitboard shift direction.
85 | public enum ShiftDirection {
| `- note: consider making enum 'ShiftDirection' conform to the 'Sendable' protocol
86 |
87 | /// North direction.
:
131 |
132 | /// Southwest regardless of Swift version.
133 | internal static let _southwest = ShiftDirection.southwest
| |- warning: static 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
| |- note: add '@MainActor' to make static property '_southwest' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
134 |
135 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessCore/Bitboard.swift:156:21: warning: static 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
80 | /// - see also: [Bitboard (Wikipedia)](https://en.wikipedia.org/wiki/Bitboard ),
81 | /// [Bitboards (Chess Programming Wiki)](https://chessprogramming.org/Bitboards)
82 | public struct Bitboard: RawRepresentable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'Bitboard' conform to the 'Sendable' protocol
83 |
84 | /// A bitboard shift direction.
:
154 |
155 | /// The edges of a board.
156 | public static let edges: Bitboard = 0xff81_8181_8181_81ff
| |- warning: static 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
| |- note: add '@MainActor' to make static property 'edges' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
157 |
158 | /// The corresponding value of the "raw" type.
[23/24] Compiling SwiftChessUI Board+View.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessUI/Board+View.swift:31:16: warning: call to main actor-isolated initializer 'init(frame:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
16 | extension Board.Space {
17 | // Mirrors the original playground helper while keeping the core target UI-free.
18 | fileprivate func _view(size: CGFloat) -> _View {
| `- note: add '@MainActor' to make instance method '_view(size:)' part of global actor 'MainActor'
19 | #if canImport(AppKit)
20 | let rectY = CGFloat(rank.index) * size
:
29 | let textFrame = CGRect(x: 0, y: 0, width: size, height: size)
30 | let fontSize = size * 0.625
31 | let view = _View(frame: frame)
| `- warning: call to main actor-isolated initializer 'init(frame:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
32 | let str = piece.map({ String($0.specialCharacter(background: color)) }) ?? ""
33 | let white = _Color.white
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSView.h:83:1: note: calls to initializer 'init(frame:)' from outside of its actor context are implicitly asynchronous
81 | @interface NSView : NSResponder <NSAnimatablePropertyContainer, NSUserInterfaceItemIdentification, NSDraggingDestination, NSAppearanceCustomization, NSAccessibilityElement, NSAccessibility>
82 |
83 | - (instancetype)initWithFrame:(NSRect)frameRect NS_DESIGNATED_INITIALIZER;
| |- note: calls to initializer 'init(frame:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSResponder'
84 | - (nullable instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER;
85 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessUI/Board+View.swift:38:10: warning: main actor-isolated property 'wantsLayer' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
16 | extension Board.Space {
17 | // Mirrors the original playground helper while keeping the core target UI-free.
18 | fileprivate func _view(size: CGFloat) -> _View {
| `- note: add '@MainActor' to make instance method '_view(size:)' part of global actor 'MainActor'
19 | #if canImport(AppKit)
20 | let rectY = CGFloat(rank.index) * size
:
36 | let tc: _Color = color.isWhite ? black : white
37 | #if canImport(AppKit)
38 | view.wantsLayer = true
| `- warning: main actor-isolated property 'wantsLayer' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
39 | view.layer?.backgroundColor = bg.cgColor
40 | let text = _Label(frame: textFrame)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSView.h:247:16: note: mutation of this property is only permitted within the actor
245 | /* Indicates if this view should be a "Layer Backed View". When layer backed, all subviews will subsequently also have a layer set on them (however, wantsLayer will only be YES on views that have had it explicitly set). Contents for a layer are specified in one of two ways: if -wantsUpdateLayer returns YES, then one can directly update the layer's contents (or other properties) in -updateLayer. If -wantsUpdateLayer returns NO, then the layer's contents is filled with whatever is drawn by -drawRect:
246 | */
247 | @property BOOL wantsLayer API_AVAILABLE(macos(10.5));
| `- note: mutation of this property is only permitted within the actor
248 |
249 | /* Get and set the CALayer for this view. The layer is not encoded by the view.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessUI/Board+View.swift:39:10: warning: main actor-isolated property 'layer' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
16 | extension Board.Space {
17 | // Mirrors the original playground helper while keeping the core target UI-free.
18 | fileprivate func _view(size: CGFloat) -> _View {
| `- note: add '@MainActor' to make instance method '_view(size:)' part of global actor 'MainActor'
19 | #if canImport(AppKit)
20 | let rectY = CGFloat(rank.index) * size
:
37 | #if canImport(AppKit)
38 | view.wantsLayer = true
39 | view.layer?.backgroundColor = bg.cgColor
| `- warning: main actor-isolated property 'layer' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
40 | let text = _Label(frame: textFrame)
41 | text.alignment = .center
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSView.h:251:39: note: property declared here
249 | /* Get and set the CALayer for this view. The layer is not encoded by the view.
250 | */
251 | @property (nullable, strong) CALayer *layer API_AVAILABLE(macos(10.5));
| `- note: property declared here
252 |
253 | /* Layer Backed Views: Return YES if this view supports directly setting the layer properties (such as the contents and backgroundColor) as opposed to filling in the contents with a drawRect: implementation. Most AppKit controls return YES if there is no subclassing involved that would alter the drawing appearance. It will return NO for views that do have subclassing that AppKit does not know about (such as, overriding drawRect:, or other drawing methods).
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessUI/Board+View.swift:40:16: warning: call to main actor-isolated initializer 'init(frame:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
16 | extension Board.Space {
17 | // Mirrors the original playground helper while keeping the core target UI-free.
18 | fileprivate func _view(size: CGFloat) -> _View {
| `- note: add '@MainActor' to make instance method '_view(size:)' part of global actor 'MainActor'
19 | #if canImport(AppKit)
20 | let rectY = CGFloat(rank.index) * size
:
38 | view.wantsLayer = true
39 | view.layer?.backgroundColor = bg.cgColor
40 | let text = _Label(frame: textFrame)
| `- warning: call to main actor-isolated initializer 'init(frame:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
41 | text.alignment = .center
42 | text.font = .systemFont(ofSize: fontSize)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSText.h:66:1: note: calls to initializer 'init(frame:)' from outside of its actor context are implicitly asynchronous
64 | @interface NSText : NSView <NSChangeSpelling, NSIgnoreMisspelledWords>
65 |
66 | - (instancetype)initWithFrame:(NSRect)frameRect NS_DESIGNATED_INITIALIZER;
| |- note: calls to initializer 'init(frame:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSView'
67 | - (nullable instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER;
68 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessUI/Board+View.swift:41:10: warning: main actor-isolated property 'alignment' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
16 | extension Board.Space {
17 | // Mirrors the original playground helper while keeping the core target UI-free.
18 | fileprivate func _view(size: CGFloat) -> _View {
| `- note: add '@MainActor' to make instance method '_view(size:)' part of global actor 'MainActor'
19 | #if canImport(AppKit)
20 | let rectY = CGFloat(rank.index) * size
:
39 | view.layer?.backgroundColor = bg.cgColor
40 | let text = _Label(frame: textFrame)
41 | text.alignment = .center
| `- warning: main actor-isolated property 'alignment' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
42 | text.font = .systemFont(ofSize: fontSize)
43 | text.isEditable = false
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSText.h:102:27: note: mutation of this property is only permitted within the actor
100 |
101 | #if !TARGET_OS_IPHONE
102 | @property NSTextAlignment alignment;
| `- note: mutation of this property is only permitted within the actor
103 | @property NSWritingDirection baseWritingDirection;
104 | #endif // !TARGET_OS_IPHONE
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessUI/Board+View.swift:42:10: warning: main actor-isolated property 'font' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
16 | extension Board.Space {
17 | // Mirrors the original playground helper while keeping the core target UI-free.
18 | fileprivate func _view(size: CGFloat) -> _View {
| `- note: add '@MainActor' to make instance method '_view(size:)' part of global actor 'MainActor'
19 | #if canImport(AppKit)
20 | let rectY = CGFloat(rank.index) * size
:
40 | let text = _Label(frame: textFrame)
41 | text.alignment = .center
42 | text.font = .systemFont(ofSize: fontSize)
| `- warning: main actor-isolated property 'font' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
43 | text.isEditable = false
44 | text.isSelectable = false
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSText.h:98:38: note: mutation of this property is only permitted within the actor
96 | - (void)scrollRangeToVisible:(NSRange)range;
97 |
98 | @property (nullable, strong) NSFont *font;
| `- note: mutation of this property is only permitted within the actor
99 | @property (nullable, copy) NSColor *textColor; // Default is nil. If nil, draws with blackColor
100 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessUI/Board+View.swift:43:10: warning: main actor-isolated property 'isEditable' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
16 | extension Board.Space {
17 | // Mirrors the original playground helper while keeping the core target UI-free.
18 | fileprivate func _view(size: CGFloat) -> _View {
| `- note: add '@MainActor' to make instance method '_view(size:)' part of global actor 'MainActor'
19 | #if canImport(AppKit)
20 | let rectY = CGFloat(rank.index) * size
:
41 | text.alignment = .center
42 | text.font = .systemFont(ofSize: fontSize)
43 | text.isEditable = false
| `- warning: main actor-isolated property 'isEditable' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
44 | text.isSelectable = false
45 | text.string = str
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSText.h:83:36: note: mutation of this property is only permitted within the actor
81 | @property (nullable, assign) id<NSTextDelegate> delegate;
82 |
83 | @property (getter=isEditable) BOOL editable;
| `- note: mutation of this property is only permitted within the actor
84 | @property (getter=isSelectable) BOOL selectable;
85 | @property (getter=isRichText) BOOL richText; //If NO, also clears setImportsGraphics:
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessUI/Board+View.swift:44:10: warning: main actor-isolated property 'isSelectable' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
16 | extension Board.Space {
17 | // Mirrors the original playground helper while keeping the core target UI-free.
18 | fileprivate func _view(size: CGFloat) -> _View {
| `- note: add '@MainActor' to make instance method '_view(size:)' part of global actor 'MainActor'
19 | #if canImport(AppKit)
20 | let rectY = CGFloat(rank.index) * size
:
42 | text.font = .systemFont(ofSize: fontSize)
43 | text.isEditable = false
44 | text.isSelectable = false
| `- warning: main actor-isolated property 'isSelectable' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
45 | text.string = str
46 | text.drawsBackground = false
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSText.h:84:38: note: mutation of this property is only permitted within the actor
82 |
83 | @property (getter=isEditable) BOOL editable;
84 | @property (getter=isSelectable) BOOL selectable;
| `- note: mutation of this property is only permitted within the actor
85 | @property (getter=isRichText) BOOL richText; //If NO, also clears setImportsGraphics:
86 | @property BOOL importsGraphics; // If YES, also sets setRichText:
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessUI/Board+View.swift:45:10: warning: main actor-isolated property 'string' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
16 | extension Board.Space {
17 | // Mirrors the original playground helper while keeping the core target UI-free.
18 | fileprivate func _view(size: CGFloat) -> _View {
| `- note: add '@MainActor' to make instance method '_view(size:)' part of global actor 'MainActor'
19 | #if canImport(AppKit)
20 | let rectY = CGFloat(rank.index) * size
:
43 | text.isEditable = false
44 | text.isSelectable = false
45 | text.string = str
| `- warning: main actor-isolated property 'string' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
46 | text.drawsBackground = false
47 | text.textColor = tc
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSText.h:69:28: note: mutation of this property is only permitted within the actor
67 | - (nullable instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER;
68 |
69 | @property (copy) NSString *string;
| `- note: mutation of this property is only permitted within the actor
70 |
71 | - (void)replaceCharactersInRange:(NSRange)range withString:(NSString *)string;
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessUI/Board+View.swift:46:10: warning: main actor-isolated property 'drawsBackground' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
16 | extension Board.Space {
17 | // Mirrors the original playground helper while keeping the core target UI-free.
18 | fileprivate func _view(size: CGFloat) -> _View {
| `- note: add '@MainActor' to make instance method '_view(size:)' part of global actor 'MainActor'
19 | #if canImport(AppKit)
20 | let rectY = CGFloat(rank.index) * size
:
44 | text.isSelectable = false
45 | text.string = str
46 | text.drawsBackground = false
| `- warning: main actor-isolated property 'drawsBackground' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
47 | text.textColor = tc
48 | view.addSubview(text)
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSText.h:89:16: note: mutation of this property is only permitted within the actor
87 | @property (getter=isFieldEditor) BOOL fieldEditor; // Indicates whether to end editing on CR, TAB, etc.
88 | @property BOOL usesFontPanel;
89 | @property BOOL drawsBackground;
| `- note: mutation of this property is only permitted within the actor
90 | @property (nullable, copy) NSColor *backgroundColor; // Default is nil. If nil, it implies -drawsBackground=NO
91 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessUI/Board+View.swift:47:10: warning: main actor-isolated property 'textColor' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
16 | extension Board.Space {
17 | // Mirrors the original playground helper while keeping the core target UI-free.
18 | fileprivate func _view(size: CGFloat) -> _View {
| `- note: add '@MainActor' to make instance method '_view(size:)' part of global actor 'MainActor'
19 | #if canImport(AppKit)
20 | let rectY = CGFloat(rank.index) * size
:
45 | text.string = str
46 | text.drawsBackground = false
47 | text.textColor = tc
| `- warning: main actor-isolated property 'textColor' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
48 | view.addSubview(text)
49 | #else
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSText.h:99:37: note: mutation of this property is only permitted within the actor
97 |
98 | @property (nullable, strong) NSFont *font;
99 | @property (nullable, copy) NSColor *textColor; // Default is nil. If nil, draws with blackColor
| `- note: mutation of this property is only permitted within the actor
100 |
101 | #if !TARGET_OS_IPHONE
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessUI/Board+View.swift:48:10: warning: call to main actor-isolated instance method 'addSubview' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
16 | extension Board.Space {
17 | // Mirrors the original playground helper while keeping the core target UI-free.
18 | fileprivate func _view(size: CGFloat) -> _View {
| `- note: add '@MainActor' to make instance method '_view(size:)' part of global actor 'MainActor'
19 | #if canImport(AppKit)
20 | let rectY = CGFloat(rank.index) * size
:
46 | text.drawsBackground = false
47 | text.textColor = tc
48 | view.addSubview(text)
| `- warning: call to main actor-isolated instance method 'addSubview' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
49 | #else
50 | view.backgroundColor = bg
AppKit.NSView.addSubview:2:22: note: calls to instance method 'addSubview' from outside of its actor context are implicitly asynchronous
1 | class NSView {
2 | @MainActor open func addSubview(_ view: NSView)}
| |- note: calls to instance method 'addSubview' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSResponder'
3 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessUI/Board+View.swift:68:16: warning: call to main actor-isolated initializer 'init(frame:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
66 | let boardSize = spaceSize * 8
67 | let frame = CGRect(x: 0, y: 0, width: boardSize, height: boardSize)
68 | let view = _View(frame: frame)
| `- warning: call to main actor-isolated initializer 'init(frame:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
69 |
70 | for space in self {
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSView.h:83:1: note: calls to initializer 'init(frame:)' from outside of its actor context are implicitly asynchronous
81 | @interface NSView : NSResponder <NSAnimatablePropertyContainer, NSUserInterfaceItemIdentification, NSDraggingDestination, NSAppearanceCustomization, NSAccessibilityElement, NSAccessibility>
82 |
83 | - (instancetype)initWithFrame:(NSRect)frameRect NS_DESIGNATED_INITIALIZER;
| |- note: calls to initializer 'init(frame:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSResponder'
84 | - (nullable instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER;
85 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessUI/Board+View.swift:71:12: warning: call to main actor-isolated instance method 'addSubview' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
69 |
70 | for space in self {
71 | view.addSubview(space._view(size: spaceSize))
| `- warning: call to main actor-isolated instance method 'addSubview' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
72 | }
73 | return view
AppKit.NSView.addSubview:2:22: note: calls to instance method 'addSubview' from outside of its actor context are implicitly asynchronous
1 | class NSView {
2 | @MainActor open func addSubview(_ view: NSView)}
| |- note: calls to instance method 'addSubview' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from inheritance from class 'NSResponder'
3 |
[24/24] Emitting module SwiftChessUI
Build complete! (8.14s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "swift-chess-neo",
"name" : "swift-chess-neo",
"path" : "/Users/admin/builder/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"
}
✅ Doc result (pending) reported
========================================
GenerateDocs
========================================
Generating docs at path: $PWD/.docs/navanchauhan/swift-chess-neo/2.0.0
Repository: navanchauhan/swift-chess-neo
Swift version used: 6.1
Target: SwiftChessNeo
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/swift-docc-render-artifact/.git/
From https://github.com/swiftlang/swift-docc-render-artifact
* branch 4633b45fc732d8c55568be09dd852f9dc1582c25 -> FETCH_HEAD
HEAD is now at 4633b45 Update the artifact
Cloned https://github.com/swiftlang/swift-docc-render-artifact
Fetching https://github.com/swiftlang/swift-docc-plugin from cache
Fetched https://github.com/swiftlang/swift-docc-plugin from cache (0.70s)
Computing version for https://github.com/swiftlang/swift-docc-plugin
Computed https://github.com/swiftlang/swift-docc-plugin at 1.4.5 (3.21s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit from cache
Fetched https://github.com/swiftlang/swift-docc-symbolkit from cache (0.85s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (1.51s)
Creating working copy for https://github.com/swiftlang/swift-docc-plugin
Working copy of https://github.com/swiftlang/swift-docc-plugin resolved at 1.4.5
Creating working copy for https://github.com/swiftlang/swift-docc-symbolkit
Working copy of https://github.com/swiftlang/swift-docc-symbolkit resolved at 1.0.0
Building for debugging...
[0/8] Write sources
[2/8] Write snippet-extract-tool-entitlement.plist
[2/8] Write sources
[4/8] Write swift-version-2F0A5646E1D333AE.txt
[6/53] Compiling SymbolKit DeclarationFragments.swift
[7/53] Compiling SymbolKit Fragment.swift
[8/53] Compiling SymbolKit FragmentKind.swift
[9/53] Compiling SymbolKit FunctionParameter.swift
[10/53] Compiling SymbolKit FunctionSignature.swift
[11/57] Compiling SymbolKit GenericConstraint.swift
[12/57] Compiling SymbolKit GenericParameter.swift
[13/57] Compiling SymbolKit Generics.swift
[14/57] Compiling SymbolKit Namespace.swift
[15/57] Compiling SymbolKit Identifier.swift
[16/57] Compiling SymbolKit KindIdentifier.swift
[17/57] Compiling SymbolKit Location.swift
[18/57] Compiling SymbolKit Mutability.swift
[19/57] Emitting module SymbolKit
[20/57] Compiling SymbolKit SemanticVersion.swift
[21/57] Compiling SymbolKit AccessControl.swift
[22/57] Compiling SymbolKit Availability.swift
[23/57] Compiling SymbolKit AvailabilityItem.swift
[24/57] Compiling SymbolKit Domain.swift
[25/57] Compiling SymbolKit Mixin+Equals.swift
[26/57] Compiling SymbolKit Mixin+Hash.swift
[27/57] Compiling SymbolKit Mixin.swift
[28/57] Compiling SymbolKit LineList.swift
[29/57] Compiling SymbolKit Position.swift
[30/57] Compiling SymbolKit SourceRange.swift
[31/57] Compiling SymbolKit Metadata.swift
[32/57] Compiling SymbolKit Module.swift
[33/57] Compiling SymbolKit OperatingSystem.swift
[34/57] Compiling SymbolKit Platform.swift
[35/57] Compiling SymbolKit Names.swift
[36/57] Compiling SymbolKit SPI.swift
[37/57] Compiling SymbolKit Snippet.swift
[38/57] Compiling SymbolKit Extension.swift
[39/57] Compiling SymbolKit Relationship.swift
[40/57] Compiling SymbolKit RelationshipKind.swift
[41/57] Compiling SymbolKit SourceOrigin.swift
[42/57] Compiling SymbolKit GenericConstraints.swift
[43/57] Compiling SymbolKit Swift.swift
[44/57] Compiling SymbolKit Symbol.swift
[45/57] Compiling SymbolKit SymbolKind.swift
[46/57] Compiling SymbolKit SymbolGraph.swift
[47/57] Compiling SymbolKit GraphCollector.swift
[48/57] Compiling SymbolKit UnifiedSymbol+Encodable.swift
[49/57] Compiling SymbolKit UnifiedSymbol.swift
[50/57] Compiling SymbolKit UnifiedSymbolGraph+Encodable.swift
[51/57] Compiling SymbolKit UnifiedSymbolGraph.swift
[52/57] Emitting module Snippets
[53/57] Compiling Snippets SnippetParser.swift
[54/57] Compiling Snippets Snippet.swift
[55/61] Compiling snippet_extract URL+Status.swift
[56/61] Compiling snippet_extract SymbolGraph+Snippet.swift
[57/61] Emitting module snippet_extract
[58/61] Compiling snippet_extract SnippetBuildCommand.swift
[58/61] Write Objects.LinkFileList
[59/61] Linking snippet-extract-tool
[60/61] Applying snippet-extract-tool
Build of product 'snippet-extract' complete! (4.25s)
error: no target named 'SwiftChessNeo'
compatible targets: 'SwiftChessCore', 'SwiftChessUI'
1
0 /Users/admin/builder/spi-builder-workspace/.docs/navanchauhan/swift-chess-neo/2.0.0
✅ Doc result (uploading) reported
Error while generating docs: Error Domain=NSCocoaErrorDomain Code=260 "The folder “documentation” doesn’t exist." UserInfo={NSUserStringVariant=(
Folder
), NSFilePath=/Users/admin/builder/spi-builder-workspace/.docs/navanchauhan/swift-chess-neo/2.0.0/documentation, NSURL=file:///Users/admin/builder/spi-builder-workspace/.docs/navanchauhan/swift-chess-neo/2.0.0/documentation, NSUnderlyingError=0x600000bc8f90 {Error Domain=NSOSStatusErrorDomain Code=-43 "fnfErr: File not found"}}
✅ Doc result (failed) reported
Done.