Build Information
Successful build of swift-chess-neo, reference master (7a2a98
), with Swift 6.0 for macOS (SPM) on 30 Nov 2024 22:49:38 UTC.
Swift 6 data race errors: 73
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.1.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
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
AppKit.NSText:2:23: note: calls to initializer 'init(frame:)' from outside of its actor context are implicitly asynchronous
1 | @MainActor open class NSText : NSView, NSChangeSpelling, NSIgnoreMisspelledWords {
2 | @MainActor public init(frame frameRect: NSRect)
| `- note: calls to initializer 'init(frame:)' from outside of its actor context are implicitly asynchronous
3 | public init?(coder: NSCoder)
4 | open var string: String { get set }
/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)
AppKit.NSView:272:14: note: property declared here
270 | open var wantsLayer: Bool { get set }
271 | @available(macOS 10.5, *)
272 | open var layer: CALayer? { get set }
| `- note: property declared here
273 | @available(macOS 10.8, *)
274 | open var wantsUpdateLayer: Bool { get }
/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
AppKit.NSText:50:14: note: mutation of this property is only permitted within the actor
48 | open var font: NSFont? { get set }
49 | @NSCopying open var textColor: NSColor? { get set }
50 | open var alignment: NSTextAlignment { get set }
| `- note: mutation of this property is only permitted within the actor
51 | open var baseWritingDirection: NSWritingDirection { get set }
52 | open func setTextColor(_ color: NSColor?, range: NSRange)
/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
AppKit.NSText:48:14: note: mutation of this property is only permitted within the actor
46 | open var selectedRange: NSRange { get set }
47 | open func scrollRangeToVisible(_ range: NSRange)
48 | open var font: NSFont? { get set }
| `- note: mutation of this property is only permitted within the actor
49 | @NSCopying open var textColor: NSColor? { get set }
50 | open var alignment: NSTextAlignment { get set }
/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
AppKit.NSText:27:14: note: mutation of this property is only permitted within the actor
25 | open func readRTFDFromFile(_ path: String) -> Bool
26 | unowned(unsafe) open var delegate: (any NSTextDelegate)? { get set }
27 | open var isEditable: Bool { get set }
| `- note: mutation of this property is only permitted within the actor
28 | @available(swift, obsoleted: 3, renamed: "isEditable")
29 | open var editable: Bool { get set }
/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
AppKit.NSText:30:14: note: mutation of this property is only permitted within the actor
28 | @available(swift, obsoleted: 3, renamed: "isEditable")
29 | open var editable: Bool { get set }
30 | open var isSelectable: Bool { get set }
| `- note: mutation of this property is only permitted within the actor
31 | @available(swift, obsoleted: 3, renamed: "isSelectable")
32 | open var selectable: Bool { get set }
/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
AppKit.NSText:4:14: note: mutation of this property is only permitted within the actor
2 | @MainActor public init(frame frameRect: NSRect)
3 | public init?(coder: NSCoder)
4 | open var string: String { get set }
| `- note: mutation of this property is only permitted within the actor
5 | open func replaceCharacters(in range: NSRange, with string: String)
6 | @available(swift, obsoleted: 3, renamed: "replaceCharacters(in:with:)")
/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)
AppKit.NSText:41:14: note: mutation of this property is only permitted within the actor
39 | open var fieldEditor: Bool { get set }
40 | open var usesFontPanel: Bool { get set }
41 | open var drawsBackground: Bool { get set }
| `- note: mutation of this property is only permitted within the actor
42 | @NSCopying open var backgroundColor: NSColor? { get set }
43 | open var isRulerVisible: Bool { get }
/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
AppKit.NSText:49:25: note: mutation of this property is only permitted within the actor
47 | open func scrollRangeToVisible(_ range: NSRange)
48 | open var font: NSFont? { get set }
49 | @NSCopying open var textColor: NSColor? { get set }
| `- note: mutation of this property is only permitted within the actor
50 | open var alignment: NSTextAlignment { get set }
51 | open var baseWritingDirection: NSWritingDirection { get set }
/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:29:26: note: calls to instance method 'addSubview' from outside of its actor context are implicitly asynchronous
27 | @available(macOS 10.5, *)
28 | open func viewDidUnhide()
29 | @MainActor open func addSubview(_ view: NSView)
| `- note: calls to instance method 'addSubview' from outside of its actor context are implicitly asynchronous
30 | open func addSubview(_ view: NSView, positioned place: NSWindow.OrderingMode, relativeTo otherView: NSView?)
31 | open func sortSubviews(_ compare: @convention(c) (NSView, NSView, UnsafeMutableRawPointer?) -> ComparisonResult, context: UnsafeMutableRawPointer?)
/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: annotate 'all' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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/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: annotate '_h' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
84 |
85 | }
/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 {
AppKit.NSView:2:23: note: calls to initializer 'init(frame:)' from outside of its actor context are implicitly asynchronous
1 | @MainActor open class NSView : NSResponder, NSAnimatablePropertyContainer, NSUserInterfaceItemIdentification, NSDraggingDestination, NSAppearanceCustomization, NSAccessibilityElementProtocol, NSAccessibilityProtocol {
2 | @MainActor public init(frame frameRect: NSRect)
| `- note: calls to initializer 'init(frame:)' from outside of its actor context are implicitly asynchronous
3 | public init?(coder: NSCoder)
4 | unowned(unsafe) open var window: NSWindow? { get }
/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:29:26: note: calls to instance method 'addSubview' from outside of its actor context are implicitly asynchronous
27 | @available(macOS 10.5, *)
28 | open func viewDidUnhide()
29 | @MainActor open func addSubview(_ view: NSView)
| `- note: calls to instance method 'addSubview' from outside of its actor context are implicitly asynchronous
30 | open func addSubview(_ view: NSView, positioned place: NSWindow.OrderingMode, relativeTo otherView: NSView?)
31 | open func sortSubviews(_ compare: @convention(c) (NSView, NSView, UnsafeMutableRawPointer?) -> ComparisonResult, context: UnsafeMutableRawPointer?)
[15/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: annotate '_bitboardTable' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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: annotate '_notFileA' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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: annotate '_notFileAB' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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: annotate '_notFileH' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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: annotate '_notFileGH' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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: annotate '_north' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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: annotate '_south' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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: annotate '_east' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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: annotate '_west' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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: annotate '_northeast' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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: annotate '_southeast' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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: annotate '_northwest' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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: annotate '_southwest' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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: annotate 'edges' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
153 |
154 | /// The corresponding value of the "raw" type.
/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: annotate 'all' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
67 |
68 | /// The row index of `self`.
/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: annotate 'all' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
91 |
92 | /// The column index of `self`.
/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
AppKit.NSView:2:23: note: calls to initializer 'init(frame:)' from outside of its actor context are implicitly asynchronous
1 | @MainActor open class NSView : NSResponder, NSAnimatablePropertyContainer, NSUserInterfaceItemIdentification, NSDraggingDestination, NSAppearanceCustomization, NSAccessibilityElementProtocol, NSAccessibilityProtocol {
2 | @MainActor public init(frame frameRect: NSRect)
| `- note: calls to initializer 'init(frame:)' from outside of its actor context are implicitly asynchronous
3 | public init?(coder: NSCoder)
4 | unowned(unsafe) open var window: NSWindow? { get }
/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
AppKit.NSView:270:14: note: mutation of this property is only permitted within the actor
268 | open var layerContentsPlacement: NSView.LayerContentsPlacement { get set }
269 | @available(macOS 10.5, *)
270 | open var wantsLayer: Bool { get set }
| `- note: mutation of this property is only permitted within the actor
271 | @available(macOS 10.5, *)
272 | open var layer: CALayer? { get set }
/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
AppKit.NSText:2:23: note: calls to initializer 'init(frame:)' from outside of its actor context are implicitly asynchronous
1 | @MainActor open class NSText : NSView, NSChangeSpelling, NSIgnoreMisspelledWords {
2 | @MainActor public init(frame frameRect: NSRect)
| `- note: calls to initializer 'init(frame:)' from outside of its actor context are implicitly asynchronous
3 | public init?(coder: NSCoder)
4 | open var string: String { get set }
/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)
AppKit.NSView:272:14: note: property declared here
270 | open var wantsLayer: Bool { get set }
271 | @available(macOS 10.5, *)
272 | open var layer: CALayer? { get set }
| `- note: property declared here
273 | @available(macOS 10.8, *)
274 | open var wantsUpdateLayer: Bool { get }
/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
AppKit.NSText:50:14: note: mutation of this property is only permitted within the actor
48 | open var font: NSFont? { get set }
49 | @NSCopying open var textColor: NSColor? { get set }
50 | open var alignment: NSTextAlignment { get set }
| `- note: mutation of this property is only permitted within the actor
51 | open var baseWritingDirection: NSWritingDirection { get set }
52 | open func setTextColor(_ color: NSColor?, range: NSRange)
/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
AppKit.NSText:48:14: note: mutation of this property is only permitted within the actor
46 | open var selectedRange: NSRange { get set }
47 | open func scrollRangeToVisible(_ range: NSRange)
48 | open var font: NSFont? { get set }
| `- note: mutation of this property is only permitted within the actor
49 | @NSCopying open var textColor: NSColor? { get set }
50 | open var alignment: NSTextAlignment { get set }
/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
AppKit.NSText:27:14: note: mutation of this property is only permitted within the actor
25 | open func readRTFDFromFile(_ path: String) -> Bool
26 | unowned(unsafe) open var delegate: (any NSTextDelegate)? { get set }
27 | open var isEditable: Bool { get set }
| `- note: mutation of this property is only permitted within the actor
28 | @available(swift, obsoleted: 3, renamed: "isEditable")
29 | open var editable: Bool { get set }
/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
AppKit.NSText:30:14: note: mutation of this property is only permitted within the actor
28 | @available(swift, obsoleted: 3, renamed: "isEditable")
29 | open var editable: Bool { get set }
30 | open var isSelectable: Bool { get set }
| `- note: mutation of this property is only permitted within the actor
31 | @available(swift, obsoleted: 3, renamed: "isSelectable")
32 | open var selectable: Bool { get set }
/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
AppKit.NSText:4:14: note: mutation of this property is only permitted within the actor
2 | @MainActor public init(frame frameRect: NSRect)
3 | public init?(coder: NSCoder)
4 | open var string: String { get set }
| `- note: mutation of this property is only permitted within the actor
5 | open func replaceCharacters(in range: NSRange, with string: String)
6 | @available(swift, obsoleted: 3, renamed: "replaceCharacters(in:with:)")
/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)
AppKit.NSText:41:14: note: mutation of this property is only permitted within the actor
39 | open var fieldEditor: Bool { get set }
40 | open var usesFontPanel: Bool { get set }
41 | open var drawsBackground: Bool { get set }
| `- note: mutation of this property is only permitted within the actor
42 | @NSCopying open var backgroundColor: NSColor? { get set }
43 | open var isRulerVisible: Bool { get }
/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
AppKit.NSText:49:25: note: mutation of this property is only permitted within the actor
47 | open func scrollRangeToVisible(_ range: NSRange)
48 | open var font: NSFont? { get set }
49 | @NSCopying open var textColor: NSColor? { get set }
| `- note: mutation of this property is only permitted within the actor
50 | open var alignment: NSTextAlignment { get set }
51 | open var baseWritingDirection: NSWritingDirection { get set }
/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:29:26: note: calls to instance method 'addSubview' from outside of its actor context are implicitly asynchronous
27 | @available(macOS 10.5, *)
28 | open func viewDidUnhide()
29 | @MainActor open func addSubview(_ view: NSView)
| `- note: calls to instance method 'addSubview' from outside of its actor context are implicitly asynchronous
30 | open func addSubview(_ view: NSView, positioned place: NSWindow.OrderingMode, relativeTo otherView: NSView?)
31 | open func sortSubviews(_ compare: @convention(c) (NSView, NSView, UnsafeMutableRawPointer?) -> ComparisonResult, context: UnsafeMutableRawPointer?)
/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: annotate 'all' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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/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: annotate '_h' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
84 |
85 | }
/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 {
AppKit.NSView:2:23: note: calls to initializer 'init(frame:)' from outside of its actor context are implicitly asynchronous
1 | @MainActor open class NSView : NSResponder, NSAnimatablePropertyContainer, NSUserInterfaceItemIdentification, NSDraggingDestination, NSAppearanceCustomization, NSAccessibilityElementProtocol, NSAccessibilityProtocol {
2 | @MainActor public init(frame frameRect: NSRect)
| `- note: calls to initializer 'init(frame:)' from outside of its actor context are implicitly asynchronous
3 | public init?(coder: NSCoder)
4 | unowned(unsafe) open var window: NSWindow? { get }
/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:29:26: note: calls to instance method 'addSubview' from outside of its actor context are implicitly asynchronous
27 | @available(macOS 10.5, *)
28 | open func viewDidUnhide()
29 | @MainActor open func addSubview(_ view: NSView)
| `- note: calls to instance method 'addSubview' from outside of its actor context are implicitly asynchronous
30 | open func addSubview(_ view: NSView, positioned place: NSWindow.OrderingMode, relativeTo otherView: NSView?)
31 | open func sortSubviews(_ compare: @convention(c) (NSView, NSView, UnsafeMutableRawPointer?) -> ComparisonResult, context: UnsafeMutableRawPointer?)
[16/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: annotate '_bitboardTable' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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: annotate '_notFileA' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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: annotate '_notFileAB' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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: annotate '_notFileH' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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: annotate '_notFileGH' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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: annotate '_north' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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: annotate '_south' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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: annotate '_east' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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: annotate '_west' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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: annotate '_northeast' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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: annotate '_southeast' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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: annotate '_northwest' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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: annotate '_southwest' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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: annotate 'edges' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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: annotate 'all' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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: annotate 'white' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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: annotate 'black' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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: annotate 'kingside' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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: annotate 'queenside' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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: annotate 'all' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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: annotate 'white' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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: annotate 'black' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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: annotate 'kingside' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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: annotate 'queenside' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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: annotate '_white' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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: annotate '_black' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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: annotate 'all' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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: annotate '_a' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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: annotate '_b' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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: annotate '_c' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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: annotate '_d' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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: annotate '_e' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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: annotate '_f' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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: annotate '_g' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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: annotate '_h' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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: annotate 'all' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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: annotate '_draw' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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: annotate '_pawn' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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: annotate '_knight' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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: annotate '_bishop' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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: annotate '_rook' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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: annotate '_queen' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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: annotate '_king' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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: annotate 'all' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
65 |
66 | /// The piece kind's name.
/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: annotate 'whitePieces' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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: annotate 'blackPieces' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
160 |
161 | /// Returns an array of all pieces for `color`.
/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: annotate '_whiteNonQueens' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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: annotate '_blackNonQueens' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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: annotate 'all' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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/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: annotate 'all' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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: annotate 'all' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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: annotate '_whitePawnAttackTable' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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: annotate '_blackPawnAttackTable' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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: annotate '_kingAttackTable' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
42 | 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: annotate '_knightAttackTable' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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: annotate '_betweenTable' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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: annotate '_lineTable' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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: annotate '_standard' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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: annotate '_upsideDown' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
35 |
36 | /// `self` is standard variant.
[17/20] Compiling SwiftChessNeo CastlingRights.swift
/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: annotate 'all' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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: annotate 'white' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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: annotate 'black' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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: annotate 'kingside' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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: annotate 'queenside' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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: annotate 'all' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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: annotate 'white' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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: annotate 'black' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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: annotate 'kingside' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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: annotate 'queenside' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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: annotate '_white' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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: annotate '_black' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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: annotate 'all' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
38 |
39 | /// Whether the color is white or not.
[18/20] Compiling SwiftChessNeo Color.swift
/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: annotate 'all' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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: annotate 'white' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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: annotate 'black' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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: annotate 'kingside' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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: annotate 'queenside' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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: annotate 'all' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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: annotate 'white' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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: annotate 'black' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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: annotate 'kingside' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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: annotate 'queenside' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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: annotate '_white' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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: annotate '_black' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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: annotate 'all' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
38 |
39 | /// Whether the color is white or not.
[19/20] Compiling SwiftChessNeo PGN.swift
/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: annotate '_knight' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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: annotate '_bishop' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
53 |
54 | /// Rook
/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: annotate '_king' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
62 |
63 | /// An array of all piece kinds.
/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: annotate '_queen' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
59 |
60 | /// King
/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: annotate '_rook' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
56 |
57 | /// Queen
/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: annotate '_pawn' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
47 |
48 | /// Knight
[20/20] Compiling SwiftChessNeo PGNMove.swift
/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: annotate '_knight' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
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: annotate '_bishop' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
53 |
54 | /// Rook
/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: annotate '_king' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
62 |
63 | /// An array of all piece kinds.
/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: annotate '_queen' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
59 |
60 | /// King
/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: annotate '_rook' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
56 |
57 | /// Queen
/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: annotate '_pawn' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
47 |
48 | /// Knight
Build complete! (13.77s)
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.0
Target: SwiftChessNeo
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/swift-docc-render-artifact/.git/
From https://github.com/swiftlang/swift-docc-render-artifact
* branch 88815688627177b9716a01ca41da19397bd30e47 -> FETCH_HEAD
HEAD is now at 8881568 Update the artifact
Extracting symbol information for 'SwiftChessNeo'...
Finished extracting symbol information for 'SwiftChessNeo'. (5.95s)
Building documentation for 'SwiftChessNeo'...
warning: Return value documented for initializer returning void
--> Sources/SwiftChessNeo/CastlingRights.swift:207:9-207:58
205 | /// Creates a `CastlingRights` from a `String`.
206 | ///
207 + /// - returns: `nil` if `string` is empty or invalid.
| ╰─suggestion: Remove return value documentation
208 | public init?(string: String) {
209 | guard !string.isEmpty else {Finished building documentation for 'SwiftChessNeo' (0.42s)
Generated documentation archive at:
/Users/admin/builder/spi-builder-workspace/.docs/navanchauhan/swift-chess-neo/master
Fetching https://github.com/swiftlang/swift-docc-plugin
[1/2038] Fetching swift-docc-plugin
Fetched https://github.com/swiftlang/swift-docc-plugin from cache (1.28s)
Computing version for https://github.com/swiftlang/swift-docc-plugin
Computed https://github.com/swiftlang/swift-docc-plugin at 1.4.3 (2.37s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit
[1/3188] Fetching swift-docc-symbolkit
Fetched https://github.com/swiftlang/swift-docc-symbolkit from cache (1.26s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (0.55s)
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
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
Building for debugging...
[0/8] Write sources
[2/8] Write snippet-extract-tool-entitlement.plist
[4/8] Write swift-version--7754E27361AE5C74.txt
[6/53] Emitting module SymbolKit
[7/57] Compiling SymbolKit Mixin+Equals.swift
[8/57] Compiling SymbolKit Mixin+Hash.swift
[9/57] Compiling SymbolKit Mixin.swift
[10/57] Compiling SymbolKit LineList.swift
[11/57] Compiling SymbolKit Position.swift
[12/57] Compiling SymbolKit DeclarationFragments.swift
[13/57] Compiling SymbolKit Fragment.swift
[14/57] Compiling SymbolKit FragmentKind.swift
[15/57] Compiling SymbolKit FunctionParameter.swift
[16/57] Compiling SymbolKit FunctionSignature.swift
[17/57] Compiling SymbolKit Identifier.swift
[18/57] Compiling SymbolKit KindIdentifier.swift
[19/57] Compiling SymbolKit Location.swift
[20/57] Compiling SymbolKit Mutability.swift
[21/57] Compiling SymbolKit SemanticVersion.swift
[22/57] Compiling SymbolKit AccessControl.swift
[23/57] Compiling SymbolKit Availability.swift
[24/57] Compiling SymbolKit AvailabilityItem.swift
[25/57] Compiling SymbolKit Domain.swift
[26/57] Compiling SymbolKit GenericConstraint.swift
[27/57] Compiling SymbolKit GenericParameter.swift
[28/57] Compiling SymbolKit Generics.swift
[29/57] Compiling SymbolKit Namespace.swift
[30/57] Compiling SymbolKit Symbol.swift
[31/57] Compiling SymbolKit SymbolKind.swift
[32/57] Compiling SymbolKit SymbolGraph.swift
[33/57] Compiling SymbolKit GraphCollector.swift
[34/57] Compiling SymbolKit Relationship.swift
[35/57] Compiling SymbolKit RelationshipKind.swift
[36/57] Compiling SymbolKit SourceOrigin.swift
[37/57] Compiling SymbolKit GenericConstraints.swift
[38/57] Compiling SymbolKit Swift.swift
[39/57] Compiling SymbolKit Names.swift
[40/57] Compiling SymbolKit SPI.swift
[41/57] Compiling SymbolKit Snippet.swift
[42/57] Compiling SymbolKit Extension.swift
[43/57] Compiling SymbolKit SourceRange.swift
[44/57] Compiling SymbolKit Metadata.swift
[45/57] Compiling SymbolKit Module.swift
[46/57] Compiling SymbolKit OperatingSystem.swift
[47/57] Compiling SymbolKit Platform.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] Emitting module snippet_extract
[57/61] Compiling snippet_extract SymbolGraph+Snippet.swift
[58/61] Compiling snippet_extract SnippetBuildCommand.swift
[58/61] Write Objects.LinkFileList
[59/61] Linking snippet-extract-tool
[60/61] Applying snippet-extract-tool
Build of product 'snippet-extract' complete! (4.02s)
Building for debugging...
[0/1] Write swift-version--7754E27361AE5C74.txt
[2/18] Compiling SwiftChessNeo Rank.swift
[3/18] Compiling SwiftChessNeo Sequence+Sage.swift
[4/19] Compiling SwiftChessNeo Square.swift
[5/19] Compiling SwiftChessNeo Variant.swift
[6/19] Compiling SwiftChessNeo CastlingRights.swift
[7/19] Compiling SwiftChessNeo Color.swift
[8/19] Compiling SwiftChessNeo Piece.swift
[9/19] Compiling SwiftChessNeo Player.swift
[10/19] Compiling SwiftChessNeo Tables.swift
[11/19] Compiling SwiftChessNeo PGN.swift
[12/19] Compiling SwiftChessNeo PGNMove.swift
[13/19] Compiling SwiftChessNeo File.swift
[14/19] Compiling SwiftChessNeo Game.swift
[15/19] Compiling SwiftChessNeo Bitboard.swift
[16/19] Compiling SwiftChessNeo Board.swift
[17/19] Compiling SwiftChessNeo InternalTypes.swift
[18/19] Compiling SwiftChessNeo Move.swift
[19/19] Emitting module SwiftChessNeo
Build of target: 'SwiftChessNeo' complete! (2.55s)
1772
11 /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: 1772
Doc size: 11.0MB
Preparing doc bundle ...
Uploading prod-navanchauhan-swift-chess-neo-master-ef8c49b7.zip to s3://spi-docs-inbox/prod-navanchauhan-swift-chess-neo-master-ef8c49b7.zip
Copying... [11%]
Copying... [20%]
Copying... [31%]
Copying... [40%]
Copying... [52%]
Copying... [60%]
Copying... [72%]
Copying... [80%]
Copying... [92%]
Copying... [100%]
Done.