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 FootlessParser, reference master (11c7a3), with Swift 6.0 for Linux on 27 Nov 2024 13:49:36 UTC.

Swift 6 data race errors: 6

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.58.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/kareman/FootlessParser.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/kareman/FootlessParser
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 11c7a36 Readme: fix code samples so they actually compile.
Cloned https://github.com/kareman/FootlessParser.git
Revision (git rev-parse @):
11c7a366720a2cc62d13ee69c8bdb8372bb3bb2b
SUCCESS checkout https://github.com/kareman/FootlessParser.git at master
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $PWD
https://github.com/kareman/FootlessParser.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/9] Compiling FootlessParser Parser.swift
[4/9] Compiling FootlessParser Error.swift
/host/spi-builder-workspace/Sources/FootlessParser/Error.swift:9:10: warning: associated value 'Mismatch' of 'Sendable'-conforming generic enum 'ParseError' has non-sendable type '(AnyCollection<T>, String, String)'; this is an error in the Swift 6 language mode
 7 |
 8 | public enum ParseError<T>: Error {
 9 |     case Mismatch(AnyCollection<T>, String, String)
   |          `- warning: associated value 'Mismatch' of 'Sendable'-conforming generic enum 'ParseError' has non-sendable type '(AnyCollection<T>, String, String)'; this is an error in the Swift 6 language mode
10 | }
11 |
[5/9] Compiling FootlessParser Converters.swift
[6/9] Emitting module FootlessParser
/host/spi-builder-workspace/Sources/FootlessParser/Error.swift:9:10: warning: associated value 'Mismatch' of 'Sendable'-conforming generic enum 'ParseError' has non-sendable type '(AnyCollection<T>, String, String)'; this is an error in the Swift 6 language mode
 7 |
 8 | public enum ParseError<T>: Error {
 9 |     case Mismatch(AnyCollection<T>, String, String)
   |          `- warning: associated value 'Mismatch' of 'Sendable'-conforming generic enum 'ParseError' has non-sendable type '(AnyCollection<T>, String, String)'; this is an error in the Swift 6 language mode
10 | }
11 |
/host/spi-builder-workspace/Sources/FootlessParser/Parsers.swift:17:12: warning: let 'whitespace' is not concurrency-safe because non-'Sendable' type 'Parser<Character, Character>' may have shared mutable state; this is an error in the Swift 6 language mode
15 |  Category Zs and CHARACTER TABULATION (U+0009).
16 |  */
17 | public let whitespace = char(CharacterSet.whitespaces, name: "whitespace")
   |            |- warning: let 'whitespace' is not concurrency-safe because non-'Sendable' type 'Parser<Character, Character>' may have shared mutable state; this is an error in the Swift 6 language mode
   |            |- note: annotate 'whitespace' with '@MainActor' if property should only be accessed from the main actor
   |            `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 |
19 | /**
/host/spi-builder-workspace/Sources/FootlessParser/Parser.swift:2:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
  1 | // would've liked a generic typealias here.
  2 | public struct Parser<Token, Output> {
    |               `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
  3 |     public typealias ParseFunction = (AnyCollection<Token>) throws -> (output: Output, remainder: AnyCollection<Token>)
  4 |     public let parse: ParseFunction
/host/spi-builder-workspace/Sources/FootlessParser/Parsers.swift:25:12: warning: let 'newline' is not concurrency-safe because non-'Sendable' type 'Parser<Character, Character>' may have shared mutable state; this is an error in the Swift 6 language mode
23 |  U+0085, U+2028, and U+2029).
24 |  */
25 | public let newline = char(CharacterSet.newlines, name: "newline")
   |            |- warning: let 'newline' is not concurrency-safe because non-'Sendable' type 'Parser<Character, Character>' may have shared mutable state; this is an error in the Swift 6 language mode
   |            |- note: annotate 'newline' 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
26 |
27 | /**
/host/spi-builder-workspace/Sources/FootlessParser/Parser.swift:2:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
  1 | // would've liked a generic typealias here.
  2 | public struct Parser<Token, Output> {
    |               `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
  3 |     public typealias ParseFunction = (AnyCollection<Token>) throws -> (output: Output, remainder: AnyCollection<Token>)
  4 |     public let parse: ParseFunction
/host/spi-builder-workspace/Sources/FootlessParser/Parsers.swift:33:12: warning: let 'whitespacesOrNewline' is not concurrency-safe because non-'Sendable' type 'Parser<Character, Character>' may have shared mutable state; this is an error in the Swift 6 language mode
31 |  Z*, U+000A ~ U+000D, and U+0085.
32 |  */
33 | public let whitespacesOrNewline = char(CharacterSet.whitespacesAndNewlines, name: "whitespacesOrNewline")
   |            |- warning: let 'whitespacesOrNewline' is not concurrency-safe because non-'Sendable' type 'Parser<Character, Character>' may have shared mutable state; this is an error in the Swift 6 language mode
   |            |- note: annotate 'whitespacesOrNewline' with '@MainActor' if property should only be accessed from the main actor
   |            `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
34 |
35 | /**
/host/spi-builder-workspace/Sources/FootlessParser/Parser.swift:2:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
  1 | // would've liked a generic typealias here.
  2 | public struct Parser<Token, Output> {
    |               `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
  3 |     public typealias ParseFunction = (AnyCollection<Token>) throws -> (output: Output, remainder: AnyCollection<Token>)
  4 |     public let parse: ParseFunction
/host/spi-builder-workspace/Sources/FootlessParser/Parsers.swift:41:12: warning: let 'digit' is not concurrency-safe because non-'Sendable' type 'Parser<Character, Character>' may have shared mutable state; this is an error in the Swift 6 language mode
39 |  Numbers.
40 |  */
41 | public let digit = char(CharacterSet.decimalDigits, name: "digit")
   |            |- warning: let 'digit' is not concurrency-safe because non-'Sendable' type 'Parser<Character, Character>' may have shared mutable state; this is an error in the Swift 6 language mode
   |            |- note: annotate 'digit' with '@MainActor' if property should only be accessed from the main actor
   |            `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
42 |
43 | /**
/host/spi-builder-workspace/Sources/FootlessParser/Parser.swift:2:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
  1 | // would've liked a generic typealias here.
  2 | public struct Parser<Token, Output> {
    |               `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
  3 |     public typealias ParseFunction = (AnyCollection<Token>) throws -> (output: Output, remainder: AnyCollection<Token>)
  4 |     public let parse: ParseFunction
/host/spi-builder-workspace/Sources/FootlessParser/Parsers.swift:49:12: warning: let 'alphanumeric' is not concurrency-safe because non-'Sendable' type 'Parser<Character, Character>' may have shared mutable state; this is an error in the Swift 6 language mode
47 |  Categories L*, M*, and N*.
48 | */
49 | public let alphanumeric = char(CharacterSet.alphanumerics, name: "alphanumeric")
   |            |- warning: let 'alphanumeric' is not concurrency-safe because non-'Sendable' type 'Parser<Character, Character>' may have shared mutable state; this is an error in the Swift 6 language mode
   |            |- note: annotate 'alphanumeric' 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
50 |
/host/spi-builder-workspace/Sources/FootlessParser/Parser.swift:2:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
  1 | // would've liked a generic typealias here.
  2 | public struct Parser<Token, Output> {
    |               `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
  3 |     public typealias ParseFunction = (AnyCollection<Token>) throws -> (output: Output, remainder: AnyCollection<Token>)
  4 |     public let parse: ParseFunction
[7/9] Compiling FootlessParser Parser+Operators.swift
[8/9] Compiling FootlessParser Parsers.swift
/host/spi-builder-workspace/Sources/FootlessParser/Parsers.swift:17:12: warning: let 'whitespace' is not concurrency-safe because non-'Sendable' type 'Parser<Character, Character>' may have shared mutable state; this is an error in the Swift 6 language mode
15 |  Category Zs and CHARACTER TABULATION (U+0009).
16 |  */
17 | public let whitespace = char(CharacterSet.whitespaces, name: "whitespace")
   |            |- warning: let 'whitespace' is not concurrency-safe because non-'Sendable' type 'Parser<Character, Character>' may have shared mutable state; this is an error in the Swift 6 language mode
   |            |- note: annotate 'whitespace' with '@MainActor' if property should only be accessed from the main actor
   |            `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 |
19 | /**
/host/spi-builder-workspace/Sources/FootlessParser/Parser.swift:2:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
  1 | // would've liked a generic typealias here.
  2 | public struct Parser<Token, Output> {
    |               `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
  3 |     public typealias ParseFunction = (AnyCollection<Token>) throws -> (output: Output, remainder: AnyCollection<Token>)
  4 |     public let parse: ParseFunction
/host/spi-builder-workspace/Sources/FootlessParser/Parsers.swift:25:12: warning: let 'newline' is not concurrency-safe because non-'Sendable' type 'Parser<Character, Character>' may have shared mutable state; this is an error in the Swift 6 language mode
23 |  U+0085, U+2028, and U+2029).
24 |  */
25 | public let newline = char(CharacterSet.newlines, name: "newline")
   |            |- warning: let 'newline' is not concurrency-safe because non-'Sendable' type 'Parser<Character, Character>' may have shared mutable state; this is an error in the Swift 6 language mode
   |            |- note: annotate 'newline' 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
26 |
27 | /**
/host/spi-builder-workspace/Sources/FootlessParser/Parser.swift:2:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
  1 | // would've liked a generic typealias here.
  2 | public struct Parser<Token, Output> {
    |               `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
  3 |     public typealias ParseFunction = (AnyCollection<Token>) throws -> (output: Output, remainder: AnyCollection<Token>)
  4 |     public let parse: ParseFunction
/host/spi-builder-workspace/Sources/FootlessParser/Parsers.swift:33:12: warning: let 'whitespacesOrNewline' is not concurrency-safe because non-'Sendable' type 'Parser<Character, Character>' may have shared mutable state; this is an error in the Swift 6 language mode
31 |  Z*, U+000A ~ U+000D, and U+0085.
32 |  */
33 | public let whitespacesOrNewline = char(CharacterSet.whitespacesAndNewlines, name: "whitespacesOrNewline")
   |            |- warning: let 'whitespacesOrNewline' is not concurrency-safe because non-'Sendable' type 'Parser<Character, Character>' may have shared mutable state; this is an error in the Swift 6 language mode
   |            |- note: annotate 'whitespacesOrNewline' with '@MainActor' if property should only be accessed from the main actor
   |            `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
34 |
35 | /**
/host/spi-builder-workspace/Sources/FootlessParser/Parser.swift:2:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
  1 | // would've liked a generic typealias here.
  2 | public struct Parser<Token, Output> {
    |               `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
  3 |     public typealias ParseFunction = (AnyCollection<Token>) throws -> (output: Output, remainder: AnyCollection<Token>)
  4 |     public let parse: ParseFunction
/host/spi-builder-workspace/Sources/FootlessParser/Parsers.swift:41:12: warning: let 'digit' is not concurrency-safe because non-'Sendable' type 'Parser<Character, Character>' may have shared mutable state; this is an error in the Swift 6 language mode
39 |  Numbers.
40 |  */
41 | public let digit = char(CharacterSet.decimalDigits, name: "digit")
   |            |- warning: let 'digit' is not concurrency-safe because non-'Sendable' type 'Parser<Character, Character>' may have shared mutable state; this is an error in the Swift 6 language mode
   |            |- note: annotate 'digit' with '@MainActor' if property should only be accessed from the main actor
   |            `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
42 |
43 | /**
/host/spi-builder-workspace/Sources/FootlessParser/Parser.swift:2:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
  1 | // would've liked a generic typealias here.
  2 | public struct Parser<Token, Output> {
    |               `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
  3 |     public typealias ParseFunction = (AnyCollection<Token>) throws -> (output: Output, remainder: AnyCollection<Token>)
  4 |     public let parse: ParseFunction
/host/spi-builder-workspace/Sources/FootlessParser/Parsers.swift:49:12: warning: let 'alphanumeric' is not concurrency-safe because non-'Sendable' type 'Parser<Character, Character>' may have shared mutable state; this is an error in the Swift 6 language mode
47 |  Categories L*, M*, and N*.
48 | */
49 | public let alphanumeric = char(CharacterSet.alphanumerics, name: "alphanumeric")
   |            |- warning: let 'alphanumeric' is not concurrency-safe because non-'Sendable' type 'Parser<Character, Character>' may have shared mutable state; this is an error in the Swift 6 language mode
   |            |- note: annotate 'alphanumeric' 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
50 |
/host/spi-builder-workspace/Sources/FootlessParser/Parser.swift:2:15: note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
  1 | // would've liked a generic typealias here.
  2 | public struct Parser<Token, Output> {
    |               `- note: consider making generic struct 'Parser' conform to the 'Sendable' protocol
  3 |     public typealias ParseFunction = (AnyCollection<Token>) throws -> (output: Output, remainder: AnyCollection<Token>)
  4 |     public let parse: ParseFunction
[9/9] Compiling FootlessParser StringParser.swift
Build complete! (8.06s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "FootlessParser",
  "name" : "FootlessParser",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "FootlessParser",
      "targets" : [
        "FootlessParser"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "FootlessParserTests",
      "module_type" : "SwiftTarget",
      "name" : "FootlessParserTests",
      "path" : "Tests/FootlessParserTests",
      "sources" : [
        "Grammar/CSV.swift",
        "Grammar/Examples.swift",
        "Parser+Operators_Tests.swift",
        "Parser_Tests.swift",
        "PerformanceTests.swift",
        "StringParser_Tests.swift",
        "TestHelpers.swift"
      ],
      "target_dependencies" : [
        "FootlessParser"
      ],
      "type" : "test"
    },
    {
      "c99name" : "FootlessParser",
      "module_type" : "SwiftTarget",
      "name" : "FootlessParser",
      "path" : "Sources/FootlessParser",
      "product_memberships" : [
        "FootlessParser"
      ],
      "sources" : [
        "Converters.swift",
        "Error.swift",
        "Parser+Operators.swift",
        "Parser.swift",
        "Parsers.swift",
        "StringParser.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "4.1"
}
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Done.