Build Information
Successful build of swift-chess-neo, reference master (7a2a98
), with Swift 6.1 for macOS (SPM) on 28 Apr 2025 15:45:22 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 InferSendableFromCaptures
Build Log
| `- note: consider making struct 'Board' conform to the 'Sendable' protocol
31 |
32 | /// A chess board space.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessNeo/Game.swift:269:14: 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
267 |
268 | /// Could not promote with a piece kind.
269 | 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
270 |
271 | /// The error message.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessNeo/Piece.swift:25:17: 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.
[15/20] Compiling SwiftChessNeo Game.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessNeo/File.swift:62:25: 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/SwiftChessNeo/File.swift:65:25: 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/SwiftChessNeo/File.swift:68:25: 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/SwiftChessNeo/File.swift:71:25: 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/SwiftChessNeo/File.swift:74:25: 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/SwiftChessNeo/File.swift:77:25: 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/SwiftChessNeo/File.swift:80:25: 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/SwiftChessNeo/File.swift:83:25: 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/SwiftChessNeo/File.swift:90:23: 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/SwiftChessNeo/Game.swift:35:29: 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/SwiftChessNeo/Game.swift:235:14: warning: associated value 'wrongKingCount' of 'Sendable'-conforming enum 'PositionError' has non-sendable type 'Color'; this is an error in the Swift 6 language mode
233 |
234 | /// Found number other than 1 for king count.
235 | 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
236 |
237 | /// King missing for castling right.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessNeo/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/SwiftChessNeo/Game.swift:238:14: 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
236 |
237 | /// King missing for castling right.
238 | 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
239 |
240 | /// Rook missing for castling right.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessNeo/CastlingRights.swift:27:17: 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/SwiftChessNeo/Game.swift:241:14: 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
239 |
240 | /// Rook missing for castling right.
241 | 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
242 |
243 | /// Wrong rank for en passant target.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessNeo/CastlingRights.swift:27:17: 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/SwiftChessNeo/Game.swift:244:14: warning: associated value 'wrongEnPassantTargetRank' of 'Sendable'-conforming enum 'PositionError' has non-sendable type 'Rank'; this is an error in the Swift 6 language mode
242 |
243 | /// Wrong rank for en passant target.
244 | 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
245 |
246 | /// Non empty en passant target square.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessNeo/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/SwiftChessNeo/Game.swift:247:14: warning: associated value 'nonEmptyEnPassantTarget' of 'Sendable'-conforming enum 'PositionError' has non-sendable type 'Square'; this is an error in the Swift 6 language mode
245 |
246 | /// Non empty en passant target square.
247 | 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
248 |
249 | /// Pawn missing for previous en passant.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessNeo/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/SwiftChessNeo/Game.swift:247:14: warning: associated value 'nonEmptyEnPassantTarget' of 'Sendable'-conforming enum 'PositionError' has non-sendable type 'Piece'; this is an error in the Swift 6 language mode
245 |
246 | /// Non empty en passant target square.
247 | 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
248 |
249 | /// Pawn missing for previous en passant.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessNeo/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/SwiftChessNeo/Game.swift:250:14: warning: associated value 'missingEnPassantPawn' of 'Sendable'-conforming enum 'PositionError' has non-sendable type 'Square'; this is an error in the Swift 6 language mode
248 |
249 | /// Pawn missing for previous en passant.
250 | 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
251 |
252 | /// Piece found at start of en passant move.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessNeo/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/SwiftChessNeo/Game.swift:253:14: warning: associated value 'nonEmptyEnPassantSquare' of 'Sendable'-conforming enum 'PositionError' has non-sendable type 'Square'; this is an error in the Swift 6 language mode
251 |
252 | /// Piece found at start of en passant move.
253 | 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
254 |
255 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessNeo/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/SwiftChessNeo/Game.swift:253:14: warning: associated value 'nonEmptyEnPassantSquare' of 'Sendable'-conforming enum 'PositionError' has non-sendable type 'Piece'; this is an error in the Swift 6 language mode
251 |
252 | /// Piece found at start of en passant move.
253 | 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
254 |
255 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessNeo/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/SwiftChessNeo/Game.swift:263:14: warning: associated value 'missingPiece' of 'Sendable'-conforming enum 'ExecutionError' has non-sendable type 'Square'; this is an error in the Swift 6 language mode
261 |
262 | /// Missing piece at a square.
263 | 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
264 |
265 | /// Attempted illegal move.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessNeo/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/SwiftChessNeo/Game.swift:266:14: warning: associated value 'illegalMove' of 'Sendable'-conforming enum 'ExecutionError' has non-sendable type 'Move'; this is an error in the Swift 6 language mode
264 |
265 | /// Attempted illegal move.
266 | 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
267 |
268 | /// Could not promote with a piece kind.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessNeo/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/SwiftChessNeo/Game.swift:266:14: warning: associated value 'illegalMove' of 'Sendable'-conforming enum 'ExecutionError' has non-sendable type 'Color'; this is an error in the Swift 6 language mode
264 |
265 | /// Attempted illegal move.
266 | 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
267 |
268 | /// Could not promote with a piece kind.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessNeo/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/SwiftChessNeo/Game.swift:266:14: warning: associated value 'illegalMove' of 'Sendable'-conforming enum 'ExecutionError' has non-sendable type 'Board'; this is an error in the Swift 6 language mode
264 |
265 | /// Attempted illegal move.
266 | 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
267 |
268 | /// Could not promote with a piece kind.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessNeo/Board.swift:30:15: note: consider making struct 'Board' conform to the 'Sendable' protocol
28 | ///
29 | /// Pieces map to separate instances of `Bitboard` which can be retrieved with `bitboard(for:)`.
30 | public struct Board: Hashable, CustomStringConvertible {
| `- note: consider making struct 'Board' conform to the 'Sendable' protocol
31 |
32 | /// A chess board space.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessNeo/Game.swift:269:14: 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
267 |
268 | /// Could not promote with a piece kind.
269 | 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
270 |
271 | /// The error message.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessNeo/Piece.swift:25:17: 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.
[16/20] Compiling SwiftChessNeo InternalTypes.swift
[17/20] Compiling SwiftChessNeo Move.swift
[18/20] Emitting module SwiftChessNeo
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessNeo/Bitboard.swift:42: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
40 |
41 | /// A lookup table of bitboards for all squares.
42 | 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
43 |
44 | /// The De Bruijn multiplier.
:
76 | /// - see also: [Bitboard (Wikipedia)](https://en.wikipedia.org/wiki/Bitboard ),
77 | /// [Bitboards (Chess Programming Wiki)](https://chessprogramming.org/Bitboards)
78 | public struct Bitboard: RawRepresentable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'Bitboard' conform to the 'Sendable' protocol
79 |
80 | /// A bitboard shift direction.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessNeo/Bitboard.swift:56: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
54 |
55 | /// Mask for bits not in File A.
56 | private let _notFileA: Bitboard = 0xfefefefefefefefe
| |- 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
57 |
58 | /// Mask for bits not in Files A and B.
:
76 | /// - see also: [Bitboard (Wikipedia)](https://en.wikipedia.org/wiki/Bitboard ),
77 | /// [Bitboards (Chess Programming Wiki)](https://chessprogramming.org/Bitboards)
78 | public struct Bitboard: RawRepresentable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'Bitboard' conform to the 'Sendable' protocol
79 |
80 | /// A bitboard shift direction.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessNeo/Bitboard.swift:59: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
57 |
58 | /// Mask for bits not in Files A and B.
59 | private let _notFileAB: Bitboard = 0xfcfcfcfcfcfcfcfc
| |- 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
60 |
61 | /// Mask for bits not in File H.
:
76 | /// - see also: [Bitboard (Wikipedia)](https://en.wikipedia.org/wiki/Bitboard ),
77 | /// [Bitboards (Chess Programming Wiki)](https://chessprogramming.org/Bitboards)
78 | public struct Bitboard: RawRepresentable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'Bitboard' conform to the 'Sendable' protocol
79 |
80 | /// A bitboard shift direction.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessNeo/Bitboard.swift:62: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
60 |
61 | /// Mask for bits not in File H.
62 | private let _notFileH: Bitboard = 0x7f7f7f7f7f7f7f7f
| |- 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
63 |
64 | /// Mask for bits not in Files G and H.
:
76 | /// - see also: [Bitboard (Wikipedia)](https://en.wikipedia.org/wiki/Bitboard ),
77 | /// [Bitboards (Chess Programming Wiki)](https://chessprogramming.org/Bitboards)
78 | public struct Bitboard: RawRepresentable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'Bitboard' conform to the 'Sendable' protocol
79 |
80 | /// A bitboard shift direction.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessNeo/Bitboard.swift:65: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
63 |
64 | /// Mask for bits not in Files G and H.
65 | private let _notFileGH: Bitboard = 0x3f3f3f3f3f3f3f3f
| |- 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
66 |
67 | /// A bitmap of sixty-four bits suitable for storing squares for various pieces.
:
76 | /// - see also: [Bitboard (Wikipedia)](https://en.wikipedia.org/wiki/Bitboard ),
77 | /// [Bitboards (Chess Programming Wiki)](https://chessprogramming.org/Bitboards)
78 | public struct Bitboard: RawRepresentable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'Bitboard' conform to the 'Sendable' protocol
79 |
80 | /// A bitboard shift direction.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessNeo/Bitboard.swift:108:29: 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
79 |
80 | /// A bitboard shift direction.
81 | public enum ShiftDirection {
| `- note: consider making enum 'ShiftDirection' conform to the 'Sendable' protocol
82 |
83 | /// North direction.
:
106 |
107 | /// North regardless of Swift version.
108 | 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
109 |
110 | /// South regardless of Swift version.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessNeo/Bitboard.swift:111:29: 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
79 |
80 | /// A bitboard shift direction.
81 | public enum ShiftDirection {
| `- note: consider making enum 'ShiftDirection' conform to the 'Sendable' protocol
82 |
83 | /// North direction.
:
109 |
110 | /// South regardless of Swift version.
111 | 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
112 |
113 | /// East regardless of Swift version.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessNeo/Bitboard.swift:114:29: 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
79 |
80 | /// A bitboard shift direction.
81 | public enum ShiftDirection {
| `- note: consider making enum 'ShiftDirection' conform to the 'Sendable' protocol
82 |
83 | /// North direction.
:
112 |
113 | /// East regardless of Swift version.
114 | 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
115 |
116 | /// West regardless of Swift version.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessNeo/Bitboard.swift:117:29: 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
79 |
80 | /// A bitboard shift direction.
81 | public enum ShiftDirection {
| `- note: consider making enum 'ShiftDirection' conform to the 'Sendable' protocol
82 |
83 | /// North direction.
:
115 |
116 | /// West regardless of Swift version.
117 | 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
118 |
119 | /// Northeast regardless of Swift version.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessNeo/Bitboard.swift:120:29: 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
79 |
80 | /// A bitboard shift direction.
81 | public enum ShiftDirection {
| `- note: consider making enum 'ShiftDirection' conform to the 'Sendable' protocol
82 |
83 | /// North direction.
:
118 |
119 | /// Northeast regardless of Swift version.
120 | 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
121 |
122 | /// Southeast regardless of Swift version.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessNeo/Bitboard.swift:123:29: 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
79 |
80 | /// A bitboard shift direction.
81 | public enum ShiftDirection {
| `- note: consider making enum 'ShiftDirection' conform to the 'Sendable' protocol
82 |
83 | /// North direction.
:
121 |
122 | /// Southeast regardless of Swift version.
123 | 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
124 |
125 | /// Northwest regardless of Swift version.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessNeo/Bitboard.swift:126:29: 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
79 |
80 | /// A bitboard shift direction.
81 | public enum ShiftDirection {
| `- note: consider making enum 'ShiftDirection' conform to the 'Sendable' protocol
82 |
83 | /// North direction.
:
124 |
125 | /// Northwest regardless of Swift version.
126 | 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
127 |
128 | /// Southwest regardless of Swift version.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessNeo/Bitboard.swift:129:29: 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
79 |
80 | /// A bitboard shift direction.
81 | public enum ShiftDirection {
| `- note: consider making enum 'ShiftDirection' conform to the 'Sendable' protocol
82 |
83 | /// North direction.
:
127 |
128 | /// Southwest regardless of Swift version.
129 | 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
130 |
131 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessNeo/Bitboard.swift:152:23: 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
76 | /// - see also: [Bitboard (Wikipedia)](https://en.wikipedia.org/wiki/Bitboard ),
77 | /// [Bitboards (Chess Programming Wiki)](https://chessprogramming.org/Bitboards)
78 | public struct Bitboard: RawRepresentable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'Bitboard' conform to the 'Sendable' protocol
79 |
80 | /// A bitboard shift direction.
:
150 |
151 | /// The edges of a board.
152 | public static let edges: Bitboard = 0xff818181818181ff
| |- 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
153 |
154 | /// The corresponding value of the "raw" type.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessNeo/CastlingRights.swift:42:27: 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] = [.whiteKingside, .whiteQueenside, .blackKingside, .blackQueenside]
| |- 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 |
44 | /// White rights.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessNeo/CastlingRights.swift:45:27: 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.
:
43 |
44 | /// White rights.
45 | 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
46 |
47 | /// Black rights.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessNeo/CastlingRights.swift:48:27: 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.
:
46 |
47 | /// Black rights.
48 | 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
49 |
50 | /// Kingside rights.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessNeo/CastlingRights.swift:51:27: 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.
:
49 |
50 | /// Kingside rights.
51 | 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
52 |
53 | /// Queenside rights.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessNeo/CastlingRights.swift:54:27: 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.
:
52 |
53 | /// Queenside rights.
54 | 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
55 |
56 | /// The color for `self`.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessNeo/CastlingRights.swift:174:23: 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.
:
172 |
173 | /// All castling rights.
174 | 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
175 |
176 | /// White castling rights.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessNeo/CastlingRights.swift:177:23: 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.
:
175 |
176 | /// White castling rights.
177 | 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
178 |
179 | /// Black castling rights.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessNeo/CastlingRights.swift:180:23: 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.
:
178 |
179 | /// Black castling rights.
180 | 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
181 |
182 | /// Kingside castling rights.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessNeo/CastlingRights.swift:183:23: 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.
:
181 |
182 | /// Kingside castling rights.
183 | 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
184 |
185 | /// Queenside castling rights.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessNeo/CastlingRights.swift:186:23: 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.
:
184 |
185 | /// Queenside castling rights.
186 | 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
187 |
188 | /// The rights.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessNeo/Color.swift:31:25: 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/SwiftChessNeo/Color.swift:34:25: 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/SwiftChessNeo/Color.swift:37:23: 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.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessNeo/File.swift:62:25: 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/SwiftChessNeo/File.swift:65:25: 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/SwiftChessNeo/File.swift:68:25: 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/SwiftChessNeo/File.swift:71:25: 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/SwiftChessNeo/File.swift:74:25: 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/SwiftChessNeo/File.swift:77:25: 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/SwiftChessNeo/File.swift:80:25: 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/SwiftChessNeo/File.swift:83:25: 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/SwiftChessNeo/File.swift:90:23: 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/SwiftChessNeo/Game.swift:35:29: 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/SwiftChessNeo/Game.swift:235:14: warning: associated value 'wrongKingCount' of 'Sendable'-conforming enum 'PositionError' has non-sendable type 'Color'; this is an error in the Swift 6 language mode
233 |
234 | /// Found number other than 1 for king count.
235 | 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
236 |
237 | /// King missing for castling right.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessNeo/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/SwiftChessNeo/Game.swift:238:14: 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
236 |
237 | /// King missing for castling right.
238 | 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
239 |
240 | /// Rook missing for castling right.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessNeo/CastlingRights.swift:27:17: 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/SwiftChessNeo/Game.swift:241:14: 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
239 |
240 | /// Rook missing for castling right.
241 | 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
242 |
243 | /// Wrong rank for en passant target.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessNeo/CastlingRights.swift:27:17: 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/SwiftChessNeo/Game.swift:244:14: warning: associated value 'wrongEnPassantTargetRank' of 'Sendable'-conforming enum 'PositionError' has non-sendable type 'Rank'; this is an error in the Swift 6 language mode
242 |
243 | /// Wrong rank for en passant target.
244 | 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
245 |
246 | /// Non empty en passant target square.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessNeo/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/SwiftChessNeo/Game.swift:247:14: warning: associated value 'nonEmptyEnPassantTarget' of 'Sendable'-conforming enum 'PositionError' has non-sendable type 'Square'; this is an error in the Swift 6 language mode
245 |
246 | /// Non empty en passant target square.
247 | 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
248 |
249 | /// Pawn missing for previous en passant.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessNeo/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/SwiftChessNeo/Game.swift:247:14: warning: associated value 'nonEmptyEnPassantTarget' of 'Sendable'-conforming enum 'PositionError' has non-sendable type 'Piece'; this is an error in the Swift 6 language mode
245 |
246 | /// Non empty en passant target square.
247 | 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
248 |
249 | /// Pawn missing for previous en passant.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessNeo/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/SwiftChessNeo/Game.swift:250:14: warning: associated value 'missingEnPassantPawn' of 'Sendable'-conforming enum 'PositionError' has non-sendable type 'Square'; this is an error in the Swift 6 language mode
248 |
249 | /// Pawn missing for previous en passant.
250 | 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
251 |
252 | /// Piece found at start of en passant move.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessNeo/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/SwiftChessNeo/Game.swift:253:14: warning: associated value 'nonEmptyEnPassantSquare' of 'Sendable'-conforming enum 'PositionError' has non-sendable type 'Square'; this is an error in the Swift 6 language mode
251 |
252 | /// Piece found at start of en passant move.
253 | 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
254 |
255 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessNeo/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/SwiftChessNeo/Game.swift:253:14: warning: associated value 'nonEmptyEnPassantSquare' of 'Sendable'-conforming enum 'PositionError' has non-sendable type 'Piece'; this is an error in the Swift 6 language mode
251 |
252 | /// Piece found at start of en passant move.
253 | 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
254 |
255 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessNeo/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/SwiftChessNeo/Game.swift:263:14: warning: associated value 'missingPiece' of 'Sendable'-conforming enum 'ExecutionError' has non-sendable type 'Square'; this is an error in the Swift 6 language mode
261 |
262 | /// Missing piece at a square.
263 | 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
264 |
265 | /// Attempted illegal move.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessNeo/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/SwiftChessNeo/Game.swift:266:14: warning: associated value 'illegalMove' of 'Sendable'-conforming enum 'ExecutionError' has non-sendable type 'Move'; this is an error in the Swift 6 language mode
264 |
265 | /// Attempted illegal move.
266 | 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
267 |
268 | /// Could not promote with a piece kind.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessNeo/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/SwiftChessNeo/Game.swift:266:14: warning: associated value 'illegalMove' of 'Sendable'-conforming enum 'ExecutionError' has non-sendable type 'Color'; this is an error in the Swift 6 language mode
264 |
265 | /// Attempted illegal move.
266 | 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
267 |
268 | /// Could not promote with a piece kind.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessNeo/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/SwiftChessNeo/Game.swift:266:14: warning: associated value 'illegalMove' of 'Sendable'-conforming enum 'ExecutionError' has non-sendable type 'Board'; this is an error in the Swift 6 language mode
264 |
265 | /// Attempted illegal move.
266 | 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
267 |
268 | /// Could not promote with a piece kind.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessNeo/Board.swift:30:15: note: consider making struct 'Board' conform to the 'Sendable' protocol
28 | ///
29 | /// Pieces map to separate instances of `Bitboard` which can be retrieved with `bitboard(for:)`.
30 | public struct Board: Hashable, CustomStringConvertible {
| `- note: consider making struct 'Board' conform to the 'Sendable' protocol
31 |
32 | /// A chess board space.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessNeo/Game.swift:269:14: 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
267 |
268 | /// Could not promote with a piece kind.
269 | 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
270 |
271 | /// The error message.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessNeo/Piece.swift:25:17: 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/SwiftChessNeo/Piece.swift:46:29: 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/SwiftChessNeo/Piece.swift:49:29: 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/SwiftChessNeo/Piece.swift:52:29: 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/SwiftChessNeo/Piece.swift:55:29: 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/SwiftChessNeo/Piece.swift:58:29: 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/SwiftChessNeo/Piece.swift:61:29: 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/SwiftChessNeo/Piece.swift:64:27: 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/SwiftChessNeo/Piece.swift:140:25: 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/SwiftChessNeo/Piece.swift:142:25: 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/SwiftChessNeo/Piece.swift:149:23: 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/SwiftChessNeo/Piece.swift:156:23: 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/SwiftChessNeo/Piece.swift:159:23: 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/SwiftChessNeo/Rank.swift:66:23: 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/SwiftChessNeo/Square.swift:226:23: 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/SwiftChessNeo/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/SwiftChessNeo/Bitboard.swift:78:15: note: consider making struct 'Bitboard' conform to the 'Sendable' protocol
76 | /// - see also: [Bitboard (Wikipedia)](https://en.wikipedia.org/wiki/Bitboard ),
77 | /// [Bitboards (Chess Programming Wiki)](https://chessprogramming.org/Bitboards)
78 | public struct Bitboard: RawRepresentable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'Bitboard' conform to the 'Sendable' protocol
79 |
80 | /// A bitboard shift direction.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessNeo/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/SwiftChessNeo/Bitboard.swift:78:15: note: consider making struct 'Bitboard' conform to the 'Sendable' protocol
76 | /// - see also: [Bitboard (Wikipedia)](https://en.wikipedia.org/wiki/Bitboard ),
77 | /// [Bitboards (Chess Programming Wiki)](https://chessprogramming.org/Bitboards)
78 | public struct Bitboard: RawRepresentable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'Bitboard' conform to the 'Sendable' protocol
79 |
80 | /// A bitboard shift direction.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessNeo/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/SwiftChessNeo/Bitboard.swift:78:15: note: consider making struct 'Bitboard' conform to the 'Sendable' protocol
76 | /// - see also: [Bitboard (Wikipedia)](https://en.wikipedia.org/wiki/Bitboard ),
77 | /// [Bitboards (Chess Programming Wiki)](https://chessprogramming.org/Bitboards)
78 | public struct Bitboard: RawRepresentable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'Bitboard' conform to the 'Sendable' protocol
79 |
80 | /// A bitboard shift direction.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessNeo/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/SwiftChessNeo/Bitboard.swift:78:15: note: consider making struct 'Bitboard' conform to the 'Sendable' protocol
76 | /// - see also: [Bitboard (Wikipedia)](https://en.wikipedia.org/wiki/Bitboard ),
77 | /// [Bitboards (Chess Programming Wiki)](https://chessprogramming.org/Bitboards)
78 | public struct Bitboard: RawRepresentable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'Bitboard' conform to the 'Sendable' protocol
79 |
80 | /// A bitboard shift direction.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessNeo/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/SwiftChessNeo/Bitboard.swift:78:15: note: consider making struct 'Bitboard' conform to the 'Sendable' protocol
76 | /// - see also: [Bitboard (Wikipedia)](https://en.wikipedia.org/wiki/Bitboard ),
77 | /// [Bitboards (Chess Programming Wiki)](https://chessprogramming.org/Bitboards)
78 | public struct Bitboard: RawRepresentable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'Bitboard' conform to the 'Sendable' protocol
79 |
80 | /// A bitboard shift direction.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessNeo/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/SwiftChessNeo/Bitboard.swift:78:15: note: consider making struct 'Bitboard' conform to the 'Sendable' protocol
76 | /// - see also: [Bitboard (Wikipedia)](https://en.wikipedia.org/wiki/Bitboard ),
77 | /// [Bitboards (Chess Programming Wiki)](https://chessprogramming.org/Bitboards)
78 | public struct Bitboard: RawRepresentable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'Bitboard' conform to the 'Sendable' protocol
79 |
80 | /// A bitboard shift direction.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessNeo/Variant.swift:31:25: 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/SwiftChessNeo/Variant.swift:34:25: 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.
[19/20] Compiling SwiftChessNeo Bitboard.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessNeo/Bitboard.swift:42: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
40 |
41 | /// A lookup table of bitboards for all squares.
42 | 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
43 |
44 | /// The De Bruijn multiplier.
:
76 | /// - see also: [Bitboard (Wikipedia)](https://en.wikipedia.org/wiki/Bitboard ),
77 | /// [Bitboards (Chess Programming Wiki)](https://chessprogramming.org/Bitboards)
78 | public struct Bitboard: RawRepresentable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'Bitboard' conform to the 'Sendable' protocol
79 |
80 | /// A bitboard shift direction.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessNeo/Bitboard.swift:56: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
54 |
55 | /// Mask for bits not in File A.
56 | private let _notFileA: Bitboard = 0xfefefefefefefefe
| |- 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
57 |
58 | /// Mask for bits not in Files A and B.
:
76 | /// - see also: [Bitboard (Wikipedia)](https://en.wikipedia.org/wiki/Bitboard ),
77 | /// [Bitboards (Chess Programming Wiki)](https://chessprogramming.org/Bitboards)
78 | public struct Bitboard: RawRepresentable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'Bitboard' conform to the 'Sendable' protocol
79 |
80 | /// A bitboard shift direction.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessNeo/Bitboard.swift:59: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
57 |
58 | /// Mask for bits not in Files A and B.
59 | private let _notFileAB: Bitboard = 0xfcfcfcfcfcfcfcfc
| |- 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
60 |
61 | /// Mask for bits not in File H.
:
76 | /// - see also: [Bitboard (Wikipedia)](https://en.wikipedia.org/wiki/Bitboard ),
77 | /// [Bitboards (Chess Programming Wiki)](https://chessprogramming.org/Bitboards)
78 | public struct Bitboard: RawRepresentable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'Bitboard' conform to the 'Sendable' protocol
79 |
80 | /// A bitboard shift direction.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessNeo/Bitboard.swift:62: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
60 |
61 | /// Mask for bits not in File H.
62 | private let _notFileH: Bitboard = 0x7f7f7f7f7f7f7f7f
| |- 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
63 |
64 | /// Mask for bits not in Files G and H.
:
76 | /// - see also: [Bitboard (Wikipedia)](https://en.wikipedia.org/wiki/Bitboard ),
77 | /// [Bitboards (Chess Programming Wiki)](https://chessprogramming.org/Bitboards)
78 | public struct Bitboard: RawRepresentable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'Bitboard' conform to the 'Sendable' protocol
79 |
80 | /// A bitboard shift direction.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessNeo/Bitboard.swift:65: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
63 |
64 | /// Mask for bits not in Files G and H.
65 | private let _notFileGH: Bitboard = 0x3f3f3f3f3f3f3f3f
| |- 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
66 |
67 | /// A bitmap of sixty-four bits suitable for storing squares for various pieces.
:
76 | /// - see also: [Bitboard (Wikipedia)](https://en.wikipedia.org/wiki/Bitboard ),
77 | /// [Bitboards (Chess Programming Wiki)](https://chessprogramming.org/Bitboards)
78 | public struct Bitboard: RawRepresentable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'Bitboard' conform to the 'Sendable' protocol
79 |
80 | /// A bitboard shift direction.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessNeo/Bitboard.swift:108:29: 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
79 |
80 | /// A bitboard shift direction.
81 | public enum ShiftDirection {
| `- note: consider making enum 'ShiftDirection' conform to the 'Sendable' protocol
82 |
83 | /// North direction.
:
106 |
107 | /// North regardless of Swift version.
108 | 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
109 |
110 | /// South regardless of Swift version.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessNeo/Bitboard.swift:111:29: 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
79 |
80 | /// A bitboard shift direction.
81 | public enum ShiftDirection {
| `- note: consider making enum 'ShiftDirection' conform to the 'Sendable' protocol
82 |
83 | /// North direction.
:
109 |
110 | /// South regardless of Swift version.
111 | 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
112 |
113 | /// East regardless of Swift version.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessNeo/Bitboard.swift:114:29: 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
79 |
80 | /// A bitboard shift direction.
81 | public enum ShiftDirection {
| `- note: consider making enum 'ShiftDirection' conform to the 'Sendable' protocol
82 |
83 | /// North direction.
:
112 |
113 | /// East regardless of Swift version.
114 | 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
115 |
116 | /// West regardless of Swift version.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessNeo/Bitboard.swift:117:29: 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
79 |
80 | /// A bitboard shift direction.
81 | public enum ShiftDirection {
| `- note: consider making enum 'ShiftDirection' conform to the 'Sendable' protocol
82 |
83 | /// North direction.
:
115 |
116 | /// West regardless of Swift version.
117 | 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
118 |
119 | /// Northeast regardless of Swift version.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessNeo/Bitboard.swift:120:29: 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
79 |
80 | /// A bitboard shift direction.
81 | public enum ShiftDirection {
| `- note: consider making enum 'ShiftDirection' conform to the 'Sendable' protocol
82 |
83 | /// North direction.
:
118 |
119 | /// Northeast regardless of Swift version.
120 | 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
121 |
122 | /// Southeast regardless of Swift version.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessNeo/Bitboard.swift:123:29: 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
79 |
80 | /// A bitboard shift direction.
81 | public enum ShiftDirection {
| `- note: consider making enum 'ShiftDirection' conform to the 'Sendable' protocol
82 |
83 | /// North direction.
:
121 |
122 | /// Southeast regardless of Swift version.
123 | 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
124 |
125 | /// Northwest regardless of Swift version.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessNeo/Bitboard.swift:126:29: 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
79 |
80 | /// A bitboard shift direction.
81 | public enum ShiftDirection {
| `- note: consider making enum 'ShiftDirection' conform to the 'Sendable' protocol
82 |
83 | /// North direction.
:
124 |
125 | /// Northwest regardless of Swift version.
126 | 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
127 |
128 | /// Southwest regardless of Swift version.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessNeo/Bitboard.swift:129:29: 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
79 |
80 | /// A bitboard shift direction.
81 | public enum ShiftDirection {
| `- note: consider making enum 'ShiftDirection' conform to the 'Sendable' protocol
82 |
83 | /// North direction.
:
127 |
128 | /// Southwest regardless of Swift version.
129 | 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
130 |
131 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessNeo/Bitboard.swift:152:23: 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
76 | /// - see also: [Bitboard (Wikipedia)](https://en.wikipedia.org/wiki/Bitboard ),
77 | /// [Bitboards (Chess Programming Wiki)](https://chessprogramming.org/Bitboards)
78 | public struct Bitboard: RawRepresentable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'Bitboard' conform to the 'Sendable' protocol
79 |
80 | /// A bitboard shift direction.
:
150 |
151 | /// The edges of a board.
152 | public static let edges: Bitboard = 0xff818181818181ff
| |- 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
153 |
154 | /// The corresponding value of the "raw" type.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessNeo/Board.swift:131:24: warning: call to main actor-isolated initializer 'init(frame:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
117 | #if os(OSX) || os(iOS) || os(tvOS)
118 |
119 | internal func _view(size: CGFloat) -> _View {
| `- note: add '@MainActor' to make instance method '_view(size:)' part of global actor 'MainActor'
120 | #if os(OSX)
121 | let rectY = CGFloat(rank.index) * size
:
129 | var textFrame = CGRect(x: 0, y: 0, width: size, height: size)
130 | let fontSize = size * 0.625
131 | 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
132 | let str = piece.map({ String($0.specialCharacter(background: color)) }) ?? ""
133 | 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/SwiftChessNeo/Board.swift:138:22: warning: main actor-isolated property 'wantsLayer' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
117 | #if os(OSX) || os(iOS) || os(tvOS)
118 |
119 | internal func _view(size: CGFloat) -> _View {
| `- note: add '@MainActor' to make instance method '_view(size:)' part of global actor 'MainActor'
120 | #if os(OSX)
121 | let rectY = CGFloat(rank.index) * size
:
136 | let tc: _Color = color.isWhite ? black : white
137 | #if os(OSX)
138 | 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
139 | let text = NSText(frame: textFrame)
140 | view.layer?.backgroundColor = bg.cgColor
/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/SwiftChessNeo/Board.swift:139:28: warning: call to main actor-isolated initializer 'init(frame:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
117 | #if os(OSX) || os(iOS) || os(tvOS)
118 |
119 | internal func _view(size: CGFloat) -> _View {
| `- note: add '@MainActor' to make instance method '_view(size:)' part of global actor 'MainActor'
120 | #if os(OSX)
121 | let rectY = CGFloat(rank.index) * size
:
137 | #if os(OSX)
138 | view.wantsLayer = true
139 | let text = NSText(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
140 | view.layer?.backgroundColor = bg.cgColor
141 | 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/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/SwiftChessNeo/Board.swift:140:22: warning: main actor-isolated property 'layer' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
117 | #if os(OSX) || os(iOS) || os(tvOS)
118 |
119 | internal func _view(size: CGFloat) -> _View {
| `- note: add '@MainActor' to make instance method '_view(size:)' part of global actor 'MainActor'
120 | #if os(OSX)
121 | let rectY = CGFloat(rank.index) * size
:
138 | view.wantsLayer = true
139 | let text = NSText(frame: textFrame)
140 | 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
141 | text.alignment = .center
142 | 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/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/SwiftChessNeo/Board.swift:141:22: warning: main actor-isolated property 'alignment' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
117 | #if os(OSX) || os(iOS) || os(tvOS)
118 |
119 | internal func _view(size: CGFloat) -> _View {
| `- note: add '@MainActor' to make instance method '_view(size:)' part of global actor 'MainActor'
120 | #if os(OSX)
121 | let rectY = CGFloat(rank.index) * size
:
139 | let text = NSText(frame: textFrame)
140 | view.layer?.backgroundColor = bg.cgColor
141 | 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
142 | text.font = .systemFont(ofSize: fontSize)
143 | 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/SwiftChessNeo/Board.swift:142:22: warning: main actor-isolated property 'font' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
117 | #if os(OSX) || os(iOS) || os(tvOS)
118 |
119 | internal func _view(size: CGFloat) -> _View {
| `- note: add '@MainActor' to make instance method '_view(size:)' part of global actor 'MainActor'
120 | #if os(OSX)
121 | let rectY = CGFloat(rank.index) * size
:
140 | view.layer?.backgroundColor = bg.cgColor
141 | text.alignment = .center
142 | 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
143 | text.isEditable = false
144 | 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/SwiftChessNeo/Board.swift:143:22: warning: main actor-isolated property 'isEditable' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
117 | #if os(OSX) || os(iOS) || os(tvOS)
118 |
119 | internal func _view(size: CGFloat) -> _View {
| `- note: add '@MainActor' to make instance method '_view(size:)' part of global actor 'MainActor'
120 | #if os(OSX)
121 | let rectY = CGFloat(rank.index) * size
:
141 | text.alignment = .center
142 | text.font = .systemFont(ofSize: fontSize)
143 | 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
144 | text.isSelectable = false
145 | 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/SwiftChessNeo/Board.swift:144:22: warning: main actor-isolated property 'isSelectable' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
117 | #if os(OSX) || os(iOS) || os(tvOS)
118 |
119 | internal func _view(size: CGFloat) -> _View {
| `- note: add '@MainActor' to make instance method '_view(size:)' part of global actor 'MainActor'
120 | #if os(OSX)
121 | let rectY = CGFloat(rank.index) * size
:
142 | text.font = .systemFont(ofSize: fontSize)
143 | text.isEditable = false
144 | 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
145 | text.string = str
146 | 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/SwiftChessNeo/Board.swift:145:22: warning: main actor-isolated property 'string' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
117 | #if os(OSX) || os(iOS) || os(tvOS)
118 |
119 | internal func _view(size: CGFloat) -> _View {
| `- note: add '@MainActor' to make instance method '_view(size:)' part of global actor 'MainActor'
120 | #if os(OSX)
121 | let rectY = CGFloat(rank.index) * size
:
143 | text.isEditable = false
144 | text.isSelectable = false
145 | 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
146 | text.drawsBackground = false
147 | 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/SwiftChessNeo/Board.swift:146:22: warning: main actor-isolated property 'drawsBackground' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
117 | #if os(OSX) || os(iOS) || os(tvOS)
118 |
119 | internal func _view(size: CGFloat) -> _View {
| `- note: add '@MainActor' to make instance method '_view(size:)' part of global actor 'MainActor'
120 | #if os(OSX)
121 | let rectY = CGFloat(rank.index) * size
:
144 | text.isSelectable = false
145 | text.string = str
146 | 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
147 | text.textColor = tc
148 | 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/SwiftChessNeo/Board.swift:147:22: warning: main actor-isolated property 'textColor' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
117 | #if os(OSX) || os(iOS) || os(tvOS)
118 |
119 | internal func _view(size: CGFloat) -> _View {
| `- note: add '@MainActor' to make instance method '_view(size:)' part of global actor 'MainActor'
120 | #if os(OSX)
121 | let rectY = CGFloat(rank.index) * size
:
145 | text.string = str
146 | text.drawsBackground = false
147 | 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
148 | view.addSubview(text)
149 | #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/SwiftChessNeo/Board.swift:148:22: warning: call to main actor-isolated instance method 'addSubview' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
117 | #if os(OSX) || os(iOS) || os(tvOS)
118 |
119 | internal func _view(size: CGFloat) -> _View {
| `- note: add '@MainActor' to make instance method '_view(size:)' part of global actor 'MainActor'
120 | #if os(OSX)
121 | let rectY = CGFloat(rank.index) * size
:
146 | text.drawsBackground = false
147 | text.textColor = tc
148 | 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
149 | #else
150 | 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/SwiftChessNeo/Board.swift:669:20: warning: call to main actor-isolated initializer 'init(frame:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
667 | let boardSize = spaceSize * 8
668 | let frame = CGRect(x: 0, y: 0, width: boardSize, height: boardSize)
669 | 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
670 |
671 | 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/SwiftChessNeo/Board.swift:672:18: warning: call to main actor-isolated instance method 'addSubview' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
670 |
671 | for space in self {
672 | 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
673 | }
674 | 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 |
[20/20] Compiling SwiftChessNeo Board.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessNeo/Bitboard.swift:42: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
40 |
41 | /// A lookup table of bitboards for all squares.
42 | 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
43 |
44 | /// The De Bruijn multiplier.
:
76 | /// - see also: [Bitboard (Wikipedia)](https://en.wikipedia.org/wiki/Bitboard ),
77 | /// [Bitboards (Chess Programming Wiki)](https://chessprogramming.org/Bitboards)
78 | public struct Bitboard: RawRepresentable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'Bitboard' conform to the 'Sendable' protocol
79 |
80 | /// A bitboard shift direction.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessNeo/Bitboard.swift:56: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
54 |
55 | /// Mask for bits not in File A.
56 | private let _notFileA: Bitboard = 0xfefefefefefefefe
| |- 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
57 |
58 | /// Mask for bits not in Files A and B.
:
76 | /// - see also: [Bitboard (Wikipedia)](https://en.wikipedia.org/wiki/Bitboard ),
77 | /// [Bitboards (Chess Programming Wiki)](https://chessprogramming.org/Bitboards)
78 | public struct Bitboard: RawRepresentable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'Bitboard' conform to the 'Sendable' protocol
79 |
80 | /// A bitboard shift direction.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessNeo/Bitboard.swift:59: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
57 |
58 | /// Mask for bits not in Files A and B.
59 | private let _notFileAB: Bitboard = 0xfcfcfcfcfcfcfcfc
| |- 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
60 |
61 | /// Mask for bits not in File H.
:
76 | /// - see also: [Bitboard (Wikipedia)](https://en.wikipedia.org/wiki/Bitboard ),
77 | /// [Bitboards (Chess Programming Wiki)](https://chessprogramming.org/Bitboards)
78 | public struct Bitboard: RawRepresentable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'Bitboard' conform to the 'Sendable' protocol
79 |
80 | /// A bitboard shift direction.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessNeo/Bitboard.swift:62: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
60 |
61 | /// Mask for bits not in File H.
62 | private let _notFileH: Bitboard = 0x7f7f7f7f7f7f7f7f
| |- 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
63 |
64 | /// Mask for bits not in Files G and H.
:
76 | /// - see also: [Bitboard (Wikipedia)](https://en.wikipedia.org/wiki/Bitboard ),
77 | /// [Bitboards (Chess Programming Wiki)](https://chessprogramming.org/Bitboards)
78 | public struct Bitboard: RawRepresentable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'Bitboard' conform to the 'Sendable' protocol
79 |
80 | /// A bitboard shift direction.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessNeo/Bitboard.swift:65: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
63 |
64 | /// Mask for bits not in Files G and H.
65 | private let _notFileGH: Bitboard = 0x3f3f3f3f3f3f3f3f
| |- 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
66 |
67 | /// A bitmap of sixty-four bits suitable for storing squares for various pieces.
:
76 | /// - see also: [Bitboard (Wikipedia)](https://en.wikipedia.org/wiki/Bitboard ),
77 | /// [Bitboards (Chess Programming Wiki)](https://chessprogramming.org/Bitboards)
78 | public struct Bitboard: RawRepresentable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'Bitboard' conform to the 'Sendable' protocol
79 |
80 | /// A bitboard shift direction.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessNeo/Bitboard.swift:108:29: 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
79 |
80 | /// A bitboard shift direction.
81 | public enum ShiftDirection {
| `- note: consider making enum 'ShiftDirection' conform to the 'Sendable' protocol
82 |
83 | /// North direction.
:
106 |
107 | /// North regardless of Swift version.
108 | 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
109 |
110 | /// South regardless of Swift version.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessNeo/Bitboard.swift:111:29: 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
79 |
80 | /// A bitboard shift direction.
81 | public enum ShiftDirection {
| `- note: consider making enum 'ShiftDirection' conform to the 'Sendable' protocol
82 |
83 | /// North direction.
:
109 |
110 | /// South regardless of Swift version.
111 | 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
112 |
113 | /// East regardless of Swift version.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessNeo/Bitboard.swift:114:29: 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
79 |
80 | /// A bitboard shift direction.
81 | public enum ShiftDirection {
| `- note: consider making enum 'ShiftDirection' conform to the 'Sendable' protocol
82 |
83 | /// North direction.
:
112 |
113 | /// East regardless of Swift version.
114 | 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
115 |
116 | /// West regardless of Swift version.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessNeo/Bitboard.swift:117:29: 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
79 |
80 | /// A bitboard shift direction.
81 | public enum ShiftDirection {
| `- note: consider making enum 'ShiftDirection' conform to the 'Sendable' protocol
82 |
83 | /// North direction.
:
115 |
116 | /// West regardless of Swift version.
117 | 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
118 |
119 | /// Northeast regardless of Swift version.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessNeo/Bitboard.swift:120:29: 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
79 |
80 | /// A bitboard shift direction.
81 | public enum ShiftDirection {
| `- note: consider making enum 'ShiftDirection' conform to the 'Sendable' protocol
82 |
83 | /// North direction.
:
118 |
119 | /// Northeast regardless of Swift version.
120 | 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
121 |
122 | /// Southeast regardless of Swift version.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessNeo/Bitboard.swift:123:29: 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
79 |
80 | /// A bitboard shift direction.
81 | public enum ShiftDirection {
| `- note: consider making enum 'ShiftDirection' conform to the 'Sendable' protocol
82 |
83 | /// North direction.
:
121 |
122 | /// Southeast regardless of Swift version.
123 | 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
124 |
125 | /// Northwest regardless of Swift version.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessNeo/Bitboard.swift:126:29: 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
79 |
80 | /// A bitboard shift direction.
81 | public enum ShiftDirection {
| `- note: consider making enum 'ShiftDirection' conform to the 'Sendable' protocol
82 |
83 | /// North direction.
:
124 |
125 | /// Northwest regardless of Swift version.
126 | 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
127 |
128 | /// Southwest regardless of Swift version.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessNeo/Bitboard.swift:129:29: 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
79 |
80 | /// A bitboard shift direction.
81 | public enum ShiftDirection {
| `- note: consider making enum 'ShiftDirection' conform to the 'Sendable' protocol
82 |
83 | /// North direction.
:
127 |
128 | /// Southwest regardless of Swift version.
129 | 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
130 |
131 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessNeo/Bitboard.swift:152:23: 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
76 | /// - see also: [Bitboard (Wikipedia)](https://en.wikipedia.org/wiki/Bitboard ),
77 | /// [Bitboards (Chess Programming Wiki)](https://chessprogramming.org/Bitboards)
78 | public struct Bitboard: RawRepresentable, Hashable, CustomStringConvertible {
| `- note: consider making struct 'Bitboard' conform to the 'Sendable' protocol
79 |
80 | /// A bitboard shift direction.
:
150 |
151 | /// The edges of a board.
152 | public static let edges: Bitboard = 0xff818181818181ff
| |- 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
153 |
154 | /// The corresponding value of the "raw" type.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftChessNeo/Board.swift:131:24: warning: call to main actor-isolated initializer 'init(frame:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
117 | #if os(OSX) || os(iOS) || os(tvOS)
118 |
119 | internal func _view(size: CGFloat) -> _View {
| `- note: add '@MainActor' to make instance method '_view(size:)' part of global actor 'MainActor'
120 | #if os(OSX)
121 | let rectY = CGFloat(rank.index) * size
:
129 | var textFrame = CGRect(x: 0, y: 0, width: size, height: size)
130 | let fontSize = size * 0.625
131 | 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
132 | let str = piece.map({ String($0.specialCharacter(background: color)) }) ?? ""
133 | 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/SwiftChessNeo/Board.swift:138:22: warning: main actor-isolated property 'wantsLayer' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
117 | #if os(OSX) || os(iOS) || os(tvOS)
118 |
119 | internal func _view(size: CGFloat) -> _View {
| `- note: add '@MainActor' to make instance method '_view(size:)' part of global actor 'MainActor'
120 | #if os(OSX)
121 | let rectY = CGFloat(rank.index) * size
:
136 | let tc: _Color = color.isWhite ? black : white
137 | #if os(OSX)
138 | 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
139 | let text = NSText(frame: textFrame)
140 | view.layer?.backgroundColor = bg.cgColor
/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/SwiftChessNeo/Board.swift:139:28: warning: call to main actor-isolated initializer 'init(frame:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
117 | #if os(OSX) || os(iOS) || os(tvOS)
118 |
119 | internal func _view(size: CGFloat) -> _View {
| `- note: add '@MainActor' to make instance method '_view(size:)' part of global actor 'MainActor'
120 | #if os(OSX)
121 | let rectY = CGFloat(rank.index) * size
:
137 | #if os(OSX)
138 | view.wantsLayer = true
139 | let text = NSText(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
140 | view.layer?.backgroundColor = bg.cgColor
141 | 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/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/SwiftChessNeo/Board.swift:140:22: warning: main actor-isolated property 'layer' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
117 | #if os(OSX) || os(iOS) || os(tvOS)
118 |
119 | internal func _view(size: CGFloat) -> _View {
| `- note: add '@MainActor' to make instance method '_view(size:)' part of global actor 'MainActor'
120 | #if os(OSX)
121 | let rectY = CGFloat(rank.index) * size
:
138 | view.wantsLayer = true
139 | let text = NSText(frame: textFrame)
140 | 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
141 | text.alignment = .center
142 | 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/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/SwiftChessNeo/Board.swift:141:22: warning: main actor-isolated property 'alignment' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
117 | #if os(OSX) || os(iOS) || os(tvOS)
118 |
119 | internal func _view(size: CGFloat) -> _View {
| `- note: add '@MainActor' to make instance method '_view(size:)' part of global actor 'MainActor'
120 | #if os(OSX)
121 | let rectY = CGFloat(rank.index) * size
:
139 | let text = NSText(frame: textFrame)
140 | view.layer?.backgroundColor = bg.cgColor
141 | 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
142 | text.font = .systemFont(ofSize: fontSize)
143 | 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/SwiftChessNeo/Board.swift:142:22: warning: main actor-isolated property 'font' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
117 | #if os(OSX) || os(iOS) || os(tvOS)
118 |
119 | internal func _view(size: CGFloat) -> _View {
| `- note: add '@MainActor' to make instance method '_view(size:)' part of global actor 'MainActor'
120 | #if os(OSX)
121 | let rectY = CGFloat(rank.index) * size
:
140 | view.layer?.backgroundColor = bg.cgColor
141 | text.alignment = .center
142 | 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
143 | text.isEditable = false
144 | 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/SwiftChessNeo/Board.swift:143:22: warning: main actor-isolated property 'isEditable' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
117 | #if os(OSX) || os(iOS) || os(tvOS)
118 |
119 | internal func _view(size: CGFloat) -> _View {
| `- note: add '@MainActor' to make instance method '_view(size:)' part of global actor 'MainActor'
120 | #if os(OSX)
121 | let rectY = CGFloat(rank.index) * size
:
141 | text.alignment = .center
142 | text.font = .systemFont(ofSize: fontSize)
143 | 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
144 | text.isSelectable = false
145 | 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/SwiftChessNeo/Board.swift:144:22: warning: main actor-isolated property 'isSelectable' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
117 | #if os(OSX) || os(iOS) || os(tvOS)
118 |
119 | internal func _view(size: CGFloat) -> _View {
| `- note: add '@MainActor' to make instance method '_view(size:)' part of global actor 'MainActor'
120 | #if os(OSX)
121 | let rectY = CGFloat(rank.index) * size
:
142 | text.font = .systemFont(ofSize: fontSize)
143 | text.isEditable = false
144 | 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
145 | text.string = str
146 | 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/SwiftChessNeo/Board.swift:145:22: warning: main actor-isolated property 'string' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
117 | #if os(OSX) || os(iOS) || os(tvOS)
118 |
119 | internal func _view(size: CGFloat) -> _View {
| `- note: add '@MainActor' to make instance method '_view(size:)' part of global actor 'MainActor'
120 | #if os(OSX)
121 | let rectY = CGFloat(rank.index) * size
:
143 | text.isEditable = false
144 | text.isSelectable = false
145 | 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
146 | text.drawsBackground = false
147 | 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/SwiftChessNeo/Board.swift:146:22: warning: main actor-isolated property 'drawsBackground' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
117 | #if os(OSX) || os(iOS) || os(tvOS)
118 |
119 | internal func _view(size: CGFloat) -> _View {
| `- note: add '@MainActor' to make instance method '_view(size:)' part of global actor 'MainActor'
120 | #if os(OSX)
121 | let rectY = CGFloat(rank.index) * size
:
144 | text.isSelectable = false
145 | text.string = str
146 | 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
147 | text.textColor = tc
148 | 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/SwiftChessNeo/Board.swift:147:22: warning: main actor-isolated property 'textColor' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
117 | #if os(OSX) || os(iOS) || os(tvOS)
118 |
119 | internal func _view(size: CGFloat) -> _View {
| `- note: add '@MainActor' to make instance method '_view(size:)' part of global actor 'MainActor'
120 | #if os(OSX)
121 | let rectY = CGFloat(rank.index) * size
:
145 | text.string = str
146 | text.drawsBackground = false
147 | 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
148 | view.addSubview(text)
149 | #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/SwiftChessNeo/Board.swift:148:22: warning: call to main actor-isolated instance method 'addSubview' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
117 | #if os(OSX) || os(iOS) || os(tvOS)
118 |
119 | internal func _view(size: CGFloat) -> _View {
| `- note: add '@MainActor' to make instance method '_view(size:)' part of global actor 'MainActor'
120 | #if os(OSX)
121 | let rectY = CGFloat(rank.index) * size
:
146 | text.drawsBackground = false
147 | text.textColor = tc
148 | 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
149 | #else
150 | 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/SwiftChessNeo/Board.swift:669:20: warning: call to main actor-isolated initializer 'init(frame:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
667 | let boardSize = spaceSize * 8
668 | let frame = CGRect(x: 0, y: 0, width: boardSize, height: boardSize)
669 | 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
670 |
671 | 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/SwiftChessNeo/Board.swift:672:18: warning: call to main actor-isolated instance method 'addSubview' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
670 |
671 | for space in self {
672 | 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
673 | }
674 | 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 |
Build complete! (7.37s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "swift-chess-neo",
"name" : "swift-chess-neo",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "SwiftChessNeo",
"targets" : [
"SwiftChessNeo"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "SwiftChessNeoTests",
"module_type" : "SwiftTarget",
"name" : "SwiftChessNeoTests",
"path" : "Tests/SwiftChessNeoTests",
"sources" : [
"PGNParsingTests.swift",
"PlayerTests.swift",
"SwiftChessNeoTests.swift",
"VariantTests.swift"
],
"target_dependencies" : [
"SwiftChessNeo"
],
"type" : "test"
},
{
"c99name" : "SwiftChessNeo",
"module_type" : "SwiftTarget",
"name" : "SwiftChessNeo",
"path" : "Sources/SwiftChessNeo",
"product_memberships" : [
"SwiftChessNeo"
],
"sources" : [
"Bitboard.swift",
"Board.swift",
"CastlingRights.swift",
"Color.swift",
"File.swift",
"Game.swift",
"InternalTypes.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/master
Repository: navanchauhan/swift-chess-neo
Swift version used: 6.1
Target: SwiftChessNeo
Extracting symbol information for 'SwiftChessNeo'...
Finished extracting symbol information for 'SwiftChessNeo'. (6.38s)
Building documentation for 'SwiftChessNeo'...
Finished building documentation for 'SwiftChessNeo' (0.51s)
Generated documentation archive at:
/Users/admin/builder/spi-builder-workspace/.docs/navanchauhan/swift-chess-neo/master
Fetching https://github.com/swiftlang/swift-docc-plugin from cache
Fetched https://github.com/swiftlang/swift-docc-plugin from cache (0.48s)
Computing version for https://github.com/swiftlang/swift-docc-plugin
Computed https://github.com/swiftlang/swift-docc-plugin at 1.4.3 (1.16s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit from cache
Fetched https://github.com/swiftlang/swift-docc-symbolkit from cache (0.96s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (1.59s)
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.3
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
[3/8] Write sources
[4/8] Write swift-version-2F0A5646E1D333AE.txt
[6/53] Compiling SymbolKit Mixin+Equals.swift
[7/53] Compiling SymbolKit Mixin+Hash.swift
[8/53] Compiling SymbolKit Mixin.swift
[9/53] Compiling SymbolKit LineList.swift
[10/53] Compiling SymbolKit Position.swift
[11/53] Compiling SymbolKit SemanticVersion.swift
[12/53] Compiling SymbolKit AccessControl.swift
[13/53] Compiling SymbolKit Availability.swift
[14/53] Compiling SymbolKit AvailabilityItem.swift
[15/53] Compiling SymbolKit Domain.swift
[16/57] Compiling SymbolKit DeclarationFragments.swift
[17/57] Compiling SymbolKit Fragment.swift
[18/57] Compiling SymbolKit FragmentKind.swift
[19/57] Compiling SymbolKit FunctionParameter.swift
[20/57] Compiling SymbolKit FunctionSignature.swift
[21/57] Emitting module SymbolKit
[22/57] Compiling SymbolKit GenericConstraint.swift
[23/57] Compiling SymbolKit GenericParameter.swift
[24/57] Compiling SymbolKit Generics.swift
[25/57] Compiling SymbolKit Namespace.swift
[26/57] Compiling SymbolKit SourceRange.swift
[27/57] Compiling SymbolKit Metadata.swift
[28/57] Compiling SymbolKit Module.swift
[29/57] Compiling SymbolKit OperatingSystem.swift
[30/57] Compiling SymbolKit Platform.swift
[31/57] Compiling SymbolKit Relationship.swift
[32/57] Compiling SymbolKit RelationshipKind.swift
[33/57] Compiling SymbolKit SourceOrigin.swift
[34/57] Compiling SymbolKit GenericConstraints.swift
[35/57] Compiling SymbolKit Swift.swift
[36/57] Compiling SymbolKit Identifier.swift
[37/57] Compiling SymbolKit KindIdentifier.swift
[38/57] Compiling SymbolKit Location.swift
[39/57] Compiling SymbolKit Mutability.swift
[40/57] Compiling SymbolKit Names.swift
[41/57] Compiling SymbolKit SPI.swift
[42/57] Compiling SymbolKit Snippet.swift
[43/57] Compiling SymbolKit Extension.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] Compiling Snippets Snippet.swift
[53/57] Emitting module Snippets
[54/57] Compiling Snippets SnippetParser.swift
[55/61] Compiling snippet_extract URL+Status.swift
[56/61] Compiling snippet_extract SymbolGraph+Snippet.swift
[57/61] Compiling snippet_extract SnippetBuildCommand.swift
[58/61] Emitting module snippet_extract
[58/61] Write Objects.LinkFileList
[59/61] Linking snippet-extract-tool
[60/61] Applying snippet-extract-tool
Build of product 'snippet-extract' complete! (3.96s)
Building for debugging...
[0/1] Write swift-version-2F0A5646E1D333AE.txt
[2/18] Compiling SwiftChessNeo Rank.swift
[3/18] Compiling SwiftChessNeo Sequence+Sage.swift
[4/18] Compiling SwiftChessNeo Tables.swift
[5/18] Compiling SwiftChessNeo Square.swift
[6/19] Compiling SwiftChessNeo Variant.swift
[7/19] Compiling SwiftChessNeo Piece.swift
[8/19] Compiling SwiftChessNeo Player.swift
[9/19] Compiling SwiftChessNeo InternalTypes.swift
[10/19] Compiling SwiftChessNeo Move.swift
[11/19] Compiling SwiftChessNeo File.swift
[12/19] Compiling SwiftChessNeo Game.swift
[13/19] Compiling SwiftChessNeo CastlingRights.swift
[14/19] Compiling SwiftChessNeo Color.swift
[15/19] Compiling SwiftChessNeo PGN.swift
[16/19] Compiling SwiftChessNeo PGNMove.swift
[17/19] Emitting module SwiftChessNeo
[18/19] Compiling SwiftChessNeo Bitboard.swift
[19/19] Compiling SwiftChessNeo Board.swift
Build of target: 'SwiftChessNeo' complete! (2.91s)
1766
10 /Users/admin/builder/spi-builder-workspace/.docs/navanchauhan/swift-chess-neo/master
✅ Doc result (uploading) reported
========================================
SyncDocs
========================================
Doc archive source directory: $PWD/.docs/navanchauhan/swift-chess-neo/master
File count: 1766
Doc size: 10.0MB
Preparing doc bundle ...
Uploading prod-navanchauhan-swift-chess-neo-master-1845d118.zip to s3://spi-docs-inbox/prod-navanchauhan-swift-chess-neo-master-1845d118.zip
Copying... [12%]
Copying... [20%]
Copying... [32%]
Copying... [41%]
Copying... [53%]
Copying... [61%]
Copying... [70%]
Copying... [82%]
Copying... [90%]
Copying... [100%]
Done.