Build Information
Successful build of SwiftRegexDSL, reference 1.0.3 (9a88e1
), with Swift 6.0 for macOS (SPM) on 28 Nov 2024 01:59:40 UTC.
Swift 6 data race errors: 6
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.1.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.58.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/kodlian/SwiftRegexDSL.git
Reference: 1.0.3
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/kodlian/SwiftRegexDSL
* tag 1.0.3 -> FETCH_HEAD
HEAD is now at 9a88e14 fix unknown static regex
Cloned https://github.com/kodlian/SwiftRegexDSL.git
Revision (git rev-parse @):
9a88e1433ca2c37d2f951cb524f42239c2488743
SUCCESS checkout https://github.com/kodlian/SwiftRegexDSL.git at 1.0.3
========================================
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": "swiftregexdsl",
"name": "SwiftRegexDSL",
"url": "https://github.com/kodlian/SwiftRegexDSL.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/SwiftRegexDSL",
"dependencies": [
]
}
]
}
Fetching https://github.com/kodlian/SwiftRegexDSL.git
[1/126] Fetching swiftregexdsl
Fetched https://github.com/kodlian/SwiftRegexDSL.git from cache (0.64s)
Creating working copy for https://github.com/kodlian/SwiftRegexDSL.git
Working copy of https://github.com/kodlian/SwiftRegexDSL.git resolved at 1.0.3 (9a88e14)
warning: '.resolve-product-dependencies': dependency 'swiftregexdsl' 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/kodlian/SwiftRegexDSL.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.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/2] Write sources
[1/2] Write swift-version--7754E27361AE5C74.txt
[3/21] Compiling SwiftRegexDSL Text.swift
[4/21] Compiling SwiftRegexDSL UnsafeText.swift
[5/22] Compiling SwiftRegexDSL RegexSet.swift
[6/22] Compiling SwiftRegexDSL Special Characters.swift
[7/22] Compiling SwiftRegexDSL PatternOptions.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRegexDSL/Group/PatternOptions.swift:14:23: warning: static property 'caseInsensitive' is not concurrency-safe because non-'Sendable' type 'PatternOptions' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | /// The following flags control various aspects of regular expression matching.
11 | public struct PatternOptions: OptionSet, Hashable {
| `- note: consider making struct 'PatternOptions' conform to the 'Sendable' protocol
12 |
13 | /// If set, matching will take place in a case-insensitive manner.
14 | public static let caseInsensitive = PatternOptions(rawValue: 1 << 0)
| |- warning: static property 'caseInsensitive' is not concurrency-safe because non-'Sendable' type 'PatternOptions' 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
15 |
16 | /// If set, allow use of white space and #comments within patterns
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRegexDSL/Group/PatternOptions.swift:17:23: warning: static property 'allowCommentsAndWhitespace' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
15 |
16 | /// If set, allow use of white space and #comments within patterns
17 | public static var allowCommentsAndWhitespace = PatternOptions(rawValue: 1 << 1)
| |- warning: static property 'allowCommentsAndWhitespace' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'allowCommentsAndWhitespace' to a 'let' constant to make 'Sendable' shared state immutable
| |- 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
18 |
19 | /// If set, a AnyCharacter in a pattern will match a line terminator in the input text. By default, it will not. Note that a carriage-return / line-feed pair in text behave as a single line terminator, and will match a single "." in a regular expression pattern
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRegexDSL/Group/PatternOptions.swift:20:23: warning: static property 'dotMatchesLineSeparators' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
18 |
19 | /// If set, a AnyCharacter in a pattern will match a line terminator in the input text. By default, it will not. Note that a carriage-return / line-feed pair in text behave as a single line terminator, and will match a single "." in a regular expression pattern
20 | public static var dotMatchesLineSeparators = PatternOptions(rawValue: 1 << 2)
| |- warning: static property 'dotMatchesLineSeparators' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'dotMatchesLineSeparators' to a 'let' constant to make 'Sendable' shared state immutable
| |- 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
21 |
22 | /// Control the behavior of "^" and "$" in a pattern. By default these will only match at the start and end, respectively, of the input text. If this flag is set, "^" and "$" will also match at the start and end of each line within the input text.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRegexDSL/Group/PatternOptions.swift:23:23: warning: static property 'anchorsMatchLines' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
21 |
22 | /// Control the behavior of "^" and "$" in a pattern. By default these will only match at the start and end, respectively, of the input text. If this flag is set, "^" and "$" will also match at the start and end of each line within the input text.
23 | public static var anchorsMatchLines = PatternOptions(rawValue: 1 << 3)
| |- warning: static property 'anchorsMatchLines' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'anchorsMatchLines' to a 'let' constant to make 'Sendable' shared state immutable
| |- 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
24 |
25 | /// Controls the behavior of \b in a pattern. If set, word boundaries are found according to the definitions of word found in Unicode UAX 29, Text Boundaries. By default, word boundaries are identified by means of a simple classification of characters as either “word” or “non-word”, which approximates traditional regular expression behavior. The results obtained with the two options can be quite different in runs of spaces and other non-word characters.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRegexDSL/Group/PatternOptions.swift:26:23: warning: static property 'useUnicodeWordBoundaries' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Controls the behavior of \b in a pattern. If set, word boundaries are found according to the definitions of word found in Unicode UAX 29, Text Boundaries. By default, word boundaries are identified by means of a simple classification of characters as either “word” or “non-word”, which approximates traditional regular expression behavior. The results obtained with the two options can be quite different in runs of spaces and other non-word characters.
26 | public static var useUnicodeWordBoundaries = PatternOptions(rawValue: 1 << 4)
| |- warning: static property 'useUnicodeWordBoundaries' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'useUnicodeWordBoundaries' to a 'let' constant to make 'Sendable' shared state immutable
| |- 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
27 |
28 | static let all: [PatternOptions: Character] = [
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRegexDSL/Group/PatternOptions.swift:28:16: warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[PatternOptions : Character]' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | /// The following flags control various aspects of regular expression matching.
11 | public struct PatternOptions: OptionSet, Hashable {
| `- note: consider making struct 'PatternOptions' conform to the 'Sendable' protocol
12 |
13 | /// If set, matching will take place in a case-insensitive manner.
:
26 | public static var useUnicodeWordBoundaries = PatternOptions(rawValue: 1 << 4)
27 |
28 | static let all: [PatternOptions: Character] = [
| |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[PatternOptions : Character]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'all' 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
29 | .caseInsensitive : "i",
30 | .allowCommentsAndWhitespace : "x",
[8/22] Compiling SwiftRegexDSL Quantifier.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRegexDSL/Group/PatternOptions.swift:14:23: warning: static property 'caseInsensitive' is not concurrency-safe because non-'Sendable' type 'PatternOptions' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | /// The following flags control various aspects of regular expression matching.
11 | public struct PatternOptions: OptionSet, Hashable {
| `- note: consider making struct 'PatternOptions' conform to the 'Sendable' protocol
12 |
13 | /// If set, matching will take place in a case-insensitive manner.
14 | public static let caseInsensitive = PatternOptions(rawValue: 1 << 0)
| |- warning: static property 'caseInsensitive' is not concurrency-safe because non-'Sendable' type 'PatternOptions' 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
15 |
16 | /// If set, allow use of white space and #comments within patterns
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRegexDSL/Group/PatternOptions.swift:17:23: warning: static property 'allowCommentsAndWhitespace' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
15 |
16 | /// If set, allow use of white space and #comments within patterns
17 | public static var allowCommentsAndWhitespace = PatternOptions(rawValue: 1 << 1)
| |- warning: static property 'allowCommentsAndWhitespace' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'allowCommentsAndWhitespace' to a 'let' constant to make 'Sendable' shared state immutable
| |- 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
18 |
19 | /// If set, a AnyCharacter in a pattern will match a line terminator in the input text. By default, it will not. Note that a carriage-return / line-feed pair in text behave as a single line terminator, and will match a single "." in a regular expression pattern
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRegexDSL/Group/PatternOptions.swift:20:23: warning: static property 'dotMatchesLineSeparators' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
18 |
19 | /// If set, a AnyCharacter in a pattern will match a line terminator in the input text. By default, it will not. Note that a carriage-return / line-feed pair in text behave as a single line terminator, and will match a single "." in a regular expression pattern
20 | public static var dotMatchesLineSeparators = PatternOptions(rawValue: 1 << 2)
| |- warning: static property 'dotMatchesLineSeparators' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'dotMatchesLineSeparators' to a 'let' constant to make 'Sendable' shared state immutable
| |- 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
21 |
22 | /// Control the behavior of "^" and "$" in a pattern. By default these will only match at the start and end, respectively, of the input text. If this flag is set, "^" and "$" will also match at the start and end of each line within the input text.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRegexDSL/Group/PatternOptions.swift:23:23: warning: static property 'anchorsMatchLines' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
21 |
22 | /// Control the behavior of "^" and "$" in a pattern. By default these will only match at the start and end, respectively, of the input text. If this flag is set, "^" and "$" will also match at the start and end of each line within the input text.
23 | public static var anchorsMatchLines = PatternOptions(rawValue: 1 << 3)
| |- warning: static property 'anchorsMatchLines' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'anchorsMatchLines' to a 'let' constant to make 'Sendable' shared state immutable
| |- 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
24 |
25 | /// Controls the behavior of \b in a pattern. If set, word boundaries are found according to the definitions of word found in Unicode UAX 29, Text Boundaries. By default, word boundaries are identified by means of a simple classification of characters as either “word” or “non-word”, which approximates traditional regular expression behavior. The results obtained with the two options can be quite different in runs of spaces and other non-word characters.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRegexDSL/Group/PatternOptions.swift:26:23: warning: static property 'useUnicodeWordBoundaries' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Controls the behavior of \b in a pattern. If set, word boundaries are found according to the definitions of word found in Unicode UAX 29, Text Boundaries. By default, word boundaries are identified by means of a simple classification of characters as either “word” or “non-word”, which approximates traditional regular expression behavior. The results obtained with the two options can be quite different in runs of spaces and other non-word characters.
26 | public static var useUnicodeWordBoundaries = PatternOptions(rawValue: 1 << 4)
| |- warning: static property 'useUnicodeWordBoundaries' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'useUnicodeWordBoundaries' to a 'let' constant to make 'Sendable' shared state immutable
| |- 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
27 |
28 | static let all: [PatternOptions: Character] = [
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRegexDSL/Group/PatternOptions.swift:28:16: warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[PatternOptions : Character]' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | /// The following flags control various aspects of regular expression matching.
11 | public struct PatternOptions: OptionSet, Hashable {
| `- note: consider making struct 'PatternOptions' conform to the 'Sendable' protocol
12 |
13 | /// If set, matching will take place in a case-insensitive manner.
:
26 | public static var useUnicodeWordBoundaries = PatternOptions(rawValue: 1 << 4)
27 |
28 | static let all: [PatternOptions: Character] = [
| |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[PatternOptions : Character]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'all' 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
29 | .caseInsensitive : "i",
30 | .allowCommentsAndWhitespace : "x",
[9/22] Compiling SwiftRegexDSL Assertion.swift
[10/22] Compiling SwiftRegexDSL Capture.swift
[11/22] Compiling SwiftRegexDSL Comment.swift
[12/22] Compiling SwiftRegexDSL Group.swift
[13/22] Compiling SwiftRegexDSL AlternativeRegexBuilder.swift
[14/22] Compiling SwiftRegexDSL Regex+extensions.swift
[15/22] Compiling SwiftRegexDSL Regex.swift
[16/22] Compiling SwiftRegexDSL RegexBuilder.swift
[17/22] Compiling SwiftRegexDSL Anchor.swift
[18/22] Compiling SwiftRegexDSL Character Class.swift
[19/22] Emitting module SwiftRegexDSL
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRegexDSL/Group/PatternOptions.swift:14:23: warning: static property 'caseInsensitive' is not concurrency-safe because non-'Sendable' type 'PatternOptions' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | /// The following flags control various aspects of regular expression matching.
11 | public struct PatternOptions: OptionSet, Hashable {
| `- note: consider making struct 'PatternOptions' conform to the 'Sendable' protocol
12 |
13 | /// If set, matching will take place in a case-insensitive manner.
14 | public static let caseInsensitive = PatternOptions(rawValue: 1 << 0)
| |- warning: static property 'caseInsensitive' is not concurrency-safe because non-'Sendable' type 'PatternOptions' 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
15 |
16 | /// If set, allow use of white space and #comments within patterns
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRegexDSL/Group/PatternOptions.swift:17:23: warning: static property 'allowCommentsAndWhitespace' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
15 |
16 | /// If set, allow use of white space and #comments within patterns
17 | public static var allowCommentsAndWhitespace = PatternOptions(rawValue: 1 << 1)
| |- warning: static property 'allowCommentsAndWhitespace' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'allowCommentsAndWhitespace' to a 'let' constant to make 'Sendable' shared state immutable
| |- 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
18 |
19 | /// If set, a AnyCharacter in a pattern will match a line terminator in the input text. By default, it will not. Note that a carriage-return / line-feed pair in text behave as a single line terminator, and will match a single "." in a regular expression pattern
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRegexDSL/Group/PatternOptions.swift:20:23: warning: static property 'dotMatchesLineSeparators' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
18 |
19 | /// If set, a AnyCharacter in a pattern will match a line terminator in the input text. By default, it will not. Note that a carriage-return / line-feed pair in text behave as a single line terminator, and will match a single "." in a regular expression pattern
20 | public static var dotMatchesLineSeparators = PatternOptions(rawValue: 1 << 2)
| |- warning: static property 'dotMatchesLineSeparators' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'dotMatchesLineSeparators' to a 'let' constant to make 'Sendable' shared state immutable
| |- 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
21 |
22 | /// Control the behavior of "^" and "$" in a pattern. By default these will only match at the start and end, respectively, of the input text. If this flag is set, "^" and "$" will also match at the start and end of each line within the input text.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRegexDSL/Group/PatternOptions.swift:23:23: warning: static property 'anchorsMatchLines' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
21 |
22 | /// Control the behavior of "^" and "$" in a pattern. By default these will only match at the start and end, respectively, of the input text. If this flag is set, "^" and "$" will also match at the start and end of each line within the input text.
23 | public static var anchorsMatchLines = PatternOptions(rawValue: 1 << 3)
| |- warning: static property 'anchorsMatchLines' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'anchorsMatchLines' to a 'let' constant to make 'Sendable' shared state immutable
| |- 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
24 |
25 | /// Controls the behavior of \b in a pattern. If set, word boundaries are found according to the definitions of word found in Unicode UAX 29, Text Boundaries. By default, word boundaries are identified by means of a simple classification of characters as either “word” or “non-word”, which approximates traditional regular expression behavior. The results obtained with the two options can be quite different in runs of spaces and other non-word characters.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRegexDSL/Group/PatternOptions.swift:26:23: warning: static property 'useUnicodeWordBoundaries' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
24 |
25 | /// Controls the behavior of \b in a pattern. If set, word boundaries are found according to the definitions of word found in Unicode UAX 29, Text Boundaries. By default, word boundaries are identified by means of a simple classification of characters as either “word” or “non-word”, which approximates traditional regular expression behavior. The results obtained with the two options can be quite different in runs of spaces and other non-word characters.
26 | public static var useUnicodeWordBoundaries = PatternOptions(rawValue: 1 << 4)
| |- warning: static property 'useUnicodeWordBoundaries' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'useUnicodeWordBoundaries' to a 'let' constant to make 'Sendable' shared state immutable
| |- 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
27 |
28 | static let all: [PatternOptions: Character] = [
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRegexDSL/Group/PatternOptions.swift:28:16: warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[PatternOptions : Character]' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | /// The following flags control various aspects of regular expression matching.
11 | public struct PatternOptions: OptionSet, Hashable {
| `- note: consider making struct 'PatternOptions' conform to the 'Sendable' protocol
12 |
13 | /// If set, matching will take place in a case-insensitive manner.
:
26 | public static var useUnicodeWordBoundaries = PatternOptions(rawValue: 1 << 4)
27 |
28 | static let all: [PatternOptions: Character] = [
| |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type '[PatternOptions : Character]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'all' 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
29 | .caseInsensitive : "i",
30 | .allowCommentsAndWhitespace : "x",
[20/22] Compiling SwiftRegexDSL RegexModifier.swift
[21/22] Compiling SwiftRegexDSL Alternarive.swift
[22/22] Compiling SwiftRegexDSL UnsafeUnicode.swift
Build complete! (15.30s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "SwiftRegexDSL",
"name" : "SwiftRegexDSL",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "10.15"
},
{
"name" : "ios",
"version" : "13.0"
}
],
"products" : [
{
"name" : "SwiftRegexDSL",
"targets" : [
"SwiftRegexDSL"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "SwiftRegexDSLTests",
"module_type" : "SwiftTarget",
"name" : "SwiftRegexDSLTests",
"path" : "Tests/SwiftRegexDSLTests",
"sources" : [
"CharacterClassTests.swift",
"ControlFlowAndLoopTests.swift",
"GroupTests.swift",
"QuantifierTests.swift",
"SpecialCharactersTests.swift",
"UnicodeTests.swift",
"XCTestManifests.swift"
],
"target_dependencies" : [
"SwiftRegexDSL"
],
"type" : "test"
},
{
"c99name" : "SwiftRegexDSL",
"module_type" : "SwiftTarget",
"name" : "SwiftRegexDSL",
"path" : "Sources/SwiftRegexDSL",
"product_memberships" : [
"SwiftRegexDSL"
],
"sources" : [
"Anchor.swift",
"Character Class.swift",
"Engine/AlternativeRegexBuilder.swift",
"Engine/Regex+extensions.swift",
"Engine/Regex.swift",
"Engine/RegexBuilder.swift",
"Engine/RegexModifier.swift",
"Group/Alternarive.swift",
"Group/Assertion.swift",
"Group/Capture.swift",
"Group/Comment.swift",
"Group/Group.swift",
"Group/PatternOptions.swift",
"Quantifier.swift",
"RegexSet.swift",
"Special Characters.swift",
"Text.swift",
"UnsafeText.swift",
"UnsafeUnicode.swift"
],
"type" : "library"
}
],
"tools_version" : "5.4"
}
Done.