Build Information
Successful build of Regex with Swift 6.0 for macOS (SPM).
Swift 6 data race errors: 10
Build Command
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
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 /Users/admin/builder/spi-builder-workspace/.git/
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: macosSpm
Swift version: 6.0
Building package at path: $workDir
https://github.com/crossroadlabs/Regex.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-6F35C1178C84523A.txt
[3/11] Compiling Regex PlatformTypes.swift
[4/11] Compiling Regex Utils.swift
[5/11] Compiling Regex String+Regex.swift
[6/11] Compiling Regex MatchSequence.swift
[7/11] Compiling Regex Regex.swift
/Users/admin/builder/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 |
[8/11] Compiling Regex RegexOptions.swift
/Users/admin/builder/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 | /**
/Users/admin/builder/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 | /**
/Users/admin/builder/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 | /**
/Users/admin/builder/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 | /**
/Users/admin/builder/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 | /**
/Users/admin/builder/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 | /**
/Users/admin/builder/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 |
/Users/admin/builder/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 |
/Users/admin/builder/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.
/Users/admin/builder/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
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] = [
| |- 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
| |- 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,
/Users/admin/builder/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
[9/11] Emitting module Regex
/Users/admin/builder/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 | /**
/Users/admin/builder/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 | /**
/Users/admin/builder/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 | /**
/Users/admin/builder/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 | /**
/Users/admin/builder/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 | /**
/Users/admin/builder/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 | /**
/Users/admin/builder/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 |
/Users/admin/builder/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 |
/Users/admin/builder/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.
/Users/admin/builder/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
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] = [
| |- 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
| |- 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,
/Users/admin/builder/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
[10/11] Compiling Regex GroupRangeUtils.swift
[11/11] Compiling Regex Match.swift
Build complete! (20.52s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "Regex",
"name" : "Regex",
"path" : "/Users/admin/builder/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.