Build Information
Successful build of Antlr4, reference master (c95f13
), with Swift 6.1 for Linux on 25 Apr 2025 10:53:37 UTC.
Swift 6 data race errors: 28
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu -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 2>&1
Build Log
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
23 |
24 | ///
/host/spi-builder-workspace/Sources/Antlr4/TokenFactory.swift:11:17: note: protocol 'TokenFactory' does not conform to the 'Sendable' protocol
9 | /// of a new factory means that it notifies it's token source and error strategy.
10 | ///
11 | public protocol TokenFactory {
| `- note: protocol 'TokenFactory' does not conform to the 'Sendable' protocol
12 |
13 | //typealias Symbol
/host/spi-builder-workspace/Sources/Antlr4/ConsoleErrorListener.swift:17:23: warning: static property 'INSTANCE' is not concurrency-safe because non-'Sendable' type 'ConsoleErrorListener' may have shared mutable state; this is an error in the Swift 6 language mode
11 | ///
12 |
13 | public class ConsoleErrorListener: BaseErrorListener {
| `- note: class 'ConsoleErrorListener' does not conform to the 'Sendable' protocol
14 | ///
15 | /// Provides a default instance of _org.antlr.v4.runtime.ConsoleErrorListener_.
16 | ///
17 | public static let INSTANCE: ConsoleErrorListener = ConsoleErrorListener()
| |- warning: static property 'INSTANCE' is not concurrency-safe because non-'Sendable' type 'ConsoleErrorListener' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'INSTANCE' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 |
19 | ///
/host/spi-builder-workspace/Sources/Antlr4/DiagnosticErrorListener.swift:104:13: warning: variable 'ruleNames' was never mutated; consider changing to 'let' constant
102 | let ruleIndex: Int = dfa.atnStartState.ruleIndex!
103 |
104 | var ruleNames: [String] = recognizer.getRuleNames()
| `- warning: variable 'ruleNames' was never mutated; consider changing to 'let' constant
105 | if ruleIndex < 0 || ruleIndex >= ruleNames.count {
106 | return String(decision)
/host/spi-builder-workspace/Sources/Antlr4/Lexer.swift:135:13: warning: variable 'tokenStartMarker' was never mutated; consider changing to 'let' constant
133 | // Mark start location in char stream so unbuffered streams are
134 | // guaranteed at least have text of current token
135 | var tokenStartMarker = _input.mark()
| `- warning: variable 'tokenStartMarker' was never mutated; consider changing to 'let' constant
136 | defer {
137 | // make sure we release marker after match or
/host/spi-builder-workspace/Sources/Antlr4/misc/Interval.swift:65:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Interval' to 'Hashable' by implementing 'hash(into:)' instead
63 |
64 |
65 | public var hashValue: Int {
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Interval' to 'Hashable' by implementing 'hash(into:)' instead
66 | var hash: Int = 23
67 | hash = hash * 31 + a
/host/spi-builder-workspace/Sources/Antlr4/VocabularySingle.swift:158:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Vocabulary' to 'Hashable' by implementing 'hash(into:)' instead
156 | }
157 |
158 | public var hashValue: Int {
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Vocabulary' to 'Hashable' by implementing 'hash(into:)' instead
159 | return Unmanaged.passUnretained(self).toOpaque().hashValue
160 | // return unsafeAddress(of: self).hashValue
/host/spi-builder-workspace/Sources/Antlr4/misc/IntervalSet.swift:483:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'IntervalSet' to 'Hashable' by implementing 'hash(into:)' instead
481 | return MurmurHash.finish(hash, intervals.count * 2)
482 | }
483 | public var hashValue: Int {
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'IntervalSet' to 'Hashable' by implementing 'hash(into:)' instead
484 | var hash = MurmurHash.initialize()
485 | for I: Interval in intervals {
/host/spi-builder-workspace/Sources/Antlr4/atn/ATNState.swift:126:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'ATNState' to 'Hashable' by implementing 'hash(into:)' instead
124 |
125 |
126 | public var hashValue: Int {
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'ATNState' to 'Hashable' by implementing 'hash(into:)' instead
127 | return stateNumber
128 | }
[137/158] Compiling Antlr4 LexerInterpreter.swift
/host/spi-builder-workspace/Sources/Antlr4/Parser.swift:17:13: warning: var 'bypassAltsAtnCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
15 | /// - SeeAlso: `ATNDeserializationOptions.generateRuleBypassTransitions`
16 | ///
17 | private var bypassAltsAtnCache = [String: ATN]()
| |- warning: var 'bypassAltsAtnCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'bypassAltsAtnCache' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'bypassAltsAtnCache' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 |
19 | ///
/host/spi-builder-workspace/Sources/Antlr4/Parser.swift:22:13: warning: let 'bypassAltsAtnCacheMutex' is not concurrency-safe because non-'Sendable' type 'Mutex' may have shared mutable state; this is an error in the Swift 6 language mode
20 | /// mutex for bypassAltsAtnCache updates
21 | ///
22 | private let bypassAltsAtnCacheMutex = Mutex()
| |- warning: let 'bypassAltsAtnCacheMutex' is not concurrency-safe because non-'Sendable' type 'Mutex' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'bypassAltsAtnCacheMutex' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
23 |
24 |
/host/spi-builder-workspace/Sources/Antlr4/misc/utils/Mutex.swift:8:7: note: class 'Mutex' does not conform to the 'Sendable' protocol
6 | /// it appears to be a field in a class.
7 | ///
8 | class Mutex {
| `- note: class 'Mutex' does not conform to the 'Sendable' protocol
9 |
10 | ///
/host/spi-builder-workspace/Sources/Antlr4/Parser.swift:30:23: warning: static property 'ConsoleError' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
28 | open class Parser: Recognizer<ParserATNSimulator> {
29 | public static let EOF = -1
30 | public static var ConsoleError = true
| |- warning: static property 'ConsoleError' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'ConsoleError' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'ConsoleError' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
31 |
32 | public class TraceListener: ParseTreeListener {
/host/spi-builder-workspace/Sources/Antlr4/Parser.swift:59:27: warning: static property 'INSTANCE' is not concurrency-safe because non-'Sendable' type 'Parser.TrimToSizeListener' may have shared mutable state; this is an error in the Swift 6 language mode
56 | }
57 |
58 | public class TrimToSizeListener: ParseTreeListener {
| `- note: class 'TrimToSizeListener' does not conform to the 'Sendable' protocol
59 | public static let INSTANCE = TrimToSizeListener()
| |- warning: static property 'INSTANCE' is not concurrency-safe because non-'Sendable' type 'Parser.TrimToSizeListener' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'INSTANCE' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
60 |
61 | public func enterEveryRule(_ ctx: ParserRuleContext) {
/host/spi-builder-workspace/Sources/Antlr4/Parser.swift:944:13: warning: variable 'ruleNames' was never mutated; consider changing to 'let' constant
942 | public func getRuleInvocationStack(_ p: RuleContext?) -> [String] {
943 | var p = p
944 | var ruleNames = getRuleNames()
| `- warning: variable 'ruleNames' was never mutated; consider changing to 'let' constant
945 | var stack = [String]()
946 | while let pWrap = p {
/host/spi-builder-workspace/Sources/Antlr4/RuleContext.swift:59:23: warning: static property 'EMPTY' is not concurrency-safe because non-'Sendable' type 'ParserRuleContext' may have shared mutable state; this is an error in the Swift 6 language mode
57 |
58 | open class RuleContext: RuleNode {
59 | public static let EMPTY = ParserRuleContext()
| |- warning: static property 'EMPTY' is not concurrency-safe because non-'Sendable' type 'ParserRuleContext' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'EMPTY' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
60 |
61 | /// What context invoked this rule?
/host/spi-builder-workspace/Sources/Antlr4/ParserRuleContext.swift:29:12: note: class 'ParserRuleContext' does not conform to the 'Sendable' protocol
27 | /// satisfy the superclass interface.
28 | ///
29 | open class ParserRuleContext: RuleContext {
| `- note: class 'ParserRuleContext' does not conform to the 'Sendable' protocol
30 | public var visited = false
31 |
/host/spi-builder-workspace/Sources/Antlr4/TokenFactory.swift:38:23: warning: static property 'EMPTY' is not concurrency-safe because non-'Sendable' type 'TokenSourceAndStream' may have shared mutable state; this is an error in the Swift 6 language mode
31 | to avoid retain cycles.
32 | */
33 | public class TokenSourceAndStream {
| `- note: class 'TokenSourceAndStream' does not conform to the 'Sendable' protocol
34 | ///
35 | /// An empty TokenSourceAndStream which is used as the default value of
36 | /// _#source_ for tokens that do not have a source.
37 | ///
38 | public static let EMPTY = TokenSourceAndStream()
| |- warning: static property 'EMPTY' is not concurrency-safe because non-'Sendable' type 'TokenSourceAndStream' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'EMPTY' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
39 |
40 | public weak var tokenSource: TokenSource?
/host/spi-builder-workspace/Sources/Antlr4/misc/IntervalSet.swift:483:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'IntervalSet' to 'Hashable' by implementing 'hash(into:)' instead
481 | return MurmurHash.finish(hash, intervals.count * 2)
482 | }
483 | public var hashValue: Int {
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'IntervalSet' to 'Hashable' by implementing 'hash(into:)' instead
484 | var hash = MurmurHash.initialize()
485 | for I: Interval in intervals {
/host/spi-builder-workspace/Sources/Antlr4/misc/BitSet.swift:1056:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'BitSet' to 'Hashable' by implementing 'hash(into:)' instead
1054 | /// - returns: the hash code value for this bit set
1055 | ///
1056 | public var hashValue: Int {
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'BitSet' to 'Hashable' by implementing 'hash(into:)' instead
1057 | var h: Int64 = 1234
1058 | var i: Int = wordsInUse
/host/spi-builder-workspace/Sources/Antlr4/atn/ATNState.swift:126:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'ATNState' to 'Hashable' by implementing 'hash(into:)' instead
124 |
125 |
126 | public var hashValue: Int {
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'ATNState' to 'Hashable' by implementing 'hash(into:)' instead
127 | return stateNumber
128 | }
/host/spi-builder-workspace/Sources/Antlr4/VocabularySingle.swift:158:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Vocabulary' to 'Hashable' by implementing 'hash(into:)' instead
156 | }
157 |
158 | public var hashValue: Int {
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Vocabulary' to 'Hashable' by implementing 'hash(into:)' instead
159 | return Unmanaged.passUnretained(self).toOpaque().hashValue
160 | // return unsafeAddress(of: self).hashValue
/host/spi-builder-workspace/Sources/Antlr4/misc/Interval.swift:65:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Interval' to 'Hashable' by implementing 'hash(into:)' instead
63 |
64 |
65 | public var hashValue: Int {
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Interval' to 'Hashable' by implementing 'hash(into:)' instead
66 | var hash: Int = 23
67 | hash = hash * 31 + a
[138/158] Compiling Antlr4 LexerNoViableAltException.swift
/host/spi-builder-workspace/Sources/Antlr4/Parser.swift:17:13: warning: var 'bypassAltsAtnCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
15 | /// - SeeAlso: `ATNDeserializationOptions.generateRuleBypassTransitions`
16 | ///
17 | private var bypassAltsAtnCache = [String: ATN]()
| |- warning: var 'bypassAltsAtnCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'bypassAltsAtnCache' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'bypassAltsAtnCache' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 |
19 | ///
/host/spi-builder-workspace/Sources/Antlr4/Parser.swift:22:13: warning: let 'bypassAltsAtnCacheMutex' is not concurrency-safe because non-'Sendable' type 'Mutex' may have shared mutable state; this is an error in the Swift 6 language mode
20 | /// mutex for bypassAltsAtnCache updates
21 | ///
22 | private let bypassAltsAtnCacheMutex = Mutex()
| |- warning: let 'bypassAltsAtnCacheMutex' is not concurrency-safe because non-'Sendable' type 'Mutex' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'bypassAltsAtnCacheMutex' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
23 |
24 |
/host/spi-builder-workspace/Sources/Antlr4/misc/utils/Mutex.swift:8:7: note: class 'Mutex' does not conform to the 'Sendable' protocol
6 | /// it appears to be a field in a class.
7 | ///
8 | class Mutex {
| `- note: class 'Mutex' does not conform to the 'Sendable' protocol
9 |
10 | ///
/host/spi-builder-workspace/Sources/Antlr4/Parser.swift:30:23: warning: static property 'ConsoleError' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
28 | open class Parser: Recognizer<ParserATNSimulator> {
29 | public static let EOF = -1
30 | public static var ConsoleError = true
| |- warning: static property 'ConsoleError' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'ConsoleError' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'ConsoleError' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
31 |
32 | public class TraceListener: ParseTreeListener {
/host/spi-builder-workspace/Sources/Antlr4/Parser.swift:59:27: warning: static property 'INSTANCE' is not concurrency-safe because non-'Sendable' type 'Parser.TrimToSizeListener' may have shared mutable state; this is an error in the Swift 6 language mode
56 | }
57 |
58 | public class TrimToSizeListener: ParseTreeListener {
| `- note: class 'TrimToSizeListener' does not conform to the 'Sendable' protocol
59 | public static let INSTANCE = TrimToSizeListener()
| |- warning: static property 'INSTANCE' is not concurrency-safe because non-'Sendable' type 'Parser.TrimToSizeListener' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'INSTANCE' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
60 |
61 | public func enterEveryRule(_ ctx: ParserRuleContext) {
/host/spi-builder-workspace/Sources/Antlr4/Parser.swift:944:13: warning: variable 'ruleNames' was never mutated; consider changing to 'let' constant
942 | public func getRuleInvocationStack(_ p: RuleContext?) -> [String] {
943 | var p = p
944 | var ruleNames = getRuleNames()
| `- warning: variable 'ruleNames' was never mutated; consider changing to 'let' constant
945 | var stack = [String]()
946 | while let pWrap = p {
/host/spi-builder-workspace/Sources/Antlr4/RuleContext.swift:59:23: warning: static property 'EMPTY' is not concurrency-safe because non-'Sendable' type 'ParserRuleContext' may have shared mutable state; this is an error in the Swift 6 language mode
57 |
58 | open class RuleContext: RuleNode {
59 | public static let EMPTY = ParserRuleContext()
| |- warning: static property 'EMPTY' is not concurrency-safe because non-'Sendable' type 'ParserRuleContext' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'EMPTY' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
60 |
61 | /// What context invoked this rule?
/host/spi-builder-workspace/Sources/Antlr4/ParserRuleContext.swift:29:12: note: class 'ParserRuleContext' does not conform to the 'Sendable' protocol
27 | /// satisfy the superclass interface.
28 | ///
29 | open class ParserRuleContext: RuleContext {
| `- note: class 'ParserRuleContext' does not conform to the 'Sendable' protocol
30 | public var visited = false
31 |
/host/spi-builder-workspace/Sources/Antlr4/TokenFactory.swift:38:23: warning: static property 'EMPTY' is not concurrency-safe because non-'Sendable' type 'TokenSourceAndStream' may have shared mutable state; this is an error in the Swift 6 language mode
31 | to avoid retain cycles.
32 | */
33 | public class TokenSourceAndStream {
| `- note: class 'TokenSourceAndStream' does not conform to the 'Sendable' protocol
34 | ///
35 | /// An empty TokenSourceAndStream which is used as the default value of
36 | /// _#source_ for tokens that do not have a source.
37 | ///
38 | public static let EMPTY = TokenSourceAndStream()
| |- warning: static property 'EMPTY' is not concurrency-safe because non-'Sendable' type 'TokenSourceAndStream' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'EMPTY' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
39 |
40 | public weak var tokenSource: TokenSource?
/host/spi-builder-workspace/Sources/Antlr4/misc/IntervalSet.swift:483:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'IntervalSet' to 'Hashable' by implementing 'hash(into:)' instead
481 | return MurmurHash.finish(hash, intervals.count * 2)
482 | }
483 | public var hashValue: Int {
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'IntervalSet' to 'Hashable' by implementing 'hash(into:)' instead
484 | var hash = MurmurHash.initialize()
485 | for I: Interval in intervals {
/host/spi-builder-workspace/Sources/Antlr4/misc/BitSet.swift:1056:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'BitSet' to 'Hashable' by implementing 'hash(into:)' instead
1054 | /// - returns: the hash code value for this bit set
1055 | ///
1056 | public var hashValue: Int {
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'BitSet' to 'Hashable' by implementing 'hash(into:)' instead
1057 | var h: Int64 = 1234
1058 | var i: Int = wordsInUse
/host/spi-builder-workspace/Sources/Antlr4/atn/ATNState.swift:126:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'ATNState' to 'Hashable' by implementing 'hash(into:)' instead
124 |
125 |
126 | public var hashValue: Int {
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'ATNState' to 'Hashable' by implementing 'hash(into:)' instead
127 | return stateNumber
128 | }
/host/spi-builder-workspace/Sources/Antlr4/VocabularySingle.swift:158:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Vocabulary' to 'Hashable' by implementing 'hash(into:)' instead
156 | }
157 |
158 | public var hashValue: Int {
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Vocabulary' to 'Hashable' by implementing 'hash(into:)' instead
159 | return Unmanaged.passUnretained(self).toOpaque().hashValue
160 | // return unsafeAddress(of: self).hashValue
/host/spi-builder-workspace/Sources/Antlr4/misc/Interval.swift:65:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Interval' to 'Hashable' by implementing 'hash(into:)' instead
63 |
64 |
65 | public var hashValue: Int {
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Interval' to 'Hashable' by implementing 'hash(into:)' instead
66 | var hash: Int = 23
67 | hash = hash * 31 + a
[139/158] Compiling Antlr4 ListTokenSource.swift
/host/spi-builder-workspace/Sources/Antlr4/Parser.swift:17:13: warning: var 'bypassAltsAtnCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
15 | /// - SeeAlso: `ATNDeserializationOptions.generateRuleBypassTransitions`
16 | ///
17 | private var bypassAltsAtnCache = [String: ATN]()
| |- warning: var 'bypassAltsAtnCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'bypassAltsAtnCache' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'bypassAltsAtnCache' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 |
19 | ///
/host/spi-builder-workspace/Sources/Antlr4/Parser.swift:22:13: warning: let 'bypassAltsAtnCacheMutex' is not concurrency-safe because non-'Sendable' type 'Mutex' may have shared mutable state; this is an error in the Swift 6 language mode
20 | /// mutex for bypassAltsAtnCache updates
21 | ///
22 | private let bypassAltsAtnCacheMutex = Mutex()
| |- warning: let 'bypassAltsAtnCacheMutex' is not concurrency-safe because non-'Sendable' type 'Mutex' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'bypassAltsAtnCacheMutex' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
23 |
24 |
/host/spi-builder-workspace/Sources/Antlr4/misc/utils/Mutex.swift:8:7: note: class 'Mutex' does not conform to the 'Sendable' protocol
6 | /// it appears to be a field in a class.
7 | ///
8 | class Mutex {
| `- note: class 'Mutex' does not conform to the 'Sendable' protocol
9 |
10 | ///
/host/spi-builder-workspace/Sources/Antlr4/Parser.swift:30:23: warning: static property 'ConsoleError' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
28 | open class Parser: Recognizer<ParserATNSimulator> {
29 | public static let EOF = -1
30 | public static var ConsoleError = true
| |- warning: static property 'ConsoleError' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'ConsoleError' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'ConsoleError' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
31 |
32 | public class TraceListener: ParseTreeListener {
/host/spi-builder-workspace/Sources/Antlr4/Parser.swift:59:27: warning: static property 'INSTANCE' is not concurrency-safe because non-'Sendable' type 'Parser.TrimToSizeListener' may have shared mutable state; this is an error in the Swift 6 language mode
56 | }
57 |
58 | public class TrimToSizeListener: ParseTreeListener {
| `- note: class 'TrimToSizeListener' does not conform to the 'Sendable' protocol
59 | public static let INSTANCE = TrimToSizeListener()
| |- warning: static property 'INSTANCE' is not concurrency-safe because non-'Sendable' type 'Parser.TrimToSizeListener' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'INSTANCE' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
60 |
61 | public func enterEveryRule(_ ctx: ParserRuleContext) {
/host/spi-builder-workspace/Sources/Antlr4/Parser.swift:944:13: warning: variable 'ruleNames' was never mutated; consider changing to 'let' constant
942 | public func getRuleInvocationStack(_ p: RuleContext?) -> [String] {
943 | var p = p
944 | var ruleNames = getRuleNames()
| `- warning: variable 'ruleNames' was never mutated; consider changing to 'let' constant
945 | var stack = [String]()
946 | while let pWrap = p {
/host/spi-builder-workspace/Sources/Antlr4/RuleContext.swift:59:23: warning: static property 'EMPTY' is not concurrency-safe because non-'Sendable' type 'ParserRuleContext' may have shared mutable state; this is an error in the Swift 6 language mode
57 |
58 | open class RuleContext: RuleNode {
59 | public static let EMPTY = ParserRuleContext()
| |- warning: static property 'EMPTY' is not concurrency-safe because non-'Sendable' type 'ParserRuleContext' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'EMPTY' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
60 |
61 | /// What context invoked this rule?
/host/spi-builder-workspace/Sources/Antlr4/ParserRuleContext.swift:29:12: note: class 'ParserRuleContext' does not conform to the 'Sendable' protocol
27 | /// satisfy the superclass interface.
28 | ///
29 | open class ParserRuleContext: RuleContext {
| `- note: class 'ParserRuleContext' does not conform to the 'Sendable' protocol
30 | public var visited = false
31 |
/host/spi-builder-workspace/Sources/Antlr4/TokenFactory.swift:38:23: warning: static property 'EMPTY' is not concurrency-safe because non-'Sendable' type 'TokenSourceAndStream' may have shared mutable state; this is an error in the Swift 6 language mode
31 | to avoid retain cycles.
32 | */
33 | public class TokenSourceAndStream {
| `- note: class 'TokenSourceAndStream' does not conform to the 'Sendable' protocol
34 | ///
35 | /// An empty TokenSourceAndStream which is used as the default value of
36 | /// _#source_ for tokens that do not have a source.
37 | ///
38 | public static let EMPTY = TokenSourceAndStream()
| |- warning: static property 'EMPTY' is not concurrency-safe because non-'Sendable' type 'TokenSourceAndStream' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'EMPTY' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
39 |
40 | public weak var tokenSource: TokenSource?
/host/spi-builder-workspace/Sources/Antlr4/misc/IntervalSet.swift:483:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'IntervalSet' to 'Hashable' by implementing 'hash(into:)' instead
481 | return MurmurHash.finish(hash, intervals.count * 2)
482 | }
483 | public var hashValue: Int {
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'IntervalSet' to 'Hashable' by implementing 'hash(into:)' instead
484 | var hash = MurmurHash.initialize()
485 | for I: Interval in intervals {
/host/spi-builder-workspace/Sources/Antlr4/misc/BitSet.swift:1056:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'BitSet' to 'Hashable' by implementing 'hash(into:)' instead
1054 | /// - returns: the hash code value for this bit set
1055 | ///
1056 | public var hashValue: Int {
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'BitSet' to 'Hashable' by implementing 'hash(into:)' instead
1057 | var h: Int64 = 1234
1058 | var i: Int = wordsInUse
/host/spi-builder-workspace/Sources/Antlr4/atn/ATNState.swift:126:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'ATNState' to 'Hashable' by implementing 'hash(into:)' instead
124 |
125 |
126 | public var hashValue: Int {
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'ATNState' to 'Hashable' by implementing 'hash(into:)' instead
127 | return stateNumber
128 | }
/host/spi-builder-workspace/Sources/Antlr4/VocabularySingle.swift:158:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Vocabulary' to 'Hashable' by implementing 'hash(into:)' instead
156 | }
157 |
158 | public var hashValue: Int {
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Vocabulary' to 'Hashable' by implementing 'hash(into:)' instead
159 | return Unmanaged.passUnretained(self).toOpaque().hashValue
160 | // return unsafeAddress(of: self).hashValue
/host/spi-builder-workspace/Sources/Antlr4/misc/Interval.swift:65:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Interval' to 'Hashable' by implementing 'hash(into:)' instead
63 |
64 |
65 | public var hashValue: Int {
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Interval' to 'Hashable' by implementing 'hash(into:)' instead
66 | var hash: Int = 23
67 | hash = hash * 31 + a
[140/158] Compiling Antlr4 NoViableAltException.swift
/host/spi-builder-workspace/Sources/Antlr4/Parser.swift:17:13: warning: var 'bypassAltsAtnCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
15 | /// - SeeAlso: `ATNDeserializationOptions.generateRuleBypassTransitions`
16 | ///
17 | private var bypassAltsAtnCache = [String: ATN]()
| |- warning: var 'bypassAltsAtnCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'bypassAltsAtnCache' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'bypassAltsAtnCache' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 |
19 | ///
/host/spi-builder-workspace/Sources/Antlr4/Parser.swift:22:13: warning: let 'bypassAltsAtnCacheMutex' is not concurrency-safe because non-'Sendable' type 'Mutex' may have shared mutable state; this is an error in the Swift 6 language mode
20 | /// mutex for bypassAltsAtnCache updates
21 | ///
22 | private let bypassAltsAtnCacheMutex = Mutex()
| |- warning: let 'bypassAltsAtnCacheMutex' is not concurrency-safe because non-'Sendable' type 'Mutex' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'bypassAltsAtnCacheMutex' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
23 |
24 |
/host/spi-builder-workspace/Sources/Antlr4/misc/utils/Mutex.swift:8:7: note: class 'Mutex' does not conform to the 'Sendable' protocol
6 | /// it appears to be a field in a class.
7 | ///
8 | class Mutex {
| `- note: class 'Mutex' does not conform to the 'Sendable' protocol
9 |
10 | ///
/host/spi-builder-workspace/Sources/Antlr4/Parser.swift:30:23: warning: static property 'ConsoleError' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
28 | open class Parser: Recognizer<ParserATNSimulator> {
29 | public static let EOF = -1
30 | public static var ConsoleError = true
| |- warning: static property 'ConsoleError' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'ConsoleError' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'ConsoleError' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
31 |
32 | public class TraceListener: ParseTreeListener {
/host/spi-builder-workspace/Sources/Antlr4/Parser.swift:59:27: warning: static property 'INSTANCE' is not concurrency-safe because non-'Sendable' type 'Parser.TrimToSizeListener' may have shared mutable state; this is an error in the Swift 6 language mode
56 | }
57 |
58 | public class TrimToSizeListener: ParseTreeListener {
| `- note: class 'TrimToSizeListener' does not conform to the 'Sendable' protocol
59 | public static let INSTANCE = TrimToSizeListener()
| |- warning: static property 'INSTANCE' is not concurrency-safe because non-'Sendable' type 'Parser.TrimToSizeListener' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'INSTANCE' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
60 |
61 | public func enterEveryRule(_ ctx: ParserRuleContext) {
/host/spi-builder-workspace/Sources/Antlr4/Parser.swift:944:13: warning: variable 'ruleNames' was never mutated; consider changing to 'let' constant
942 | public func getRuleInvocationStack(_ p: RuleContext?) -> [String] {
943 | var p = p
944 | var ruleNames = getRuleNames()
| `- warning: variable 'ruleNames' was never mutated; consider changing to 'let' constant
945 | var stack = [String]()
946 | while let pWrap = p {
/host/spi-builder-workspace/Sources/Antlr4/RuleContext.swift:59:23: warning: static property 'EMPTY' is not concurrency-safe because non-'Sendable' type 'ParserRuleContext' may have shared mutable state; this is an error in the Swift 6 language mode
57 |
58 | open class RuleContext: RuleNode {
59 | public static let EMPTY = ParserRuleContext()
| |- warning: static property 'EMPTY' is not concurrency-safe because non-'Sendable' type 'ParserRuleContext' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'EMPTY' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
60 |
61 | /// What context invoked this rule?
/host/spi-builder-workspace/Sources/Antlr4/ParserRuleContext.swift:29:12: note: class 'ParserRuleContext' does not conform to the 'Sendable' protocol
27 | /// satisfy the superclass interface.
28 | ///
29 | open class ParserRuleContext: RuleContext {
| `- note: class 'ParserRuleContext' does not conform to the 'Sendable' protocol
30 | public var visited = false
31 |
/host/spi-builder-workspace/Sources/Antlr4/TokenFactory.swift:38:23: warning: static property 'EMPTY' is not concurrency-safe because non-'Sendable' type 'TokenSourceAndStream' may have shared mutable state; this is an error in the Swift 6 language mode
31 | to avoid retain cycles.
32 | */
33 | public class TokenSourceAndStream {
| `- note: class 'TokenSourceAndStream' does not conform to the 'Sendable' protocol
34 | ///
35 | /// An empty TokenSourceAndStream which is used as the default value of
36 | /// _#source_ for tokens that do not have a source.
37 | ///
38 | public static let EMPTY = TokenSourceAndStream()
| |- warning: static property 'EMPTY' is not concurrency-safe because non-'Sendable' type 'TokenSourceAndStream' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'EMPTY' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
39 |
40 | public weak var tokenSource: TokenSource?
/host/spi-builder-workspace/Sources/Antlr4/misc/IntervalSet.swift:483:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'IntervalSet' to 'Hashable' by implementing 'hash(into:)' instead
481 | return MurmurHash.finish(hash, intervals.count * 2)
482 | }
483 | public var hashValue: Int {
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'IntervalSet' to 'Hashable' by implementing 'hash(into:)' instead
484 | var hash = MurmurHash.initialize()
485 | for I: Interval in intervals {
/host/spi-builder-workspace/Sources/Antlr4/misc/BitSet.swift:1056:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'BitSet' to 'Hashable' by implementing 'hash(into:)' instead
1054 | /// - returns: the hash code value for this bit set
1055 | ///
1056 | public var hashValue: Int {
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'BitSet' to 'Hashable' by implementing 'hash(into:)' instead
1057 | var h: Int64 = 1234
1058 | var i: Int = wordsInUse
/host/spi-builder-workspace/Sources/Antlr4/atn/ATNState.swift:126:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'ATNState' to 'Hashable' by implementing 'hash(into:)' instead
124 |
125 |
126 | public var hashValue: Int {
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'ATNState' to 'Hashable' by implementing 'hash(into:)' instead
127 | return stateNumber
128 | }
/host/spi-builder-workspace/Sources/Antlr4/VocabularySingle.swift:158:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Vocabulary' to 'Hashable' by implementing 'hash(into:)' instead
156 | }
157 |
158 | public var hashValue: Int {
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Vocabulary' to 'Hashable' by implementing 'hash(into:)' instead
159 | return Unmanaged.passUnretained(self).toOpaque().hashValue
160 | // return unsafeAddress(of: self).hashValue
/host/spi-builder-workspace/Sources/Antlr4/misc/Interval.swift:65:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Interval' to 'Hashable' by implementing 'hash(into:)' instead
63 |
64 |
65 | public var hashValue: Int {
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Interval' to 'Hashable' by implementing 'hash(into:)' instead
66 | var hash: Int = 23
67 | hash = hash * 31 + a
[141/158] Compiling Antlr4 Parser.swift
/host/spi-builder-workspace/Sources/Antlr4/Parser.swift:17:13: warning: var 'bypassAltsAtnCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
15 | /// - SeeAlso: `ATNDeserializationOptions.generateRuleBypassTransitions`
16 | ///
17 | private var bypassAltsAtnCache = [String: ATN]()
| |- warning: var 'bypassAltsAtnCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'bypassAltsAtnCache' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'bypassAltsAtnCache' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 |
19 | ///
/host/spi-builder-workspace/Sources/Antlr4/Parser.swift:22:13: warning: let 'bypassAltsAtnCacheMutex' is not concurrency-safe because non-'Sendable' type 'Mutex' may have shared mutable state; this is an error in the Swift 6 language mode
20 | /// mutex for bypassAltsAtnCache updates
21 | ///
22 | private let bypassAltsAtnCacheMutex = Mutex()
| |- warning: let 'bypassAltsAtnCacheMutex' is not concurrency-safe because non-'Sendable' type 'Mutex' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'bypassAltsAtnCacheMutex' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
23 |
24 |
/host/spi-builder-workspace/Sources/Antlr4/misc/utils/Mutex.swift:8:7: note: class 'Mutex' does not conform to the 'Sendable' protocol
6 | /// it appears to be a field in a class.
7 | ///
8 | class Mutex {
| `- note: class 'Mutex' does not conform to the 'Sendable' protocol
9 |
10 | ///
/host/spi-builder-workspace/Sources/Antlr4/Parser.swift:30:23: warning: static property 'ConsoleError' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
28 | open class Parser: Recognizer<ParserATNSimulator> {
29 | public static let EOF = -1
30 | public static var ConsoleError = true
| |- warning: static property 'ConsoleError' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'ConsoleError' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'ConsoleError' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
31 |
32 | public class TraceListener: ParseTreeListener {
/host/spi-builder-workspace/Sources/Antlr4/Parser.swift:59:27: warning: static property 'INSTANCE' is not concurrency-safe because non-'Sendable' type 'Parser.TrimToSizeListener' may have shared mutable state; this is an error in the Swift 6 language mode
56 | }
57 |
58 | public class TrimToSizeListener: ParseTreeListener {
| `- note: class 'TrimToSizeListener' does not conform to the 'Sendable' protocol
59 | public static let INSTANCE = TrimToSizeListener()
| |- warning: static property 'INSTANCE' is not concurrency-safe because non-'Sendable' type 'Parser.TrimToSizeListener' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'INSTANCE' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
60 |
61 | public func enterEveryRule(_ ctx: ParserRuleContext) {
/host/spi-builder-workspace/Sources/Antlr4/Parser.swift:944:13: warning: variable 'ruleNames' was never mutated; consider changing to 'let' constant
942 | public func getRuleInvocationStack(_ p: RuleContext?) -> [String] {
943 | var p = p
944 | var ruleNames = getRuleNames()
| `- warning: variable 'ruleNames' was never mutated; consider changing to 'let' constant
945 | var stack = [String]()
946 | while let pWrap = p {
/host/spi-builder-workspace/Sources/Antlr4/RuleContext.swift:59:23: warning: static property 'EMPTY' is not concurrency-safe because non-'Sendable' type 'ParserRuleContext' may have shared mutable state; this is an error in the Swift 6 language mode
57 |
58 | open class RuleContext: RuleNode {
59 | public static let EMPTY = ParserRuleContext()
| |- warning: static property 'EMPTY' is not concurrency-safe because non-'Sendable' type 'ParserRuleContext' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'EMPTY' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
60 |
61 | /// What context invoked this rule?
/host/spi-builder-workspace/Sources/Antlr4/ParserRuleContext.swift:29:12: note: class 'ParserRuleContext' does not conform to the 'Sendable' protocol
27 | /// satisfy the superclass interface.
28 | ///
29 | open class ParserRuleContext: RuleContext {
| `- note: class 'ParserRuleContext' does not conform to the 'Sendable' protocol
30 | public var visited = false
31 |
/host/spi-builder-workspace/Sources/Antlr4/TokenFactory.swift:38:23: warning: static property 'EMPTY' is not concurrency-safe because non-'Sendable' type 'TokenSourceAndStream' may have shared mutable state; this is an error in the Swift 6 language mode
31 | to avoid retain cycles.
32 | */
33 | public class TokenSourceAndStream {
| `- note: class 'TokenSourceAndStream' does not conform to the 'Sendable' protocol
34 | ///
35 | /// An empty TokenSourceAndStream which is used as the default value of
36 | /// _#source_ for tokens that do not have a source.
37 | ///
38 | public static let EMPTY = TokenSourceAndStream()
| |- warning: static property 'EMPTY' is not concurrency-safe because non-'Sendable' type 'TokenSourceAndStream' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'EMPTY' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
39 |
40 | public weak var tokenSource: TokenSource?
/host/spi-builder-workspace/Sources/Antlr4/misc/IntervalSet.swift:483:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'IntervalSet' to 'Hashable' by implementing 'hash(into:)' instead
481 | return MurmurHash.finish(hash, intervals.count * 2)
482 | }
483 | public var hashValue: Int {
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'IntervalSet' to 'Hashable' by implementing 'hash(into:)' instead
484 | var hash = MurmurHash.initialize()
485 | for I: Interval in intervals {
/host/spi-builder-workspace/Sources/Antlr4/misc/BitSet.swift:1056:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'BitSet' to 'Hashable' by implementing 'hash(into:)' instead
1054 | /// - returns: the hash code value for this bit set
1055 | ///
1056 | public var hashValue: Int {
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'BitSet' to 'Hashable' by implementing 'hash(into:)' instead
1057 | var h: Int64 = 1234
1058 | var i: Int = wordsInUse
/host/spi-builder-workspace/Sources/Antlr4/atn/ATNState.swift:126:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'ATNState' to 'Hashable' by implementing 'hash(into:)' instead
124 |
125 |
126 | public var hashValue: Int {
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'ATNState' to 'Hashable' by implementing 'hash(into:)' instead
127 | return stateNumber
128 | }
/host/spi-builder-workspace/Sources/Antlr4/VocabularySingle.swift:158:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Vocabulary' to 'Hashable' by implementing 'hash(into:)' instead
156 | }
157 |
158 | public var hashValue: Int {
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Vocabulary' to 'Hashable' by implementing 'hash(into:)' instead
159 | return Unmanaged.passUnretained(self).toOpaque().hashValue
160 | // return unsafeAddress(of: self).hashValue
/host/spi-builder-workspace/Sources/Antlr4/misc/Interval.swift:65:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Interval' to 'Hashable' by implementing 'hash(into:)' instead
63 |
64 |
65 | public var hashValue: Int {
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Interval' to 'Hashable' by implementing 'hash(into:)' instead
66 | var hash: Int = 23
67 | hash = hash * 31 + a
[142/158] Compiling Antlr4 ParserInterpreter.swift
/host/spi-builder-workspace/Sources/Antlr4/Parser.swift:17:13: warning: var 'bypassAltsAtnCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
15 | /// - SeeAlso: `ATNDeserializationOptions.generateRuleBypassTransitions`
16 | ///
17 | private var bypassAltsAtnCache = [String: ATN]()
| |- warning: var 'bypassAltsAtnCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'bypassAltsAtnCache' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'bypassAltsAtnCache' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 |
19 | ///
/host/spi-builder-workspace/Sources/Antlr4/Parser.swift:22:13: warning: let 'bypassAltsAtnCacheMutex' is not concurrency-safe because non-'Sendable' type 'Mutex' may have shared mutable state; this is an error in the Swift 6 language mode
20 | /// mutex for bypassAltsAtnCache updates
21 | ///
22 | private let bypassAltsAtnCacheMutex = Mutex()
| |- warning: let 'bypassAltsAtnCacheMutex' is not concurrency-safe because non-'Sendable' type 'Mutex' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'bypassAltsAtnCacheMutex' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
23 |
24 |
/host/spi-builder-workspace/Sources/Antlr4/misc/utils/Mutex.swift:8:7: note: class 'Mutex' does not conform to the 'Sendable' protocol
6 | /// it appears to be a field in a class.
7 | ///
8 | class Mutex {
| `- note: class 'Mutex' does not conform to the 'Sendable' protocol
9 |
10 | ///
/host/spi-builder-workspace/Sources/Antlr4/Parser.swift:30:23: warning: static property 'ConsoleError' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
28 | open class Parser: Recognizer<ParserATNSimulator> {
29 | public static let EOF = -1
30 | public static var ConsoleError = true
| |- warning: static property 'ConsoleError' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'ConsoleError' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'ConsoleError' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
31 |
32 | public class TraceListener: ParseTreeListener {
/host/spi-builder-workspace/Sources/Antlr4/Parser.swift:59:27: warning: static property 'INSTANCE' is not concurrency-safe because non-'Sendable' type 'Parser.TrimToSizeListener' may have shared mutable state; this is an error in the Swift 6 language mode
56 | }
57 |
58 | public class TrimToSizeListener: ParseTreeListener {
| `- note: class 'TrimToSizeListener' does not conform to the 'Sendable' protocol
59 | public static let INSTANCE = TrimToSizeListener()
| |- warning: static property 'INSTANCE' is not concurrency-safe because non-'Sendable' type 'Parser.TrimToSizeListener' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'INSTANCE' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
60 |
61 | public func enterEveryRule(_ ctx: ParserRuleContext) {
/host/spi-builder-workspace/Sources/Antlr4/Parser.swift:944:13: warning: variable 'ruleNames' was never mutated; consider changing to 'let' constant
942 | public func getRuleInvocationStack(_ p: RuleContext?) -> [String] {
943 | var p = p
944 | var ruleNames = getRuleNames()
| `- warning: variable 'ruleNames' was never mutated; consider changing to 'let' constant
945 | var stack = [String]()
946 | while let pWrap = p {
/host/spi-builder-workspace/Sources/Antlr4/RuleContext.swift:59:23: warning: static property 'EMPTY' is not concurrency-safe because non-'Sendable' type 'ParserRuleContext' may have shared mutable state; this is an error in the Swift 6 language mode
57 |
58 | open class RuleContext: RuleNode {
59 | public static let EMPTY = ParserRuleContext()
| |- warning: static property 'EMPTY' is not concurrency-safe because non-'Sendable' type 'ParserRuleContext' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'EMPTY' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
60 |
61 | /// What context invoked this rule?
/host/spi-builder-workspace/Sources/Antlr4/ParserRuleContext.swift:29:12: note: class 'ParserRuleContext' does not conform to the 'Sendable' protocol
27 | /// satisfy the superclass interface.
28 | ///
29 | open class ParserRuleContext: RuleContext {
| `- note: class 'ParserRuleContext' does not conform to the 'Sendable' protocol
30 | public var visited = false
31 |
/host/spi-builder-workspace/Sources/Antlr4/TokenFactory.swift:38:23: warning: static property 'EMPTY' is not concurrency-safe because non-'Sendable' type 'TokenSourceAndStream' may have shared mutable state; this is an error in the Swift 6 language mode
31 | to avoid retain cycles.
32 | */
33 | public class TokenSourceAndStream {
| `- note: class 'TokenSourceAndStream' does not conform to the 'Sendable' protocol
34 | ///
35 | /// An empty TokenSourceAndStream which is used as the default value of
36 | /// _#source_ for tokens that do not have a source.
37 | ///
38 | public static let EMPTY = TokenSourceAndStream()
| |- warning: static property 'EMPTY' is not concurrency-safe because non-'Sendable' type 'TokenSourceAndStream' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'EMPTY' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
39 |
40 | public weak var tokenSource: TokenSource?
/host/spi-builder-workspace/Sources/Antlr4/misc/IntervalSet.swift:483:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'IntervalSet' to 'Hashable' by implementing 'hash(into:)' instead
481 | return MurmurHash.finish(hash, intervals.count * 2)
482 | }
483 | public var hashValue: Int {
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'IntervalSet' to 'Hashable' by implementing 'hash(into:)' instead
484 | var hash = MurmurHash.initialize()
485 | for I: Interval in intervals {
/host/spi-builder-workspace/Sources/Antlr4/misc/BitSet.swift:1056:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'BitSet' to 'Hashable' by implementing 'hash(into:)' instead
1054 | /// - returns: the hash code value for this bit set
1055 | ///
1056 | public var hashValue: Int {
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'BitSet' to 'Hashable' by implementing 'hash(into:)' instead
1057 | var h: Int64 = 1234
1058 | var i: Int = wordsInUse
/host/spi-builder-workspace/Sources/Antlr4/atn/ATNState.swift:126:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'ATNState' to 'Hashable' by implementing 'hash(into:)' instead
124 |
125 |
126 | public var hashValue: Int {
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'ATNState' to 'Hashable' by implementing 'hash(into:)' instead
127 | return stateNumber
128 | }
/host/spi-builder-workspace/Sources/Antlr4/VocabularySingle.swift:158:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Vocabulary' to 'Hashable' by implementing 'hash(into:)' instead
156 | }
157 |
158 | public var hashValue: Int {
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Vocabulary' to 'Hashable' by implementing 'hash(into:)' instead
159 | return Unmanaged.passUnretained(self).toOpaque().hashValue
160 | // return unsafeAddress(of: self).hashValue
/host/spi-builder-workspace/Sources/Antlr4/misc/Interval.swift:65:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Interval' to 'Hashable' by implementing 'hash(into:)' instead
63 |
64 |
65 | public var hashValue: Int {
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Interval' to 'Hashable' by implementing 'hash(into:)' instead
66 | var hash: Int = 23
67 | hash = hash * 31 + a
[143/158] Compiling Antlr4 ParserRuleContext.swift
/host/spi-builder-workspace/Sources/Antlr4/Parser.swift:17:13: warning: var 'bypassAltsAtnCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
15 | /// - SeeAlso: `ATNDeserializationOptions.generateRuleBypassTransitions`
16 | ///
17 | private var bypassAltsAtnCache = [String: ATN]()
| |- warning: var 'bypassAltsAtnCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'bypassAltsAtnCache' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'bypassAltsAtnCache' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 |
19 | ///
/host/spi-builder-workspace/Sources/Antlr4/Parser.swift:22:13: warning: let 'bypassAltsAtnCacheMutex' is not concurrency-safe because non-'Sendable' type 'Mutex' may have shared mutable state; this is an error in the Swift 6 language mode
20 | /// mutex for bypassAltsAtnCache updates
21 | ///
22 | private let bypassAltsAtnCacheMutex = Mutex()
| |- warning: let 'bypassAltsAtnCacheMutex' is not concurrency-safe because non-'Sendable' type 'Mutex' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'bypassAltsAtnCacheMutex' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
23 |
24 |
/host/spi-builder-workspace/Sources/Antlr4/misc/utils/Mutex.swift:8:7: note: class 'Mutex' does not conform to the 'Sendable' protocol
6 | /// it appears to be a field in a class.
7 | ///
8 | class Mutex {
| `- note: class 'Mutex' does not conform to the 'Sendable' protocol
9 |
10 | ///
/host/spi-builder-workspace/Sources/Antlr4/Parser.swift:30:23: warning: static property 'ConsoleError' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
28 | open class Parser: Recognizer<ParserATNSimulator> {
29 | public static let EOF = -1
30 | public static var ConsoleError = true
| |- warning: static property 'ConsoleError' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'ConsoleError' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'ConsoleError' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
31 |
32 | public class TraceListener: ParseTreeListener {
/host/spi-builder-workspace/Sources/Antlr4/Parser.swift:59:27: warning: static property 'INSTANCE' is not concurrency-safe because non-'Sendable' type 'Parser.TrimToSizeListener' may have shared mutable state; this is an error in the Swift 6 language mode
56 | }
57 |
58 | public class TrimToSizeListener: ParseTreeListener {
| `- note: class 'TrimToSizeListener' does not conform to the 'Sendable' protocol
59 | public static let INSTANCE = TrimToSizeListener()
| |- warning: static property 'INSTANCE' is not concurrency-safe because non-'Sendable' type 'Parser.TrimToSizeListener' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'INSTANCE' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
60 |
61 | public func enterEveryRule(_ ctx: ParserRuleContext) {
/host/spi-builder-workspace/Sources/Antlr4/Parser.swift:944:13: warning: variable 'ruleNames' was never mutated; consider changing to 'let' constant
942 | public func getRuleInvocationStack(_ p: RuleContext?) -> [String] {
943 | var p = p
944 | var ruleNames = getRuleNames()
| `- warning: variable 'ruleNames' was never mutated; consider changing to 'let' constant
945 | var stack = [String]()
946 | while let pWrap = p {
/host/spi-builder-workspace/Sources/Antlr4/RuleContext.swift:59:23: warning: static property 'EMPTY' is not concurrency-safe because non-'Sendable' type 'ParserRuleContext' may have shared mutable state; this is an error in the Swift 6 language mode
57 |
58 | open class RuleContext: RuleNode {
59 | public static let EMPTY = ParserRuleContext()
| |- warning: static property 'EMPTY' is not concurrency-safe because non-'Sendable' type 'ParserRuleContext' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'EMPTY' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
60 |
61 | /// What context invoked this rule?
/host/spi-builder-workspace/Sources/Antlr4/ParserRuleContext.swift:29:12: note: class 'ParserRuleContext' does not conform to the 'Sendable' protocol
27 | /// satisfy the superclass interface.
28 | ///
29 | open class ParserRuleContext: RuleContext {
| `- note: class 'ParserRuleContext' does not conform to the 'Sendable' protocol
30 | public var visited = false
31 |
/host/spi-builder-workspace/Sources/Antlr4/TokenFactory.swift:38:23: warning: static property 'EMPTY' is not concurrency-safe because non-'Sendable' type 'TokenSourceAndStream' may have shared mutable state; this is an error in the Swift 6 language mode
31 | to avoid retain cycles.
32 | */
33 | public class TokenSourceAndStream {
| `- note: class 'TokenSourceAndStream' does not conform to the 'Sendable' protocol
34 | ///
35 | /// An empty TokenSourceAndStream which is used as the default value of
36 | /// _#source_ for tokens that do not have a source.
37 | ///
38 | public static let EMPTY = TokenSourceAndStream()
| |- warning: static property 'EMPTY' is not concurrency-safe because non-'Sendable' type 'TokenSourceAndStream' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'EMPTY' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
39 |
40 | public weak var tokenSource: TokenSource?
/host/spi-builder-workspace/Sources/Antlr4/misc/IntervalSet.swift:483:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'IntervalSet' to 'Hashable' by implementing 'hash(into:)' instead
481 | return MurmurHash.finish(hash, intervals.count * 2)
482 | }
483 | public var hashValue: Int {
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'IntervalSet' to 'Hashable' by implementing 'hash(into:)' instead
484 | var hash = MurmurHash.initialize()
485 | for I: Interval in intervals {
/host/spi-builder-workspace/Sources/Antlr4/misc/BitSet.swift:1056:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'BitSet' to 'Hashable' by implementing 'hash(into:)' instead
1054 | /// - returns: the hash code value for this bit set
1055 | ///
1056 | public var hashValue: Int {
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'BitSet' to 'Hashable' by implementing 'hash(into:)' instead
1057 | var h: Int64 = 1234
1058 | var i: Int = wordsInUse
/host/spi-builder-workspace/Sources/Antlr4/atn/ATNState.swift:126:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'ATNState' to 'Hashable' by implementing 'hash(into:)' instead
124 |
125 |
126 | public var hashValue: Int {
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'ATNState' to 'Hashable' by implementing 'hash(into:)' instead
127 | return stateNumber
128 | }
/host/spi-builder-workspace/Sources/Antlr4/VocabularySingle.swift:158:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Vocabulary' to 'Hashable' by implementing 'hash(into:)' instead
156 | }
157 |
158 | public var hashValue: Int {
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Vocabulary' to 'Hashable' by implementing 'hash(into:)' instead
159 | return Unmanaged.passUnretained(self).toOpaque().hashValue
160 | // return unsafeAddress(of: self).hashValue
/host/spi-builder-workspace/Sources/Antlr4/misc/Interval.swift:65:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Interval' to 'Hashable' by implementing 'hash(into:)' instead
63 |
64 |
65 | public var hashValue: Int {
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Interval' to 'Hashable' by implementing 'hash(into:)' instead
66 | var hash: Int = 23
67 | hash = hash * 31 + a
[144/158] Compiling Antlr4 ProxyErrorListener.swift
/host/spi-builder-workspace/Sources/Antlr4/Parser.swift:17:13: warning: var 'bypassAltsAtnCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
15 | /// - SeeAlso: `ATNDeserializationOptions.generateRuleBypassTransitions`
16 | ///
17 | private var bypassAltsAtnCache = [String: ATN]()
| |- warning: var 'bypassAltsAtnCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'bypassAltsAtnCache' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'bypassAltsAtnCache' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 |
19 | ///
/host/spi-builder-workspace/Sources/Antlr4/Parser.swift:22:13: warning: let 'bypassAltsAtnCacheMutex' is not concurrency-safe because non-'Sendable' type 'Mutex' may have shared mutable state; this is an error in the Swift 6 language mode
20 | /// mutex for bypassAltsAtnCache updates
21 | ///
22 | private let bypassAltsAtnCacheMutex = Mutex()
| |- warning: let 'bypassAltsAtnCacheMutex' is not concurrency-safe because non-'Sendable' type 'Mutex' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'bypassAltsAtnCacheMutex' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
23 |
24 |
/host/spi-builder-workspace/Sources/Antlr4/misc/utils/Mutex.swift:8:7: note: class 'Mutex' does not conform to the 'Sendable' protocol
6 | /// it appears to be a field in a class.
7 | ///
8 | class Mutex {
| `- note: class 'Mutex' does not conform to the 'Sendable' protocol
9 |
10 | ///
/host/spi-builder-workspace/Sources/Antlr4/Parser.swift:30:23: warning: static property 'ConsoleError' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
28 | open class Parser: Recognizer<ParserATNSimulator> {
29 | public static let EOF = -1
30 | public static var ConsoleError = true
| |- warning: static property 'ConsoleError' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'ConsoleError' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'ConsoleError' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
31 |
32 | public class TraceListener: ParseTreeListener {
/host/spi-builder-workspace/Sources/Antlr4/Parser.swift:59:27: warning: static property 'INSTANCE' is not concurrency-safe because non-'Sendable' type 'Parser.TrimToSizeListener' may have shared mutable state; this is an error in the Swift 6 language mode
56 | }
57 |
58 | public class TrimToSizeListener: ParseTreeListener {
| `- note: class 'TrimToSizeListener' does not conform to the 'Sendable' protocol
59 | public static let INSTANCE = TrimToSizeListener()
| |- warning: static property 'INSTANCE' is not concurrency-safe because non-'Sendable' type 'Parser.TrimToSizeListener' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'INSTANCE' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
60 |
61 | public func enterEveryRule(_ ctx: ParserRuleContext) {
/host/spi-builder-workspace/Sources/Antlr4/Parser.swift:944:13: warning: variable 'ruleNames' was never mutated; consider changing to 'let' constant
942 | public func getRuleInvocationStack(_ p: RuleContext?) -> [String] {
943 | var p = p
944 | var ruleNames = getRuleNames()
| `- warning: variable 'ruleNames' was never mutated; consider changing to 'let' constant
945 | var stack = [String]()
946 | while let pWrap = p {
/host/spi-builder-workspace/Sources/Antlr4/RuleContext.swift:59:23: warning: static property 'EMPTY' is not concurrency-safe because non-'Sendable' type 'ParserRuleContext' may have shared mutable state; this is an error in the Swift 6 language mode
57 |
58 | open class RuleContext: RuleNode {
59 | public static let EMPTY = ParserRuleContext()
| |- warning: static property 'EMPTY' is not concurrency-safe because non-'Sendable' type 'ParserRuleContext' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'EMPTY' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
60 |
61 | /// What context invoked this rule?
/host/spi-builder-workspace/Sources/Antlr4/ParserRuleContext.swift:29:12: note: class 'ParserRuleContext' does not conform to the 'Sendable' protocol
27 | /// satisfy the superclass interface.
28 | ///
29 | open class ParserRuleContext: RuleContext {
| `- note: class 'ParserRuleContext' does not conform to the 'Sendable' protocol
30 | public var visited = false
31 |
/host/spi-builder-workspace/Sources/Antlr4/TokenFactory.swift:38:23: warning: static property 'EMPTY' is not concurrency-safe because non-'Sendable' type 'TokenSourceAndStream' may have shared mutable state; this is an error in the Swift 6 language mode
31 | to avoid retain cycles.
32 | */
33 | public class TokenSourceAndStream {
| `- note: class 'TokenSourceAndStream' does not conform to the 'Sendable' protocol
34 | ///
35 | /// An empty TokenSourceAndStream which is used as the default value of
36 | /// _#source_ for tokens that do not have a source.
37 | ///
38 | public static let EMPTY = TokenSourceAndStream()
| |- warning: static property 'EMPTY' is not concurrency-safe because non-'Sendable' type 'TokenSourceAndStream' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'EMPTY' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
39 |
40 | public weak var tokenSource: TokenSource?
/host/spi-builder-workspace/Sources/Antlr4/misc/IntervalSet.swift:483:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'IntervalSet' to 'Hashable' by implementing 'hash(into:)' instead
481 | return MurmurHash.finish(hash, intervals.count * 2)
482 | }
483 | public var hashValue: Int {
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'IntervalSet' to 'Hashable' by implementing 'hash(into:)' instead
484 | var hash = MurmurHash.initialize()
485 | for I: Interval in intervals {
/host/spi-builder-workspace/Sources/Antlr4/misc/BitSet.swift:1056:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'BitSet' to 'Hashable' by implementing 'hash(into:)' instead
1054 | /// - returns: the hash code value for this bit set
1055 | ///
1056 | public var hashValue: Int {
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'BitSet' to 'Hashable' by implementing 'hash(into:)' instead
1057 | var h: Int64 = 1234
1058 | var i: Int = wordsInUse
/host/spi-builder-workspace/Sources/Antlr4/atn/ATNState.swift:126:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'ATNState' to 'Hashable' by implementing 'hash(into:)' instead
124 |
125 |
126 | public var hashValue: Int {
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'ATNState' to 'Hashable' by implementing 'hash(into:)' instead
127 | return stateNumber
128 | }
/host/spi-builder-workspace/Sources/Antlr4/VocabularySingle.swift:158:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Vocabulary' to 'Hashable' by implementing 'hash(into:)' instead
156 | }
157 |
158 | public var hashValue: Int {
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Vocabulary' to 'Hashable' by implementing 'hash(into:)' instead
159 | return Unmanaged.passUnretained(self).toOpaque().hashValue
160 | // return unsafeAddress(of: self).hashValue
/host/spi-builder-workspace/Sources/Antlr4/misc/Interval.swift:65:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Interval' to 'Hashable' by implementing 'hash(into:)' instead
63 |
64 |
65 | public var hashValue: Int {
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Interval' to 'Hashable' by implementing 'hash(into:)' instead
66 | var hash: Int = 23
67 | hash = hash * 31 + a
[145/158] Compiling Antlr4 RecognitionException.swift
/host/spi-builder-workspace/Sources/Antlr4/Parser.swift:17:13: warning: var 'bypassAltsAtnCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
15 | /// - SeeAlso: `ATNDeserializationOptions.generateRuleBypassTransitions`
16 | ///
17 | private var bypassAltsAtnCache = [String: ATN]()
| |- warning: var 'bypassAltsAtnCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'bypassAltsAtnCache' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'bypassAltsAtnCache' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 |
19 | ///
/host/spi-builder-workspace/Sources/Antlr4/Parser.swift:22:13: warning: let 'bypassAltsAtnCacheMutex' is not concurrency-safe because non-'Sendable' type 'Mutex' may have shared mutable state; this is an error in the Swift 6 language mode
20 | /// mutex for bypassAltsAtnCache updates
21 | ///
22 | private let bypassAltsAtnCacheMutex = Mutex()
| |- warning: let 'bypassAltsAtnCacheMutex' is not concurrency-safe because non-'Sendable' type 'Mutex' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'bypassAltsAtnCacheMutex' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
23 |
24 |
/host/spi-builder-workspace/Sources/Antlr4/misc/utils/Mutex.swift:8:7: note: class 'Mutex' does not conform to the 'Sendable' protocol
6 | /// it appears to be a field in a class.
7 | ///
8 | class Mutex {
| `- note: class 'Mutex' does not conform to the 'Sendable' protocol
9 |
10 | ///
/host/spi-builder-workspace/Sources/Antlr4/Parser.swift:30:23: warning: static property 'ConsoleError' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
28 | open class Parser: Recognizer<ParserATNSimulator> {
29 | public static let EOF = -1
30 | public static var ConsoleError = true
| |- warning: static property 'ConsoleError' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'ConsoleError' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'ConsoleError' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
31 |
32 | public class TraceListener: ParseTreeListener {
/host/spi-builder-workspace/Sources/Antlr4/Parser.swift:59:27: warning: static property 'INSTANCE' is not concurrency-safe because non-'Sendable' type 'Parser.TrimToSizeListener' may have shared mutable state; this is an error in the Swift 6 language mode
56 | }
57 |
58 | public class TrimToSizeListener: ParseTreeListener {
| `- note: class 'TrimToSizeListener' does not conform to the 'Sendable' protocol
59 | public static let INSTANCE = TrimToSizeListener()
| |- warning: static property 'INSTANCE' is not concurrency-safe because non-'Sendable' type 'Parser.TrimToSizeListener' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'INSTANCE' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
60 |
61 | public func enterEveryRule(_ ctx: ParserRuleContext) {
/host/spi-builder-workspace/Sources/Antlr4/Parser.swift:944:13: warning: variable 'ruleNames' was never mutated; consider changing to 'let' constant
942 | public func getRuleInvocationStack(_ p: RuleContext?) -> [String] {
943 | var p = p
944 | var ruleNames = getRuleNames()
| `- warning: variable 'ruleNames' was never mutated; consider changing to 'let' constant
945 | var stack = [String]()
946 | while let pWrap = p {
/host/spi-builder-workspace/Sources/Antlr4/RuleContext.swift:59:23: warning: static property 'EMPTY' is not concurrency-safe because non-'Sendable' type 'ParserRuleContext' may have shared mutable state; this is an error in the Swift 6 language mode
57 |
58 | open class RuleContext: RuleNode {
59 | public static let EMPTY = ParserRuleContext()
| |- warning: static property 'EMPTY' is not concurrency-safe because non-'Sendable' type 'ParserRuleContext' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'EMPTY' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
60 |
61 | /// What context invoked this rule?
/host/spi-builder-workspace/Sources/Antlr4/ParserRuleContext.swift:29:12: note: class 'ParserRuleContext' does not conform to the 'Sendable' protocol
27 | /// satisfy the superclass interface.
28 | ///
29 | open class ParserRuleContext: RuleContext {
| `- note: class 'ParserRuleContext' does not conform to the 'Sendable' protocol
30 | public var visited = false
31 |
/host/spi-builder-workspace/Sources/Antlr4/TokenFactory.swift:38:23: warning: static property 'EMPTY' is not concurrency-safe because non-'Sendable' type 'TokenSourceAndStream' may have shared mutable state; this is an error in the Swift 6 language mode
31 | to avoid retain cycles.
32 | */
33 | public class TokenSourceAndStream {
| `- note: class 'TokenSourceAndStream' does not conform to the 'Sendable' protocol
34 | ///
35 | /// An empty TokenSourceAndStream which is used as the default value of
36 | /// _#source_ for tokens that do not have a source.
37 | ///
38 | public static let EMPTY = TokenSourceAndStream()
| |- warning: static property 'EMPTY' is not concurrency-safe because non-'Sendable' type 'TokenSourceAndStream' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'EMPTY' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
39 |
40 | public weak var tokenSource: TokenSource?
/host/spi-builder-workspace/Sources/Antlr4/misc/IntervalSet.swift:483:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'IntervalSet' to 'Hashable' by implementing 'hash(into:)' instead
481 | return MurmurHash.finish(hash, intervals.count * 2)
482 | }
483 | public var hashValue: Int {
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'IntervalSet' to 'Hashable' by implementing 'hash(into:)' instead
484 | var hash = MurmurHash.initialize()
485 | for I: Interval in intervals {
/host/spi-builder-workspace/Sources/Antlr4/misc/BitSet.swift:1056:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'BitSet' to 'Hashable' by implementing 'hash(into:)' instead
1054 | /// - returns: the hash code value for this bit set
1055 | ///
1056 | public var hashValue: Int {
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'BitSet' to 'Hashable' by implementing 'hash(into:)' instead
1057 | var h: Int64 = 1234
1058 | var i: Int = wordsInUse
/host/spi-builder-workspace/Sources/Antlr4/atn/ATNState.swift:126:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'ATNState' to 'Hashable' by implementing 'hash(into:)' instead
124 |
125 |
126 | public var hashValue: Int {
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'ATNState' to 'Hashable' by implementing 'hash(into:)' instead
127 | return stateNumber
128 | }
/host/spi-builder-workspace/Sources/Antlr4/VocabularySingle.swift:158:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Vocabulary' to 'Hashable' by implementing 'hash(into:)' instead
156 | }
157 |
158 | public var hashValue: Int {
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Vocabulary' to 'Hashable' by implementing 'hash(into:)' instead
159 | return Unmanaged.passUnretained(self).toOpaque().hashValue
160 | // return unsafeAddress(of: self).hashValue
/host/spi-builder-workspace/Sources/Antlr4/misc/Interval.swift:65:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Interval' to 'Hashable' by implementing 'hash(into:)' instead
63 |
64 |
65 | public var hashValue: Int {
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Interval' to 'Hashable' by implementing 'hash(into:)' instead
66 | var hash: Int = 23
67 | hash = hash * 31 + a
[146/158] Compiling Antlr4 Recognizer.swift
/host/spi-builder-workspace/Sources/Antlr4/Parser.swift:17:13: warning: var 'bypassAltsAtnCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
15 | /// - SeeAlso: `ATNDeserializationOptions.generateRuleBypassTransitions`
16 | ///
17 | private var bypassAltsAtnCache = [String: ATN]()
| |- warning: var 'bypassAltsAtnCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'bypassAltsAtnCache' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'bypassAltsAtnCache' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 |
19 | ///
/host/spi-builder-workspace/Sources/Antlr4/Parser.swift:22:13: warning: let 'bypassAltsAtnCacheMutex' is not concurrency-safe because non-'Sendable' type 'Mutex' may have shared mutable state; this is an error in the Swift 6 language mode
20 | /// mutex for bypassAltsAtnCache updates
21 | ///
22 | private let bypassAltsAtnCacheMutex = Mutex()
| |- warning: let 'bypassAltsAtnCacheMutex' is not concurrency-safe because non-'Sendable' type 'Mutex' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'bypassAltsAtnCacheMutex' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
23 |
24 |
/host/spi-builder-workspace/Sources/Antlr4/misc/utils/Mutex.swift:8:7: note: class 'Mutex' does not conform to the 'Sendable' protocol
6 | /// it appears to be a field in a class.
7 | ///
8 | class Mutex {
| `- note: class 'Mutex' does not conform to the 'Sendable' protocol
9 |
10 | ///
/host/spi-builder-workspace/Sources/Antlr4/Parser.swift:30:23: warning: static property 'ConsoleError' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
28 | open class Parser: Recognizer<ParserATNSimulator> {
29 | public static let EOF = -1
30 | public static var ConsoleError = true
| |- warning: static property 'ConsoleError' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'ConsoleError' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'ConsoleError' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
31 |
32 | public class TraceListener: ParseTreeListener {
/host/spi-builder-workspace/Sources/Antlr4/Parser.swift:59:27: warning: static property 'INSTANCE' is not concurrency-safe because non-'Sendable' type 'Parser.TrimToSizeListener' may have shared mutable state; this is an error in the Swift 6 language mode
56 | }
57 |
58 | public class TrimToSizeListener: ParseTreeListener {
| `- note: class 'TrimToSizeListener' does not conform to the 'Sendable' protocol
59 | public static let INSTANCE = TrimToSizeListener()
| |- warning: static property 'INSTANCE' is not concurrency-safe because non-'Sendable' type 'Parser.TrimToSizeListener' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'INSTANCE' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
60 |
61 | public func enterEveryRule(_ ctx: ParserRuleContext) {
/host/spi-builder-workspace/Sources/Antlr4/Parser.swift:944:13: warning: variable 'ruleNames' was never mutated; consider changing to 'let' constant
942 | public func getRuleInvocationStack(_ p: RuleContext?) -> [String] {
943 | var p = p
944 | var ruleNames = getRuleNames()
| `- warning: variable 'ruleNames' was never mutated; consider changing to 'let' constant
945 | var stack = [String]()
946 | while let pWrap = p {
/host/spi-builder-workspace/Sources/Antlr4/RuleContext.swift:59:23: warning: static property 'EMPTY' is not concurrency-safe because non-'Sendable' type 'ParserRuleContext' may have shared mutable state; this is an error in the Swift 6 language mode
57 |
58 | open class RuleContext: RuleNode {
59 | public static let EMPTY = ParserRuleContext()
| |- warning: static property 'EMPTY' is not concurrency-safe because non-'Sendable' type 'ParserRuleContext' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'EMPTY' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
60 |
61 | /// What context invoked this rule?
/host/spi-builder-workspace/Sources/Antlr4/ParserRuleContext.swift:29:12: note: class 'ParserRuleContext' does not conform to the 'Sendable' protocol
27 | /// satisfy the superclass interface.
28 | ///
29 | open class ParserRuleContext: RuleContext {
| `- note: class 'ParserRuleContext' does not conform to the 'Sendable' protocol
30 | public var visited = false
31 |
/host/spi-builder-workspace/Sources/Antlr4/TokenFactory.swift:38:23: warning: static property 'EMPTY' is not concurrency-safe because non-'Sendable' type 'TokenSourceAndStream' may have shared mutable state; this is an error in the Swift 6 language mode
31 | to avoid retain cycles.
32 | */
33 | public class TokenSourceAndStream {
| `- note: class 'TokenSourceAndStream' does not conform to the 'Sendable' protocol
34 | ///
35 | /// An empty TokenSourceAndStream which is used as the default value of
36 | /// _#source_ for tokens that do not have a source.
37 | ///
38 | public static let EMPTY = TokenSourceAndStream()
| |- warning: static property 'EMPTY' is not concurrency-safe because non-'Sendable' type 'TokenSourceAndStream' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'EMPTY' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
39 |
40 | public weak var tokenSource: TokenSource?
/host/spi-builder-workspace/Sources/Antlr4/misc/IntervalSet.swift:483:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'IntervalSet' to 'Hashable' by implementing 'hash(into:)' instead
481 | return MurmurHash.finish(hash, intervals.count * 2)
482 | }
483 | public var hashValue: Int {
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'IntervalSet' to 'Hashable' by implementing 'hash(into:)' instead
484 | var hash = MurmurHash.initialize()
485 | for I: Interval in intervals {
/host/spi-builder-workspace/Sources/Antlr4/misc/BitSet.swift:1056:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'BitSet' to 'Hashable' by implementing 'hash(into:)' instead
1054 | /// - returns: the hash code value for this bit set
1055 | ///
1056 | public var hashValue: Int {
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'BitSet' to 'Hashable' by implementing 'hash(into:)' instead
1057 | var h: Int64 = 1234
1058 | var i: Int = wordsInUse
/host/spi-builder-workspace/Sources/Antlr4/atn/ATNState.swift:126:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'ATNState' to 'Hashable' by implementing 'hash(into:)' instead
124 |
125 |
126 | public var hashValue: Int {
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'ATNState' to 'Hashable' by implementing 'hash(into:)' instead
127 | return stateNumber
128 | }
/host/spi-builder-workspace/Sources/Antlr4/VocabularySingle.swift:158:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Vocabulary' to 'Hashable' by implementing 'hash(into:)' instead
156 | }
157 |
158 | public var hashValue: Int {
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Vocabulary' to 'Hashable' by implementing 'hash(into:)' instead
159 | return Unmanaged.passUnretained(self).toOpaque().hashValue
160 | // return unsafeAddress(of: self).hashValue
/host/spi-builder-workspace/Sources/Antlr4/misc/Interval.swift:65:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Interval' to 'Hashable' by implementing 'hash(into:)' instead
63 |
64 |
65 | public var hashValue: Int {
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Interval' to 'Hashable' by implementing 'hash(into:)' instead
66 | var hash: Int = 23
67 | hash = hash * 31 + a
[147/158] Compiling Antlr4 RuleContext.swift
/host/spi-builder-workspace/Sources/Antlr4/Parser.swift:17:13: warning: var 'bypassAltsAtnCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
15 | /// - SeeAlso: `ATNDeserializationOptions.generateRuleBypassTransitions`
16 | ///
17 | private var bypassAltsAtnCache = [String: ATN]()
| |- warning: var 'bypassAltsAtnCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'bypassAltsAtnCache' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'bypassAltsAtnCache' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 |
19 | ///
/host/spi-builder-workspace/Sources/Antlr4/Parser.swift:22:13: warning: let 'bypassAltsAtnCacheMutex' is not concurrency-safe because non-'Sendable' type 'Mutex' may have shared mutable state; this is an error in the Swift 6 language mode
20 | /// mutex for bypassAltsAtnCache updates
21 | ///
22 | private let bypassAltsAtnCacheMutex = Mutex()
| |- warning: let 'bypassAltsAtnCacheMutex' is not concurrency-safe because non-'Sendable' type 'Mutex' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'bypassAltsAtnCacheMutex' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
23 |
24 |
/host/spi-builder-workspace/Sources/Antlr4/misc/utils/Mutex.swift:8:7: note: class 'Mutex' does not conform to the 'Sendable' protocol
6 | /// it appears to be a field in a class.
7 | ///
8 | class Mutex {
| `- note: class 'Mutex' does not conform to the 'Sendable' protocol
9 |
10 | ///
/host/spi-builder-workspace/Sources/Antlr4/Parser.swift:30:23: warning: static property 'ConsoleError' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
28 | open class Parser: Recognizer<ParserATNSimulator> {
29 | public static let EOF = -1
30 | public static var ConsoleError = true
| |- warning: static property 'ConsoleError' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'ConsoleError' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'ConsoleError' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
31 |
32 | public class TraceListener: ParseTreeListener {
/host/spi-builder-workspace/Sources/Antlr4/Parser.swift:59:27: warning: static property 'INSTANCE' is not concurrency-safe because non-'Sendable' type 'Parser.TrimToSizeListener' may have shared mutable state; this is an error in the Swift 6 language mode
56 | }
57 |
58 | public class TrimToSizeListener: ParseTreeListener {
| `- note: class 'TrimToSizeListener' does not conform to the 'Sendable' protocol
59 | public static let INSTANCE = TrimToSizeListener()
| |- warning: static property 'INSTANCE' is not concurrency-safe because non-'Sendable' type 'Parser.TrimToSizeListener' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'INSTANCE' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
60 |
61 | public func enterEveryRule(_ ctx: ParserRuleContext) {
/host/spi-builder-workspace/Sources/Antlr4/Parser.swift:944:13: warning: variable 'ruleNames' was never mutated; consider changing to 'let' constant
942 | public func getRuleInvocationStack(_ p: RuleContext?) -> [String] {
943 | var p = p
944 | var ruleNames = getRuleNames()
| `- warning: variable 'ruleNames' was never mutated; consider changing to 'let' constant
945 | var stack = [String]()
946 | while let pWrap = p {
/host/spi-builder-workspace/Sources/Antlr4/RuleContext.swift:59:23: warning: static property 'EMPTY' is not concurrency-safe because non-'Sendable' type 'ParserRuleContext' may have shared mutable state; this is an error in the Swift 6 language mode
57 |
58 | open class RuleContext: RuleNode {
59 | public static let EMPTY = ParserRuleContext()
| |- warning: static property 'EMPTY' is not concurrency-safe because non-'Sendable' type 'ParserRuleContext' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'EMPTY' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
60 |
61 | /// What context invoked this rule?
/host/spi-builder-workspace/Sources/Antlr4/ParserRuleContext.swift:29:12: note: class 'ParserRuleContext' does not conform to the 'Sendable' protocol
27 | /// satisfy the superclass interface.
28 | ///
29 | open class ParserRuleContext: RuleContext {
| `- note: class 'ParserRuleContext' does not conform to the 'Sendable' protocol
30 | public var visited = false
31 |
/host/spi-builder-workspace/Sources/Antlr4/TokenFactory.swift:38:23: warning: static property 'EMPTY' is not concurrency-safe because non-'Sendable' type 'TokenSourceAndStream' may have shared mutable state; this is an error in the Swift 6 language mode
31 | to avoid retain cycles.
32 | */
33 | public class TokenSourceAndStream {
| `- note: class 'TokenSourceAndStream' does not conform to the 'Sendable' protocol
34 | ///
35 | /// An empty TokenSourceAndStream which is used as the default value of
36 | /// _#source_ for tokens that do not have a source.
37 | ///
38 | public static let EMPTY = TokenSourceAndStream()
| |- warning: static property 'EMPTY' is not concurrency-safe because non-'Sendable' type 'TokenSourceAndStream' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'EMPTY' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
39 |
40 | public weak var tokenSource: TokenSource?
/host/spi-builder-workspace/Sources/Antlr4/misc/IntervalSet.swift:483:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'IntervalSet' to 'Hashable' by implementing 'hash(into:)' instead
481 | return MurmurHash.finish(hash, intervals.count * 2)
482 | }
483 | public var hashValue: Int {
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'IntervalSet' to 'Hashable' by implementing 'hash(into:)' instead
484 | var hash = MurmurHash.initialize()
485 | for I: Interval in intervals {
/host/spi-builder-workspace/Sources/Antlr4/misc/BitSet.swift:1056:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'BitSet' to 'Hashable' by implementing 'hash(into:)' instead
1054 | /// - returns: the hash code value for this bit set
1055 | ///
1056 | public var hashValue: Int {
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'BitSet' to 'Hashable' by implementing 'hash(into:)' instead
1057 | var h: Int64 = 1234
1058 | var i: Int = wordsInUse
/host/spi-builder-workspace/Sources/Antlr4/atn/ATNState.swift:126:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'ATNState' to 'Hashable' by implementing 'hash(into:)' instead
124 |
125 |
126 | public var hashValue: Int {
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'ATNState' to 'Hashable' by implementing 'hash(into:)' instead
127 | return stateNumber
128 | }
/host/spi-builder-workspace/Sources/Antlr4/VocabularySingle.swift:158:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Vocabulary' to 'Hashable' by implementing 'hash(into:)' instead
156 | }
157 |
158 | public var hashValue: Int {
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Vocabulary' to 'Hashable' by implementing 'hash(into:)' instead
159 | return Unmanaged.passUnretained(self).toOpaque().hashValue
160 | // return unsafeAddress(of: self).hashValue
/host/spi-builder-workspace/Sources/Antlr4/misc/Interval.swift:65:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Interval' to 'Hashable' by implementing 'hash(into:)' instead
63 |
64 |
65 | public var hashValue: Int {
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Interval' to 'Hashable' by implementing 'hash(into:)' instead
66 | var hash: Int = 23
67 | hash = hash * 31 + a
[148/158] Compiling Antlr4 RuntimeMetaData.swift
/host/spi-builder-workspace/Sources/Antlr4/Parser.swift:17:13: warning: var 'bypassAltsAtnCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
15 | /// - SeeAlso: `ATNDeserializationOptions.generateRuleBypassTransitions`
16 | ///
17 | private var bypassAltsAtnCache = [String: ATN]()
| |- warning: var 'bypassAltsAtnCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'bypassAltsAtnCache' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'bypassAltsAtnCache' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 |
19 | ///
/host/spi-builder-workspace/Sources/Antlr4/Parser.swift:22:13: warning: let 'bypassAltsAtnCacheMutex' is not concurrency-safe because non-'Sendable' type 'Mutex' may have shared mutable state; this is an error in the Swift 6 language mode
20 | /// mutex for bypassAltsAtnCache updates
21 | ///
22 | private let bypassAltsAtnCacheMutex = Mutex()
| |- warning: let 'bypassAltsAtnCacheMutex' is not concurrency-safe because non-'Sendable' type 'Mutex' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'bypassAltsAtnCacheMutex' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
23 |
24 |
/host/spi-builder-workspace/Sources/Antlr4/misc/utils/Mutex.swift:8:7: note: class 'Mutex' does not conform to the 'Sendable' protocol
6 | /// it appears to be a field in a class.
7 | ///
8 | class Mutex {
| `- note: class 'Mutex' does not conform to the 'Sendable' protocol
9 |
10 | ///
/host/spi-builder-workspace/Sources/Antlr4/Parser.swift:30:23: warning: static property 'ConsoleError' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
28 | open class Parser: Recognizer<ParserATNSimulator> {
29 | public static let EOF = -1
30 | public static var ConsoleError = true
| |- warning: static property 'ConsoleError' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'ConsoleError' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'ConsoleError' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
31 |
32 | public class TraceListener: ParseTreeListener {
/host/spi-builder-workspace/Sources/Antlr4/Parser.swift:59:27: warning: static property 'INSTANCE' is not concurrency-safe because non-'Sendable' type 'Parser.TrimToSizeListener' may have shared mutable state; this is an error in the Swift 6 language mode
56 | }
57 |
58 | public class TrimToSizeListener: ParseTreeListener {
| `- note: class 'TrimToSizeListener' does not conform to the 'Sendable' protocol
59 | public static let INSTANCE = TrimToSizeListener()
| |- warning: static property 'INSTANCE' is not concurrency-safe because non-'Sendable' type 'Parser.TrimToSizeListener' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'INSTANCE' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
60 |
61 | public func enterEveryRule(_ ctx: ParserRuleContext) {
/host/spi-builder-workspace/Sources/Antlr4/Parser.swift:944:13: warning: variable 'ruleNames' was never mutated; consider changing to 'let' constant
942 | public func getRuleInvocationStack(_ p: RuleContext?) -> [String] {
943 | var p = p
944 | var ruleNames = getRuleNames()
| `- warning: variable 'ruleNames' was never mutated; consider changing to 'let' constant
945 | var stack = [String]()
946 | while let pWrap = p {
/host/spi-builder-workspace/Sources/Antlr4/RuleContext.swift:59:23: warning: static property 'EMPTY' is not concurrency-safe because non-'Sendable' type 'ParserRuleContext' may have shared mutable state; this is an error in the Swift 6 language mode
57 |
58 | open class RuleContext: RuleNode {
59 | public static let EMPTY = ParserRuleContext()
| |- warning: static property 'EMPTY' is not concurrency-safe because non-'Sendable' type 'ParserRuleContext' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'EMPTY' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
60 |
61 | /// What context invoked this rule?
/host/spi-builder-workspace/Sources/Antlr4/ParserRuleContext.swift:29:12: note: class 'ParserRuleContext' does not conform to the 'Sendable' protocol
27 | /// satisfy the superclass interface.
28 | ///
29 | open class ParserRuleContext: RuleContext {
| `- note: class 'ParserRuleContext' does not conform to the 'Sendable' protocol
30 | public var visited = false
31 |
/host/spi-builder-workspace/Sources/Antlr4/TokenFactory.swift:38:23: warning: static property 'EMPTY' is not concurrency-safe because non-'Sendable' type 'TokenSourceAndStream' may have shared mutable state; this is an error in the Swift 6 language mode
31 | to avoid retain cycles.
32 | */
33 | public class TokenSourceAndStream {
| `- note: class 'TokenSourceAndStream' does not conform to the 'Sendable' protocol
34 | ///
35 | /// An empty TokenSourceAndStream which is used as the default value of
36 | /// _#source_ for tokens that do not have a source.
37 | ///
38 | public static let EMPTY = TokenSourceAndStream()
| |- warning: static property 'EMPTY' is not concurrency-safe because non-'Sendable' type 'TokenSourceAndStream' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'EMPTY' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
39 |
40 | public weak var tokenSource: TokenSource?
/host/spi-builder-workspace/Sources/Antlr4/misc/IntervalSet.swift:483:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'IntervalSet' to 'Hashable' by implementing 'hash(into:)' instead
481 | return MurmurHash.finish(hash, intervals.count * 2)
482 | }
483 | public var hashValue: Int {
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'IntervalSet' to 'Hashable' by implementing 'hash(into:)' instead
484 | var hash = MurmurHash.initialize()
485 | for I: Interval in intervals {
/host/spi-builder-workspace/Sources/Antlr4/misc/BitSet.swift:1056:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'BitSet' to 'Hashable' by implementing 'hash(into:)' instead
1054 | /// - returns: the hash code value for this bit set
1055 | ///
1056 | public var hashValue: Int {
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'BitSet' to 'Hashable' by implementing 'hash(into:)' instead
1057 | var h: Int64 = 1234
1058 | var i: Int = wordsInUse
/host/spi-builder-workspace/Sources/Antlr4/atn/ATNState.swift:126:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'ATNState' to 'Hashable' by implementing 'hash(into:)' instead
124 |
125 |
126 | public var hashValue: Int {
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'ATNState' to 'Hashable' by implementing 'hash(into:)' instead
127 | return stateNumber
128 | }
/host/spi-builder-workspace/Sources/Antlr4/VocabularySingle.swift:158:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Vocabulary' to 'Hashable' by implementing 'hash(into:)' instead
156 | }
157 |
158 | public var hashValue: Int {
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Vocabulary' to 'Hashable' by implementing 'hash(into:)' instead
159 | return Unmanaged.passUnretained(self).toOpaque().hashValue
160 | // return unsafeAddress(of: self).hashValue
/host/spi-builder-workspace/Sources/Antlr4/misc/Interval.swift:65:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Interval' to 'Hashable' by implementing 'hash(into:)' instead
63 |
64 |
65 | public var hashValue: Int {
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Interval' to 'Hashable' by implementing 'hash(into:)' instead
66 | var hash: Int = 23
67 | hash = hash * 31 + a
[149/158] Compiling Antlr4 Token.swift
/host/spi-builder-workspace/Sources/Antlr4/Parser.swift:17:13: warning: var 'bypassAltsAtnCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
15 | /// - SeeAlso: `ATNDeserializationOptions.generateRuleBypassTransitions`
16 | ///
17 | private var bypassAltsAtnCache = [String: ATN]()
| |- warning: var 'bypassAltsAtnCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'bypassAltsAtnCache' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'bypassAltsAtnCache' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 |
19 | ///
/host/spi-builder-workspace/Sources/Antlr4/Parser.swift:22:13: warning: let 'bypassAltsAtnCacheMutex' is not concurrency-safe because non-'Sendable' type 'Mutex' may have shared mutable state; this is an error in the Swift 6 language mode
20 | /// mutex for bypassAltsAtnCache updates
21 | ///
22 | private let bypassAltsAtnCacheMutex = Mutex()
| |- warning: let 'bypassAltsAtnCacheMutex' is not concurrency-safe because non-'Sendable' type 'Mutex' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'bypassAltsAtnCacheMutex' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
23 |
24 |
/host/spi-builder-workspace/Sources/Antlr4/misc/utils/Mutex.swift:8:7: note: class 'Mutex' does not conform to the 'Sendable' protocol
6 | /// it appears to be a field in a class.
7 | ///
8 | class Mutex {
| `- note: class 'Mutex' does not conform to the 'Sendable' protocol
9 |
10 | ///
/host/spi-builder-workspace/Sources/Antlr4/Parser.swift:30:23: warning: static property 'ConsoleError' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
28 | open class Parser: Recognizer<ParserATNSimulator> {
29 | public static let EOF = -1
30 | public static var ConsoleError = true
| |- warning: static property 'ConsoleError' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'ConsoleError' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'ConsoleError' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
31 |
32 | public class TraceListener: ParseTreeListener {
/host/spi-builder-workspace/Sources/Antlr4/Parser.swift:59:27: warning: static property 'INSTANCE' is not concurrency-safe because non-'Sendable' type 'Parser.TrimToSizeListener' may have shared mutable state; this is an error in the Swift 6 language mode
56 | }
57 |
58 | public class TrimToSizeListener: ParseTreeListener {
| `- note: class 'TrimToSizeListener' does not conform to the 'Sendable' protocol
59 | public static let INSTANCE = TrimToSizeListener()
| |- warning: static property 'INSTANCE' is not concurrency-safe because non-'Sendable' type 'Parser.TrimToSizeListener' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'INSTANCE' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
60 |
61 | public func enterEveryRule(_ ctx: ParserRuleContext) {
/host/spi-builder-workspace/Sources/Antlr4/Parser.swift:944:13: warning: variable 'ruleNames' was never mutated; consider changing to 'let' constant
942 | public func getRuleInvocationStack(_ p: RuleContext?) -> [String] {
943 | var p = p
944 | var ruleNames = getRuleNames()
| `- warning: variable 'ruleNames' was never mutated; consider changing to 'let' constant
945 | var stack = [String]()
946 | while let pWrap = p {
/host/spi-builder-workspace/Sources/Antlr4/RuleContext.swift:59:23: warning: static property 'EMPTY' is not concurrency-safe because non-'Sendable' type 'ParserRuleContext' may have shared mutable state; this is an error in the Swift 6 language mode
57 |
58 | open class RuleContext: RuleNode {
59 | public static let EMPTY = ParserRuleContext()
| |- warning: static property 'EMPTY' is not concurrency-safe because non-'Sendable' type 'ParserRuleContext' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'EMPTY' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
60 |
61 | /// What context invoked this rule?
/host/spi-builder-workspace/Sources/Antlr4/ParserRuleContext.swift:29:12: note: class 'ParserRuleContext' does not conform to the 'Sendable' protocol
27 | /// satisfy the superclass interface.
28 | ///
29 | open class ParserRuleContext: RuleContext {
| `- note: class 'ParserRuleContext' does not conform to the 'Sendable' protocol
30 | public var visited = false
31 |
/host/spi-builder-workspace/Sources/Antlr4/TokenFactory.swift:38:23: warning: static property 'EMPTY' is not concurrency-safe because non-'Sendable' type 'TokenSourceAndStream' may have shared mutable state; this is an error in the Swift 6 language mode
31 | to avoid retain cycles.
32 | */
33 | public class TokenSourceAndStream {
| `- note: class 'TokenSourceAndStream' does not conform to the 'Sendable' protocol
34 | ///
35 | /// An empty TokenSourceAndStream which is used as the default value of
36 | /// _#source_ for tokens that do not have a source.
37 | ///
38 | public static let EMPTY = TokenSourceAndStream()
| |- warning: static property 'EMPTY' is not concurrency-safe because non-'Sendable' type 'TokenSourceAndStream' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'EMPTY' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
39 |
40 | public weak var tokenSource: TokenSource?
/host/spi-builder-workspace/Sources/Antlr4/misc/IntervalSet.swift:483:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'IntervalSet' to 'Hashable' by implementing 'hash(into:)' instead
481 | return MurmurHash.finish(hash, intervals.count * 2)
482 | }
483 | public var hashValue: Int {
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'IntervalSet' to 'Hashable' by implementing 'hash(into:)' instead
484 | var hash = MurmurHash.initialize()
485 | for I: Interval in intervals {
/host/spi-builder-workspace/Sources/Antlr4/misc/BitSet.swift:1056:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'BitSet' to 'Hashable' by implementing 'hash(into:)' instead
1054 | /// - returns: the hash code value for this bit set
1055 | ///
1056 | public var hashValue: Int {
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'BitSet' to 'Hashable' by implementing 'hash(into:)' instead
1057 | var h: Int64 = 1234
1058 | var i: Int = wordsInUse
/host/spi-builder-workspace/Sources/Antlr4/atn/ATNState.swift:126:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'ATNState' to 'Hashable' by implementing 'hash(into:)' instead
124 |
125 |
126 | public var hashValue: Int {
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'ATNState' to 'Hashable' by implementing 'hash(into:)' instead
127 | return stateNumber
128 | }
/host/spi-builder-workspace/Sources/Antlr4/VocabularySingle.swift:158:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Vocabulary' to 'Hashable' by implementing 'hash(into:)' instead
156 | }
157 |
158 | public var hashValue: Int {
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Vocabulary' to 'Hashable' by implementing 'hash(into:)' instead
159 | return Unmanaged.passUnretained(self).toOpaque().hashValue
160 | // return unsafeAddress(of: self).hashValue
/host/spi-builder-workspace/Sources/Antlr4/misc/Interval.swift:65:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Interval' to 'Hashable' by implementing 'hash(into:)' instead
63 |
64 |
65 | public var hashValue: Int {
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Interval' to 'Hashable' by implementing 'hash(into:)' instead
66 | var hash: Int = 23
67 | hash = hash * 31 + a
[150/158] Compiling Antlr4 TokenFactory.swift
/host/spi-builder-workspace/Sources/Antlr4/Parser.swift:17:13: warning: var 'bypassAltsAtnCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
15 | /// - SeeAlso: `ATNDeserializationOptions.generateRuleBypassTransitions`
16 | ///
17 | private var bypassAltsAtnCache = [String: ATN]()
| |- warning: var 'bypassAltsAtnCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'bypassAltsAtnCache' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'bypassAltsAtnCache' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 |
19 | ///
/host/spi-builder-workspace/Sources/Antlr4/Parser.swift:22:13: warning: let 'bypassAltsAtnCacheMutex' is not concurrency-safe because non-'Sendable' type 'Mutex' may have shared mutable state; this is an error in the Swift 6 language mode
20 | /// mutex for bypassAltsAtnCache updates
21 | ///
22 | private let bypassAltsAtnCacheMutex = Mutex()
| |- warning: let 'bypassAltsAtnCacheMutex' is not concurrency-safe because non-'Sendable' type 'Mutex' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'bypassAltsAtnCacheMutex' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
23 |
24 |
/host/spi-builder-workspace/Sources/Antlr4/misc/utils/Mutex.swift:8:7: note: class 'Mutex' does not conform to the 'Sendable' protocol
6 | /// it appears to be a field in a class.
7 | ///
8 | class Mutex {
| `- note: class 'Mutex' does not conform to the 'Sendable' protocol
9 |
10 | ///
/host/spi-builder-workspace/Sources/Antlr4/Parser.swift:30:23: warning: static property 'ConsoleError' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
28 | open class Parser: Recognizer<ParserATNSimulator> {
29 | public static let EOF = -1
30 | public static var ConsoleError = true
| |- warning: static property 'ConsoleError' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'ConsoleError' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'ConsoleError' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
31 |
32 | public class TraceListener: ParseTreeListener {
/host/spi-builder-workspace/Sources/Antlr4/Parser.swift:59:27: warning: static property 'INSTANCE' is not concurrency-safe because non-'Sendable' type 'Parser.TrimToSizeListener' may have shared mutable state; this is an error in the Swift 6 language mode
56 | }
57 |
58 | public class TrimToSizeListener: ParseTreeListener {
| `- note: class 'TrimToSizeListener' does not conform to the 'Sendable' protocol
59 | public static let INSTANCE = TrimToSizeListener()
| |- warning: static property 'INSTANCE' is not concurrency-safe because non-'Sendable' type 'Parser.TrimToSizeListener' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'INSTANCE' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
60 |
61 | public func enterEveryRule(_ ctx: ParserRuleContext) {
/host/spi-builder-workspace/Sources/Antlr4/Parser.swift:944:13: warning: variable 'ruleNames' was never mutated; consider changing to 'let' constant
942 | public func getRuleInvocationStack(_ p: RuleContext?) -> [String] {
943 | var p = p
944 | var ruleNames = getRuleNames()
| `- warning: variable 'ruleNames' was never mutated; consider changing to 'let' constant
945 | var stack = [String]()
946 | while let pWrap = p {
/host/spi-builder-workspace/Sources/Antlr4/RuleContext.swift:59:23: warning: static property 'EMPTY' is not concurrency-safe because non-'Sendable' type 'ParserRuleContext' may have shared mutable state; this is an error in the Swift 6 language mode
57 |
58 | open class RuleContext: RuleNode {
59 | public static let EMPTY = ParserRuleContext()
| |- warning: static property 'EMPTY' is not concurrency-safe because non-'Sendable' type 'ParserRuleContext' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'EMPTY' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
60 |
61 | /// What context invoked this rule?
/host/spi-builder-workspace/Sources/Antlr4/ParserRuleContext.swift:29:12: note: class 'ParserRuleContext' does not conform to the 'Sendable' protocol
27 | /// satisfy the superclass interface.
28 | ///
29 | open class ParserRuleContext: RuleContext {
| `- note: class 'ParserRuleContext' does not conform to the 'Sendable' protocol
30 | public var visited = false
31 |
/host/spi-builder-workspace/Sources/Antlr4/TokenFactory.swift:38:23: warning: static property 'EMPTY' is not concurrency-safe because non-'Sendable' type 'TokenSourceAndStream' may have shared mutable state; this is an error in the Swift 6 language mode
31 | to avoid retain cycles.
32 | */
33 | public class TokenSourceAndStream {
| `- note: class 'TokenSourceAndStream' does not conform to the 'Sendable' protocol
34 | ///
35 | /// An empty TokenSourceAndStream which is used as the default value of
36 | /// _#source_ for tokens that do not have a source.
37 | ///
38 | public static let EMPTY = TokenSourceAndStream()
| |- warning: static property 'EMPTY' is not concurrency-safe because non-'Sendable' type 'TokenSourceAndStream' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'EMPTY' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
39 |
40 | public weak var tokenSource: TokenSource?
/host/spi-builder-workspace/Sources/Antlr4/misc/IntervalSet.swift:483:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'IntervalSet' to 'Hashable' by implementing 'hash(into:)' instead
481 | return MurmurHash.finish(hash, intervals.count * 2)
482 | }
483 | public var hashValue: Int {
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'IntervalSet' to 'Hashable' by implementing 'hash(into:)' instead
484 | var hash = MurmurHash.initialize()
485 | for I: Interval in intervals {
/host/spi-builder-workspace/Sources/Antlr4/misc/BitSet.swift:1056:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'BitSet' to 'Hashable' by implementing 'hash(into:)' instead
1054 | /// - returns: the hash code value for this bit set
1055 | ///
1056 | public var hashValue: Int {
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'BitSet' to 'Hashable' by implementing 'hash(into:)' instead
1057 | var h: Int64 = 1234
1058 | var i: Int = wordsInUse
/host/spi-builder-workspace/Sources/Antlr4/atn/ATNState.swift:126:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'ATNState' to 'Hashable' by implementing 'hash(into:)' instead
124 |
125 |
126 | public var hashValue: Int {
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'ATNState' to 'Hashable' by implementing 'hash(into:)' instead
127 | return stateNumber
128 | }
/host/spi-builder-workspace/Sources/Antlr4/VocabularySingle.swift:158:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Vocabulary' to 'Hashable' by implementing 'hash(into:)' instead
156 | }
157 |
158 | public var hashValue: Int {
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Vocabulary' to 'Hashable' by implementing 'hash(into:)' instead
159 | return Unmanaged.passUnretained(self).toOpaque().hashValue
160 | // return unsafeAddress(of: self).hashValue
/host/spi-builder-workspace/Sources/Antlr4/misc/Interval.swift:65:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Interval' to 'Hashable' by implementing 'hash(into:)' instead
63 |
64 |
65 | public var hashValue: Int {
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Interval' to 'Hashable' by implementing 'hash(into:)' instead
66 | var hash: Int = 23
67 | hash = hash * 31 + a
[151/158] Compiling Antlr4 TokenSource.swift
/host/spi-builder-workspace/Sources/Antlr4/Parser.swift:17:13: warning: var 'bypassAltsAtnCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
15 | /// - SeeAlso: `ATNDeserializationOptions.generateRuleBypassTransitions`
16 | ///
17 | private var bypassAltsAtnCache = [String: ATN]()
| |- warning: var 'bypassAltsAtnCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'bypassAltsAtnCache' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'bypassAltsAtnCache' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 |
19 | ///
/host/spi-builder-workspace/Sources/Antlr4/Parser.swift:22:13: warning: let 'bypassAltsAtnCacheMutex' is not concurrency-safe because non-'Sendable' type 'Mutex' may have shared mutable state; this is an error in the Swift 6 language mode
20 | /// mutex for bypassAltsAtnCache updates
21 | ///
22 | private let bypassAltsAtnCacheMutex = Mutex()
| |- warning: let 'bypassAltsAtnCacheMutex' is not concurrency-safe because non-'Sendable' type 'Mutex' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'bypassAltsAtnCacheMutex' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
23 |
24 |
/host/spi-builder-workspace/Sources/Antlr4/misc/utils/Mutex.swift:8:7: note: class 'Mutex' does not conform to the 'Sendable' protocol
6 | /// it appears to be a field in a class.
7 | ///
8 | class Mutex {
| `- note: class 'Mutex' does not conform to the 'Sendable' protocol
9 |
10 | ///
/host/spi-builder-workspace/Sources/Antlr4/Parser.swift:30:23: warning: static property 'ConsoleError' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
28 | open class Parser: Recognizer<ParserATNSimulator> {
29 | public static let EOF = -1
30 | public static var ConsoleError = true
| |- warning: static property 'ConsoleError' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'ConsoleError' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'ConsoleError' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
31 |
32 | public class TraceListener: ParseTreeListener {
/host/spi-builder-workspace/Sources/Antlr4/Parser.swift:59:27: warning: static property 'INSTANCE' is not concurrency-safe because non-'Sendable' type 'Parser.TrimToSizeListener' may have shared mutable state; this is an error in the Swift 6 language mode
56 | }
57 |
58 | public class TrimToSizeListener: ParseTreeListener {
| `- note: class 'TrimToSizeListener' does not conform to the 'Sendable' protocol
59 | public static let INSTANCE = TrimToSizeListener()
| |- warning: static property 'INSTANCE' is not concurrency-safe because non-'Sendable' type 'Parser.TrimToSizeListener' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'INSTANCE' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
60 |
61 | public func enterEveryRule(_ ctx: ParserRuleContext) {
/host/spi-builder-workspace/Sources/Antlr4/Parser.swift:944:13: warning: variable 'ruleNames' was never mutated; consider changing to 'let' constant
942 | public func getRuleInvocationStack(_ p: RuleContext?) -> [String] {
943 | var p = p
944 | var ruleNames = getRuleNames()
| `- warning: variable 'ruleNames' was never mutated; consider changing to 'let' constant
945 | var stack = [String]()
946 | while let pWrap = p {
/host/spi-builder-workspace/Sources/Antlr4/RuleContext.swift:59:23: warning: static property 'EMPTY' is not concurrency-safe because non-'Sendable' type 'ParserRuleContext' may have shared mutable state; this is an error in the Swift 6 language mode
57 |
58 | open class RuleContext: RuleNode {
59 | public static let EMPTY = ParserRuleContext()
| |- warning: static property 'EMPTY' is not concurrency-safe because non-'Sendable' type 'ParserRuleContext' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'EMPTY' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
60 |
61 | /// What context invoked this rule?
/host/spi-builder-workspace/Sources/Antlr4/ParserRuleContext.swift:29:12: note: class 'ParserRuleContext' does not conform to the 'Sendable' protocol
27 | /// satisfy the superclass interface.
28 | ///
29 | open class ParserRuleContext: RuleContext {
| `- note: class 'ParserRuleContext' does not conform to the 'Sendable' protocol
30 | public var visited = false
31 |
/host/spi-builder-workspace/Sources/Antlr4/TokenFactory.swift:38:23: warning: static property 'EMPTY' is not concurrency-safe because non-'Sendable' type 'TokenSourceAndStream' may have shared mutable state; this is an error in the Swift 6 language mode
31 | to avoid retain cycles.
32 | */
33 | public class TokenSourceAndStream {
| `- note: class 'TokenSourceAndStream' does not conform to the 'Sendable' protocol
34 | ///
35 | /// An empty TokenSourceAndStream which is used as the default value of
36 | /// _#source_ for tokens that do not have a source.
37 | ///
38 | public static let EMPTY = TokenSourceAndStream()
| |- warning: static property 'EMPTY' is not concurrency-safe because non-'Sendable' type 'TokenSourceAndStream' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'EMPTY' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
39 |
40 | public weak var tokenSource: TokenSource?
/host/spi-builder-workspace/Sources/Antlr4/misc/IntervalSet.swift:483:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'IntervalSet' to 'Hashable' by implementing 'hash(into:)' instead
481 | return MurmurHash.finish(hash, intervals.count * 2)
482 | }
483 | public var hashValue: Int {
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'IntervalSet' to 'Hashable' by implementing 'hash(into:)' instead
484 | var hash = MurmurHash.initialize()
485 | for I: Interval in intervals {
/host/spi-builder-workspace/Sources/Antlr4/misc/BitSet.swift:1056:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'BitSet' to 'Hashable' by implementing 'hash(into:)' instead
1054 | /// - returns: the hash code value for this bit set
1055 | ///
1056 | public var hashValue: Int {
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'BitSet' to 'Hashable' by implementing 'hash(into:)' instead
1057 | var h: Int64 = 1234
1058 | var i: Int = wordsInUse
/host/spi-builder-workspace/Sources/Antlr4/atn/ATNState.swift:126:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'ATNState' to 'Hashable' by implementing 'hash(into:)' instead
124 |
125 |
126 | public var hashValue: Int {
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'ATNState' to 'Hashable' by implementing 'hash(into:)' instead
127 | return stateNumber
128 | }
/host/spi-builder-workspace/Sources/Antlr4/VocabularySingle.swift:158:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Vocabulary' to 'Hashable' by implementing 'hash(into:)' instead
156 | }
157 |
158 | public var hashValue: Int {
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Vocabulary' to 'Hashable' by implementing 'hash(into:)' instead
159 | return Unmanaged.passUnretained(self).toOpaque().hashValue
160 | // return unsafeAddress(of: self).hashValue
/host/spi-builder-workspace/Sources/Antlr4/misc/Interval.swift:65:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Interval' to 'Hashable' by implementing 'hash(into:)' instead
63 |
64 |
65 | public var hashValue: Int {
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Interval' to 'Hashable' by implementing 'hash(into:)' instead
66 | var hash: Int = 23
67 | hash = hash * 31 + a
[152/158] Compiling Antlr4 TokenStream.swift
/host/spi-builder-workspace/Sources/Antlr4/Parser.swift:17:13: warning: var 'bypassAltsAtnCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
15 | /// - SeeAlso: `ATNDeserializationOptions.generateRuleBypassTransitions`
16 | ///
17 | private var bypassAltsAtnCache = [String: ATN]()
| |- warning: var 'bypassAltsAtnCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'bypassAltsAtnCache' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'bypassAltsAtnCache' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 |
19 | ///
/host/spi-builder-workspace/Sources/Antlr4/Parser.swift:22:13: warning: let 'bypassAltsAtnCacheMutex' is not concurrency-safe because non-'Sendable' type 'Mutex' may have shared mutable state; this is an error in the Swift 6 language mode
20 | /// mutex for bypassAltsAtnCache updates
21 | ///
22 | private let bypassAltsAtnCacheMutex = Mutex()
| |- warning: let 'bypassAltsAtnCacheMutex' is not concurrency-safe because non-'Sendable' type 'Mutex' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'bypassAltsAtnCacheMutex' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
23 |
24 |
/host/spi-builder-workspace/Sources/Antlr4/misc/utils/Mutex.swift:8:7: note: class 'Mutex' does not conform to the 'Sendable' protocol
6 | /// it appears to be a field in a class.
7 | ///
8 | class Mutex {
| `- note: class 'Mutex' does not conform to the 'Sendable' protocol
9 |
10 | ///
/host/spi-builder-workspace/Sources/Antlr4/Parser.swift:30:23: warning: static property 'ConsoleError' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
28 | open class Parser: Recognizer<ParserATNSimulator> {
29 | public static let EOF = -1
30 | public static var ConsoleError = true
| |- warning: static property 'ConsoleError' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'ConsoleError' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'ConsoleError' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
31 |
32 | public class TraceListener: ParseTreeListener {
/host/spi-builder-workspace/Sources/Antlr4/Parser.swift:59:27: warning: static property 'INSTANCE' is not concurrency-safe because non-'Sendable' type 'Parser.TrimToSizeListener' may have shared mutable state; this is an error in the Swift 6 language mode
56 | }
57 |
58 | public class TrimToSizeListener: ParseTreeListener {
| `- note: class 'TrimToSizeListener' does not conform to the 'Sendable' protocol
59 | public static let INSTANCE = TrimToSizeListener()
| |- warning: static property 'INSTANCE' is not concurrency-safe because non-'Sendable' type 'Parser.TrimToSizeListener' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'INSTANCE' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
60 |
61 | public func enterEveryRule(_ ctx: ParserRuleContext) {
/host/spi-builder-workspace/Sources/Antlr4/Parser.swift:944:13: warning: variable 'ruleNames' was never mutated; consider changing to 'let' constant
942 | public func getRuleInvocationStack(_ p: RuleContext?) -> [String] {
943 | var p = p
944 | var ruleNames = getRuleNames()
| `- warning: variable 'ruleNames' was never mutated; consider changing to 'let' constant
945 | var stack = [String]()
946 | while let pWrap = p {
/host/spi-builder-workspace/Sources/Antlr4/RuleContext.swift:59:23: warning: static property 'EMPTY' is not concurrency-safe because non-'Sendable' type 'ParserRuleContext' may have shared mutable state; this is an error in the Swift 6 language mode
57 |
58 | open class RuleContext: RuleNode {
59 | public static let EMPTY = ParserRuleContext()
| |- warning: static property 'EMPTY' is not concurrency-safe because non-'Sendable' type 'ParserRuleContext' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'EMPTY' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
60 |
61 | /// What context invoked this rule?
/host/spi-builder-workspace/Sources/Antlr4/ParserRuleContext.swift:29:12: note: class 'ParserRuleContext' does not conform to the 'Sendable' protocol
27 | /// satisfy the superclass interface.
28 | ///
29 | open class ParserRuleContext: RuleContext {
| `- note: class 'ParserRuleContext' does not conform to the 'Sendable' protocol
30 | public var visited = false
31 |
/host/spi-builder-workspace/Sources/Antlr4/TokenFactory.swift:38:23: warning: static property 'EMPTY' is not concurrency-safe because non-'Sendable' type 'TokenSourceAndStream' may have shared mutable state; this is an error in the Swift 6 language mode
31 | to avoid retain cycles.
32 | */
33 | public class TokenSourceAndStream {
| `- note: class 'TokenSourceAndStream' does not conform to the 'Sendable' protocol
34 | ///
35 | /// An empty TokenSourceAndStream which is used as the default value of
36 | /// _#source_ for tokens that do not have a source.
37 | ///
38 | public static let EMPTY = TokenSourceAndStream()
| |- warning: static property 'EMPTY' is not concurrency-safe because non-'Sendable' type 'TokenSourceAndStream' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'EMPTY' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
39 |
40 | public weak var tokenSource: TokenSource?
/host/spi-builder-workspace/Sources/Antlr4/misc/IntervalSet.swift:483:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'IntervalSet' to 'Hashable' by implementing 'hash(into:)' instead
481 | return MurmurHash.finish(hash, intervals.count * 2)
482 | }
483 | public var hashValue: Int {
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'IntervalSet' to 'Hashable' by implementing 'hash(into:)' instead
484 | var hash = MurmurHash.initialize()
485 | for I: Interval in intervals {
/host/spi-builder-workspace/Sources/Antlr4/misc/BitSet.swift:1056:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'BitSet' to 'Hashable' by implementing 'hash(into:)' instead
1054 | /// - returns: the hash code value for this bit set
1055 | ///
1056 | public var hashValue: Int {
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'BitSet' to 'Hashable' by implementing 'hash(into:)' instead
1057 | var h: Int64 = 1234
1058 | var i: Int = wordsInUse
/host/spi-builder-workspace/Sources/Antlr4/atn/ATNState.swift:126:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'ATNState' to 'Hashable' by implementing 'hash(into:)' instead
124 |
125 |
126 | public var hashValue: Int {
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'ATNState' to 'Hashable' by implementing 'hash(into:)' instead
127 | return stateNumber
128 | }
/host/spi-builder-workspace/Sources/Antlr4/VocabularySingle.swift:158:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Vocabulary' to 'Hashable' by implementing 'hash(into:)' instead
156 | }
157 |
158 | public var hashValue: Int {
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Vocabulary' to 'Hashable' by implementing 'hash(into:)' instead
159 | return Unmanaged.passUnretained(self).toOpaque().hashValue
160 | // return unsafeAddress(of: self).hashValue
/host/spi-builder-workspace/Sources/Antlr4/misc/Interval.swift:65:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Interval' to 'Hashable' by implementing 'hash(into:)' instead
63 |
64 |
65 | public var hashValue: Int {
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Interval' to 'Hashable' by implementing 'hash(into:)' instead
66 | var hash: Int = 23
67 | hash = hash * 31 + a
[153/158] Compiling Antlr4 TokenStreamRewriter.swift
/host/spi-builder-workspace/Sources/Antlr4/Parser.swift:17:13: warning: var 'bypassAltsAtnCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
15 | /// - SeeAlso: `ATNDeserializationOptions.generateRuleBypassTransitions`
16 | ///
17 | private var bypassAltsAtnCache = [String: ATN]()
| |- warning: var 'bypassAltsAtnCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'bypassAltsAtnCache' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'bypassAltsAtnCache' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 |
19 | ///
/host/spi-builder-workspace/Sources/Antlr4/Parser.swift:22:13: warning: let 'bypassAltsAtnCacheMutex' is not concurrency-safe because non-'Sendable' type 'Mutex' may have shared mutable state; this is an error in the Swift 6 language mode
20 | /// mutex for bypassAltsAtnCache updates
21 | ///
22 | private let bypassAltsAtnCacheMutex = Mutex()
| |- warning: let 'bypassAltsAtnCacheMutex' is not concurrency-safe because non-'Sendable' type 'Mutex' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'bypassAltsAtnCacheMutex' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
23 |
24 |
/host/spi-builder-workspace/Sources/Antlr4/misc/utils/Mutex.swift:8:7: note: class 'Mutex' does not conform to the 'Sendable' protocol
6 | /// it appears to be a field in a class.
7 | ///
8 | class Mutex {
| `- note: class 'Mutex' does not conform to the 'Sendable' protocol
9 |
10 | ///
/host/spi-builder-workspace/Sources/Antlr4/Parser.swift:30:23: warning: static property 'ConsoleError' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
28 | open class Parser: Recognizer<ParserATNSimulator> {
29 | public static let EOF = -1
30 | public static var ConsoleError = true
| |- warning: static property 'ConsoleError' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'ConsoleError' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'ConsoleError' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
31 |
32 | public class TraceListener: ParseTreeListener {
/host/spi-builder-workspace/Sources/Antlr4/Parser.swift:59:27: warning: static property 'INSTANCE' is not concurrency-safe because non-'Sendable' type 'Parser.TrimToSizeListener' may have shared mutable state; this is an error in the Swift 6 language mode
56 | }
57 |
58 | public class TrimToSizeListener: ParseTreeListener {
| `- note: class 'TrimToSizeListener' does not conform to the 'Sendable' protocol
59 | public static let INSTANCE = TrimToSizeListener()
| |- warning: static property 'INSTANCE' is not concurrency-safe because non-'Sendable' type 'Parser.TrimToSizeListener' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'INSTANCE' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
60 |
61 | public func enterEveryRule(_ ctx: ParserRuleContext) {
/host/spi-builder-workspace/Sources/Antlr4/Parser.swift:944:13: warning: variable 'ruleNames' was never mutated; consider changing to 'let' constant
942 | public func getRuleInvocationStack(_ p: RuleContext?) -> [String] {
943 | var p = p
944 | var ruleNames = getRuleNames()
| `- warning: variable 'ruleNames' was never mutated; consider changing to 'let' constant
945 | var stack = [String]()
946 | while let pWrap = p {
/host/spi-builder-workspace/Sources/Antlr4/RuleContext.swift:59:23: warning: static property 'EMPTY' is not concurrency-safe because non-'Sendable' type 'ParserRuleContext' may have shared mutable state; this is an error in the Swift 6 language mode
57 |
58 | open class RuleContext: RuleNode {
59 | public static let EMPTY = ParserRuleContext()
| |- warning: static property 'EMPTY' is not concurrency-safe because non-'Sendable' type 'ParserRuleContext' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'EMPTY' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
60 |
61 | /// What context invoked this rule?
/host/spi-builder-workspace/Sources/Antlr4/ParserRuleContext.swift:29:12: note: class 'ParserRuleContext' does not conform to the 'Sendable' protocol
27 | /// satisfy the superclass interface.
28 | ///
29 | open class ParserRuleContext: RuleContext {
| `- note: class 'ParserRuleContext' does not conform to the 'Sendable' protocol
30 | public var visited = false
31 |
/host/spi-builder-workspace/Sources/Antlr4/TokenFactory.swift:38:23: warning: static property 'EMPTY' is not concurrency-safe because non-'Sendable' type 'TokenSourceAndStream' may have shared mutable state; this is an error in the Swift 6 language mode
31 | to avoid retain cycles.
32 | */
33 | public class TokenSourceAndStream {
| `- note: class 'TokenSourceAndStream' does not conform to the 'Sendable' protocol
34 | ///
35 | /// An empty TokenSourceAndStream which is used as the default value of
36 | /// _#source_ for tokens that do not have a source.
37 | ///
38 | public static let EMPTY = TokenSourceAndStream()
| |- warning: static property 'EMPTY' is not concurrency-safe because non-'Sendable' type 'TokenSourceAndStream' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'EMPTY' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
39 |
40 | public weak var tokenSource: TokenSource?
/host/spi-builder-workspace/Sources/Antlr4/misc/IntervalSet.swift:483:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'IntervalSet' to 'Hashable' by implementing 'hash(into:)' instead
481 | return MurmurHash.finish(hash, intervals.count * 2)
482 | }
483 | public var hashValue: Int {
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'IntervalSet' to 'Hashable' by implementing 'hash(into:)' instead
484 | var hash = MurmurHash.initialize()
485 | for I: Interval in intervals {
/host/spi-builder-workspace/Sources/Antlr4/misc/BitSet.swift:1056:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'BitSet' to 'Hashable' by implementing 'hash(into:)' instead
1054 | /// - returns: the hash code value for this bit set
1055 | ///
1056 | public var hashValue: Int {
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'BitSet' to 'Hashable' by implementing 'hash(into:)' instead
1057 | var h: Int64 = 1234
1058 | var i: Int = wordsInUse
/host/spi-builder-workspace/Sources/Antlr4/atn/ATNState.swift:126:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'ATNState' to 'Hashable' by implementing 'hash(into:)' instead
124 |
125 |
126 | public var hashValue: Int {
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'ATNState' to 'Hashable' by implementing 'hash(into:)' instead
127 | return stateNumber
128 | }
/host/spi-builder-workspace/Sources/Antlr4/VocabularySingle.swift:158:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Vocabulary' to 'Hashable' by implementing 'hash(into:)' instead
156 | }
157 |
158 | public var hashValue: Int {
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Vocabulary' to 'Hashable' by implementing 'hash(into:)' instead
159 | return Unmanaged.passUnretained(self).toOpaque().hashValue
160 | // return unsafeAddress(of: self).hashValue
/host/spi-builder-workspace/Sources/Antlr4/misc/Interval.swift:65:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Interval' to 'Hashable' by implementing 'hash(into:)' instead
63 |
64 |
65 | public var hashValue: Int {
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Interval' to 'Hashable' by implementing 'hash(into:)' instead
66 | var hash: Int = 23
67 | hash = hash * 31 + a
[154/158] Compiling Antlr4 UnbufferedCharStream.swift
/host/spi-builder-workspace/Sources/Antlr4/Parser.swift:17:13: warning: var 'bypassAltsAtnCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
15 | /// - SeeAlso: `ATNDeserializationOptions.generateRuleBypassTransitions`
16 | ///
17 | private var bypassAltsAtnCache = [String: ATN]()
| |- warning: var 'bypassAltsAtnCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'bypassAltsAtnCache' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'bypassAltsAtnCache' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 |
19 | ///
/host/spi-builder-workspace/Sources/Antlr4/Parser.swift:22:13: warning: let 'bypassAltsAtnCacheMutex' is not concurrency-safe because non-'Sendable' type 'Mutex' may have shared mutable state; this is an error in the Swift 6 language mode
20 | /// mutex for bypassAltsAtnCache updates
21 | ///
22 | private let bypassAltsAtnCacheMutex = Mutex()
| |- warning: let 'bypassAltsAtnCacheMutex' is not concurrency-safe because non-'Sendable' type 'Mutex' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'bypassAltsAtnCacheMutex' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
23 |
24 |
/host/spi-builder-workspace/Sources/Antlr4/misc/utils/Mutex.swift:8:7: note: class 'Mutex' does not conform to the 'Sendable' protocol
6 | /// it appears to be a field in a class.
7 | ///
8 | class Mutex {
| `- note: class 'Mutex' does not conform to the 'Sendable' protocol
9 |
10 | ///
/host/spi-builder-workspace/Sources/Antlr4/Parser.swift:30:23: warning: static property 'ConsoleError' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
28 | open class Parser: Recognizer<ParserATNSimulator> {
29 | public static let EOF = -1
30 | public static var ConsoleError = true
| |- warning: static property 'ConsoleError' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'ConsoleError' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'ConsoleError' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
31 |
32 | public class TraceListener: ParseTreeListener {
/host/spi-builder-workspace/Sources/Antlr4/Parser.swift:59:27: warning: static property 'INSTANCE' is not concurrency-safe because non-'Sendable' type 'Parser.TrimToSizeListener' may have shared mutable state; this is an error in the Swift 6 language mode
56 | }
57 |
58 | public class TrimToSizeListener: ParseTreeListener {
| `- note: class 'TrimToSizeListener' does not conform to the 'Sendable' protocol
59 | public static let INSTANCE = TrimToSizeListener()
| |- warning: static property 'INSTANCE' is not concurrency-safe because non-'Sendable' type 'Parser.TrimToSizeListener' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'INSTANCE' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
60 |
61 | public func enterEveryRule(_ ctx: ParserRuleContext) {
/host/spi-builder-workspace/Sources/Antlr4/Parser.swift:944:13: warning: variable 'ruleNames' was never mutated; consider changing to 'let' constant
942 | public func getRuleInvocationStack(_ p: RuleContext?) -> [String] {
943 | var p = p
944 | var ruleNames = getRuleNames()
| `- warning: variable 'ruleNames' was never mutated; consider changing to 'let' constant
945 | var stack = [String]()
946 | while let pWrap = p {
/host/spi-builder-workspace/Sources/Antlr4/RuleContext.swift:59:23: warning: static property 'EMPTY' is not concurrency-safe because non-'Sendable' type 'ParserRuleContext' may have shared mutable state; this is an error in the Swift 6 language mode
57 |
58 | open class RuleContext: RuleNode {
59 | public static let EMPTY = ParserRuleContext()
| |- warning: static property 'EMPTY' is not concurrency-safe because non-'Sendable' type 'ParserRuleContext' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'EMPTY' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
60 |
61 | /// What context invoked this rule?
/host/spi-builder-workspace/Sources/Antlr4/ParserRuleContext.swift:29:12: note: class 'ParserRuleContext' does not conform to the 'Sendable' protocol
27 | /// satisfy the superclass interface.
28 | ///
29 | open class ParserRuleContext: RuleContext {
| `- note: class 'ParserRuleContext' does not conform to the 'Sendable' protocol
30 | public var visited = false
31 |
/host/spi-builder-workspace/Sources/Antlr4/TokenFactory.swift:38:23: warning: static property 'EMPTY' is not concurrency-safe because non-'Sendable' type 'TokenSourceAndStream' may have shared mutable state; this is an error in the Swift 6 language mode
31 | to avoid retain cycles.
32 | */
33 | public class TokenSourceAndStream {
| `- note: class 'TokenSourceAndStream' does not conform to the 'Sendable' protocol
34 | ///
35 | /// An empty TokenSourceAndStream which is used as the default value of
36 | /// _#source_ for tokens that do not have a source.
37 | ///
38 | public static let EMPTY = TokenSourceAndStream()
| |- warning: static property 'EMPTY' is not concurrency-safe because non-'Sendable' type 'TokenSourceAndStream' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'EMPTY' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
39 |
40 | public weak var tokenSource: TokenSource?
/host/spi-builder-workspace/Sources/Antlr4/misc/IntervalSet.swift:483:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'IntervalSet' to 'Hashable' by implementing 'hash(into:)' instead
481 | return MurmurHash.finish(hash, intervals.count * 2)
482 | }
483 | public var hashValue: Int {
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'IntervalSet' to 'Hashable' by implementing 'hash(into:)' instead
484 | var hash = MurmurHash.initialize()
485 | for I: Interval in intervals {
/host/spi-builder-workspace/Sources/Antlr4/misc/BitSet.swift:1056:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'BitSet' to 'Hashable' by implementing 'hash(into:)' instead
1054 | /// - returns: the hash code value for this bit set
1055 | ///
1056 | public var hashValue: Int {
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'BitSet' to 'Hashable' by implementing 'hash(into:)' instead
1057 | var h: Int64 = 1234
1058 | var i: Int = wordsInUse
/host/spi-builder-workspace/Sources/Antlr4/atn/ATNState.swift:126:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'ATNState' to 'Hashable' by implementing 'hash(into:)' instead
124 |
125 |
126 | public var hashValue: Int {
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'ATNState' to 'Hashable' by implementing 'hash(into:)' instead
127 | return stateNumber
128 | }
/host/spi-builder-workspace/Sources/Antlr4/VocabularySingle.swift:158:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Vocabulary' to 'Hashable' by implementing 'hash(into:)' instead
156 | }
157 |
158 | public var hashValue: Int {
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Vocabulary' to 'Hashable' by implementing 'hash(into:)' instead
159 | return Unmanaged.passUnretained(self).toOpaque().hashValue
160 | // return unsafeAddress(of: self).hashValue
/host/spi-builder-workspace/Sources/Antlr4/misc/Interval.swift:65:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Interval' to 'Hashable' by implementing 'hash(into:)' instead
63 |
64 |
65 | public var hashValue: Int {
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Interval' to 'Hashable' by implementing 'hash(into:)' instead
66 | var hash: Int = 23
67 | hash = hash * 31 + a
[155/158] Compiling Antlr4 UnbufferedTokenStream.swift
/host/spi-builder-workspace/Sources/Antlr4/Parser.swift:17:13: warning: var 'bypassAltsAtnCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
15 | /// - SeeAlso: `ATNDeserializationOptions.generateRuleBypassTransitions`
16 | ///
17 | private var bypassAltsAtnCache = [String: ATN]()
| |- warning: var 'bypassAltsAtnCache' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'bypassAltsAtnCache' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make var 'bypassAltsAtnCache' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 |
19 | ///
/host/spi-builder-workspace/Sources/Antlr4/Parser.swift:22:13: warning: let 'bypassAltsAtnCacheMutex' is not concurrency-safe because non-'Sendable' type 'Mutex' may have shared mutable state; this is an error in the Swift 6 language mode
20 | /// mutex for bypassAltsAtnCache updates
21 | ///
22 | private let bypassAltsAtnCacheMutex = Mutex()
| |- warning: let 'bypassAltsAtnCacheMutex' is not concurrency-safe because non-'Sendable' type 'Mutex' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'bypassAltsAtnCacheMutex' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
23 |
24 |
/host/spi-builder-workspace/Sources/Antlr4/misc/utils/Mutex.swift:8:7: note: class 'Mutex' does not conform to the 'Sendable' protocol
6 | /// it appears to be a field in a class.
7 | ///
8 | class Mutex {
| `- note: class 'Mutex' does not conform to the 'Sendable' protocol
9 |
10 | ///
/host/spi-builder-workspace/Sources/Antlr4/Parser.swift:30:23: warning: static property 'ConsoleError' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
28 | open class Parser: Recognizer<ParserATNSimulator> {
29 | public static let EOF = -1
30 | public static var ConsoleError = true
| |- warning: static property 'ConsoleError' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'ConsoleError' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'ConsoleError' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
31 |
32 | public class TraceListener: ParseTreeListener {
/host/spi-builder-workspace/Sources/Antlr4/Parser.swift:59:27: warning: static property 'INSTANCE' is not concurrency-safe because non-'Sendable' type 'Parser.TrimToSizeListener' may have shared mutable state; this is an error in the Swift 6 language mode
56 | }
57 |
58 | public class TrimToSizeListener: ParseTreeListener {
| `- note: class 'TrimToSizeListener' does not conform to the 'Sendable' protocol
59 | public static let INSTANCE = TrimToSizeListener()
| |- warning: static property 'INSTANCE' is not concurrency-safe because non-'Sendable' type 'Parser.TrimToSizeListener' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'INSTANCE' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
60 |
61 | public func enterEveryRule(_ ctx: ParserRuleContext) {
/host/spi-builder-workspace/Sources/Antlr4/Parser.swift:944:13: warning: variable 'ruleNames' was never mutated; consider changing to 'let' constant
942 | public func getRuleInvocationStack(_ p: RuleContext?) -> [String] {
943 | var p = p
944 | var ruleNames = getRuleNames()
| `- warning: variable 'ruleNames' was never mutated; consider changing to 'let' constant
945 | var stack = [String]()
946 | while let pWrap = p {
/host/spi-builder-workspace/Sources/Antlr4/RuleContext.swift:59:23: warning: static property 'EMPTY' is not concurrency-safe because non-'Sendable' type 'ParserRuleContext' may have shared mutable state; this is an error in the Swift 6 language mode
57 |
58 | open class RuleContext: RuleNode {
59 | public static let EMPTY = ParserRuleContext()
| |- warning: static property 'EMPTY' is not concurrency-safe because non-'Sendable' type 'ParserRuleContext' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'EMPTY' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
60 |
61 | /// What context invoked this rule?
/host/spi-builder-workspace/Sources/Antlr4/ParserRuleContext.swift:29:12: note: class 'ParserRuleContext' does not conform to the 'Sendable' protocol
27 | /// satisfy the superclass interface.
28 | ///
29 | open class ParserRuleContext: RuleContext {
| `- note: class 'ParserRuleContext' does not conform to the 'Sendable' protocol
30 | public var visited = false
31 |
/host/spi-builder-workspace/Sources/Antlr4/TokenFactory.swift:38:23: warning: static property 'EMPTY' is not concurrency-safe because non-'Sendable' type 'TokenSourceAndStream' may have shared mutable state; this is an error in the Swift 6 language mode
31 | to avoid retain cycles.
32 | */
33 | public class TokenSourceAndStream {
| `- note: class 'TokenSourceAndStream' does not conform to the 'Sendable' protocol
34 | ///
35 | /// An empty TokenSourceAndStream which is used as the default value of
36 | /// _#source_ for tokens that do not have a source.
37 | ///
38 | public static let EMPTY = TokenSourceAndStream()
| |- warning: static property 'EMPTY' is not concurrency-safe because non-'Sendable' type 'TokenSourceAndStream' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'EMPTY' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
39 |
40 | public weak var tokenSource: TokenSource?
/host/spi-builder-workspace/Sources/Antlr4/misc/IntervalSet.swift:483:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'IntervalSet' to 'Hashable' by implementing 'hash(into:)' instead
481 | return MurmurHash.finish(hash, intervals.count * 2)
482 | }
483 | public var hashValue: Int {
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'IntervalSet' to 'Hashable' by implementing 'hash(into:)' instead
484 | var hash = MurmurHash.initialize()
485 | for I: Interval in intervals {
/host/spi-builder-workspace/Sources/Antlr4/misc/BitSet.swift:1056:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'BitSet' to 'Hashable' by implementing 'hash(into:)' instead
1054 | /// - returns: the hash code value for this bit set
1055 | ///
1056 | public var hashValue: Int {
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'BitSet' to 'Hashable' by implementing 'hash(into:)' instead
1057 | var h: Int64 = 1234
1058 | var i: Int = wordsInUse
/host/spi-builder-workspace/Sources/Antlr4/atn/ATNState.swift:126:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'ATNState' to 'Hashable' by implementing 'hash(into:)' instead
124 |
125 |
126 | public var hashValue: Int {
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'ATNState' to 'Hashable' by implementing 'hash(into:)' instead
127 | return stateNumber
128 | }
/host/spi-builder-workspace/Sources/Antlr4/VocabularySingle.swift:158:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Vocabulary' to 'Hashable' by implementing 'hash(into:)' instead
156 | }
157 |
158 | public var hashValue: Int {
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Vocabulary' to 'Hashable' by implementing 'hash(into:)' instead
159 | return Unmanaged.passUnretained(self).toOpaque().hashValue
160 | // return unsafeAddress(of: self).hashValue
/host/spi-builder-workspace/Sources/Antlr4/misc/Interval.swift:65:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Interval' to 'Hashable' by implementing 'hash(into:)' instead
63 |
64 |
65 | public var hashValue: Int {
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Interval' to 'Hashable' by implementing 'hash(into:)' instead
66 | var hash: Int = 23
67 | hash = hash * 31 + a
[156/159] Wrapping AST for Antlr4 for debugging
[157/159] Write Objects.LinkFileList
[158/159] Linking libAntlr4.so
Build complete! (19.46s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "Antlr4",
"name" : "Antlr4",
"path" : "/host/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "Antlr4",
"targets" : [
"Antlr4"
],
"type" : {
"library" : [
"dynamic"
]
}
}
],
"targets" : [
{
"c99name" : "Antlr4Tests",
"module_type" : "SwiftTarget",
"name" : "Antlr4Tests",
"path" : "Tests/Antlr4Tests",
"sources" : [
"MurmurHashTests.swift",
"ParseTreePatternMatcherTests.swift",
"RuntimeMetaDataTests.swift",
"StringExtensionTests.swift",
"TokenStreamRewriterTests.swift",
"TokenStreamTests.swift",
"VisitorTests.swift"
],
"target_dependencies" : [
"Antlr4"
],
"type" : "test"
},
{
"c99name" : "Antlr4",
"module_type" : "SwiftTarget",
"name" : "Antlr4",
"path" : "Sources/Antlr4",
"product_memberships" : [
"Antlr4"
],
"sources" : [
"ANTLRErrorListener.swift",
"ANTLRErrorStrategy.swift",
"ANTLRFileStream.swift",
"ANTLRInputStream.swift",
"BailErrorStrategy.swift",
"BaseErrorListener.swift",
"BufferedTokenStream.swift",
"CharStream.swift",
"CommonToken.swift",
"CommonTokenFactory.swift",
"CommonTokenStream.swift",
"ConsoleErrorListener.swift",
"DefaultErrorStrategy.swift",
"DiagnosticErrorListener.swift",
"FailedPredicateException.swift",
"InputMismatchException.swift",
"IntStream.swift",
"InterpreterRuleContext.swift",
"Lexer.swift",
"LexerInterpreter.swift",
"LexerNoViableAltException.swift",
"ListTokenSource.swift",
"NoViableAltException.swift",
"Parser.swift",
"ParserInterpreter.swift",
"ParserRuleContext.swift",
"ProxyErrorListener.swift",
"RecognitionException.swift",
"Recognizer.swift",
"RuleContext.swift",
"RuntimeMetaData.swift",
"Token.swift",
"TokenFactory.swift",
"TokenSource.swift",
"TokenStream.swift",
"TokenStreamRewriter.swift",
"UnbufferedCharStream.swift",
"UnbufferedTokenStream.swift",
"VocabularySingle.swift",
"WritableToken.swift",
"atn/ATN.swift",
"atn/ATNConfig.swift",
"atn/ATNConfigSet.swift",
"atn/ATNDeserializationOptions.swift",
"atn/ATNDeserializer.swift",
"atn/ATNSimulator.swift",
"atn/ATNState.swift",
"atn/ATNType.swift",
"atn/AbstractPredicateTransition.swift",
"atn/ActionTransition.swift",
"atn/AmbiguityInfo.swift",
"atn/ArrayPredictionContext.swift",
"atn/AtomTransition.swift",
"atn/BasicBlockStartState.swift",
"atn/BasicState.swift",
"atn/BlockEndState.swift",
"atn/BlockStartState.swift",
"atn/ContextSensitivityInfo.swift",
"atn/DecisionEventInfo.swift",
"atn/DecisionInfo.swift",
"atn/DecisionState.swift",
"atn/DefaultATNConfig.swift",
"atn/EmptyPredictionContext.swift",
"atn/EpsilonTransition.swift",
"atn/ErrorInfo.swift",
"atn/LL1Analyzer.swift",
"atn/LexerATNConfig.swift",
"atn/LexerATNSimulator.swift",
"atn/LexerAction.swift",
"atn/LexerActionExecutor.swift",
"atn/LexerActionType.swift",
"atn/LexerChannelAction.swift",
"atn/LexerCustomAction.swift",
"atn/LexerIndexedCustomAction.swift",
"atn/LexerModeAction.swift",
"atn/LexerMoreAction.swift",
"atn/LexerPopModeAction.swift",
"atn/LexerPushModeAction.swift",
"atn/LexerSkipAction.swift",
"atn/LexerTypeAction.swift",
"atn/LookaheadEventInfo.swift",
"atn/LookupATNConfig.swift",
"atn/LookupDictionary.swift",
"atn/LoopEndState.swift",
"atn/NotSetTransition.swift",
"atn/ParseInfo.swift",
"atn/ParserATNSimulator.swift",
"atn/PlusBlockStartState.swift",
"atn/PlusLoopbackState.swift",
"atn/PrecedencePredicateTransition.swift",
"atn/PredicateEvalInfo.swift",
"atn/PredicateTransition.swift",
"atn/PredictionContext.swift",
"atn/PredictionContextCache.swift",
"atn/PredictionMode.swift",
"atn/ProfilingATNSimulator.swift",
"atn/RangeTransition.swift",
"atn/RuleStartState.swift",
"atn/RuleStopState.swift",
"atn/RuleTransition.swift",
"atn/SemanticContext.swift",
"atn/SetTransition.swift",
"atn/SingletonPredictionContext.swift",
"atn/StarBlockStartState.swift",
"atn/StarLoopEntryState.swift",
"atn/StarLoopbackState.swift",
"atn/TokensStartState.swift",
"atn/Transition.swift",
"atn/WildcardTransition.swift",
"dfa/DFA.swift",
"dfa/DFASerializer.swift",
"dfa/DFAState.swift",
"dfa/LexerDFASerializer.swift",
"misc/BitSet.swift",
"misc/DoubleKeyMap.swift",
"misc/IntSet.swift",
"misc/Interval.swift",
"misc/IntervalSet.swift",
"misc/MultiMap.swift",
"misc/MurmurHash.swift",
"misc/Utils.swift",
"misc/exception/ANTLRError.swift",
"misc/exception/ANTLRException.swift",
"misc/extension/ArrayExtension.swift",
"misc/extension/CharacterExtension.swift",
"misc/extension/IntStreamExtension.swift",
"misc/extension/StringExtension.swift",
"misc/extension/TokenExtension.swift",
"misc/extension/UUIDExtension.swift",
"misc/utils/CommonUtil.swift",
"misc/utils/Mutex.swift",
"misc/utils/Stack.swift",
"tree/AbstractParseTreeVisitor.swift",
"tree/ErrorNode.swift",
"tree/ParseTree.swift",
"tree/ParseTreeListener.swift",
"tree/ParseTreeVisitor.swift",
"tree/ParseTreeWalker.swift",
"tree/RuleNode.swift",
"tree/SyntaxTree.swift",
"tree/TerminalNode.swift",
"tree/TerminalNodeImpl.swift",
"tree/Tree.swift",
"tree/Trees.swift",
"tree/pattern/Chunk.swift",
"tree/pattern/ParseTreeMatch.swift",
"tree/pattern/ParseTreePattern.swift",
"tree/pattern/ParseTreePatternMatcher.swift",
"tree/pattern/RuleTagToken.swift",
"tree/pattern/TagChunk.swift",
"tree/pattern/TextChunk.swift",
"tree/pattern/TokenTagToken.swift"
],
"type" : "library"
}
],
"tools_version" : "4.0"
}
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:3bdcac04179f4ed3e5b8e9dbd6e74bbf5ebc0f4fde48bbaad7d1e5c757e65bcb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
Done.