Build Information
Successful build of Baby with Swift 6.0 for Linux.
Swift 6 data race errors: 15
Build Command
bash -c docker run --rm -v "checkouts-4609320-1":/host -w "$workDir" 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
========================================
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 /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: git branch -m <name>
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: linux
Swift version: 6.0
Building package at path: $workDir
https://github.com/nixzhu/baby.git
Running build ...
bash -c docker run --rm -v "checkouts-4609320-1":/host -w "$workDir" 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
Building for debugging...
[0/7] Write sources
[2/7] Write swift-version-24593BA9C3E375BF.txt
[4/14] Compiling BabyBrain Parser.swift
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/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'
/host/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'
/host/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'
/host/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'
/host/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'
/host/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 | }()
/host/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'
/host/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'
/host/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'
/host/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'
/host/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'
/host/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 | }()
[5/14] Compiling BabyBrain Meta.swift
/host/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 Indentation.swift
[7/14] Emitting module BabyBrain
/host/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'
/host/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'
/host/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'
/host/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'
/host/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'
/host/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'
/host/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 | }()
/host/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'
/host/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'
/host/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'
/host/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'
/host/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'
/host/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 | }()
/host/spi-builder-workspace/Sources/BabyBrain/Value.swift:491:16: warning: static property 'iso8601' is not concurrency-safe because non-'Sendable' type 'DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
489 |
490 | extension DateFormatter {
491 | static let iso8601: DateFormatter = {
| `- warning: static property 'iso8601' is not concurrency-safe because non-'Sendable' type 'DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
492 | let formatter = DateFormatter()
493 | formatter.timeZone = TimeZone(abbreviation: "UTC")
Foundation.DateFormatter:1:12: note: class 'DateFormatter' does not conform to the 'Sendable' protocol
1 | open class DateFormatter : Formatter {
| `- note: class 'DateFormatter' does not conform to the 'Sendable' protocol
2 | override public init()
3 | required public init?(coder: NSCoder)
/host/spi-builder-workspace/Sources/BabyBrain/Value.swift:6:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
4 | */
5 |
6 | import Foundation
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
7 |
8 | public enum Value {
:
489 |
490 | extension DateFormatter {
491 | static let iso8601: DateFormatter = {
| |- note: annotate 'iso8601' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
492 | let formatter = DateFormatter()
493 | formatter.timeZone = TimeZone(abbreviation: "UTC")
/host/spi-builder-workspace/Sources/BabyBrain/Value.swift:499:16: warning: static property 'dateOnly' is not concurrency-safe because non-'Sendable' type 'DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
497 | }()
498 |
499 | static let dateOnly: DateFormatter = {
| |- warning: static property 'dateOnly' is not concurrency-safe because non-'Sendable' type 'DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'dateOnly' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
500 | let formatter = DateFormatter()
501 | formatter.dateFormat = "yyyy-MM-dd"
Foundation.DateFormatter:1:12: note: class 'DateFormatter' does not conform to the 'Sendable' protocol
1 | open class DateFormatter : Formatter {
| `- note: class 'DateFormatter' does not conform to the 'Sendable' protocol
2 | override public init()
3 | required public init?(coder: NSCoder)
[8/14] Compiling BabyBrain Code.swift
/host/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 |
[9/14] Compiling BabyBrain Value.swift
/host/spi-builder-workspace/Sources/BabyBrain/Value.swift:491:16: warning: static property 'iso8601' is not concurrency-safe because non-'Sendable' type 'DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
489 |
490 | extension DateFormatter {
491 | static let iso8601: DateFormatter = {
| `- warning: static property 'iso8601' is not concurrency-safe because non-'Sendable' type 'DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
492 | let formatter = DateFormatter()
493 | formatter.timeZone = TimeZone(abbreviation: "UTC")
Foundation.DateFormatter:1:12: note: class 'DateFormatter' does not conform to the 'Sendable' protocol
1 | open class DateFormatter : Formatter {
| `- note: class 'DateFormatter' does not conform to the 'Sendable' protocol
2 | override public init()
3 | required public init?(coder: NSCoder)
/host/spi-builder-workspace/Sources/BabyBrain/Value.swift:6:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
4 | */
5 |
6 | import Foundation
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
7 |
8 | public enum Value {
:
489 |
490 | extension DateFormatter {
491 | static let iso8601: DateFormatter = {
| |- note: annotate 'iso8601' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
492 | let formatter = DateFormatter()
493 | formatter.timeZone = TimeZone(abbreviation: "UTC")
/host/spi-builder-workspace/Sources/BabyBrain/Value.swift:499:16: warning: static property 'dateOnly' is not concurrency-safe because non-'Sendable' type 'DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
497 | }()
498 |
499 | static let dateOnly: DateFormatter = {
| |- warning: static property 'dateOnly' is not concurrency-safe because non-'Sendable' type 'DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'dateOnly' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
500 | let formatter = DateFormatter()
501 | formatter.dateFormat = "yyyy-MM-dd"
Foundation.DateFormatter:1:12: note: class 'DateFormatter' does not conform to the 'Sendable' protocol
1 | open class DateFormatter : Formatter {
| `- note: class 'DateFormatter' does not conform to the 'Sendable' protocol
2 | override public init()
3 | required public init?(coder: NSCoder)
/host/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 |
[10/14] Compiling BabyBrain Value+Code.swift
/host/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/15] Wrapping AST for BabyBrain for debugging
[13/18] Compiling Baby Arguments.swift
[14/18] Emitting module Baby
[15/18] Compiling Baby main.swift
[16/19] Wrapping AST for Baby for debugging
[17/19] Write Objects.LinkFileList
[18/19] Linking baby
Build complete! (13.92s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "Baby",
"name" : "Baby",
"path" : "/host/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.