Build Information
Successful build of Baby with Swift 6.0 for macOS (SPM).
Swift 6 data race errors: 13
Build Command
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Build Log
========================================
RunAll
========================================
Builder version: 4.40.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/nixzhu/baby.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/nixzhu/baby
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at 94581d6 update for ducky
Cloned https://github.com/nixzhu/baby.git
Revision (git rev-parse @):
94581d6c17922ed294e992524f1a9d12254b56ab
SUCCESS checkout https://github.com/nixzhu/baby.git at master
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $workDir
https://github.com/nixzhu/baby.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/7] Write sources
[2/7] Write baby-entitlement.plist
[3/7] Write swift-version-6F35C1178C84523A.txt
[5/14] Compiling BabyBrain Value+Code.swift
/Users/admin/builder/spi-builder-workspace/Sources/BabyBrain/Meta.swift:173:23: warning: static property 'enumRawValueSeparator' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
171 |
172 | extension Meta {
173 | public static var enumRawValueSeparator: String = "<@_@>"
| |- warning: static property 'enumRawValueSeparator' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'enumRawValueSeparator' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'enumRawValueSeparator' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
174 | }
175 |
[6/14] Compiling BabyBrain Meta.swift
/Users/admin/builder/spi-builder-workspace/Sources/BabyBrain/Meta.swift:173:23: warning: static property 'enumRawValueSeparator' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
171 |
172 | extension Meta {
173 | public static var enumRawValueSeparator: String = "<@_@>"
| |- warning: static property 'enumRawValueSeparator' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'enumRawValueSeparator' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'enumRawValueSeparator' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
174 | }
175 |
[7/14] Compiling BabyBrain Code.swift
/Users/admin/builder/spi-builder-workspace/Sources/BabyBrain/Meta.swift:173:23: warning: static property 'enumRawValueSeparator' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
171 |
172 | extension Meta {
173 | public static var enumRawValueSeparator: String = "<@_@>"
| |- warning: static property 'enumRawValueSeparator' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'enumRawValueSeparator' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'enumRawValueSeparator' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
174 | }
175 |
[8/14] Compiling BabyBrain Indentation.swift
[9/14] Emitting module BabyBrain
/Users/admin/builder/spi-builder-workspace/Sources/BabyBrain/Meta.swift:173:23: warning: static property 'enumRawValueSeparator' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
171 |
172 | extension Meta {
173 | public static var enumRawValueSeparator: String = "<@_@>"
| |- warning: static property 'enumRawValueSeparator' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'enumRawValueSeparator' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'enumRawValueSeparator' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
174 | }
175 |
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/BabyBrain/Parser.swift:139:13: warning: let 'spaces' is not concurrency-safe because non-'Sendable' type 'Parser<String>' (aka '(Substring) -> Optional<(String, Substring)>') may have shared mutable state; this is an error in the Swift 6 language mode
137 | // Helpers
138 |
139 | private let spaces: Parser<String> = {
| |- warning: let 'spaces' is not concurrency-safe because non-'Sendable' type 'Parser<String>' (aka '(Substring) -> Optional<(String, Substring)>') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'spaces' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
140 | let space = one(of: [
141 | character(" "),
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/BabyBrain/Parser.swift:154:13: warning: let 'null' is not concurrency-safe because non-'Sendable' type 'Parser<Value>' (aka '(Substring) -> Optional<(Value, Substring)>') may have shared mutable state; this is an error in the Swift 6 language mode
152 | // Parsers
153 |
154 | private let null: Parser<Value> = {
| |- warning: let 'null' is not concurrency-safe because non-'Sendable' type 'Parser<Value>' (aka '(Substring) -> Optional<(Value, Substring)>') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'null' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
155 | return map(eatRight(word("null"), spaces)) { _ in Value.null(optionalValue: nil) }
156 | }()
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/BabyBrain/Parser.swift:158:13: warning: let 'bool' is not concurrency-safe because non-'Sendable' type 'Parser<Value>' (aka '(Substring) -> Optional<(Value, Substring)>') may have shared mutable state; this is an error in the Swift 6 language mode
156 | }()
157 |
158 | private let bool: Parser<Value> = {
| |- warning: let 'bool' is not concurrency-safe because non-'Sendable' type 'Parser<Value>' (aka '(Substring) -> Optional<(Value, Substring)>') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'bool' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
159 | let `true` = map(eatRight(word("true"), spaces)) { _ in true }
160 | let `false` = map(eatRight(word("false"), spaces)) { _ in false }
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/BabyBrain/Parser.swift:164:13: warning: let 'number' is not concurrency-safe because non-'Sendable' type 'Parser<Value>' (aka '(Substring) -> Optional<(Value, Substring)>') may have shared mutable state; this is an error in the Swift 6 language mode
162 | }()
163 |
164 | private let number: Parser<Value> = {
| |- warning: let 'number' is not concurrency-safe because non-'Sendable' type 'Parser<Value>' (aka '(Substring) -> Optional<(Value, Substring)>') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'number' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
165 | let optionalSign = optional(character("-"))
166 | let zero = word("0")
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/BabyBrain/Parser.swift:195:13: warning: let 'quotedString' is not concurrency-safe because non-'Sendable' type 'Parser<String>' (aka '(Substring) -> Optional<(String, Substring)>') may have shared mutable state; this is an error in the Swift 6 language mode
193 | }()
194 |
195 | private let quotedString: Parser<String> = {
| |- warning: let 'quotedString' is not concurrency-safe because non-'Sendable' type 'Parser<String>' (aka '(Substring) -> Optional<(String, Substring)>') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'quotedString' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
196 | let unescapedCharacter = satisfy({ $0 != "\\" && $0 != "\"" })
197 | let escapedCharacter = one(of: [
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/BabyBrain/Parser.swift:225:13: warning: let 'string' is not concurrency-safe because non-'Sendable' type 'Parser<Value>' (aka '(Substring) -> Optional<(Value, Substring)>') may have shared mutable state; this is an error in the Swift 6 language mode
223 | }()
224 |
225 | private let string: Parser<Value> = {
| |- warning: let 'string' is not concurrency-safe because non-'Sendable' type 'Parser<Value>' (aka '(Substring) -> Optional<(Value, Substring)>') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'string' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
226 | return map(eatRight(quotedString, spaces)) { Value.string(value: $0) }
227 | }()
/Users/admin/builder/spi-builder-workspace/Sources/BabyBrain/Parser.swift:229:13: warning: var '_value' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
227 | }()
228 |
229 | private var _value: Parser<Value>?
| |- warning: var '_value' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '_value' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate '_value' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
230 | private let value: Parser<Value> = { stream in
231 | if let parser = _value {
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/BabyBrain/Parser.swift:230:13: warning: let 'value' is not concurrency-safe because non-'Sendable' type 'Parser<Value>' (aka '(Substring) -> Optional<(Value, Substring)>') may have shared mutable state; this is an error in the Swift 6 language mode
228 |
229 | private var _value: Parser<Value>?
230 | private let value: Parser<Value> = { stream in
| |- warning: let 'value' is not concurrency-safe because non-'Sendable' type 'Parser<Value>' (aka '(Substring) -> Optional<(Value, Substring)>') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'value' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
231 | if let parser = _value {
232 | return eatLeft(spaces, parser)(stream)
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/BabyBrain/Parser.swift:237:13: warning: let 'object' is not concurrency-safe because non-'Sendable' type 'Parser<Value>' (aka '(Substring) -> Optional<(Value, Substring)>') may have shared mutable state; this is an error in the Swift 6 language mode
235 | }
236 |
237 | private let object: Parser<Value> = {
| |- warning: let 'object' is not concurrency-safe because non-'Sendable' type 'Parser<Value>' (aka '(Substring) -> Optional<(Value, Substring)>') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'object' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
238 | let beginObject = eatRight(character("{"), spaces)
239 | let endObject = eatRight(character("}"), spaces)
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/BabyBrain/Parser.swift:254:13: warning: let 'array' is not concurrency-safe because non-'Sendable' type 'Parser<Value>' (aka '(Substring) -> Optional<(Value, Substring)>') may have shared mutable state; this is an error in the Swift 6 language mode
252 | }()
253 |
254 | private let array: Parser<Value> = {
| |- warning: let 'array' is not concurrency-safe because non-'Sendable' type 'Parser<Value>' (aka '(Substring) -> Optional<(Value, Substring)>') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'array' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
255 | let beginArray = eatRight(character("["), spaces)
256 | let endArray = eatRight(character("]"), spaces)
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/BabyBrain/Parser.swift:278:13: warning: let 'pair' is not concurrency-safe because non-'Sendable' type 'Parser<(String, String)>' (aka '(Substring) -> Optional<((String, String), Substring)>') may have shared mutable state; this is an error in the Swift 6 language mode
276 | // Map
277 |
278 | private let pair: Parser<(String, String)> = {
| |- warning: let 'pair' is not concurrency-safe because non-'Sendable' type 'Parser<(String, String)>' (aka '(Substring) -> Optional<((String, String), Substring)>') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'pair' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
279 | let letter = satisfy({ $0 != " " && $0 != "," && $0 != ":" })
280 | let colon = character(":")
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/BabyBrain/Parser.swift:286:13: warning: let 'pairs' is not concurrency-safe because non-'Sendable' type 'Parser<[(String, String)]>' (aka '(Substring) -> Optional<(Array<(String, String)>, Substring)>') may have shared mutable state; this is an error in the Swift 6 language mode
284 | }()
285 |
286 | private let pairs: Parser<[(String, String)]> = {
| |- warning: let 'pairs' is not concurrency-safe because non-'Sendable' type 'Parser<[(String, String)]>' (aka '(Substring) -> Optional<(Array<(String, String)>, Substring)>') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'pairs' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
287 | return list(pair, character(","))
288 | }()
[10/14] Compiling BabyBrain Value.swift
/Users/admin/builder/spi-builder-workspace/Sources/BabyBrain/Meta.swift:173:23: warning: static property 'enumRawValueSeparator' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
171 |
172 | extension Meta {
173 | public static var enumRawValueSeparator: String = "<@_@>"
| |- warning: static property 'enumRawValueSeparator' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'enumRawValueSeparator' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'enumRawValueSeparator' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
174 | }
175 |
[11/14] Compiling BabyBrain Parser.swift
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/BabyBrain/Parser.swift:139:13: warning: let 'spaces' is not concurrency-safe because non-'Sendable' type 'Parser<String>' (aka '(Substring) -> Optional<(String, Substring)>') may have shared mutable state; this is an error in the Swift 6 language mode
137 | // Helpers
138 |
139 | private let spaces: Parser<String> = {
| |- warning: let 'spaces' is not concurrency-safe because non-'Sendable' type 'Parser<String>' (aka '(Substring) -> Optional<(String, Substring)>') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'spaces' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
140 | let space = one(of: [
141 | character(" "),
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/BabyBrain/Parser.swift:154:13: warning: let 'null' is not concurrency-safe because non-'Sendable' type 'Parser<Value>' (aka '(Substring) -> Optional<(Value, Substring)>') may have shared mutable state; this is an error in the Swift 6 language mode
152 | // Parsers
153 |
154 | private let null: Parser<Value> = {
| |- warning: let 'null' is not concurrency-safe because non-'Sendable' type 'Parser<Value>' (aka '(Substring) -> Optional<(Value, Substring)>') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'null' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
155 | return map(eatRight(word("null"), spaces)) { _ in Value.null(optionalValue: nil) }
156 | }()
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/BabyBrain/Parser.swift:158:13: warning: let 'bool' is not concurrency-safe because non-'Sendable' type 'Parser<Value>' (aka '(Substring) -> Optional<(Value, Substring)>') may have shared mutable state; this is an error in the Swift 6 language mode
156 | }()
157 |
158 | private let bool: Parser<Value> = {
| |- warning: let 'bool' is not concurrency-safe because non-'Sendable' type 'Parser<Value>' (aka '(Substring) -> Optional<(Value, Substring)>') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'bool' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
159 | let `true` = map(eatRight(word("true"), spaces)) { _ in true }
160 | let `false` = map(eatRight(word("false"), spaces)) { _ in false }
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/BabyBrain/Parser.swift:164:13: warning: let 'number' is not concurrency-safe because non-'Sendable' type 'Parser<Value>' (aka '(Substring) -> Optional<(Value, Substring)>') may have shared mutable state; this is an error in the Swift 6 language mode
162 | }()
163 |
164 | private let number: Parser<Value> = {
| |- warning: let 'number' is not concurrency-safe because non-'Sendable' type 'Parser<Value>' (aka '(Substring) -> Optional<(Value, Substring)>') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'number' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
165 | let optionalSign = optional(character("-"))
166 | let zero = word("0")
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/BabyBrain/Parser.swift:195:13: warning: let 'quotedString' is not concurrency-safe because non-'Sendable' type 'Parser<String>' (aka '(Substring) -> Optional<(String, Substring)>') may have shared mutable state; this is an error in the Swift 6 language mode
193 | }()
194 |
195 | private let quotedString: Parser<String> = {
| |- warning: let 'quotedString' is not concurrency-safe because non-'Sendable' type 'Parser<String>' (aka '(Substring) -> Optional<(String, Substring)>') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'quotedString' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
196 | let unescapedCharacter = satisfy({ $0 != "\\" && $0 != "\"" })
197 | let escapedCharacter = one(of: [
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/BabyBrain/Parser.swift:225:13: warning: let 'string' is not concurrency-safe because non-'Sendable' type 'Parser<Value>' (aka '(Substring) -> Optional<(Value, Substring)>') may have shared mutable state; this is an error in the Swift 6 language mode
223 | }()
224 |
225 | private let string: Parser<Value> = {
| |- warning: let 'string' is not concurrency-safe because non-'Sendable' type 'Parser<Value>' (aka '(Substring) -> Optional<(Value, Substring)>') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'string' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
226 | return map(eatRight(quotedString, spaces)) { Value.string(value: $0) }
227 | }()
/Users/admin/builder/spi-builder-workspace/Sources/BabyBrain/Parser.swift:229:13: warning: var '_value' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
227 | }()
228 |
229 | private var _value: Parser<Value>?
| |- warning: var '_value' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert '_value' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate '_value' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
230 | private let value: Parser<Value> = { stream in
231 | if let parser = _value {
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/BabyBrain/Parser.swift:230:13: warning: let 'value' is not concurrency-safe because non-'Sendable' type 'Parser<Value>' (aka '(Substring) -> Optional<(Value, Substring)>') may have shared mutable state; this is an error in the Swift 6 language mode
228 |
229 | private var _value: Parser<Value>?
230 | private let value: Parser<Value> = { stream in
| |- warning: let 'value' is not concurrency-safe because non-'Sendable' type 'Parser<Value>' (aka '(Substring) -> Optional<(Value, Substring)>') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'value' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
231 | if let parser = _value {
232 | return eatLeft(spaces, parser)(stream)
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/BabyBrain/Parser.swift:237:13: warning: let 'object' is not concurrency-safe because non-'Sendable' type 'Parser<Value>' (aka '(Substring) -> Optional<(Value, Substring)>') may have shared mutable state; this is an error in the Swift 6 language mode
235 | }
236 |
237 | private let object: Parser<Value> = {
| |- warning: let 'object' is not concurrency-safe because non-'Sendable' type 'Parser<Value>' (aka '(Substring) -> Optional<(Value, Substring)>') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'object' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
238 | let beginObject = eatRight(character("{"), spaces)
239 | let endObject = eatRight(character("}"), spaces)
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/BabyBrain/Parser.swift:254:13: warning: let 'array' is not concurrency-safe because non-'Sendable' type 'Parser<Value>' (aka '(Substring) -> Optional<(Value, Substring)>') may have shared mutable state; this is an error in the Swift 6 language mode
252 | }()
253 |
254 | private let array: Parser<Value> = {
| |- warning: let 'array' is not concurrency-safe because non-'Sendable' type 'Parser<Value>' (aka '(Substring) -> Optional<(Value, Substring)>') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'array' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
255 | let beginArray = eatRight(character("["), spaces)
256 | let endArray = eatRight(character("]"), spaces)
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/BabyBrain/Parser.swift:278:13: warning: let 'pair' is not concurrency-safe because non-'Sendable' type 'Parser<(String, String)>' (aka '(Substring) -> Optional<((String, String), Substring)>') may have shared mutable state; this is an error in the Swift 6 language mode
276 | // Map
277 |
278 | private let pair: Parser<(String, String)> = {
| |- warning: let 'pair' is not concurrency-safe because non-'Sendable' type 'Parser<(String, String)>' (aka '(Substring) -> Optional<((String, String), Substring)>') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'pair' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
279 | let letter = satisfy({ $0 != " " && $0 != "," && $0 != ":" })
280 | let colon = character(":")
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/BabyBrain/Parser.swift:286:13: warning: let 'pairs' is not concurrency-safe because non-'Sendable' type 'Parser<[(String, String)]>' (aka '(Substring) -> Optional<(Array<(String, String)>, Substring)>') may have shared mutable state; this is an error in the Swift 6 language mode
284 | }()
285 |
286 | private let pairs: Parser<[(String, String)]> = {
| |- warning: let 'pairs' is not concurrency-safe because non-'Sendable' type 'Parser<[(String, String)]>' (aka '(Substring) -> Optional<(Array<(String, String)>, Substring)>') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'pairs' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
287 | return list(pair, character(","))
288 | }()
[12/17] Compiling Baby Arguments.swift
[13/17] Compiling Baby main.swift
[14/17] Emitting module Baby
[14/17] Write Objects.LinkFileList
[15/17] Linking baby
[16/17] Applying baby
Build complete! (21.19s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "Baby",
"name" : "Baby",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "BabyBrain",
"targets" : [
"BabyBrain"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "baby",
"targets" : [
"Baby"
],
"type" : {
"executable" : null
}
}
],
"targets" : [
{
"c99name" : "BabyBrain",
"module_type" : "SwiftTarget",
"name" : "BabyBrain",
"path" : "Sources/BabyBrain",
"product_memberships" : [
"BabyBrain",
"baby"
],
"sources" : [
"Code.swift",
"Indentation.swift",
"Meta.swift",
"Parser.swift",
"Value+Code.swift",
"Value.swift"
],
"type" : "library"
},
{
"c99name" : "Baby",
"module_type" : "SwiftTarget",
"name" : "Baby",
"path" : "Sources/Baby",
"product_memberships" : [
"baby"
],
"sources" : [
"Arguments.swift",
"main.swift"
],
"target_dependencies" : [
"BabyBrain"
],
"type" : "executable"
}
],
"tools_version" : "4.1"
}
Done.