Build Information
Successful build of Sparse, reference 0.4.1 (7c360c
), with Swift 6.0 for Linux on 31 Oct 2024 23:30:10 UTC.
Swift 6 data race errors: 41
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1
Build Log
16 | static let wsnls = whitespacesOrNewlines()
17 | static let wss1nl = wss.then(atMost(1, nl))
/host/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/host/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:16:16: warning: static property 'wsnls' is not concurrency-safe because non-'Sendable' type 'Parser<[Character]>' may have shared mutable state; this is an error in the Swift 6 language mode
14 | static let wss = whitespaces()
15 | static let wsnl = whitespaceOrNewline()
16 | static let wsnls = whitespacesOrNewlines()
| |- warning: static property 'wsnls' is not concurrency-safe because non-'Sendable' type 'Parser<[Character]>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'wsnls' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
17 | static let wss1nl = wss.then(atMost(1, nl))
18 | static let nl = newline()
/host/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/host/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:17:16: warning: static property 'wss1nl' is not concurrency-safe because non-'Sendable' type 'Parser<([Character], [Character])>' may have shared mutable state; this is an error in the Swift 6 language mode
15 | static let wsnl = whitespaceOrNewline()
16 | static let wsnls = whitespacesOrNewlines()
17 | static let wss1nl = wss.then(atMost(1, nl))
| |- warning: static property 'wss1nl' is not concurrency-safe because non-'Sendable' type 'Parser<([Character], [Character])>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'wss1nl' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 | static let nl = newline()
19 | static let qm = character("\"")
/host/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/host/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:18:16: warning: static property 'nl' is not concurrency-safe because non-'Sendable' type 'Parser<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
16 | static let wsnls = whitespacesOrNewlines()
17 | static let wss1nl = wss.then(atMost(1, nl))
18 | static let nl = newline()
| |- warning: static property 'nl' is not concurrency-safe because non-'Sendable' type 'Parser<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'nl' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
19 | static let qm = character("\"")
20 | static let sc = character(";")
/host/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/host/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:19:16: warning: static property 'qm' is not concurrency-safe because non-'Sendable' type 'Parser<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
17 | static let wss1nl = wss.then(atMost(1, nl))
18 | static let nl = newline()
19 | static let qm = character("\"")
| |- warning: static property 'qm' is not concurrency-safe because non-'Sendable' type 'Parser<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'qm' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
20 | static let sc = character(";")
21 |
/host/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/host/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:20:16: warning: static property 'sc' is not concurrency-safe because non-'Sendable' type 'Parser<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
18 | static let nl = newline()
19 | static let qm = character("\"")
20 | static let sc = character(";")
| |- warning: static property 'sc' is not concurrency-safe because non-'Sendable' type 'Parser<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'sc' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 |
22 | // Escapes
/host/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/host/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:23:16: warning: static property 'escapableCharacter' is not concurrency-safe because non-'Sendable' type 'Parser<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
21 |
22 | // Escapes
23 | static let escapableCharacter = characterNot("\\").otherwise(escapedSpecial)
| |- warning: static property 'escapableCharacter' is not concurrency-safe because non-'Sendable' type 'Parser<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'escapableCharacter' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 | static let escapedSpecial: Parser<Character> = character("\\").skipThen(oneOf([
25 | character("\"").skipThen(pure("\"")),
/host/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/host/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:24:16: warning: static property 'escapedSpecial' is not concurrency-safe because non-'Sendable' type 'Parser<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
22 | // Escapes
23 | static let escapableCharacter = characterNot("\\").otherwise(escapedSpecial)
24 | static let escapedSpecial: Parser<Character> = character("\\").skipThen(oneOf([
| |- warning: static property 'escapedSpecial' is not concurrency-safe because non-'Sendable' type 'Parser<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'escapedSpecial' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
25 | character("\"").skipThen(pure("\"")),
26 | character("'").skipThen(pure("'")),
/host/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/host/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:35:16: warning: static property 'ilcStart' is not concurrency-safe because non-'Sendable' type 'Parser<[Character]>' may have shared mutable state; this is an error in the Swift 6 language mode
33 |
34 | // Comments
35 | static let ilcStart = atLeast(2, character("/")).thenSkip(wss)
| |- warning: static property 'ilcStart' is not concurrency-safe because non-'Sendable' type 'Parser<[Character]>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'ilcStart' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
36 | static let ilcStop = nl
37 |
/host/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/host/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:36:16: warning: static property 'ilcStop' is not concurrency-safe because non-'Sendable' type 'Parser<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
34 | // Comments
35 | static let ilcStart = atLeast(2, character("/")).thenSkip(wss)
36 | static let ilcStop = nl
| |- warning: static property 'ilcStop' is not concurrency-safe because non-'Sendable' type 'Parser<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'ilcStop' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
37 |
38 | static let mlcStart = string("/*").thenSkip(many(character("*")))
/host/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/host/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:38:16: warning: static property 'mlcStart' is not concurrency-safe because non-'Sendable' type 'Parser<String>' may have shared mutable state; this is an error in the Swift 6 language mode
36 | static let ilcStop = nl
37 |
38 | static let mlcStart = string("/*").thenSkip(many(character("*")))
| |- warning: static property 'mlcStart' is not concurrency-safe because non-'Sendable' type 'Parser<String>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'mlcStart' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
39 | static let mlcStop = string("*/")
40 |
/host/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/host/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:39:16: warning: static property 'mlcStop' is not concurrency-safe because non-'Sendable' type 'Parser<String>' may have shared mutable state; this is an error in the Swift 6 language mode
37 |
38 | static let mlcStart = string("/*").thenSkip(many(character("*")))
39 | static let mlcStop = string("*/")
| |- warning: static property 'mlcStop' is not concurrency-safe because non-'Sendable' type 'Parser<String>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'mlcStop' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
40 |
41 | static let mlc = many(anyCharacter().butNot(mlcStop), prefix: mlcStart, suffix: mlcStop).asString()
/host/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/host/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:41:16: warning: static property 'mlc' is not concurrency-safe because non-'Sendable' type 'Parser<String>' may have shared mutable state; this is an error in the Swift 6 language mode
39 | static let mlcStop = string("*/")
40 |
41 | static let mlc = many(anyCharacter().butNot(mlcStop), prefix: mlcStart, suffix: mlcStop).asString()
| |- warning: static property 'mlc' is not concurrency-safe because non-'Sendable' type 'Parser<String>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'mlc' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
42 | static let ilc = many(anyCharacter().butNot(ilcStop), prefix: ilcStart, suffix: ilcStop).asString()
43 |
/host/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/host/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:42:16: warning: static property 'ilc' is not concurrency-safe because non-'Sendable' type 'Parser<String>' may have shared mutable state; this is an error in the Swift 6 language mode
40 |
41 | static let mlc = many(anyCharacter().butNot(mlcStop), prefix: mlcStart, suffix: mlcStop).asString()
42 | static let ilc = many(anyCharacter().butNot(ilcStop), prefix: ilcStart, suffix: ilcStop).asString()
| |- warning: static property 'ilc' is not concurrency-safe because non-'Sendable' type 'Parser<String>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'ilc' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
43 |
44 | static let comment = mlc.otherwise(ilc).thenSkip(wss1nl).named("comment")
/host/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/host/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:44:16: warning: static property 'comment' is not concurrency-safe because non-'Sendable' type 'Parser<String>' may have shared mutable state; this is an error in the Swift 6 language mode
42 | static let ilc = many(anyCharacter().butNot(ilcStop), prefix: ilcStart, suffix: ilcStop).asString()
43 |
44 | static let comment = mlc.otherwise(ilc).thenSkip(wss1nl).named("comment")
| |- warning: static property 'comment' is not concurrency-safe because non-'Sendable' type 'Parser<String>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'comment' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
45 | static let comments = many(comment)
46 | static let inlineComment = ilc.thenSkip(wss1nl).named("in-line comment")
/host/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/host/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:45:16: warning: static property 'comments' is not concurrency-safe because non-'Sendable' type 'Parser<[String]>' may have shared mutable state; this is an error in the Swift 6 language mode
43 |
44 | static let comment = mlc.otherwise(ilc).thenSkip(wss1nl).named("comment")
45 | static let comments = many(comment)
| |- warning: static property 'comments' is not concurrency-safe because non-'Sendable' type 'Parser<[String]>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'comments' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
46 | static let inlineComment = ilc.thenSkip(wss1nl).named("in-line comment")
47 |
/host/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/host/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:46:16: warning: static property 'inlineComment' is not concurrency-safe because non-'Sendable' type 'Parser<String>' may have shared mutable state; this is an error in the Swift 6 language mode
44 | static let comment = mlc.otherwise(ilc).thenSkip(wss1nl).named("comment")
45 | static let comments = many(comment)
46 | static let inlineComment = ilc.thenSkip(wss1nl).named("in-line comment")
| |- warning: static property 'inlineComment' is not concurrency-safe because non-'Sendable' type 'Parser<String>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'inlineComment' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
47 |
48 | static let orphanedComment = atLeastOne(comment).then(wss1nl)
/host/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/host/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:48:16: warning: static property 'orphanedComment' is not concurrency-safe because non-'Sendable' type 'Parser<([String], ([Character], [Character]))>' may have shared mutable state; this is an error in the Swift 6 language mode
46 | static let inlineComment = ilc.thenSkip(wss1nl).named("in-line comment")
47 |
48 | static let orphanedComment = atLeastOne(comment).then(wss1nl)
| |- warning: static property 'orphanedComment' is not concurrency-safe because non-'Sendable' type 'Parser<([String], ([Character], [Character]))>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'orphanedComment' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
49 |
50 | // Key-value pairs
/host/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/host/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:51:16: warning: static property 'text' is not concurrency-safe because non-'Sendable' type 'Parser<String>' may have shared mutable state; this is an error in the Swift 6 language mode
49 |
50 | // Key-value pairs
51 | static let text = many(escapableCharacter.butNot(qm), boundedBy: qm).asString().named("text")
| |- warning: static property 'text' is not concurrency-safe because non-'Sendable' type 'Parser<String>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'text' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
52 | static let key = text.named("key")
53 | static let translation = text.named("translation")
/host/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/host/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:52:16: warning: static property 'key' is not concurrency-safe because non-'Sendable' type 'Parser<String>' may have shared mutable state; this is an error in the Swift 6 language mode
50 | // Key-value pairs
51 | static let text = many(escapableCharacter.butNot(qm), boundedBy: qm).asString().named("text")
52 | static let key = text.named("key")
| |- warning: static property 'key' is not concurrency-safe because non-'Sendable' type 'Parser<String>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'key' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
53 | static let translation = text.named("translation")
54 | static let separator = wss.skipThen(character("=")).thenSkip(wss).named("separator")
/host/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/host/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:53:16: warning: static property 'translation' is not concurrency-safe because non-'Sendable' type 'Parser<String>' may have shared mutable state; this is an error in the Swift 6 language mode
51 | static let text = many(escapableCharacter.butNot(qm), boundedBy: qm).asString().named("text")
52 | static let key = text.named("key")
53 | static let translation = text.named("translation")
| |- warning: static property 'translation' is not concurrency-safe because non-'Sendable' type 'Parser<String>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'translation' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
54 | static let separator = wss.skipThen(character("=")).thenSkip(wss).named("separator")
55 | static let kvp = key.thenSkip(separator).then(translation).thenSkip(sc).named("pair")
/host/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/host/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:54:16: warning: static property 'separator' is not concurrency-safe because non-'Sendable' type 'Parser<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
52 | static let key = text.named("key")
53 | static let translation = text.named("translation")
54 | static let separator = wss.skipThen(character("=")).thenSkip(wss).named("separator")
| |- warning: static property 'separator' is not concurrency-safe because non-'Sendable' type 'Parser<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'separator' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
55 | static let kvp = key.thenSkip(separator).then(translation).thenSkip(sc).named("pair")
56 |
/host/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/host/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:55:16: warning: static property 'kvp' is not concurrency-safe because non-'Sendable' type 'Parser<(String, String)>' may have shared mutable state; this is an error in the Swift 6 language mode
53 | static let translation = text.named("translation")
54 | static let separator = wss.skipThen(character("=")).thenSkip(wss).named("separator")
55 | static let kvp = key.thenSkip(separator).then(translation).thenSkip(sc).named("pair")
| |- warning: static property 'kvp' is not concurrency-safe because non-'Sendable' type 'Parser<(String, String)>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'kvp' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
56 |
57 | // Entries
/host/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/host/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:58:16: warning: static property 'entryTuple' is not concurrency-safe because non-'Sendable' type 'Parser<([String], (String, String), String?)>' may have shared mutable state; this is an error in the Swift 6 language mode
56 |
57 | // Entries
58 | static let entryTuple = comments.then(kvp).thenSkip(wss).then(optional(inlineComment)).thenSkip(wsnls).map(flatten)
| |- warning: static property 'entryTuple' is not concurrency-safe because non-'Sendable' type 'Parser<([String], (String, String), String?)>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'entryTuple' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
59 | static let entryObject = entryTuple.map(createEntry).named("entry")
60 | static let entries = many(entryObject.otherwiseSkip(orphanedComment)).map { $0.compactMap{$0} }
/host/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/host/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:59:16: warning: static property 'entryObject' is not concurrency-safe because non-'Sendable' type 'Parser<DotStringsEntry>' may have shared mutable state; this is an error in the Swift 6 language mode
57 | // Entries
58 | static let entryTuple = comments.then(kvp).thenSkip(wss).then(optional(inlineComment)).thenSkip(wsnls).map(flatten)
59 | static let entryObject = entryTuple.map(createEntry).named("entry")
| |- warning: static property 'entryObject' is not concurrency-safe because non-'Sendable' type 'Parser<DotStringsEntry>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'entryObject' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
60 | static let entries = many(entryObject.otherwiseSkip(orphanedComment)).map { $0.compactMap{$0} }
61 |
/host/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/host/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:60:16: warning: static property 'entries' is not concurrency-safe because non-'Sendable' type 'Parser<[DotStringsEntry]>' may have shared mutable state; this is an error in the Swift 6 language mode
58 | static let entryTuple = comments.then(kvp).thenSkip(wss).then(optional(inlineComment)).thenSkip(wsnls).map(flatten)
59 | static let entryObject = entryTuple.map(createEntry).named("entry")
60 | static let entries = many(entryObject.otherwiseSkip(orphanedComment)).map { $0.compactMap{$0} }
| |- warning: static property 'entries' is not concurrency-safe because non-'Sendable' type 'Parser<[DotStringsEntry]>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'entries' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
61 |
62 | // Strings Parser
/host/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/host/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:63:16: warning: static property 'stringsParser' is not concurrency-safe because non-'Sendable' type 'Parser<[DotStringsEntry]>' may have shared mutable state; this is an error in the Swift 6 language mode
61 |
62 | // Strings Parser
63 | static let stringsParser = wsnls.skipThen(entries).thenSkip(end())
| |- warning: static property 'stringsParser' is not concurrency-safe because non-'Sendable' type 'Parser<[DotStringsEntry]>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'stringsParser' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
64 |
65 | public static func parseStrings(input: String) throws -> [DotStringsEntry] {
/host/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/host/spi-builder-workspace/Sources/Sparse/IgnoreError.swift:12:7: warning: non-final class 'IgnoreError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
10 | /// Replaces an error that has already been captured in the stream, to avoid
11 | /// capturing the same error at every level of the parser tree.
12 | class IgnoreError: Error { }
| `- warning: non-final class 'IgnoreError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
13 |
14 | let ignoreError = IgnoreError()
/host/spi-builder-workspace/Sources/Sparse/ParserError.swift:15:9: warning: stored property 'errors' of 'Sendable'-conforming struct 'ParserError' has non-sendable type '[ContextualizedError]'; this is an error in the Swift 6 language mode
13 | public let input: String
14 | public var index: String.Index
15 | var errors: [ContextualizedError]
| `- warning: stored property 'errors' of 'Sendable'-conforming struct 'ParserError' has non-sendable type '[ContextualizedError]'; this is an error in the Swift 6 language mode
16 |
17 | mutating func incorporate(error: ContextualizedError, at index: String.Index) {
/host/spi-builder-workspace/Sources/Sparse/ContextualizedError.swift:11:15: note: consider making struct 'ContextualizedError' conform to the 'Sendable' protocol
9 |
10 | /// An error decorated with a lazily evaluated parsing context.
11 | public struct ContextualizedError: CustomStringConvertible {
| `- note: consider making struct 'ContextualizedError' conform to the 'Sendable' protocol
12 |
13 | let context: () -> ParsingContext
[4/23] Compiling Sparse ParserError.swift
/host/spi-builder-workspace/Sources/Sparse/ParserError.swift:15:9: warning: stored property 'errors' of 'Sendable'-conforming struct 'ParserError' has non-sendable type '[ContextualizedError]'; this is an error in the Swift 6 language mode
13 | public let input: String
14 | public var index: String.Index
15 | var errors: [ContextualizedError]
| `- warning: stored property 'errors' of 'Sendable'-conforming struct 'ParserError' has non-sendable type '[ContextualizedError]'; this is an error in the Swift 6 language mode
16 |
17 | mutating func incorporate(error: ContextualizedError, at index: String.Index) {
/host/spi-builder-workspace/Sources/Sparse/ContextualizedError.swift:11:15: note: consider making struct 'ContextualizedError' conform to the 'Sendable' protocol
9 |
10 | /// An error decorated with a lazily evaluated parsing context.
11 | public struct ContextualizedError: CustomStringConvertible {
| `- note: consider making struct 'ContextualizedError' conform to the 'Sendable' protocol
12 |
13 | let context: () -> ParsingContext
[5/23] Compiling Sparse Parser_combinators.swift
/host/spi-builder-workspace/Sources/Sparse/ParserError.swift:15:9: warning: stored property 'errors' of 'Sendable'-conforming struct 'ParserError' has non-sendable type '[ContextualizedError]'; this is an error in the Swift 6 language mode
13 | public let input: String
14 | public var index: String.Index
15 | var errors: [ContextualizedError]
| `- warning: stored property 'errors' of 'Sendable'-conforming struct 'ParserError' has non-sendable type '[ContextualizedError]'; this is an error in the Swift 6 language mode
16 |
17 | mutating func incorporate(error: ContextualizedError, at index: String.Index) {
/host/spi-builder-workspace/Sources/Sparse/ContextualizedError.swift:11:15: note: consider making struct 'ContextualizedError' conform to the 'Sendable' protocol
9 |
10 | /// An error decorated with a lazily evaluated parsing context.
11 | public struct ContextualizedError: CustomStringConvertible {
| `- note: consider making struct 'ContextualizedError' conform to the 'Sendable' protocol
12 |
13 | let context: () -> ParsingContext
[6/23] Compiling Sparse Parser_creators.swift
/host/spi-builder-workspace/Sources/Sparse/ParserError.swift:15:9: warning: stored property 'errors' of 'Sendable'-conforming struct 'ParserError' has non-sendable type '[ContextualizedError]'; this is an error in the Swift 6 language mode
13 | public let input: String
14 | public var index: String.Index
15 | var errors: [ContextualizedError]
| `- warning: stored property 'errors' of 'Sendable'-conforming struct 'ParserError' has non-sendable type '[ContextualizedError]'; this is an error in the Swift 6 language mode
16 |
17 | mutating func incorporate(error: ContextualizedError, at index: String.Index) {
/host/spi-builder-workspace/Sources/Sparse/ContextualizedError.swift:11:15: note: consider making struct 'ContextualizedError' conform to the 'Sendable' protocol
9 |
10 | /// An error decorated with a lazily evaluated parsing context.
11 | public struct ContextualizedError: CustomStringConvertible {
| `- note: consider making struct 'ContextualizedError' conform to the 'Sendable' protocol
12 |
13 | let context: () -> ParsingContext
[7/23] Compiling Sparse Transforms.swift
[8/23] Compiling Sparse UnexpectedInputError.swift
[9/23] Compiling Sparse CSVParser.swift
/host/spi-builder-workspace/Sources/Sparse/CSVParser.swift:13:16: warning: static property 'quote' is not concurrency-safe because non-'Sendable' type 'Parser<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
11 | public enum CSVParser {
12 |
13 | static let quote = character("\"")
| |- warning: static property 'quote' is not concurrency-safe because non-'Sendable' type 'Parser<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'quote' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 |
15 | static let illegalCellCharacters = CharacterSet.newlines.union(CharacterSet(charactersIn: ","))
/host/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/host/spi-builder-workspace/Sources/Sparse/CSVParser.swift:16:16: warning: static property 'unquotedCellCharacter' is not concurrency-safe because non-'Sendable' type 'Parser<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | static let illegalCellCharacters = CharacterSet.newlines.union(CharacterSet(charactersIn: ","))
16 | static let unquotedCellCharacter = characterNot(in: illegalCellCharacters)
| |- warning: static property 'unquotedCellCharacter' is not concurrency-safe because non-'Sendable' type 'Parser<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'unquotedCellCharacter' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
17 | .named("cell character")
18 | static let unquotedCell = many(unquotedCellCharacter).asString()
/host/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/host/spi-builder-workspace/Sources/Sparse/CSVParser.swift:18:16: warning: static property 'unquotedCell' is not concurrency-safe because non-'Sendable' type 'Parser<String>' may have shared mutable state; this is an error in the Swift 6 language mode
16 | static let unquotedCellCharacter = characterNot(in: illegalCellCharacters)
17 | .named("cell character")
18 | static let unquotedCell = many(unquotedCellCharacter).asString()
| |- warning: static property 'unquotedCell' is not concurrency-safe because non-'Sendable' type 'Parser<String>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'unquotedCell' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
19 | .map { $0.trimmingCharacters(in: .whitespaces) }
20 |
/host/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/host/spi-builder-workspace/Sources/Sparse/CSVParser.swift:21:16: warning: static property 'escapedQuote' is not concurrency-safe because non-'Sendable' type 'Parser<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
19 | .map { $0.trimmingCharacters(in: .whitespaces) }
20 |
21 | static let escapedQuote = quote.skipThen(quote)
| |- warning: static property 'escapedQuote' is not concurrency-safe because non-'Sendable' type 'Parser<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'escapedQuote' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
22 | .named("escaped quote")
23 | static let quotedCellCharacter = characterNot("\"")
/host/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/host/spi-builder-workspace/Sources/Sparse/CSVParser.swift:23:16: warning: static property 'quotedCellCharacter' is not concurrency-safe because non-'Sendable' type 'Parser<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
21 | static let escapedQuote = quote.skipThen(quote)
22 | .named("escaped quote")
23 | static let quotedCellCharacter = characterNot("\"")
| |- warning: static property 'quotedCellCharacter' is not concurrency-safe because non-'Sendable' type 'Parser<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'quotedCellCharacter' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 | .named("quoted cell character")
25 | .otherwise(escapedQuote)
/host/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/host/spi-builder-workspace/Sources/Sparse/CSVParser.swift:27:16: warning: static property 'quotedCell' is not concurrency-safe because non-'Sendable' type 'Parser<String>' may have shared mutable state; this is an error in the Swift 6 language mode
25 | .otherwise(escapedQuote)
26 |
27 | static let quotedCell = many(quotedCellCharacter, boundedBy: quote).asString()
| |- warning: static property 'quotedCell' is not concurrency-safe because non-'Sendable' type 'Parser<String>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'quotedCell' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
28 |
29 | static let cell = quotedCell.otherwise(unquotedCell)
/host/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/host/spi-builder-workspace/Sources/Sparse/CSVParser.swift:29:16: warning: static property 'cell' is not concurrency-safe because non-'Sendable' type 'Parser<String>' may have shared mutable state; this is an error in the Swift 6 language mode
27 | static let quotedCell = many(quotedCellCharacter, boundedBy: quote).asString()
28 |
29 | static let cell = quotedCell.otherwise(unquotedCell)
| |- warning: static property 'cell' is not concurrency-safe because non-'Sendable' type 'Parser<String>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'cell' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
30 |
31 | static let cellSeparator = whitespaces().then(character(",")).then(whitespaces())
/host/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/host/spi-builder-workspace/Sources/Sparse/CSVParser.swift:31:16: warning: static property 'cellSeparator' is not concurrency-safe because non-'Sendable' type 'Parser<(([Character], Character), [Character])>' may have shared mutable state; this is an error in the Swift 6 language mode
29 | static let cell = quotedCell.otherwise(unquotedCell)
30 |
31 | static let cellSeparator = whitespaces().then(character(",")).then(whitespaces())
| |- warning: static property 'cellSeparator' is not concurrency-safe because non-'Sendable' type 'Parser<(([Character], Character), [Character])>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'cellSeparator' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
32 | .named("cell separator")
33 | static let line = many(cell, separator: cellSeparator)
/host/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/host/spi-builder-workspace/Sources/Sparse/CSVParser.swift:33:16: warning: static property 'line' is not concurrency-safe because non-'Sendable' type 'Parser<[String]>' may have shared mutable state; this is an error in the Swift 6 language mode
31 | static let cellSeparator = whitespaces().then(character(",")).then(whitespaces())
32 | .named("cell separator")
33 | static let line = many(cell, separator: cellSeparator)
| |- warning: static property 'line' is not concurrency-safe because non-'Sendable' type 'Parser<[String]>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'line' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
34 |
35 | static let ending = optional(newline()).then(end())
/host/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/host/spi-builder-workspace/Sources/Sparse/CSVParser.swift:35:16: warning: static property 'ending' is not concurrency-safe because non-'Sendable' type 'Parser<(Character?, Void)>' may have shared mutable state; this is an error in the Swift 6 language mode
33 | static let line = many(cell, separator: cellSeparator)
34 |
35 | static let ending = optional(newline()).then(end())
| |- warning: static property 'ending' is not concurrency-safe because non-'Sendable' type 'Parser<(Character?, Void)>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'ending' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
36 | static let csv = many(line, separator: newline()).thenSkip(ending)
37 |
/host/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/host/spi-builder-workspace/Sources/Sparse/CSVParser.swift:36:16: warning: static property 'csv' is not concurrency-safe because non-'Sendable' type 'Parser<[[String]]>' may have shared mutable state; this is an error in the Swift 6 language mode
34 |
35 | static let ending = optional(newline()).then(end())
36 | static let csv = many(line, separator: newline()).thenSkip(ending)
| |- warning: static property 'csv' is not concurrency-safe because non-'Sendable' type 'Parser<[[String]]>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'csv' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
37 |
38 | public static func parseCSV(input: String) throws -> [[String]] {
/host/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
[10/23] Compiling Sparse CharacterParsers.swift
/host/spi-builder-workspace/Sources/Sparse/CSVParser.swift:13:16: warning: static property 'quote' is not concurrency-safe because non-'Sendable' type 'Parser<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
11 | public enum CSVParser {
12 |
13 | static let quote = character("\"")
| |- warning: static property 'quote' is not concurrency-safe because non-'Sendable' type 'Parser<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'quote' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 |
15 | static let illegalCellCharacters = CharacterSet.newlines.union(CharacterSet(charactersIn: ","))
/host/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/host/spi-builder-workspace/Sources/Sparse/CSVParser.swift:16:16: warning: static property 'unquotedCellCharacter' is not concurrency-safe because non-'Sendable' type 'Parser<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | static let illegalCellCharacters = CharacterSet.newlines.union(CharacterSet(charactersIn: ","))
16 | static let unquotedCellCharacter = characterNot(in: illegalCellCharacters)
| |- warning: static property 'unquotedCellCharacter' is not concurrency-safe because non-'Sendable' type 'Parser<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'unquotedCellCharacter' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
17 | .named("cell character")
18 | static let unquotedCell = many(unquotedCellCharacter).asString()
/host/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/host/spi-builder-workspace/Sources/Sparse/CSVParser.swift:18:16: warning: static property 'unquotedCell' is not concurrency-safe because non-'Sendable' type 'Parser<String>' may have shared mutable state; this is an error in the Swift 6 language mode
16 | static let unquotedCellCharacter = characterNot(in: illegalCellCharacters)
17 | .named("cell character")
18 | static let unquotedCell = many(unquotedCellCharacter).asString()
| |- warning: static property 'unquotedCell' is not concurrency-safe because non-'Sendable' type 'Parser<String>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'unquotedCell' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
19 | .map { $0.trimmingCharacters(in: .whitespaces) }
20 |
/host/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/host/spi-builder-workspace/Sources/Sparse/CSVParser.swift:21:16: warning: static property 'escapedQuote' is not concurrency-safe because non-'Sendable' type 'Parser<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
19 | .map { $0.trimmingCharacters(in: .whitespaces) }
20 |
21 | static let escapedQuote = quote.skipThen(quote)
| |- warning: static property 'escapedQuote' is not concurrency-safe because non-'Sendable' type 'Parser<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'escapedQuote' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
22 | .named("escaped quote")
23 | static let quotedCellCharacter = characterNot("\"")
/host/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/host/spi-builder-workspace/Sources/Sparse/CSVParser.swift:23:16: warning: static property 'quotedCellCharacter' is not concurrency-safe because non-'Sendable' type 'Parser<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
21 | static let escapedQuote = quote.skipThen(quote)
22 | .named("escaped quote")
23 | static let quotedCellCharacter = characterNot("\"")
| |- warning: static property 'quotedCellCharacter' is not concurrency-safe because non-'Sendable' type 'Parser<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'quotedCellCharacter' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 | .named("quoted cell character")
25 | .otherwise(escapedQuote)
/host/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/host/spi-builder-workspace/Sources/Sparse/CSVParser.swift:27:16: warning: static property 'quotedCell' is not concurrency-safe because non-'Sendable' type 'Parser<String>' may have shared mutable state; this is an error in the Swift 6 language mode
25 | .otherwise(escapedQuote)
26 |
27 | static let quotedCell = many(quotedCellCharacter, boundedBy: quote).asString()
| |- warning: static property 'quotedCell' is not concurrency-safe because non-'Sendable' type 'Parser<String>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'quotedCell' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
28 |
29 | static let cell = quotedCell.otherwise(unquotedCell)
/host/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/host/spi-builder-workspace/Sources/Sparse/CSVParser.swift:29:16: warning: static property 'cell' is not concurrency-safe because non-'Sendable' type 'Parser<String>' may have shared mutable state; this is an error in the Swift 6 language mode
27 | static let quotedCell = many(quotedCellCharacter, boundedBy: quote).asString()
28 |
29 | static let cell = quotedCell.otherwise(unquotedCell)
| |- warning: static property 'cell' is not concurrency-safe because non-'Sendable' type 'Parser<String>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'cell' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
30 |
31 | static let cellSeparator = whitespaces().then(character(",")).then(whitespaces())
/host/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/host/spi-builder-workspace/Sources/Sparse/CSVParser.swift:31:16: warning: static property 'cellSeparator' is not concurrency-safe because non-'Sendable' type 'Parser<(([Character], Character), [Character])>' may have shared mutable state; this is an error in the Swift 6 language mode
29 | static let cell = quotedCell.otherwise(unquotedCell)
30 |
31 | static let cellSeparator = whitespaces().then(character(",")).then(whitespaces())
| |- warning: static property 'cellSeparator' is not concurrency-safe because non-'Sendable' type 'Parser<(([Character], Character), [Character])>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'cellSeparator' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
32 | .named("cell separator")
33 | static let line = many(cell, separator: cellSeparator)
/host/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/host/spi-builder-workspace/Sources/Sparse/CSVParser.swift:33:16: warning: static property 'line' is not concurrency-safe because non-'Sendable' type 'Parser<[String]>' may have shared mutable state; this is an error in the Swift 6 language mode
31 | static let cellSeparator = whitespaces().then(character(",")).then(whitespaces())
32 | .named("cell separator")
33 | static let line = many(cell, separator: cellSeparator)
| |- warning: static property 'line' is not concurrency-safe because non-'Sendable' type 'Parser<[String]>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'line' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
34 |
35 | static let ending = optional(newline()).then(end())
/host/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/host/spi-builder-workspace/Sources/Sparse/CSVParser.swift:35:16: warning: static property 'ending' is not concurrency-safe because non-'Sendable' type 'Parser<(Character?, Void)>' may have shared mutable state; this is an error in the Swift 6 language mode
33 | static let line = many(cell, separator: cellSeparator)
34 |
35 | static let ending = optional(newline()).then(end())
| |- warning: static property 'ending' is not concurrency-safe because non-'Sendable' type 'Parser<(Character?, Void)>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'ending' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
36 | static let csv = many(line, separator: newline()).thenSkip(ending)
37 |
/host/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/host/spi-builder-workspace/Sources/Sparse/CSVParser.swift:36:16: warning: static property 'csv' is not concurrency-safe because non-'Sendable' type 'Parser<[[String]]>' may have shared mutable state; this is an error in the Swift 6 language mode
34 |
35 | static let ending = optional(newline()).then(end())
36 | static let csv = many(line, separator: newline()).thenSkip(ending)
| |- warning: static property 'csv' is not concurrency-safe because non-'Sendable' type 'Parser<[[String]]>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'csv' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
37 |
38 | public static func parseCSV(input: String) throws -> [[String]] {
/host/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
[11/23] Compiling Sparse ContextDescribableError.swift
/host/spi-builder-workspace/Sources/Sparse/CSVParser.swift:13:16: warning: static property 'quote' is not concurrency-safe because non-'Sendable' type 'Parser<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
11 | public enum CSVParser {
12 |
13 | static let quote = character("\"")
| |- warning: static property 'quote' is not concurrency-safe because non-'Sendable' type 'Parser<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'quote' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 |
15 | static let illegalCellCharacters = CharacterSet.newlines.union(CharacterSet(charactersIn: ","))
/host/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/host/spi-builder-workspace/Sources/Sparse/CSVParser.swift:16:16: warning: static property 'unquotedCellCharacter' is not concurrency-safe because non-'Sendable' type 'Parser<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | static let illegalCellCharacters = CharacterSet.newlines.union(CharacterSet(charactersIn: ","))
16 | static let unquotedCellCharacter = characterNot(in: illegalCellCharacters)
| |- warning: static property 'unquotedCellCharacter' is not concurrency-safe because non-'Sendable' type 'Parser<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'unquotedCellCharacter' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
17 | .named("cell character")
18 | static let unquotedCell = many(unquotedCellCharacter).asString()
/host/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/host/spi-builder-workspace/Sources/Sparse/CSVParser.swift:18:16: warning: static property 'unquotedCell' is not concurrency-safe because non-'Sendable' type 'Parser<String>' may have shared mutable state; this is an error in the Swift 6 language mode
16 | static let unquotedCellCharacter = characterNot(in: illegalCellCharacters)
17 | .named("cell character")
18 | static let unquotedCell = many(unquotedCellCharacter).asString()
| |- warning: static property 'unquotedCell' is not concurrency-safe because non-'Sendable' type 'Parser<String>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'unquotedCell' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
19 | .map { $0.trimmingCharacters(in: .whitespaces) }
20 |
/host/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/host/spi-builder-workspace/Sources/Sparse/CSVParser.swift:21:16: warning: static property 'escapedQuote' is not concurrency-safe because non-'Sendable' type 'Parser<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
19 | .map { $0.trimmingCharacters(in: .whitespaces) }
20 |
21 | static let escapedQuote = quote.skipThen(quote)
| |- warning: static property 'escapedQuote' is not concurrency-safe because non-'Sendable' type 'Parser<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'escapedQuote' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
22 | .named("escaped quote")
23 | static let quotedCellCharacter = characterNot("\"")
/host/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/host/spi-builder-workspace/Sources/Sparse/CSVParser.swift:23:16: warning: static property 'quotedCellCharacter' is not concurrency-safe because non-'Sendable' type 'Parser<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
21 | static let escapedQuote = quote.skipThen(quote)
22 | .named("escaped quote")
23 | static let quotedCellCharacter = characterNot("\"")
| |- warning: static property 'quotedCellCharacter' is not concurrency-safe because non-'Sendable' type 'Parser<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'quotedCellCharacter' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 | .named("quoted cell character")
25 | .otherwise(escapedQuote)
/host/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/host/spi-builder-workspace/Sources/Sparse/CSVParser.swift:27:16: warning: static property 'quotedCell' is not concurrency-safe because non-'Sendable' type 'Parser<String>' may have shared mutable state; this is an error in the Swift 6 language mode
25 | .otherwise(escapedQuote)
26 |
27 | static let quotedCell = many(quotedCellCharacter, boundedBy: quote).asString()
| |- warning: static property 'quotedCell' is not concurrency-safe because non-'Sendable' type 'Parser<String>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'quotedCell' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
28 |
29 | static let cell = quotedCell.otherwise(unquotedCell)
/host/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/host/spi-builder-workspace/Sources/Sparse/CSVParser.swift:29:16: warning: static property 'cell' is not concurrency-safe because non-'Sendable' type 'Parser<String>' may have shared mutable state; this is an error in the Swift 6 language mode
27 | static let quotedCell = many(quotedCellCharacter, boundedBy: quote).asString()
28 |
29 | static let cell = quotedCell.otherwise(unquotedCell)
| |- warning: static property 'cell' is not concurrency-safe because non-'Sendable' type 'Parser<String>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'cell' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
30 |
31 | static let cellSeparator = whitespaces().then(character(",")).then(whitespaces())
/host/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/host/spi-builder-workspace/Sources/Sparse/CSVParser.swift:31:16: warning: static property 'cellSeparator' is not concurrency-safe because non-'Sendable' type 'Parser<(([Character], Character), [Character])>' may have shared mutable state; this is an error in the Swift 6 language mode
29 | static let cell = quotedCell.otherwise(unquotedCell)
30 |
31 | static let cellSeparator = whitespaces().then(character(",")).then(whitespaces())
| |- warning: static property 'cellSeparator' is not concurrency-safe because non-'Sendable' type 'Parser<(([Character], Character), [Character])>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'cellSeparator' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
32 | .named("cell separator")
33 | static let line = many(cell, separator: cellSeparator)
/host/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/host/spi-builder-workspace/Sources/Sparse/CSVParser.swift:33:16: warning: static property 'line' is not concurrency-safe because non-'Sendable' type 'Parser<[String]>' may have shared mutable state; this is an error in the Swift 6 language mode
31 | static let cellSeparator = whitespaces().then(character(",")).then(whitespaces())
32 | .named("cell separator")
33 | static let line = many(cell, separator: cellSeparator)
| |- warning: static property 'line' is not concurrency-safe because non-'Sendable' type 'Parser<[String]>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'line' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
34 |
35 | static let ending = optional(newline()).then(end())
/host/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/host/spi-builder-workspace/Sources/Sparse/CSVParser.swift:35:16: warning: static property 'ending' is not concurrency-safe because non-'Sendable' type 'Parser<(Character?, Void)>' may have shared mutable state; this is an error in the Swift 6 language mode
33 | static let line = many(cell, separator: cellSeparator)
34 |
35 | static let ending = optional(newline()).then(end())
| |- warning: static property 'ending' is not concurrency-safe because non-'Sendable' type 'Parser<(Character?, Void)>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'ending' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
36 | static let csv = many(line, separator: newline()).thenSkip(ending)
37 |
/host/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/host/spi-builder-workspace/Sources/Sparse/CSVParser.swift:36:16: warning: static property 'csv' is not concurrency-safe because non-'Sendable' type 'Parser<[[String]]>' may have shared mutable state; this is an error in the Swift 6 language mode
34 |
35 | static let ending = optional(newline()).then(end())
36 | static let csv = many(line, separator: newline()).thenSkip(ending)
| |- warning: static property 'csv' is not concurrency-safe because non-'Sendable' type 'Parser<[[String]]>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'csv' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
37 |
38 | public static func parseCSV(input: String) throws -> [[String]] {
/host/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
[12/23] Compiling Sparse IgnoreError.swift
/host/spi-builder-workspace/Sources/Sparse/IgnoreError.swift:12:7: warning: non-final class 'IgnoreError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
10 | /// Replaces an error that has already been captured in the stream, to avoid
11 | /// capturing the same error at every level of the parser tree.
12 | class IgnoreError: Error { }
| `- warning: non-final class 'IgnoreError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
13 |
14 | let ignoreError = IgnoreError()
[13/23] Compiling Sparse InfiniteLoopError.swift
/host/spi-builder-workspace/Sources/Sparse/IgnoreError.swift:12:7: warning: non-final class 'IgnoreError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
10 | /// Replaces an error that has already been captured in the stream, to avoid
11 | /// capturing the same error at every level of the parser tree.
12 | class IgnoreError: Error { }
| `- warning: non-final class 'IgnoreError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
13 |
14 | let ignoreError = IgnoreError()
[14/23] Compiling Sparse Parser.swift
/host/spi-builder-workspace/Sources/Sparse/IgnoreError.swift:12:7: warning: non-final class 'IgnoreError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
10 | /// Replaces an error that has already been captured in the stream, to avoid
11 | /// capturing the same error at every level of the parser tree.
12 | class IgnoreError: Error { }
| `- warning: non-final class 'IgnoreError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
13 |
14 | let ignoreError = IgnoreError()
[15/23] Compiling Sparse Parser_name.swift
[16/23] Compiling Sparse Parser_run.swift
[17/23] Compiling Sparse ParsingContext.swift
[18/23] Compiling Sparse PositionedInput.swift
[19/23] Compiling Sparse Stream.swift
[20/23] Compiling Sparse StringParsers.swift
[21/23] Compiling Sparse ContextualizedError.swift
/host/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:14:16: warning: static property 'wss' is not concurrency-safe because non-'Sendable' type 'Parser<[Character]>' may have shared mutable state; this is an error in the Swift 6 language mode
12 |
13 | // Primitives
14 | static let wss = whitespaces()
| |- warning: static property 'wss' is not concurrency-safe because non-'Sendable' type 'Parser<[Character]>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'wss' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 | static let wsnl = whitespaceOrNewline()
16 | static let wsnls = whitespacesOrNewlines()
/host/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/host/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:15:16: warning: static property 'wsnl' is not concurrency-safe because non-'Sendable' type 'Parser<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
13 | // Primitives
14 | static let wss = whitespaces()
15 | static let wsnl = whitespaceOrNewline()
| |- warning: static property 'wsnl' is not concurrency-safe because non-'Sendable' type 'Parser<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'wsnl' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 | static let wsnls = whitespacesOrNewlines()
17 | static let wss1nl = wss.then(atMost(1, nl))
/host/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/host/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:16:16: warning: static property 'wsnls' is not concurrency-safe because non-'Sendable' type 'Parser<[Character]>' may have shared mutable state; this is an error in the Swift 6 language mode
14 | static let wss = whitespaces()
15 | static let wsnl = whitespaceOrNewline()
16 | static let wsnls = whitespacesOrNewlines()
| |- warning: static property 'wsnls' is not concurrency-safe because non-'Sendable' type 'Parser<[Character]>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'wsnls' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
17 | static let wss1nl = wss.then(atMost(1, nl))
18 | static let nl = newline()
/host/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/host/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:17:16: warning: static property 'wss1nl' is not concurrency-safe because non-'Sendable' type 'Parser<([Character], [Character])>' may have shared mutable state; this is an error in the Swift 6 language mode
15 | static let wsnl = whitespaceOrNewline()
16 | static let wsnls = whitespacesOrNewlines()
17 | static let wss1nl = wss.then(atMost(1, nl))
| |- warning: static property 'wss1nl' is not concurrency-safe because non-'Sendable' type 'Parser<([Character], [Character])>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'wss1nl' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 | static let nl = newline()
19 | static let qm = character("\"")
/host/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/host/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:18:16: warning: static property 'nl' is not concurrency-safe because non-'Sendable' type 'Parser<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
16 | static let wsnls = whitespacesOrNewlines()
17 | static let wss1nl = wss.then(atMost(1, nl))
18 | static let nl = newline()
| |- warning: static property 'nl' is not concurrency-safe because non-'Sendable' type 'Parser<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'nl' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
19 | static let qm = character("\"")
20 | static let sc = character(";")
/host/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/host/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:19:16: warning: static property 'qm' is not concurrency-safe because non-'Sendable' type 'Parser<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
17 | static let wss1nl = wss.then(atMost(1, nl))
18 | static let nl = newline()
19 | static let qm = character("\"")
| |- warning: static property 'qm' is not concurrency-safe because non-'Sendable' type 'Parser<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'qm' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
20 | static let sc = character(";")
21 |
/host/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/host/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:20:16: warning: static property 'sc' is not concurrency-safe because non-'Sendable' type 'Parser<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
18 | static let nl = newline()
19 | static let qm = character("\"")
20 | static let sc = character(";")
| |- warning: static property 'sc' is not concurrency-safe because non-'Sendable' type 'Parser<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'sc' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 |
22 | // Escapes
/host/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/host/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:23:16: warning: static property 'escapableCharacter' is not concurrency-safe because non-'Sendable' type 'Parser<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
21 |
22 | // Escapes
23 | static let escapableCharacter = characterNot("\\").otherwise(escapedSpecial)
| |- warning: static property 'escapableCharacter' is not concurrency-safe because non-'Sendable' type 'Parser<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'escapableCharacter' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 | static let escapedSpecial: Parser<Character> = character("\\").skipThen(oneOf([
25 | character("\"").skipThen(pure("\"")),
/host/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/host/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:24:16: warning: static property 'escapedSpecial' is not concurrency-safe because non-'Sendable' type 'Parser<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
22 | // Escapes
23 | static let escapableCharacter = characterNot("\\").otherwise(escapedSpecial)
24 | static let escapedSpecial: Parser<Character> = character("\\").skipThen(oneOf([
| |- warning: static property 'escapedSpecial' is not concurrency-safe because non-'Sendable' type 'Parser<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'escapedSpecial' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
25 | character("\"").skipThen(pure("\"")),
26 | character("'").skipThen(pure("'")),
/host/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/host/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:35:16: warning: static property 'ilcStart' is not concurrency-safe because non-'Sendable' type 'Parser<[Character]>' may have shared mutable state; this is an error in the Swift 6 language mode
33 |
34 | // Comments
35 | static let ilcStart = atLeast(2, character("/")).thenSkip(wss)
| |- warning: static property 'ilcStart' is not concurrency-safe because non-'Sendable' type 'Parser<[Character]>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'ilcStart' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
36 | static let ilcStop = nl
37 |
/host/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/host/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:36:16: warning: static property 'ilcStop' is not concurrency-safe because non-'Sendable' type 'Parser<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
34 | // Comments
35 | static let ilcStart = atLeast(2, character("/")).thenSkip(wss)
36 | static let ilcStop = nl
| |- warning: static property 'ilcStop' is not concurrency-safe because non-'Sendable' type 'Parser<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'ilcStop' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
37 |
38 | static let mlcStart = string("/*").thenSkip(many(character("*")))
/host/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/host/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:38:16: warning: static property 'mlcStart' is not concurrency-safe because non-'Sendable' type 'Parser<String>' may have shared mutable state; this is an error in the Swift 6 language mode
36 | static let ilcStop = nl
37 |
38 | static let mlcStart = string("/*").thenSkip(many(character("*")))
| |- warning: static property 'mlcStart' is not concurrency-safe because non-'Sendable' type 'Parser<String>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'mlcStart' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
39 | static let mlcStop = string("*/")
40 |
/host/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/host/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:39:16: warning: static property 'mlcStop' is not concurrency-safe because non-'Sendable' type 'Parser<String>' may have shared mutable state; this is an error in the Swift 6 language mode
37 |
38 | static let mlcStart = string("/*").thenSkip(many(character("*")))
39 | static let mlcStop = string("*/")
| |- warning: static property 'mlcStop' is not concurrency-safe because non-'Sendable' type 'Parser<String>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'mlcStop' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
40 |
41 | static let mlc = many(anyCharacter().butNot(mlcStop), prefix: mlcStart, suffix: mlcStop).asString()
/host/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/host/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:41:16: warning: static property 'mlc' is not concurrency-safe because non-'Sendable' type 'Parser<String>' may have shared mutable state; this is an error in the Swift 6 language mode
39 | static let mlcStop = string("*/")
40 |
41 | static let mlc = many(anyCharacter().butNot(mlcStop), prefix: mlcStart, suffix: mlcStop).asString()
| |- warning: static property 'mlc' is not concurrency-safe because non-'Sendable' type 'Parser<String>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'mlc' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
42 | static let ilc = many(anyCharacter().butNot(ilcStop), prefix: ilcStart, suffix: ilcStop).asString()
43 |
/host/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/host/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:42:16: warning: static property 'ilc' is not concurrency-safe because non-'Sendable' type 'Parser<String>' may have shared mutable state; this is an error in the Swift 6 language mode
40 |
41 | static let mlc = many(anyCharacter().butNot(mlcStop), prefix: mlcStart, suffix: mlcStop).asString()
42 | static let ilc = many(anyCharacter().butNot(ilcStop), prefix: ilcStart, suffix: ilcStop).asString()
| |- warning: static property 'ilc' is not concurrency-safe because non-'Sendable' type 'Parser<String>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'ilc' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
43 |
44 | static let comment = mlc.otherwise(ilc).thenSkip(wss1nl).named("comment")
/host/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/host/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:44:16: warning: static property 'comment' is not concurrency-safe because non-'Sendable' type 'Parser<String>' may have shared mutable state; this is an error in the Swift 6 language mode
42 | static let ilc = many(anyCharacter().butNot(ilcStop), prefix: ilcStart, suffix: ilcStop).asString()
43 |
44 | static let comment = mlc.otherwise(ilc).thenSkip(wss1nl).named("comment")
| |- warning: static property 'comment' is not concurrency-safe because non-'Sendable' type 'Parser<String>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'comment' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
45 | static let comments = many(comment)
46 | static let inlineComment = ilc.thenSkip(wss1nl).named("in-line comment")
/host/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/host/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:45:16: warning: static property 'comments' is not concurrency-safe because non-'Sendable' type 'Parser<[String]>' may have shared mutable state; this is an error in the Swift 6 language mode
43 |
44 | static let comment = mlc.otherwise(ilc).thenSkip(wss1nl).named("comment")
45 | static let comments = many(comment)
| |- warning: static property 'comments' is not concurrency-safe because non-'Sendable' type 'Parser<[String]>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'comments' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
46 | static let inlineComment = ilc.thenSkip(wss1nl).named("in-line comment")
47 |
/host/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/host/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:46:16: warning: static property 'inlineComment' is not concurrency-safe because non-'Sendable' type 'Parser<String>' may have shared mutable state; this is an error in the Swift 6 language mode
44 | static let comment = mlc.otherwise(ilc).thenSkip(wss1nl).named("comment")
45 | static let comments = many(comment)
46 | static let inlineComment = ilc.thenSkip(wss1nl).named("in-line comment")
| |- warning: static property 'inlineComment' is not concurrency-safe because non-'Sendable' type 'Parser<String>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'inlineComment' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
47 |
48 | static let orphanedComment = atLeastOne(comment).then(wss1nl)
/host/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/host/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:48:16: warning: static property 'orphanedComment' is not concurrency-safe because non-'Sendable' type 'Parser<([String], ([Character], [Character]))>' may have shared mutable state; this is an error in the Swift 6 language mode
46 | static let inlineComment = ilc.thenSkip(wss1nl).named("in-line comment")
47 |
48 | static let orphanedComment = atLeastOne(comment).then(wss1nl)
| |- warning: static property 'orphanedComment' is not concurrency-safe because non-'Sendable' type 'Parser<([String], ([Character], [Character]))>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'orphanedComment' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
49 |
50 | // Key-value pairs
/host/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/host/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:51:16: warning: static property 'text' is not concurrency-safe because non-'Sendable' type 'Parser<String>' may have shared mutable state; this is an error in the Swift 6 language mode
49 |
50 | // Key-value pairs
51 | static let text = many(escapableCharacter.butNot(qm), boundedBy: qm).asString().named("text")
| |- warning: static property 'text' is not concurrency-safe because non-'Sendable' type 'Parser<String>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'text' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
52 | static let key = text.named("key")
53 | static let translation = text.named("translation")
/host/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/host/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:52:16: warning: static property 'key' is not concurrency-safe because non-'Sendable' type 'Parser<String>' may have shared mutable state; this is an error in the Swift 6 language mode
50 | // Key-value pairs
51 | static let text = many(escapableCharacter.butNot(qm), boundedBy: qm).asString().named("text")
52 | static let key = text.named("key")
| |- warning: static property 'key' is not concurrency-safe because non-'Sendable' type 'Parser<String>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'key' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
53 | static let translation = text.named("translation")
54 | static let separator = wss.skipThen(character("=")).thenSkip(wss).named("separator")
/host/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/host/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:53:16: warning: static property 'translation' is not concurrency-safe because non-'Sendable' type 'Parser<String>' may have shared mutable state; this is an error in the Swift 6 language mode
51 | static let text = many(escapableCharacter.butNot(qm), boundedBy: qm).asString().named("text")
52 | static let key = text.named("key")
53 | static let translation = text.named("translation")
| |- warning: static property 'translation' is not concurrency-safe because non-'Sendable' type 'Parser<String>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'translation' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
54 | static let separator = wss.skipThen(character("=")).thenSkip(wss).named("separator")
55 | static let kvp = key.thenSkip(separator).then(translation).thenSkip(sc).named("pair")
/host/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/host/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:54:16: warning: static property 'separator' is not concurrency-safe because non-'Sendable' type 'Parser<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
52 | static let key = text.named("key")
53 | static let translation = text.named("translation")
54 | static let separator = wss.skipThen(character("=")).thenSkip(wss).named("separator")
| |- warning: static property 'separator' is not concurrency-safe because non-'Sendable' type 'Parser<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'separator' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
55 | static let kvp = key.thenSkip(separator).then(translation).thenSkip(sc).named("pair")
56 |
/host/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/host/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:55:16: warning: static property 'kvp' is not concurrency-safe because non-'Sendable' type 'Parser<(String, String)>' may have shared mutable state; this is an error in the Swift 6 language mode
53 | static let translation = text.named("translation")
54 | static let separator = wss.skipThen(character("=")).thenSkip(wss).named("separator")
55 | static let kvp = key.thenSkip(separator).then(translation).thenSkip(sc).named("pair")
| |- warning: static property 'kvp' is not concurrency-safe because non-'Sendable' type 'Parser<(String, String)>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'kvp' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
56 |
57 | // Entries
/host/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/host/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:58:16: warning: static property 'entryTuple' is not concurrency-safe because non-'Sendable' type 'Parser<([String], (String, String), String?)>' may have shared mutable state; this is an error in the Swift 6 language mode
56 |
57 | // Entries
58 | static let entryTuple = comments.then(kvp).thenSkip(wss).then(optional(inlineComment)).thenSkip(wsnls).map(flatten)
| |- warning: static property 'entryTuple' is not concurrency-safe because non-'Sendable' type 'Parser<([String], (String, String), String?)>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'entryTuple' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
59 | static let entryObject = entryTuple.map(createEntry).named("entry")
60 | static let entries = many(entryObject.otherwiseSkip(orphanedComment)).map { $0.compactMap{$0} }
/host/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/host/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:59:16: warning: static property 'entryObject' is not concurrency-safe because non-'Sendable' type 'Parser<DotStringsEntry>' may have shared mutable state; this is an error in the Swift 6 language mode
57 | // Entries
58 | static let entryTuple = comments.then(kvp).thenSkip(wss).then(optional(inlineComment)).thenSkip(wsnls).map(flatten)
59 | static let entryObject = entryTuple.map(createEntry).named("entry")
| |- warning: static property 'entryObject' is not concurrency-safe because non-'Sendable' type 'Parser<DotStringsEntry>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'entryObject' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
60 | static let entries = many(entryObject.otherwiseSkip(orphanedComment)).map { $0.compactMap{$0} }
61 |
/host/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/host/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:60:16: warning: static property 'entries' is not concurrency-safe because non-'Sendable' type 'Parser<[DotStringsEntry]>' may have shared mutable state; this is an error in the Swift 6 language mode
58 | static let entryTuple = comments.then(kvp).thenSkip(wss).then(optional(inlineComment)).thenSkip(wsnls).map(flatten)
59 | static let entryObject = entryTuple.map(createEntry).named("entry")
60 | static let entries = many(entryObject.otherwiseSkip(orphanedComment)).map { $0.compactMap{$0} }
| |- warning: static property 'entries' is not concurrency-safe because non-'Sendable' type 'Parser<[DotStringsEntry]>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'entries' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
61 |
62 | // Strings Parser
/host/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/host/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:63:16: warning: static property 'stringsParser' is not concurrency-safe because non-'Sendable' type 'Parser<[DotStringsEntry]>' may have shared mutable state; this is an error in the Swift 6 language mode
61 |
62 | // Strings Parser
63 | static let stringsParser = wsnls.skipThen(entries).thenSkip(end())
| |- warning: static property 'stringsParser' is not concurrency-safe because non-'Sendable' type 'Parser<[DotStringsEntry]>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'stringsParser' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
64 |
65 | public static func parseStrings(input: String) throws -> [DotStringsEntry] {
/host/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
[22/23] Compiling Sparse DotStringsEntry.swift
/host/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:14:16: warning: static property 'wss' is not concurrency-safe because non-'Sendable' type 'Parser<[Character]>' may have shared mutable state; this is an error in the Swift 6 language mode
12 |
13 | // Primitives
14 | static let wss = whitespaces()
| |- warning: static property 'wss' is not concurrency-safe because non-'Sendable' type 'Parser<[Character]>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'wss' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 | static let wsnl = whitespaceOrNewline()
16 | static let wsnls = whitespacesOrNewlines()
/host/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/host/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:15:16: warning: static property 'wsnl' is not concurrency-safe because non-'Sendable' type 'Parser<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
13 | // Primitives
14 | static let wss = whitespaces()
15 | static let wsnl = whitespaceOrNewline()
| |- warning: static property 'wsnl' is not concurrency-safe because non-'Sendable' type 'Parser<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'wsnl' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 | static let wsnls = whitespacesOrNewlines()
17 | static let wss1nl = wss.then(atMost(1, nl))
/host/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/host/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:16:16: warning: static property 'wsnls' is not concurrency-safe because non-'Sendable' type 'Parser<[Character]>' may have shared mutable state; this is an error in the Swift 6 language mode
14 | static let wss = whitespaces()
15 | static let wsnl = whitespaceOrNewline()
16 | static let wsnls = whitespacesOrNewlines()
| |- warning: static property 'wsnls' is not concurrency-safe because non-'Sendable' type 'Parser<[Character]>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'wsnls' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
17 | static let wss1nl = wss.then(atMost(1, nl))
18 | static let nl = newline()
/host/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/host/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:17:16: warning: static property 'wss1nl' is not concurrency-safe because non-'Sendable' type 'Parser<([Character], [Character])>' may have shared mutable state; this is an error in the Swift 6 language mode
15 | static let wsnl = whitespaceOrNewline()
16 | static let wsnls = whitespacesOrNewlines()
17 | static let wss1nl = wss.then(atMost(1, nl))
| |- warning: static property 'wss1nl' is not concurrency-safe because non-'Sendable' type 'Parser<([Character], [Character])>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'wss1nl' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 | static let nl = newline()
19 | static let qm = character("\"")
/host/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/host/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:18:16: warning: static property 'nl' is not concurrency-safe because non-'Sendable' type 'Parser<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
16 | static let wsnls = whitespacesOrNewlines()
17 | static let wss1nl = wss.then(atMost(1, nl))
18 | static let nl = newline()
| |- warning: static property 'nl' is not concurrency-safe because non-'Sendable' type 'Parser<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'nl' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
19 | static let qm = character("\"")
20 | static let sc = character(";")
/host/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/host/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:19:16: warning: static property 'qm' is not concurrency-safe because non-'Sendable' type 'Parser<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
17 | static let wss1nl = wss.then(atMost(1, nl))
18 | static let nl = newline()
19 | static let qm = character("\"")
| |- warning: static property 'qm' is not concurrency-safe because non-'Sendable' type 'Parser<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'qm' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
20 | static let sc = character(";")
21 |
/host/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/host/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:20:16: warning: static property 'sc' is not concurrency-safe because non-'Sendable' type 'Parser<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
18 | static let nl = newline()
19 | static let qm = character("\"")
20 | static let sc = character(";")
| |- warning: static property 'sc' is not concurrency-safe because non-'Sendable' type 'Parser<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'sc' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 |
22 | // Escapes
/host/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/host/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:23:16: warning: static property 'escapableCharacter' is not concurrency-safe because non-'Sendable' type 'Parser<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
21 |
22 | // Escapes
23 | static let escapableCharacter = characterNot("\\").otherwise(escapedSpecial)
| |- warning: static property 'escapableCharacter' is not concurrency-safe because non-'Sendable' type 'Parser<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'escapableCharacter' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 | static let escapedSpecial: Parser<Character> = character("\\").skipThen(oneOf([
25 | character("\"").skipThen(pure("\"")),
/host/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/host/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:24:16: warning: static property 'escapedSpecial' is not concurrency-safe because non-'Sendable' type 'Parser<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
22 | // Escapes
23 | static let escapableCharacter = characterNot("\\").otherwise(escapedSpecial)
24 | static let escapedSpecial: Parser<Character> = character("\\").skipThen(oneOf([
| |- warning: static property 'escapedSpecial' is not concurrency-safe because non-'Sendable' type 'Parser<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'escapedSpecial' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
25 | character("\"").skipThen(pure("\"")),
26 | character("'").skipThen(pure("'")),
/host/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/host/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:35:16: warning: static property 'ilcStart' is not concurrency-safe because non-'Sendable' type 'Parser<[Character]>' may have shared mutable state; this is an error in the Swift 6 language mode
33 |
34 | // Comments
35 | static let ilcStart = atLeast(2, character("/")).thenSkip(wss)
| |- warning: static property 'ilcStart' is not concurrency-safe because non-'Sendable' type 'Parser<[Character]>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'ilcStart' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
36 | static let ilcStop = nl
37 |
/host/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/host/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:36:16: warning: static property 'ilcStop' is not concurrency-safe because non-'Sendable' type 'Parser<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
34 | // Comments
35 | static let ilcStart = atLeast(2, character("/")).thenSkip(wss)
36 | static let ilcStop = nl
| |- warning: static property 'ilcStop' is not concurrency-safe because non-'Sendable' type 'Parser<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'ilcStop' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
37 |
38 | static let mlcStart = string("/*").thenSkip(many(character("*")))
/host/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/host/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:38:16: warning: static property 'mlcStart' is not concurrency-safe because non-'Sendable' type 'Parser<String>' may have shared mutable state; this is an error in the Swift 6 language mode
36 | static let ilcStop = nl
37 |
38 | static let mlcStart = string("/*").thenSkip(many(character("*")))
| |- warning: static property 'mlcStart' is not concurrency-safe because non-'Sendable' type 'Parser<String>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'mlcStart' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
39 | static let mlcStop = string("*/")
40 |
/host/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/host/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:39:16: warning: static property 'mlcStop' is not concurrency-safe because non-'Sendable' type 'Parser<String>' may have shared mutable state; this is an error in the Swift 6 language mode
37 |
38 | static let mlcStart = string("/*").thenSkip(many(character("*")))
39 | static let mlcStop = string("*/")
| |- warning: static property 'mlcStop' is not concurrency-safe because non-'Sendable' type 'Parser<String>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'mlcStop' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
40 |
41 | static let mlc = many(anyCharacter().butNot(mlcStop), prefix: mlcStart, suffix: mlcStop).asString()
/host/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/host/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:41:16: warning: static property 'mlc' is not concurrency-safe because non-'Sendable' type 'Parser<String>' may have shared mutable state; this is an error in the Swift 6 language mode
39 | static let mlcStop = string("*/")
40 |
41 | static let mlc = many(anyCharacter().butNot(mlcStop), prefix: mlcStart, suffix: mlcStop).asString()
| |- warning: static property 'mlc' is not concurrency-safe because non-'Sendable' type 'Parser<String>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'mlc' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
42 | static let ilc = many(anyCharacter().butNot(ilcStop), prefix: ilcStart, suffix: ilcStop).asString()
43 |
/host/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/host/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:42:16: warning: static property 'ilc' is not concurrency-safe because non-'Sendable' type 'Parser<String>' may have shared mutable state; this is an error in the Swift 6 language mode
40 |
41 | static let mlc = many(anyCharacter().butNot(mlcStop), prefix: mlcStart, suffix: mlcStop).asString()
42 | static let ilc = many(anyCharacter().butNot(ilcStop), prefix: ilcStart, suffix: ilcStop).asString()
| |- warning: static property 'ilc' is not concurrency-safe because non-'Sendable' type 'Parser<String>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'ilc' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
43 |
44 | static let comment = mlc.otherwise(ilc).thenSkip(wss1nl).named("comment")
/host/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/host/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:44:16: warning: static property 'comment' is not concurrency-safe because non-'Sendable' type 'Parser<String>' may have shared mutable state; this is an error in the Swift 6 language mode
42 | static let ilc = many(anyCharacter().butNot(ilcStop), prefix: ilcStart, suffix: ilcStop).asString()
43 |
44 | static let comment = mlc.otherwise(ilc).thenSkip(wss1nl).named("comment")
| |- warning: static property 'comment' is not concurrency-safe because non-'Sendable' type 'Parser<String>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'comment' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
45 | static let comments = many(comment)
46 | static let inlineComment = ilc.thenSkip(wss1nl).named("in-line comment")
/host/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/host/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:45:16: warning: static property 'comments' is not concurrency-safe because non-'Sendable' type 'Parser<[String]>' may have shared mutable state; this is an error in the Swift 6 language mode
43 |
44 | static let comment = mlc.otherwise(ilc).thenSkip(wss1nl).named("comment")
45 | static let comments = many(comment)
| |- warning: static property 'comments' is not concurrency-safe because non-'Sendable' type 'Parser<[String]>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'comments' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
46 | static let inlineComment = ilc.thenSkip(wss1nl).named("in-line comment")
47 |
/host/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/host/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:46:16: warning: static property 'inlineComment' is not concurrency-safe because non-'Sendable' type 'Parser<String>' may have shared mutable state; this is an error in the Swift 6 language mode
44 | static let comment = mlc.otherwise(ilc).thenSkip(wss1nl).named("comment")
45 | static let comments = many(comment)
46 | static let inlineComment = ilc.thenSkip(wss1nl).named("in-line comment")
| |- warning: static property 'inlineComment' is not concurrency-safe because non-'Sendable' type 'Parser<String>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'inlineComment' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
47 |
48 | static let orphanedComment = atLeastOne(comment).then(wss1nl)
/host/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/host/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:48:16: warning: static property 'orphanedComment' is not concurrency-safe because non-'Sendable' type 'Parser<([String], ([Character], [Character]))>' may have shared mutable state; this is an error in the Swift 6 language mode
46 | static let inlineComment = ilc.thenSkip(wss1nl).named("in-line comment")
47 |
48 | static let orphanedComment = atLeastOne(comment).then(wss1nl)
| |- warning: static property 'orphanedComment' is not concurrency-safe because non-'Sendable' type 'Parser<([String], ([Character], [Character]))>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'orphanedComment' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
49 |
50 | // Key-value pairs
/host/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/host/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:51:16: warning: static property 'text' is not concurrency-safe because non-'Sendable' type 'Parser<String>' may have shared mutable state; this is an error in the Swift 6 language mode
49 |
50 | // Key-value pairs
51 | static let text = many(escapableCharacter.butNot(qm), boundedBy: qm).asString().named("text")
| |- warning: static property 'text' is not concurrency-safe because non-'Sendable' type 'Parser<String>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'text' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
52 | static let key = text.named("key")
53 | static let translation = text.named("translation")
/host/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/host/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:52:16: warning: static property 'key' is not concurrency-safe because non-'Sendable' type 'Parser<String>' may have shared mutable state; this is an error in the Swift 6 language mode
50 | // Key-value pairs
51 | static let text = many(escapableCharacter.butNot(qm), boundedBy: qm).asString().named("text")
52 | static let key = text.named("key")
| |- warning: static property 'key' is not concurrency-safe because non-'Sendable' type 'Parser<String>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'key' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
53 | static let translation = text.named("translation")
54 | static let separator = wss.skipThen(character("=")).thenSkip(wss).named("separator")
/host/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/host/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:53:16: warning: static property 'translation' is not concurrency-safe because non-'Sendable' type 'Parser<String>' may have shared mutable state; this is an error in the Swift 6 language mode
51 | static let text = many(escapableCharacter.butNot(qm), boundedBy: qm).asString().named("text")
52 | static let key = text.named("key")
53 | static let translation = text.named("translation")
| |- warning: static property 'translation' is not concurrency-safe because non-'Sendable' type 'Parser<String>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'translation' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
54 | static let separator = wss.skipThen(character("=")).thenSkip(wss).named("separator")
55 | static let kvp = key.thenSkip(separator).then(translation).thenSkip(sc).named("pair")
/host/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/host/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:54:16: warning: static property 'separator' is not concurrency-safe because non-'Sendable' type 'Parser<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
52 | static let key = text.named("key")
53 | static let translation = text.named("translation")
54 | static let separator = wss.skipThen(character("=")).thenSkip(wss).named("separator")
| |- warning: static property 'separator' is not concurrency-safe because non-'Sendable' type 'Parser<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'separator' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
55 | static let kvp = key.thenSkip(separator).then(translation).thenSkip(sc).named("pair")
56 |
/host/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/host/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:55:16: warning: static property 'kvp' is not concurrency-safe because non-'Sendable' type 'Parser<(String, String)>' may have shared mutable state; this is an error in the Swift 6 language mode
53 | static let translation = text.named("translation")
54 | static let separator = wss.skipThen(character("=")).thenSkip(wss).named("separator")
55 | static let kvp = key.thenSkip(separator).then(translation).thenSkip(sc).named("pair")
| |- warning: static property 'kvp' is not concurrency-safe because non-'Sendable' type 'Parser<(String, String)>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'kvp' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
56 |
57 | // Entries
/host/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/host/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:58:16: warning: static property 'entryTuple' is not concurrency-safe because non-'Sendable' type 'Parser<([String], (String, String), String?)>' may have shared mutable state; this is an error in the Swift 6 language mode
56 |
57 | // Entries
58 | static let entryTuple = comments.then(kvp).thenSkip(wss).then(optional(inlineComment)).thenSkip(wsnls).map(flatten)
| |- warning: static property 'entryTuple' is not concurrency-safe because non-'Sendable' type 'Parser<([String], (String, String), String?)>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'entryTuple' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
59 | static let entryObject = entryTuple.map(createEntry).named("entry")
60 | static let entries = many(entryObject.otherwiseSkip(orphanedComment)).map { $0.compactMap{$0} }
/host/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/host/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:59:16: warning: static property 'entryObject' is not concurrency-safe because non-'Sendable' type 'Parser<DotStringsEntry>' may have shared mutable state; this is an error in the Swift 6 language mode
57 | // Entries
58 | static let entryTuple = comments.then(kvp).thenSkip(wss).then(optional(inlineComment)).thenSkip(wsnls).map(flatten)
59 | static let entryObject = entryTuple.map(createEntry).named("entry")
| |- warning: static property 'entryObject' is not concurrency-safe because non-'Sendable' type 'Parser<DotStringsEntry>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'entryObject' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
60 | static let entries = many(entryObject.otherwiseSkip(orphanedComment)).map { $0.compactMap{$0} }
61 |
/host/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/host/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:60:16: warning: static property 'entries' is not concurrency-safe because non-'Sendable' type 'Parser<[DotStringsEntry]>' may have shared mutable state; this is an error in the Swift 6 language mode
58 | static let entryTuple = comments.then(kvp).thenSkip(wss).then(optional(inlineComment)).thenSkip(wsnls).map(flatten)
59 | static let entryObject = entryTuple.map(createEntry).named("entry")
60 | static let entries = many(entryObject.otherwiseSkip(orphanedComment)).map { $0.compactMap{$0} }
| |- warning: static property 'entries' is not concurrency-safe because non-'Sendable' type 'Parser<[DotStringsEntry]>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'entries' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
61 |
62 | // Strings Parser
/host/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/host/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:63:16: warning: static property 'stringsParser' is not concurrency-safe because non-'Sendable' type 'Parser<[DotStringsEntry]>' may have shared mutable state; this is an error in the Swift 6 language mode
61 |
62 | // Strings Parser
63 | static let stringsParser = wsnls.skipThen(entries).thenSkip(end())
| |- warning: static property 'stringsParser' is not concurrency-safe because non-'Sendable' type 'Parser<[DotStringsEntry]>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'stringsParser' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
64 |
65 | public static func parseStrings(input: String) throws -> [DotStringsEntry] {
/host/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
[23/23] Compiling Sparse DotStringsParser.swift
/host/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:14:16: warning: static property 'wss' is not concurrency-safe because non-'Sendable' type 'Parser<[Character]>' may have shared mutable state; this is an error in the Swift 6 language mode
12 |
13 | // Primitives
14 | static let wss = whitespaces()
| |- warning: static property 'wss' is not concurrency-safe because non-'Sendable' type 'Parser<[Character]>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'wss' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 | static let wsnl = whitespaceOrNewline()
16 | static let wsnls = whitespacesOrNewlines()
/host/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/host/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:15:16: warning: static property 'wsnl' is not concurrency-safe because non-'Sendable' type 'Parser<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
13 | // Primitives
14 | static let wss = whitespaces()
15 | static let wsnl = whitespaceOrNewline()
| |- warning: static property 'wsnl' is not concurrency-safe because non-'Sendable' type 'Parser<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'wsnl' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 | static let wsnls = whitespacesOrNewlines()
17 | static let wss1nl = wss.then(atMost(1, nl))
/host/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/host/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:16:16: warning: static property 'wsnls' is not concurrency-safe because non-'Sendable' type 'Parser<[Character]>' may have shared mutable state; this is an error in the Swift 6 language mode
14 | static let wss = whitespaces()
15 | static let wsnl = whitespaceOrNewline()
16 | static let wsnls = whitespacesOrNewlines()
| |- warning: static property 'wsnls' is not concurrency-safe because non-'Sendable' type 'Parser<[Character]>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'wsnls' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
17 | static let wss1nl = wss.then(atMost(1, nl))
18 | static let nl = newline()
/host/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/host/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:17:16: warning: static property 'wss1nl' is not concurrency-safe because non-'Sendable' type 'Parser<([Character], [Character])>' may have shared mutable state; this is an error in the Swift 6 language mode
15 | static let wsnl = whitespaceOrNewline()
16 | static let wsnls = whitespacesOrNewlines()
17 | static let wss1nl = wss.then(atMost(1, nl))
| |- warning: static property 'wss1nl' is not concurrency-safe because non-'Sendable' type 'Parser<([Character], [Character])>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'wss1nl' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 | static let nl = newline()
19 | static let qm = character("\"")
/host/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/host/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:18:16: warning: static property 'nl' is not concurrency-safe because non-'Sendable' type 'Parser<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
16 | static let wsnls = whitespacesOrNewlines()
17 | static let wss1nl = wss.then(atMost(1, nl))
18 | static let nl = newline()
| |- warning: static property 'nl' is not concurrency-safe because non-'Sendable' type 'Parser<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'nl' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
19 | static let qm = character("\"")
20 | static let sc = character(";")
/host/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/host/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:19:16: warning: static property 'qm' is not concurrency-safe because non-'Sendable' type 'Parser<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
17 | static let wss1nl = wss.then(atMost(1, nl))
18 | static let nl = newline()
19 | static let qm = character("\"")
| |- warning: static property 'qm' is not concurrency-safe because non-'Sendable' type 'Parser<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'qm' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
20 | static let sc = character(";")
21 |
/host/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/host/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:20:16: warning: static property 'sc' is not concurrency-safe because non-'Sendable' type 'Parser<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
18 | static let nl = newline()
19 | static let qm = character("\"")
20 | static let sc = character(";")
| |- warning: static property 'sc' is not concurrency-safe because non-'Sendable' type 'Parser<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'sc' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 |
22 | // Escapes
/host/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/host/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:23:16: warning: static property 'escapableCharacter' is not concurrency-safe because non-'Sendable' type 'Parser<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
21 |
22 | // Escapes
23 | static let escapableCharacter = characterNot("\\").otherwise(escapedSpecial)
| |- warning: static property 'escapableCharacter' is not concurrency-safe because non-'Sendable' type 'Parser<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'escapableCharacter' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 | static let escapedSpecial: Parser<Character> = character("\\").skipThen(oneOf([
25 | character("\"").skipThen(pure("\"")),
/host/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/host/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:24:16: warning: static property 'escapedSpecial' is not concurrency-safe because non-'Sendable' type 'Parser<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
22 | // Escapes
23 | static let escapableCharacter = characterNot("\\").otherwise(escapedSpecial)
24 | static let escapedSpecial: Parser<Character> = character("\\").skipThen(oneOf([
| |- warning: static property 'escapedSpecial' is not concurrency-safe because non-'Sendable' type 'Parser<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'escapedSpecial' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
25 | character("\"").skipThen(pure("\"")),
26 | character("'").skipThen(pure("'")),
/host/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/host/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:35:16: warning: static property 'ilcStart' is not concurrency-safe because non-'Sendable' type 'Parser<[Character]>' may have shared mutable state; this is an error in the Swift 6 language mode
33 |
34 | // Comments
35 | static let ilcStart = atLeast(2, character("/")).thenSkip(wss)
| |- warning: static property 'ilcStart' is not concurrency-safe because non-'Sendable' type 'Parser<[Character]>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'ilcStart' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
36 | static let ilcStop = nl
37 |
/host/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/host/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:36:16: warning: static property 'ilcStop' is not concurrency-safe because non-'Sendable' type 'Parser<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
34 | // Comments
35 | static let ilcStart = atLeast(2, character("/")).thenSkip(wss)
36 | static let ilcStop = nl
| |- warning: static property 'ilcStop' is not concurrency-safe because non-'Sendable' type 'Parser<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'ilcStop' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
37 |
38 | static let mlcStart = string("/*").thenSkip(many(character("*")))
/host/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/host/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:38:16: warning: static property 'mlcStart' is not concurrency-safe because non-'Sendable' type 'Parser<String>' may have shared mutable state; this is an error in the Swift 6 language mode
36 | static let ilcStop = nl
37 |
38 | static let mlcStart = string("/*").thenSkip(many(character("*")))
| |- warning: static property 'mlcStart' is not concurrency-safe because non-'Sendable' type 'Parser<String>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'mlcStart' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
39 | static let mlcStop = string("*/")
40 |
/host/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/host/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:39:16: warning: static property 'mlcStop' is not concurrency-safe because non-'Sendable' type 'Parser<String>' may have shared mutable state; this is an error in the Swift 6 language mode
37 |
38 | static let mlcStart = string("/*").thenSkip(many(character("*")))
39 | static let mlcStop = string("*/")
| |- warning: static property 'mlcStop' is not concurrency-safe because non-'Sendable' type 'Parser<String>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'mlcStop' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
40 |
41 | static let mlc = many(anyCharacter().butNot(mlcStop), prefix: mlcStart, suffix: mlcStop).asString()
/host/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/host/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:41:16: warning: static property 'mlc' is not concurrency-safe because non-'Sendable' type 'Parser<String>' may have shared mutable state; this is an error in the Swift 6 language mode
39 | static let mlcStop = string("*/")
40 |
41 | static let mlc = many(anyCharacter().butNot(mlcStop), prefix: mlcStart, suffix: mlcStop).asString()
| |- warning: static property 'mlc' is not concurrency-safe because non-'Sendable' type 'Parser<String>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'mlc' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
42 | static let ilc = many(anyCharacter().butNot(ilcStop), prefix: ilcStart, suffix: ilcStop).asString()
43 |
/host/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/host/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:42:16: warning: static property 'ilc' is not concurrency-safe because non-'Sendable' type 'Parser<String>' may have shared mutable state; this is an error in the Swift 6 language mode
40 |
41 | static let mlc = many(anyCharacter().butNot(mlcStop), prefix: mlcStart, suffix: mlcStop).asString()
42 | static let ilc = many(anyCharacter().butNot(ilcStop), prefix: ilcStart, suffix: ilcStop).asString()
| |- warning: static property 'ilc' is not concurrency-safe because non-'Sendable' type 'Parser<String>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'ilc' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
43 |
44 | static let comment = mlc.otherwise(ilc).thenSkip(wss1nl).named("comment")
/host/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/host/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:44:16: warning: static property 'comment' is not concurrency-safe because non-'Sendable' type 'Parser<String>' may have shared mutable state; this is an error in the Swift 6 language mode
42 | static let ilc = many(anyCharacter().butNot(ilcStop), prefix: ilcStart, suffix: ilcStop).asString()
43 |
44 | static let comment = mlc.otherwise(ilc).thenSkip(wss1nl).named("comment")
| |- warning: static property 'comment' is not concurrency-safe because non-'Sendable' type 'Parser<String>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'comment' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
45 | static let comments = many(comment)
46 | static let inlineComment = ilc.thenSkip(wss1nl).named("in-line comment")
/host/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/host/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:45:16: warning: static property 'comments' is not concurrency-safe because non-'Sendable' type 'Parser<[String]>' may have shared mutable state; this is an error in the Swift 6 language mode
43 |
44 | static let comment = mlc.otherwise(ilc).thenSkip(wss1nl).named("comment")
45 | static let comments = many(comment)
| |- warning: static property 'comments' is not concurrency-safe because non-'Sendable' type 'Parser<[String]>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'comments' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
46 | static let inlineComment = ilc.thenSkip(wss1nl).named("in-line comment")
47 |
/host/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/host/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:46:16: warning: static property 'inlineComment' is not concurrency-safe because non-'Sendable' type 'Parser<String>' may have shared mutable state; this is an error in the Swift 6 language mode
44 | static let comment = mlc.otherwise(ilc).thenSkip(wss1nl).named("comment")
45 | static let comments = many(comment)
46 | static let inlineComment = ilc.thenSkip(wss1nl).named("in-line comment")
| |- warning: static property 'inlineComment' is not concurrency-safe because non-'Sendable' type 'Parser<String>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'inlineComment' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
47 |
48 | static let orphanedComment = atLeastOne(comment).then(wss1nl)
/host/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/host/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:48:16: warning: static property 'orphanedComment' is not concurrency-safe because non-'Sendable' type 'Parser<([String], ([Character], [Character]))>' may have shared mutable state; this is an error in the Swift 6 language mode
46 | static let inlineComment = ilc.thenSkip(wss1nl).named("in-line comment")
47 |
48 | static let orphanedComment = atLeastOne(comment).then(wss1nl)
| |- warning: static property 'orphanedComment' is not concurrency-safe because non-'Sendable' type 'Parser<([String], ([Character], [Character]))>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'orphanedComment' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
49 |
50 | // Key-value pairs
/host/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/host/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:51:16: warning: static property 'text' is not concurrency-safe because non-'Sendable' type 'Parser<String>' may have shared mutable state; this is an error in the Swift 6 language mode
49 |
50 | // Key-value pairs
51 | static let text = many(escapableCharacter.butNot(qm), boundedBy: qm).asString().named("text")
| |- warning: static property 'text' is not concurrency-safe because non-'Sendable' type 'Parser<String>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'text' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
52 | static let key = text.named("key")
53 | static let translation = text.named("translation")
/host/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/host/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:52:16: warning: static property 'key' is not concurrency-safe because non-'Sendable' type 'Parser<String>' may have shared mutable state; this is an error in the Swift 6 language mode
50 | // Key-value pairs
51 | static let text = many(escapableCharacter.butNot(qm), boundedBy: qm).asString().named("text")
52 | static let key = text.named("key")
| |- warning: static property 'key' is not concurrency-safe because non-'Sendable' type 'Parser<String>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'key' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
53 | static let translation = text.named("translation")
54 | static let separator = wss.skipThen(character("=")).thenSkip(wss).named("separator")
/host/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/host/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:53:16: warning: static property 'translation' is not concurrency-safe because non-'Sendable' type 'Parser<String>' may have shared mutable state; this is an error in the Swift 6 language mode
51 | static let text = many(escapableCharacter.butNot(qm), boundedBy: qm).asString().named("text")
52 | static let key = text.named("key")
53 | static let translation = text.named("translation")
| |- warning: static property 'translation' is not concurrency-safe because non-'Sendable' type 'Parser<String>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'translation' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
54 | static let separator = wss.skipThen(character("=")).thenSkip(wss).named("separator")
55 | static let kvp = key.thenSkip(separator).then(translation).thenSkip(sc).named("pair")
/host/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/host/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:54:16: warning: static property 'separator' is not concurrency-safe because non-'Sendable' type 'Parser<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
52 | static let key = text.named("key")
53 | static let translation = text.named("translation")
54 | static let separator = wss.skipThen(character("=")).thenSkip(wss).named("separator")
| |- warning: static property 'separator' is not concurrency-safe because non-'Sendable' type 'Parser<Character>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'separator' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
55 | static let kvp = key.thenSkip(separator).then(translation).thenSkip(sc).named("pair")
56 |
/host/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/host/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:55:16: warning: static property 'kvp' is not concurrency-safe because non-'Sendable' type 'Parser<(String, String)>' may have shared mutable state; this is an error in the Swift 6 language mode
53 | static let translation = text.named("translation")
54 | static let separator = wss.skipThen(character("=")).thenSkip(wss).named("separator")
55 | static let kvp = key.thenSkip(separator).then(translation).thenSkip(sc).named("pair")
| |- warning: static property 'kvp' is not concurrency-safe because non-'Sendable' type 'Parser<(String, String)>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'kvp' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
56 |
57 | // Entries
/host/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/host/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:58:16: warning: static property 'entryTuple' is not concurrency-safe because non-'Sendable' type 'Parser<([String], (String, String), String?)>' may have shared mutable state; this is an error in the Swift 6 language mode
56 |
57 | // Entries
58 | static let entryTuple = comments.then(kvp).thenSkip(wss).then(optional(inlineComment)).thenSkip(wsnls).map(flatten)
| |- warning: static property 'entryTuple' is not concurrency-safe because non-'Sendable' type 'Parser<([String], (String, String), String?)>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'entryTuple' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
59 | static let entryObject = entryTuple.map(createEntry).named("entry")
60 | static let entries = many(entryObject.otherwiseSkip(orphanedComment)).map { $0.compactMap{$0} }
/host/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/host/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:59:16: warning: static property 'entryObject' is not concurrency-safe because non-'Sendable' type 'Parser<DotStringsEntry>' may have shared mutable state; this is an error in the Swift 6 language mode
57 | // Entries
58 | static let entryTuple = comments.then(kvp).thenSkip(wss).then(optional(inlineComment)).thenSkip(wsnls).map(flatten)
59 | static let entryObject = entryTuple.map(createEntry).named("entry")
| |- warning: static property 'entryObject' is not concurrency-safe because non-'Sendable' type 'Parser<DotStringsEntry>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'entryObject' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
60 | static let entries = many(entryObject.otherwiseSkip(orphanedComment)).map { $0.compactMap{$0} }
61 |
/host/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/host/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:60:16: warning: static property 'entries' is not concurrency-safe because non-'Sendable' type 'Parser<[DotStringsEntry]>' may have shared mutable state; this is an error in the Swift 6 language mode
58 | static let entryTuple = comments.then(kvp).thenSkip(wss).then(optional(inlineComment)).thenSkip(wsnls).map(flatten)
59 | static let entryObject = entryTuple.map(createEntry).named("entry")
60 | static let entries = many(entryObject.otherwiseSkip(orphanedComment)).map { $0.compactMap{$0} }
| |- warning: static property 'entries' is not concurrency-safe because non-'Sendable' type 'Parser<[DotStringsEntry]>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'entries' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
61 |
62 | // Strings Parser
/host/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
/host/spi-builder-workspace/Sources/Sparse/DotStringsParser.swift:63:16: warning: static property 'stringsParser' is not concurrency-safe because non-'Sendable' type 'Parser<[DotStringsEntry]>' may have shared mutable state; this is an error in the Swift 6 language mode
61 |
62 | // Strings Parser
63 | static let stringsParser = wsnls.skipThen(entries).thenSkip(end())
| |- warning: static property 'stringsParser' is not concurrency-safe because non-'Sendable' type 'Parser<[DotStringsEntry]>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'stringsParser' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
64 |
65 | public static func parseStrings(input: String) throws -> [DotStringsEntry] {
/host/spi-builder-workspace/Sources/Sparse/Parser.swift:11:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | public struct Parser<Output> {
| `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
12 |
13 | public let name: String?
Build complete! (18.68s)
Build complete.
{
"dependencies" : [
{
"identity" : "quick",
"requirement" : {
"range" : [
{
"lower_bound" : "2.2.0",
"upper_bound" : "3.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/Quick/Quick.git"
},
{
"identity" : "nimble",
"requirement" : {
"range" : [
{
"lower_bound" : "8.0.4",
"upper_bound" : "9.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/Quick/Nimble.git"
}
],
"manifest_display_name" : "Sparse",
"name" : "Sparse",
"path" : "/host/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "Sparse",
"targets" : [
"Sparse"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "SparseTests",
"module_type" : "SwiftTarget",
"name" : "SparseTests",
"path" : "Sources/SparseTests",
"product_dependencies" : [
"Quick",
"Nimble"
],
"sources" : [
"CSV/CSVExample.swift",
"CSV/CSVPerformance.swift",
"CSV/CSVTests.swift",
"Core/CharacterParsersTests.swift",
"Core/ParserCombinatorsTests.swift",
"Core/ParserErrorTests.swift",
"Core/Quick+Throw.swift",
"DotStrings/DotStringsExample.swift",
"DotStrings/DotStringsParserPerformance.swift",
"DotStrings/DotStringsParserTests.swift"
],
"target_dependencies" : [
"Sparse"
],
"type" : "test"
},
{
"c99name" : "Sparse",
"module_type" : "SwiftTarget",
"name" : "Sparse",
"path" : "Sources/Sparse",
"product_memberships" : [
"Sparse"
],
"sources" : [
"CSVParser.swift",
"CharacterParsers.swift",
"ContextDescribableError.swift",
"ContextualizedError.swift",
"DotStringsEntry.swift",
"DotStringsParser.swift",
"IgnoreError.swift",
"InfiniteLoopError.swift",
"Parser.swift",
"ParserError.swift",
"Parser_combinators.swift",
"Parser_creators.swift",
"Parser_name.swift",
"Parser_run.swift",
"ParsingContext.swift",
"PositionedInput.swift",
"Stream.swift",
"StringParsers.swift",
"Transforms.swift",
"UnexpectedInputError.swift"
],
"type" : "library"
}
],
"tools_version" : "5.1"
}
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Done.