This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.

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 Regex with Swift 6.0 for Linux.

Swift 6 data race errors: 10

Build Command

bash -c docker run --rm -v "checkouts-4606859-0":/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/crossroadlabs/Regex.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/crossroadlabs/Regex
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 1667287 Updated changelog. Prepared 1.2.0 release
Cloned https://github.com/crossroadlabs/Regex.git
Revision (git rev-parse @):
166728756082a9cac6e4aed3ebbce8e41cb3a945
SUCCESS checkout https://github.com/crossroadlabs/Regex.git at master
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $workDir
https://github.com/crossroadlabs/Regex.git
Running build ...
bash -c docker run --rm -v "checkouts-4606859-0":/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/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/10] Compiling Regex PlatformTypes.swift
[4/11] Compiling Regex String+Regex.swift
[5/11] Compiling Regex RegexOptions.swift
/host/spi-builder-workspace/Sources/Regex/RegexOptions.swift:42:23: warning: static property 'caseInsensitive' is not concurrency-safe because non-'Sendable' type 'RegexOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 23 |  - see: Regex.init
 24 |  */
 25 | public struct RegexOptions : OptionSet {
    |               `- note: consider making struct 'RegexOptions' conform to the 'Sendable' protocol
 26 |     /**
 27 |      Required by OptionSet protocol. Can be used to obtain integer value of a flag set
    :
 40 |      * Match letters in the pattern independent of case.
 41 |      */
 42 |     public static let caseInsensitive = RegexOptions(rawValue: 1)
    |                       |- warning: static property 'caseInsensitive' is not concurrency-safe because non-'Sendable' type 'RegexOptions' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'caseInsensitive' 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
 43 |
 44 |     /**
/host/spi-builder-workspace/Sources/Regex/RegexOptions.swift:47:23: warning: static property 'allowCommentsAndWhitespace' is not concurrency-safe because non-'Sendable' type 'RegexOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 23 |  - see: Regex.init
 24 |  */
 25 | public struct RegexOptions : OptionSet {
    |               `- note: consider making struct 'RegexOptions' conform to the 'Sendable' protocol
 26 |     /**
 27 |      Required by OptionSet protocol. Can be used to obtain integer value of a flag set
    :
 45 |      * Ignore whitespace and #-prefixed comments in the pattern.
 46 |      */
 47 |     public static let allowCommentsAndWhitespace = RegexOptions(rawValue: 2)
    |                       |- warning: static property 'allowCommentsAndWhitespace' is not concurrency-safe because non-'Sendable' type 'RegexOptions' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'allowCommentsAndWhitespace' 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
 48 |
 49 |     /**
/host/spi-builder-workspace/Sources/Regex/RegexOptions.swift:52:23: warning: static property 'ignoreMetacharacters' is not concurrency-safe because non-'Sendable' type 'RegexOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 23 |  - see: Regex.init
 24 |  */
 25 | public struct RegexOptions : OptionSet {
    |               `- note: consider making struct 'RegexOptions' conform to the 'Sendable' protocol
 26 |     /**
 27 |      Required by OptionSet protocol. Can be used to obtain integer value of a flag set
    :
 50 |      * Treat the entire pattern as a literal string.
 51 |      */
 52 |     public static let ignoreMetacharacters = RegexOptions(rawValue: 4)
    |                       |- warning: static property 'ignoreMetacharacters' is not concurrency-safe because non-'Sendable' type 'RegexOptions' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'ignoreMetacharacters' 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
 53 |
 54 |     /**
/host/spi-builder-workspace/Sources/Regex/RegexOptions.swift:57:23: warning: static property 'dotMatchesLineSeparators' is not concurrency-safe because non-'Sendable' type 'RegexOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 23 |  - see: Regex.init
 24 |  */
 25 | public struct RegexOptions : OptionSet {
    |               `- note: consider making struct 'RegexOptions' conform to the 'Sendable' protocol
 26 |     /**
 27 |      Required by OptionSet protocol. Can be used to obtain integer value of a flag set
    :
 55 |      * Allow . to match any character, including line separators.
 56 |      */
 57 |     public static let dotMatchesLineSeparators = RegexOptions(rawValue: 8)
    |                       |- warning: static property 'dotMatchesLineSeparators' is not concurrency-safe because non-'Sendable' type 'RegexOptions' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'dotMatchesLineSeparators' 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
 58 |
 59 |     /**
/host/spi-builder-workspace/Sources/Regex/RegexOptions.swift:62:23: warning: static property 'anchorsMatchLines' is not concurrency-safe because non-'Sendable' type 'RegexOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 23 |  - see: Regex.init
 24 |  */
 25 | public struct RegexOptions : OptionSet {
    |               `- note: consider making struct 'RegexOptions' conform to the 'Sendable' protocol
 26 |     /**
 27 |      Required by OptionSet protocol. Can be used to obtain integer value of a flag set
    :
 60 |      * Allow ^ and $ to match the start and end of lines.
 61 |      */
 62 |     public static let anchorsMatchLines = RegexOptions(rawValue: 16)
    |                       |- warning: static property 'anchorsMatchLines' is not concurrency-safe because non-'Sendable' type 'RegexOptions' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'anchorsMatchLines' 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
 63 |
 64 |     /**
/host/spi-builder-workspace/Sources/Regex/RegexOptions.swift:67:23: warning: static property 'useUnixLineSeparators' is not concurrency-safe because non-'Sendable' type 'RegexOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 23 |  - see: Regex.init
 24 |  */
 25 | public struct RegexOptions : OptionSet {
    |               `- note: consider making struct 'RegexOptions' conform to the 'Sendable' protocol
 26 |     /**
 27 |      Required by OptionSet protocol. Can be used to obtain integer value of a flag set
    :
 65 |      * Treat only \n as a line separator (otherwise, all standard line separators are used).
 66 |      */
 67 |     public static let useUnixLineSeparators = RegexOptions(rawValue: 32)
    |                       |- warning: static property 'useUnixLineSeparators' is not concurrency-safe because non-'Sendable' type 'RegexOptions' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'useUnixLineSeparators' 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
 68 |
 69 |     /**
/host/spi-builder-workspace/Sources/Regex/RegexOptions.swift:72:23: warning: static property 'useUnicodeWordBoundaries' is not concurrency-safe because non-'Sendable' type 'RegexOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 23 |  - see: Regex.init
 24 |  */
 25 | public struct RegexOptions : OptionSet {
    |               `- note: consider making struct 'RegexOptions' conform to the 'Sendable' protocol
 26 |     /**
 27 |      Required by OptionSet protocol. Can be used to obtain integer value of a flag set
    :
 70 |      * Use Unicode TR#29 to specify word boundaries (otherwise, traditional regular expression word boundaries are used).
 71 |      */
 72 |     public static let useUnicodeWordBoundaries = RegexOptions(rawValue: 64)
    |                       |- warning: static property 'useUnicodeWordBoundaries' is not concurrency-safe because non-'Sendable' type 'RegexOptions' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'useUnicodeWordBoundaries' 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
 73 |
 74 |
/host/spi-builder-workspace/Sources/Regex/RegexOptions.swift:78:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'RegexOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 23 |  - see: Regex.init
 24 |  */
 25 | public struct RegexOptions : OptionSet {
    |               `- note: consider making struct 'RegexOptions' conform to the 'Sendable' protocol
 26 |     /**
 27 |      Required by OptionSet protocol. Can be used to obtain integer value of a flag set
    :
 76 |      * Options used by default in Regex
 77 |      */
 78 |     public static let `default`:RegexOptions = [caseInsensitive]
    |                       |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'RegexOptions' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'default' 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
 79 | }
 80 |
/host/spi-builder-workspace/Sources/Regex/RegexOptions.swift:84:1: warning: extension declares a conformance of imported type 'Options' to imported protocol 'Hashable'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
 82 |  * Internal implementation that can't be hidden. Skip it.
 83 |  */
 84 | extension NSRegularExpression.Options : Hashable {
    | |- warning: extension declares a conformance of imported type 'Options' to imported protocol 'Hashable'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
    | `- note: add '@retroactive' to silence this warning
 85 | 	/**
 86 |      * Internal implementation that can't be hidden. Skip it.
/host/spi-builder-workspace/Sources/Regex/RegexOptions.swift:109:13: warning: let 'nsToRegexOptionsMap' is not concurrency-safe because non-'Sendable' type '[NSRegularExpression.Options : RegexOptions]' may have shared mutable state; this is an error in the Swift 6 language mode
107 | }
108 |
109 | private let nsToRegexOptionsMap:[NSRegularExpression.Options: RegexOptions] = [
    |             `- warning: let 'nsToRegexOptionsMap' is not concurrency-safe because non-'Sendable' type '[NSRegularExpression.Options : RegexOptions]' may have shared mutable state; this is an error in the Swift 6 language mode
110 |     .caseInsensitive:.caseInsensitive,
111 |     .allowCommentsAndWhitespace:.allowCommentsAndWhitespace,
Foundation.NSRegularExpression:2:19: note: struct 'Options' does not conform to the 'Sendable' protocol
 1 | extension NSRegularExpression {
 2 |     public struct Options : OptionSet {
   |                   `- note: struct 'Options' does not conform to the 'Sendable' protocol
 3 |         public let rawValue: UInt
 4 |         public init(rawValue: UInt)
/host/spi-builder-workspace/Sources/Regex/RegexOptions.swift:17:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
 15 | //===----------------------------------------------------------------------===//
 16 |
 17 | import Foundation
    | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
 18 |
 19 | /**
    :
 23 |  - see: Regex.init
 24 |  */
 25 | public struct RegexOptions : OptionSet {
    |               `- note: consider making struct 'RegexOptions' conform to the 'Sendable' protocol
 26 |     /**
 27 |      Required by OptionSet protocol. Can be used to obtain integer value of a flag set
    :
107 | }
108 |
109 | private let nsToRegexOptionsMap:[NSRegularExpression.Options: RegexOptions] = [
    |             |- note: annotate 'nsToRegexOptionsMap' 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
110 |     .caseInsensitive:.caseInsensitive,
111 |     .allowCommentsAndWhitespace:.allowCommentsAndWhitespace,
/host/spi-builder-workspace/Sources/Regex/RegexOptions.swift:119:13: warning: let 'regexToNSOptionsMap' is not concurrency-safe because non-'Sendable' type '[RegexOptions : NSRegularExpression.Options]' may have shared mutable state; this is an error in the Swift 6 language mode
 23 |  - see: Regex.init
 24 |  */
 25 | public struct RegexOptions : OptionSet {
    |               `- note: consider making struct 'RegexOptions' conform to the 'Sendable' protocol
 26 |     /**
 27 |      Required by OptionSet protocol. Can be used to obtain integer value of a flag set
    :
117 | ]
118 |
119 | private let regexToNSOptionsMap:[RegexOptions: NSRegularExpression.Options] = nsToRegexOptionsMap.reduce([:]) { (dict, kv) in
    |             |- warning: let 'regexToNSOptionsMap' is not concurrency-safe because non-'Sendable' type '[RegexOptions : NSRegularExpression.Options]' may have shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: annotate 'regexToNSOptionsMap' 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
120 |     var dict = dict
121 |     dict[kv.value] = kv.key
Foundation.NSRegularExpression:2:19: note: struct 'Options' does not conform to the 'Sendable' protocol
 1 | extension NSRegularExpression {
 2 |     public struct Options : OptionSet {
   |                   `- note: struct 'Options' does not conform to the 'Sendable' protocol
 3 |         public let rawValue: UInt
 4 |         public init(rawValue: UInt)
[6/11] Compiling Regex Regex.swift
/host/spi-builder-workspace/Sources/Regex/RegexOptions.swift:78:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'RegexOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 23 |  - see: Regex.init
 24 |  */
 25 | public struct RegexOptions : OptionSet {
    |               `- note: consider making struct 'RegexOptions' conform to the 'Sendable' protocol
 26 |     /**
 27 |      Required by OptionSet protocol. Can be used to obtain integer value of a flag set
    :
 76 |      * Options used by default in Regex
 77 |      */
 78 |     public static let `default`:RegexOptions = [caseInsensitive]
    |                       |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'RegexOptions' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'default' 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
 79 | }
 80 |
[7/11] Compiling Regex Match.swift
[8/11] Compiling Regex GroupRangeUtils.swift
[9/11] Emitting module Regex
/host/spi-builder-workspace/Sources/Regex/RegexOptions.swift:42:23: warning: static property 'caseInsensitive' is not concurrency-safe because non-'Sendable' type 'RegexOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 23 |  - see: Regex.init
 24 |  */
 25 | public struct RegexOptions : OptionSet {
    |               `- note: consider making struct 'RegexOptions' conform to the 'Sendable' protocol
 26 |     /**
 27 |      Required by OptionSet protocol. Can be used to obtain integer value of a flag set
    :
 40 |      * Match letters in the pattern independent of case.
 41 |      */
 42 |     public static let caseInsensitive = RegexOptions(rawValue: 1)
    |                       |- warning: static property 'caseInsensitive' is not concurrency-safe because non-'Sendable' type 'RegexOptions' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'caseInsensitive' 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
 43 |
 44 |     /**
/host/spi-builder-workspace/Sources/Regex/RegexOptions.swift:47:23: warning: static property 'allowCommentsAndWhitespace' is not concurrency-safe because non-'Sendable' type 'RegexOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 23 |  - see: Regex.init
 24 |  */
 25 | public struct RegexOptions : OptionSet {
    |               `- note: consider making struct 'RegexOptions' conform to the 'Sendable' protocol
 26 |     /**
 27 |      Required by OptionSet protocol. Can be used to obtain integer value of a flag set
    :
 45 |      * Ignore whitespace and #-prefixed comments in the pattern.
 46 |      */
 47 |     public static let allowCommentsAndWhitespace = RegexOptions(rawValue: 2)
    |                       |- warning: static property 'allowCommentsAndWhitespace' is not concurrency-safe because non-'Sendable' type 'RegexOptions' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'allowCommentsAndWhitespace' 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
 48 |
 49 |     /**
/host/spi-builder-workspace/Sources/Regex/RegexOptions.swift:52:23: warning: static property 'ignoreMetacharacters' is not concurrency-safe because non-'Sendable' type 'RegexOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 23 |  - see: Regex.init
 24 |  */
 25 | public struct RegexOptions : OptionSet {
    |               `- note: consider making struct 'RegexOptions' conform to the 'Sendable' protocol
 26 |     /**
 27 |      Required by OptionSet protocol. Can be used to obtain integer value of a flag set
    :
 50 |      * Treat the entire pattern as a literal string.
 51 |      */
 52 |     public static let ignoreMetacharacters = RegexOptions(rawValue: 4)
    |                       |- warning: static property 'ignoreMetacharacters' is not concurrency-safe because non-'Sendable' type 'RegexOptions' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'ignoreMetacharacters' 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
 53 |
 54 |     /**
/host/spi-builder-workspace/Sources/Regex/RegexOptions.swift:57:23: warning: static property 'dotMatchesLineSeparators' is not concurrency-safe because non-'Sendable' type 'RegexOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 23 |  - see: Regex.init
 24 |  */
 25 | public struct RegexOptions : OptionSet {
    |               `- note: consider making struct 'RegexOptions' conform to the 'Sendable' protocol
 26 |     /**
 27 |      Required by OptionSet protocol. Can be used to obtain integer value of a flag set
    :
 55 |      * Allow . to match any character, including line separators.
 56 |      */
 57 |     public static let dotMatchesLineSeparators = RegexOptions(rawValue: 8)
    |                       |- warning: static property 'dotMatchesLineSeparators' is not concurrency-safe because non-'Sendable' type 'RegexOptions' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'dotMatchesLineSeparators' 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
 58 |
 59 |     /**
/host/spi-builder-workspace/Sources/Regex/RegexOptions.swift:62:23: warning: static property 'anchorsMatchLines' is not concurrency-safe because non-'Sendable' type 'RegexOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 23 |  - see: Regex.init
 24 |  */
 25 | public struct RegexOptions : OptionSet {
    |               `- note: consider making struct 'RegexOptions' conform to the 'Sendable' protocol
 26 |     /**
 27 |      Required by OptionSet protocol. Can be used to obtain integer value of a flag set
    :
 60 |      * Allow ^ and $ to match the start and end of lines.
 61 |      */
 62 |     public static let anchorsMatchLines = RegexOptions(rawValue: 16)
    |                       |- warning: static property 'anchorsMatchLines' is not concurrency-safe because non-'Sendable' type 'RegexOptions' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'anchorsMatchLines' 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
 63 |
 64 |     /**
/host/spi-builder-workspace/Sources/Regex/RegexOptions.swift:67:23: warning: static property 'useUnixLineSeparators' is not concurrency-safe because non-'Sendable' type 'RegexOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 23 |  - see: Regex.init
 24 |  */
 25 | public struct RegexOptions : OptionSet {
    |               `- note: consider making struct 'RegexOptions' conform to the 'Sendable' protocol
 26 |     /**
 27 |      Required by OptionSet protocol. Can be used to obtain integer value of a flag set
    :
 65 |      * Treat only \n as a line separator (otherwise, all standard line separators are used).
 66 |      */
 67 |     public static let useUnixLineSeparators = RegexOptions(rawValue: 32)
    |                       |- warning: static property 'useUnixLineSeparators' is not concurrency-safe because non-'Sendable' type 'RegexOptions' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'useUnixLineSeparators' 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
 68 |
 69 |     /**
/host/spi-builder-workspace/Sources/Regex/RegexOptions.swift:72:23: warning: static property 'useUnicodeWordBoundaries' is not concurrency-safe because non-'Sendable' type 'RegexOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 23 |  - see: Regex.init
 24 |  */
 25 | public struct RegexOptions : OptionSet {
    |               `- note: consider making struct 'RegexOptions' conform to the 'Sendable' protocol
 26 |     /**
 27 |      Required by OptionSet protocol. Can be used to obtain integer value of a flag set
    :
 70 |      * Use Unicode TR#29 to specify word boundaries (otherwise, traditional regular expression word boundaries are used).
 71 |      */
 72 |     public static let useUnicodeWordBoundaries = RegexOptions(rawValue: 64)
    |                       |- warning: static property 'useUnicodeWordBoundaries' is not concurrency-safe because non-'Sendable' type 'RegexOptions' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'useUnicodeWordBoundaries' 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
 73 |
 74 |
/host/spi-builder-workspace/Sources/Regex/RegexOptions.swift:78:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'RegexOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 23 |  - see: Regex.init
 24 |  */
 25 | public struct RegexOptions : OptionSet {
    |               `- note: consider making struct 'RegexOptions' conform to the 'Sendable' protocol
 26 |     /**
 27 |      Required by OptionSet protocol. Can be used to obtain integer value of a flag set
    :
 76 |      * Options used by default in Regex
 77 |      */
 78 |     public static let `default`:RegexOptions = [caseInsensitive]
    |                       |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'RegexOptions' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'default' 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
 79 | }
 80 |
/host/spi-builder-workspace/Sources/Regex/RegexOptions.swift:84:1: warning: extension declares a conformance of imported type 'Options' to imported protocol 'Hashable'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
 82 |  * Internal implementation that can't be hidden. Skip it.
 83 |  */
 84 | extension NSRegularExpression.Options : Hashable {
    | |- warning: extension declares a conformance of imported type 'Options' to imported protocol 'Hashable'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
    | `- note: add '@retroactive' to silence this warning
 85 | 	/**
 86 |      * Internal implementation that can't be hidden. Skip it.
/host/spi-builder-workspace/Sources/Regex/RegexOptions.swift:109:13: warning: let 'nsToRegexOptionsMap' is not concurrency-safe because non-'Sendable' type '[NSRegularExpression.Options : RegexOptions]' may have shared mutable state; this is an error in the Swift 6 language mode
107 | }
108 |
109 | private let nsToRegexOptionsMap:[NSRegularExpression.Options: RegexOptions] = [
    |             `- warning: let 'nsToRegexOptionsMap' is not concurrency-safe because non-'Sendable' type '[NSRegularExpression.Options : RegexOptions]' may have shared mutable state; this is an error in the Swift 6 language mode
110 |     .caseInsensitive:.caseInsensitive,
111 |     .allowCommentsAndWhitespace:.allowCommentsAndWhitespace,
Foundation.NSRegularExpression:2:19: note: struct 'Options' does not conform to the 'Sendable' protocol
 1 | extension NSRegularExpression {
 2 |     public struct Options : OptionSet {
   |                   `- note: struct 'Options' does not conform to the 'Sendable' protocol
 3 |         public let rawValue: UInt
 4 |         public init(rawValue: UInt)
/host/spi-builder-workspace/Sources/Regex/RegexOptions.swift:17:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
 15 | //===----------------------------------------------------------------------===//
 16 |
 17 | import Foundation
    | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Foundation'
 18 |
 19 | /**
    :
 23 |  - see: Regex.init
 24 |  */
 25 | public struct RegexOptions : OptionSet {
    |               `- note: consider making struct 'RegexOptions' conform to the 'Sendable' protocol
 26 |     /**
 27 |      Required by OptionSet protocol. Can be used to obtain integer value of a flag set
    :
107 | }
108 |
109 | private let nsToRegexOptionsMap:[NSRegularExpression.Options: RegexOptions] = [
    |             |- note: annotate 'nsToRegexOptionsMap' 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
110 |     .caseInsensitive:.caseInsensitive,
111 |     .allowCommentsAndWhitespace:.allowCommentsAndWhitespace,
/host/spi-builder-workspace/Sources/Regex/RegexOptions.swift:119:13: warning: let 'regexToNSOptionsMap' is not concurrency-safe because non-'Sendable' type '[RegexOptions : NSRegularExpression.Options]' may have shared mutable state; this is an error in the Swift 6 language mode
 23 |  - see: Regex.init
 24 |  */
 25 | public struct RegexOptions : OptionSet {
    |               `- note: consider making struct 'RegexOptions' conform to the 'Sendable' protocol
 26 |     /**
 27 |      Required by OptionSet protocol. Can be used to obtain integer value of a flag set
    :
117 | ]
118 |
119 | private let regexToNSOptionsMap:[RegexOptions: NSRegularExpression.Options] = nsToRegexOptionsMap.reduce([:]) { (dict, kv) in
    |             |- warning: let 'regexToNSOptionsMap' is not concurrency-safe because non-'Sendable' type '[RegexOptions : NSRegularExpression.Options]' may have shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: annotate 'regexToNSOptionsMap' 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
120 |     var dict = dict
121 |     dict[kv.value] = kv.key
Foundation.NSRegularExpression:2:19: note: struct 'Options' does not conform to the 'Sendable' protocol
 1 | extension NSRegularExpression {
 2 |     public struct Options : OptionSet {
   |                   `- note: struct 'Options' does not conform to the 'Sendable' protocol
 3 |         public let rawValue: UInt
 4 |         public init(rawValue: UInt)
[10/11] Compiling Regex MatchSequence.swift
[11/11] Compiling Regex Utils.swift
Build complete! (10.04s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Regex",
  "name" : "Regex",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "Regex",
      "targets" : [
        "Regex"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "RegexTests",
      "module_type" : "SwiftTarget",
      "name" : "RegexTests",
      "path" : "Tests/RegexTests",
      "sources" : [
        "RegexTests.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "Regex"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Regex",
      "module_type" : "SwiftTarget",
      "name" : "Regex",
      "path" : "Sources/Regex",
      "product_memberships" : [
        "Regex"
      ],
      "sources" : [
        "GroupRangeUtils.swift",
        "Match.swift",
        "MatchSequence.swift",
        "PlatformTypes.swift",
        "Regex.swift",
        "RegexOptions.swift",
        "String+Regex.swift",
        "Utils.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "4.0"
}
Done.
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.