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 swift-grammar, reference 0.5.0 (0dac97), with Swift 6.0 for macOS (SPM) on 16 Jan 2025 02:14:36 UTC.

Swift 6 data race errors: 2

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.2.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.60.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/tayloraswift/swift-grammar.git
Reference: 0.5.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/tayloraswift/swift-grammar
 * tag               0.5.0      -> FETCH_HEAD
HEAD is now at 0dac977 remove the obsolete Testing_ module, and its transitive swift-atomics dependency
Cloned https://github.com/tayloraswift/swift-grammar.git
Revision (git rev-parse @):
0dac977b50bf677b2c3adabd7d5586a7b6e09b17
SUCCESS checkout https://github.com/tayloraswift/swift-grammar.git at 0.5.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": "swift-grammar",
      "name": "swift-grammar",
      "url": "https://github.com/tayloraswift/swift-grammar.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-grammar",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/tayloraswift/swift-grammar.git
[1/749] Fetching swift-grammar
Fetched https://github.com/tayloraswift/swift-grammar.git from cache (0.89s)
Creating working copy for https://github.com/tayloraswift/swift-grammar.git
Working copy of https://github.com/tayloraswift/swift-grammar.git resolved at 0.5.0 (0dac977)
warning: '.resolve-product-dependencies': dependency 'swift-grammar' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/tayloraswift/swift-grammar.git
https://github.com/tayloraswift/swift-grammar.git
{
  "dependencies" : [
  ],
  "manifest_display_name" : "swift-grammar",
  "name" : "swift-grammar",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.15"
    },
    {
      "name" : "ios",
      "version" : "13.0"
    },
    {
      "name" : "tvos",
      "version" : "13.0"
    },
    {
      "name" : "watchos",
      "version" : "6.0"
    }
  ],
  "products" : [
    {
      "name" : "Grammar",
      "targets" : [
        "Grammar"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "TraceableErrors",
      "targets" : [
        "TraceableErrors"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "TraceableErrors",
      "module_type" : "SwiftTarget",
      "name" : "TraceableErrors",
      "path" : "Sources/TraceableErrors",
      "product_memberships" : [
        "Grammar",
        "TraceableErrors"
      ],
      "sources" : [
        "NamedError.swift",
        "TraceableError.swift"
      ],
      "type" : "library"
    },
    {
      "c99name" : "Grammar",
      "module_type" : "SwiftTarget",
      "name" : "Grammar",
      "path" : "Sources/Grammar",
      "product_memberships" : [
        "Grammar"
      ],
      "sources" : [
        "Diagnostics/DefaultDiagnostics.swift",
        "Diagnostics/NoDiagnostics.swift",
        "Diagnostics/ParsingDiagnostics.swift",
        "Digit/DigitRule.swift",
        "Digit/UnicodeDigit.swift",
        "Parsing/ASCIITerminal.swift",
        "Parsing/CharacterTerminal.swift",
        "Parsing/Grammar.swift",
        "Parsing/ParsingError.Frame.swift",
        "Parsing/ParsingError.swift",
        "Parsing/ParsingInput.swift",
        "Parsing/UTF16Terminal.swift",
        "Parsing/UTF8Terminal.swift",
        "Parsing/UnicodeTerminal.swift",
        "Patterns/Pattern.IntegerOverflowError.swift",
        "Patterns/Pattern.UnexpectedEndOfInputError.swift",
        "Patterns/Pattern.UnexpectedValueError.swift",
        "Patterns/Pattern.swift",
        "Rule/AtomicRule.swift",
        "Rule/LiteralRule.swift",
        "Rule/ParsingRule.swift",
        "Rule/TerminalRule.swift",
        "Rule/UnicodeEncoding.Newline.swift",
        "Rule/UnicodeEncoding.swift"
      ],
      "target_dependencies" : [
        "TraceableErrors"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.8"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.2.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/3] Write sources
[2/3] Write swift-version-5BDAB9E9C0126B9D.txt
[4/6] Emitting module TraceableErrors
[5/6] Compiling TraceableErrors NamedError.swift
[6/6] Compiling TraceableErrors TraceableError.swift
[7/29] Compiling Grammar AtomicRule.swift
[8/29] Compiling Grammar LiteralRule.swift
[9/31] Compiling Grammar CharacterTerminal.swift
[10/31] Compiling Grammar Grammar.swift
[11/31] Compiling Grammar ParsingError.Frame.swift
[12/31] Compiling Grammar DigitRule.swift
[13/31] Compiling Grammar UnicodeDigit.swift
[14/31] Compiling Grammar ASCIITerminal.swift
[15/31] Compiling Grammar ParsingRule.swift
[16/31] Compiling Grammar TerminalRule.swift
[17/31] Compiling Grammar Pattern.IntegerOverflowError.swift
[18/31] Compiling Grammar Pattern.UnexpectedEndOfInputError.swift
[19/31] Compiling Grammar DefaultDiagnostics.swift
[20/31] Compiling Grammar NoDiagnostics.swift
[21/31] Compiling Grammar ParsingDiagnostics.swift
[22/31] Compiling Grammar ParsingError.swift
/Users/admin/builder/spi-builder-workspace/Sources/Grammar/Parsing/ParsingError.swift:24:9: warning: stored property 'index' of 'Sendable'-conforming generic struct 'ParsingError' has non-sendable type 'Index'; this is an error in the Swift 6 language mode
 11 | /// Custom ``ParsingRule`` implementations should not throw this error either.
 12 | @frozen public
 13 | struct ParsingError<Index>:TraceableError, CustomStringConvertible
    |                     `- note: consider making generic parameter 'Index' conform to the 'Sendable' protocol
 14 | {
 15 |     /// The underlying parsing error.
    :
 22 |     /// index comes from the longest successful parse.
 23 |     public
 24 |     let index:Index
    |         `- warning: stored property 'index' of 'Sendable'-conforming generic struct 'ParsingError' has non-sendable type 'Index'; this is an error in the Swift 6 language mode
 25 |     public
 26 |     let trace:[Frame]
/Users/admin/builder/spi-builder-workspace/Sources/Grammar/Parsing/ParsingError.swift:26:9: warning: stored property 'trace' of 'Sendable'-conforming generic struct 'ParsingError' has non-sendable type '[ParsingError<Index>.Frame]'; this is an error in the Swift 6 language mode
 24 |     let index:Index
 25 |     public
 26 |     let trace:[Frame]
    |         `- warning: stored property 'trace' of 'Sendable'-conforming generic struct 'ParsingError' has non-sendable type '[ParsingError<Index>.Frame]'; this is an error in the Swift 6 language mode
 27 |
 28 |     @inlinable public
/Users/admin/builder/spi-builder-workspace/Sources/Grammar/Parsing/ParsingError.Frame.swift:7:12: note: consider making struct 'Frame' conform to the 'Sendable' protocol
 5 |     /// Only the ``DefaultDiagnostics`` engine tracks call stack state.
 6 |     @frozen public
 7 |     struct Frame
   |            `- note: consider making struct 'Frame' conform to the 'Sendable' protocol
 8 |     {
 9 |         /// Indicates the position in the ``ParsingInput.source`` where
[23/31] Compiling Grammar ParsingInput.swift
/Users/admin/builder/spi-builder-workspace/Sources/Grammar/Parsing/ParsingError.swift:24:9: warning: stored property 'index' of 'Sendable'-conforming generic struct 'ParsingError' has non-sendable type 'Index'; this is an error in the Swift 6 language mode
 11 | /// Custom ``ParsingRule`` implementations should not throw this error either.
 12 | @frozen public
 13 | struct ParsingError<Index>:TraceableError, CustomStringConvertible
    |                     `- note: consider making generic parameter 'Index' conform to the 'Sendable' protocol
 14 | {
 15 |     /// The underlying parsing error.
    :
 22 |     /// index comes from the longest successful parse.
 23 |     public
 24 |     let index:Index
    |         `- warning: stored property 'index' of 'Sendable'-conforming generic struct 'ParsingError' has non-sendable type 'Index'; this is an error in the Swift 6 language mode
 25 |     public
 26 |     let trace:[Frame]
/Users/admin/builder/spi-builder-workspace/Sources/Grammar/Parsing/ParsingError.swift:26:9: warning: stored property 'trace' of 'Sendable'-conforming generic struct 'ParsingError' has non-sendable type '[ParsingError<Index>.Frame]'; this is an error in the Swift 6 language mode
 24 |     let index:Index
 25 |     public
 26 |     let trace:[Frame]
    |         `- warning: stored property 'trace' of 'Sendable'-conforming generic struct 'ParsingError' has non-sendable type '[ParsingError<Index>.Frame]'; this is an error in the Swift 6 language mode
 27 |
 28 |     @inlinable public
/Users/admin/builder/spi-builder-workspace/Sources/Grammar/Parsing/ParsingError.Frame.swift:7:12: note: consider making struct 'Frame' conform to the 'Sendable' protocol
 5 |     /// Only the ``DefaultDiagnostics`` engine tracks call stack state.
 6 |     @frozen public
 7 |     struct Frame
   |            `- note: consider making struct 'Frame' conform to the 'Sendable' protocol
 8 |     {
 9 |         /// Indicates the position in the ``ParsingInput.source`` where
[24/31] Compiling Grammar UTF16Terminal.swift
/Users/admin/builder/spi-builder-workspace/Sources/Grammar/Parsing/ParsingError.swift:24:9: warning: stored property 'index' of 'Sendable'-conforming generic struct 'ParsingError' has non-sendable type 'Index'; this is an error in the Swift 6 language mode
 11 | /// Custom ``ParsingRule`` implementations should not throw this error either.
 12 | @frozen public
 13 | struct ParsingError<Index>:TraceableError, CustomStringConvertible
    |                     `- note: consider making generic parameter 'Index' conform to the 'Sendable' protocol
 14 | {
 15 |     /// The underlying parsing error.
    :
 22 |     /// index comes from the longest successful parse.
 23 |     public
 24 |     let index:Index
    |         `- warning: stored property 'index' of 'Sendable'-conforming generic struct 'ParsingError' has non-sendable type 'Index'; this is an error in the Swift 6 language mode
 25 |     public
 26 |     let trace:[Frame]
/Users/admin/builder/spi-builder-workspace/Sources/Grammar/Parsing/ParsingError.swift:26:9: warning: stored property 'trace' of 'Sendable'-conforming generic struct 'ParsingError' has non-sendable type '[ParsingError<Index>.Frame]'; this is an error in the Swift 6 language mode
 24 |     let index:Index
 25 |     public
 26 |     let trace:[Frame]
    |         `- warning: stored property 'trace' of 'Sendable'-conforming generic struct 'ParsingError' has non-sendable type '[ParsingError<Index>.Frame]'; this is an error in the Swift 6 language mode
 27 |
 28 |     @inlinable public
/Users/admin/builder/spi-builder-workspace/Sources/Grammar/Parsing/ParsingError.Frame.swift:7:12: note: consider making struct 'Frame' conform to the 'Sendable' protocol
 5 |     /// Only the ``DefaultDiagnostics`` engine tracks call stack state.
 6 |     @frozen public
 7 |     struct Frame
   |            `- note: consider making struct 'Frame' conform to the 'Sendable' protocol
 8 |     {
 9 |         /// Indicates the position in the ``ParsingInput.source`` where
[25/31] Compiling Grammar UTF8Terminal.swift
[26/31] Compiling Grammar UnicodeTerminal.swift
[27/31] Compiling Grammar Pattern.UnexpectedValueError.swift
[28/31] Compiling Grammar Pattern.swift
[29/31] Emitting module Grammar
/Users/admin/builder/spi-builder-workspace/Sources/Grammar/Parsing/ParsingError.swift:24:9: warning: stored property 'index' of 'Sendable'-conforming generic struct 'ParsingError' has non-sendable type 'Index'; this is an error in the Swift 6 language mode
 11 | /// Custom ``ParsingRule`` implementations should not throw this error either.
 12 | @frozen public
 13 | struct ParsingError<Index>:TraceableError, CustomStringConvertible
    |                     `- note: consider making generic parameter 'Index' conform to the 'Sendable' protocol
 14 | {
 15 |     /// The underlying parsing error.
    :
 22 |     /// index comes from the longest successful parse.
 23 |     public
 24 |     let index:Index
    |         `- warning: stored property 'index' of 'Sendable'-conforming generic struct 'ParsingError' has non-sendable type 'Index'; this is an error in the Swift 6 language mode
 25 |     public
 26 |     let trace:[Frame]
/Users/admin/builder/spi-builder-workspace/Sources/Grammar/Parsing/ParsingError.swift:26:9: warning: stored property 'trace' of 'Sendable'-conforming generic struct 'ParsingError' has non-sendable type '[ParsingError<Index>.Frame]'; this is an error in the Swift 6 language mode
 24 |     let index:Index
 25 |     public
 26 |     let trace:[Frame]
    |         `- warning: stored property 'trace' of 'Sendable'-conforming generic struct 'ParsingError' has non-sendable type '[ParsingError<Index>.Frame]'; this is an error in the Swift 6 language mode
 27 |
 28 |     @inlinable public
/Users/admin/builder/spi-builder-workspace/Sources/Grammar/Parsing/ParsingError.Frame.swift:7:12: note: consider making struct 'Frame' conform to the 'Sendable' protocol
 5 |     /// Only the ``DefaultDiagnostics`` engine tracks call stack state.
 6 |     @frozen public
 7 |     struct Frame
   |            `- note: consider making struct 'Frame' conform to the 'Sendable' protocol
 8 |     {
 9 |         /// Indicates the position in the ``ParsingInput.source`` where
[30/31] Compiling Grammar UnicodeEncoding.Newline.swift
[31/31] Compiling Grammar UnicodeEncoding.swift
Build complete! (2.89s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "swift-grammar",
  "name" : "swift-grammar",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.15"
    },
    {
      "name" : "ios",
      "version" : "13.0"
    },
    {
      "name" : "tvos",
      "version" : "13.0"
    },
    {
      "name" : "watchos",
      "version" : "6.0"
    }
  ],
  "products" : [
    {
      "name" : "Grammar",
      "targets" : [
        "Grammar"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "TraceableErrors",
      "targets" : [
        "TraceableErrors"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "TraceableErrors",
      "module_type" : "SwiftTarget",
      "name" : "TraceableErrors",
      "path" : "Sources/TraceableErrors",
      "product_memberships" : [
        "Grammar",
        "TraceableErrors"
      ],
      "sources" : [
        "NamedError.swift",
        "TraceableError.swift"
      ],
      "type" : "library"
    },
    {
      "c99name" : "Grammar",
      "module_type" : "SwiftTarget",
      "name" : "Grammar",
      "path" : "Sources/Grammar",
      "product_memberships" : [
        "Grammar"
      ],
      "sources" : [
        "Diagnostics/DefaultDiagnostics.swift",
        "Diagnostics/NoDiagnostics.swift",
        "Diagnostics/ParsingDiagnostics.swift",
        "Digit/DigitRule.swift",
        "Digit/UnicodeDigit.swift",
        "Parsing/ASCIITerminal.swift",
        "Parsing/CharacterTerminal.swift",
        "Parsing/Grammar.swift",
        "Parsing/ParsingError.Frame.swift",
        "Parsing/ParsingError.swift",
        "Parsing/ParsingInput.swift",
        "Parsing/UTF16Terminal.swift",
        "Parsing/UTF8Terminal.swift",
        "Parsing/UnicodeTerminal.swift",
        "Patterns/Pattern.IntegerOverflowError.swift",
        "Patterns/Pattern.UnexpectedEndOfInputError.swift",
        "Patterns/Pattern.UnexpectedValueError.swift",
        "Patterns/Pattern.swift",
        "Rule/AtomicRule.swift",
        "Rule/LiteralRule.swift",
        "Rule/ParsingRule.swift",
        "Rule/TerminalRule.swift",
        "Rule/UnicodeEncoding.Newline.swift",
        "Rule/UnicodeEncoding.swift"
      ],
      "target_dependencies" : [
        "TraceableErrors"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.8"
}
Done.