The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Successful build of Baby, reference 0.32.0 (45a30b), with Swift 6.1 for macOS (SPM) on 25 Apr 2025 06:22:43 UTC.

Swift 6 data race errors: 13

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures

Build Log

========================================
RunAll
========================================
Builder version: 4.61.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/nixzhu/baby.git
Reference: 0.32.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/nixzhu/baby
 * tag               0.32.0     -> FETCH_HEAD
HEAD is now at 45a30b6 0.32.0
Cloned https://github.com/nixzhu/baby.git
Revision (git rev-parse @):
45a30b67fbca78735cd46e254a1045ba03bb2995
SUCCESS checkout https://github.com/nixzhu/baby.git at 0.32.0
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
  "identity": ".resolve-product-dependencies",
  "name": "resolve-dependencies",
  "url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "version": "unspecified",
  "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "dependencies": [
    {
      "identity": "baby",
      "name": "Baby",
      "url": "https://github.com/nixzhu/baby.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/baby",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/nixzhu/baby.git
[1/889] Fetching baby
Fetched https://github.com/nixzhu/baby.git from cache (0.67s)
Creating working copy for https://github.com/nixzhu/baby.git
Working copy of https://github.com/nixzhu/baby.git resolved at 0.32.0 (45a30b6)
Found 0 product dependencies
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/nixzhu/baby.git
https://github.com/nixzhu/baby.git
{
  "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"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Building for debugging...
[0/7] Write sources
[1/7] Write baby-entitlement.plist
[3/7] Write swift-version-2F0A5646E1D333AE.txt
[5/14] Compiling BabyBrain Value+Code.swift
[6/14] Compiling BabyBrain Value.swift
[7/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: add '@MainActor' to make let 'spaces' part of global actor 'MainActor'
    |             `- 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: add '@MainActor' to make let 'null' part of global actor 'MainActor'
    |             `- 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: add '@MainActor' to make let 'bool' part of global actor 'MainActor'
    |             `- 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: add '@MainActor' to make let 'number' part of global actor 'MainActor'
    |             `- 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: add '@MainActor' to make let 'quotedString' part of global actor 'MainActor'
    |             `- 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: add '@MainActor' to make let 'string' part of global actor 'MainActor'
    |             `- 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 nonisolated 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 nonisolated 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: add '@MainActor' to make var '_value' part of global actor 'MainActor'
    |             `- 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: add '@MainActor' to make let 'value' part of global actor 'MainActor'
    |             `- 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: add '@MainActor' to make let 'object' part of global actor 'MainActor'
    |             `- 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: add '@MainActor' to make let 'array' part of global actor 'MainActor'
    |             `- 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: add '@MainActor' to make let 'pair' part of global actor 'MainActor'
    |             `- 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: add '@MainActor' to make let 'pairs' part of global actor 'MainActor'
    |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
287 |     return list(pair, character(","))
288 | }()
[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 nonisolated 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 nonisolated 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: add '@MainActor' to make static property 'enumRawValueSeparator' part of global actor 'MainActor'
    |                       `- 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: add '@MainActor' to make let 'spaces' part of global actor 'MainActor'
    |             `- 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: add '@MainActor' to make let 'null' part of global actor 'MainActor'
    |             `- 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: add '@MainActor' to make let 'bool' part of global actor 'MainActor'
    |             `- 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: add '@MainActor' to make let 'number' part of global actor 'MainActor'
    |             `- 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: add '@MainActor' to make let 'quotedString' part of global actor 'MainActor'
    |             `- 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: add '@MainActor' to make let 'string' part of global actor 'MainActor'
    |             `- 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 nonisolated 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 nonisolated 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: add '@MainActor' to make var '_value' part of global actor 'MainActor'
    |             `- 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: add '@MainActor' to make let 'value' part of global actor 'MainActor'
    |             `- 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: add '@MainActor' to make let 'object' part of global actor 'MainActor'
    |             `- 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: add '@MainActor' to make let 'array' part of global actor 'MainActor'
    |             `- 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: add '@MainActor' to make let 'pair' part of global actor 'MainActor'
    |             `- 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: add '@MainActor' to make let 'pairs' part of global actor 'MainActor'
    |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
287 |     return list(pair, character(","))
288 | }()
[10/14] Compiling BabyBrain Code.swift
[11/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 nonisolated 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 nonisolated 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: add '@MainActor' to make static property 'enumRawValueSeparator' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
174 | }
175 |
[12/17] Emitting module Baby
[13/17] Compiling Baby main.swift
[14/17] Compiling Baby Arguments.swift
[14/17] Write Objects.LinkFileList
[15/17] Linking baby
[16/17] Applying baby
Build complete! (5.21s)
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.