Build Information
Successful build of Markup with Swift 6.0 for Linux.
Swift 6 data race errors: 40
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/SwiftDocOrg/Markup.git
Reference: main
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/SwiftDocOrg/Markup
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 1ae88db Update README.md
Cloned https://github.com/SwiftDocOrg/Markup.git
Revision (git rev-parse @):
1ae88db3de6b549aec9cb45e6a88f675b51e2460
SUCCESS checkout https://github.com/SwiftDocOrg/Markup.git at main
========================================
Build
========================================
Selected platform: linux
Swift version: 6.0
Building package at path: $workDir
https://github.com/SwiftDocOrg/Markup.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/7] Write sources
[6/7] Write swift-version-24593BA9C3E375BF.txt
[8/23] Emitting module XInclude
[9/23] Compiling XInclude XInclude.swift
[11/24] Emitting module XSLT
[12/24] Compiling XSLT XSLT.swift
[14/25] Compiling DOM Element.swift
[15/25] Compiling DOM Error.swift
[16/26] Compiling DOM String+Extensions.swift
/host/spi-builder-workspace/Sources/DOM/Extensions/String+Extensions.swift:8:17: warning: reference to var 'xmlFree' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
6 | defer {
7 | if freeWhenDone {
8 | xmlFree(xmlString)
| `- warning: reference to var 'xmlFree' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
9 | }
10 | }
libxml2.xmlFree:1:12: note: var declared here
1 | public var xmlFree: xmlFreeFunc!
| `- note: var declared here
[17/26] Compiling DOM Node.swift
[18/26] Compiling DOM ProcessingInstruction.swift
[19/26] Compiling DOM Text.swift
[20/26] Compiling DOM Comment.swift
[21/26] Compiling DOM Document.swift
[22/26] Compiling DOM DocumentFragment.swift
[23/26] Compiling DOM DocumentType.swift
[24/26] Emitting module DOM
/host/spi-builder-workspace/Sources/DOM/Builders/DOMBuilder.swift:1:2: warning: '@_functionBuilder' has been renamed to '@resultBuilder'
1 | @_functionBuilder
| `- warning: '@_functionBuilder' has been renamed to '@resultBuilder'
2 | public struct DOMBuilder {
3 |
/host/spi-builder-workspace/Sources/DOM/Builders/StringBuilder.swift:1:2: warning: '@_functionBuilder' has been renamed to '@resultBuilder'
1 | @_functionBuilder
| `- warning: '@_functionBuilder' has been renamed to '@resultBuilder'
2 | public struct StringBuilder {
3 | // MARK: buildBlock
[25/26] Compiling DOM DOMBuilder.swift
/host/spi-builder-workspace/Sources/DOM/Builders/DOMBuilder.swift:1:2: warning: '@_functionBuilder' has been renamed to '@resultBuilder'
1 | @_functionBuilder
| `- warning: '@_functionBuilder' has been renamed to '@resultBuilder'
2 | public struct DOMBuilder {
3 |
/host/spi-builder-workspace/Sources/DOM/Builders/StringBuilder.swift:1:2: warning: '@_functionBuilder' has been renamed to '@resultBuilder'
1 | @_functionBuilder
| `- warning: '@_functionBuilder' has been renamed to '@resultBuilder'
2 | public struct StringBuilder {
3 | // MARK: buildBlock
[26/26] Compiling DOM StringBuilder.swift
/host/spi-builder-workspace/Sources/DOM/Builders/DOMBuilder.swift:1:2: warning: '@_functionBuilder' has been renamed to '@resultBuilder'
1 | @_functionBuilder
| `- warning: '@_functionBuilder' has been renamed to '@resultBuilder'
2 | public struct DOMBuilder {
3 |
/host/spi-builder-workspace/Sources/DOM/Builders/StringBuilder.swift:1:2: warning: '@_functionBuilder' has been renamed to '@resultBuilder'
1 | @_functionBuilder
| `- warning: '@_functionBuilder' has been renamed to '@resultBuilder'
2 | public struct StringBuilder {
3 | // MARK: buildBlock
[28/33] Compiling XPath XPath.swift
/host/spi-builder-workspace/Sources/XPath/XPath.swift:3:17: warning: var 'initialization' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
1 | import libxml2
2 |
3 | fileprivate var initialization: Void = { xmlXPathInit() }()
| |- warning: var 'initialization' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'initialization' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'initialization' 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
4 |
5 | public enum Error: Swift.Error {
[29/33] Compiling XPath NodeSet.swift
[30/33] Compiling XPath Expression.swift
[31/33] Compiling XPath Object.swift
[32/33] Emitting module XPath
/host/spi-builder-workspace/Sources/XPath/XPath.swift:3:17: warning: var 'initialization' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
1 | import libxml2
2 |
3 | fileprivate var initialization: Void = { xmlXPathInit() }()
| |- warning: var 'initialization' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'initialization' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'initialization' 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
4 |
5 | public enum Error: Swift.Error {
[33/33] Compiling XPath Context.swift
[35/50] Compiling XML Namespace.swift
[36/50] Compiling XML Node.swift
/host/spi-builder-workspace/Sources/XML/Node.swift:5:1: warning: extension declares a conformance of imported type 'Node' to imported protocol 'Constructable'; this will not behave correctly if the owners of 'DOM' introduce this conformance in the future
3 | import DOM
4 |
5 | extension Node: Constructable {
| |- warning: extension declares a conformance of imported type 'Node' to imported protocol 'Constructable'; this will not behave correctly if the owners of 'DOM' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
6 | public static func construct(with rawValue: xmlNodePtr?) -> Node? {
7 | guard let rawValue = rawValue else {
[37/51] Emitting module XML
/host/spi-builder-workspace/Sources/XML/Document.swift:11:27: warning: static property 'wellFormed' is not concurrency-safe because non-'Sendable' type 'Document.Properties' may have shared mutable state; this is an error in the Swift 6 language mode
5 |
6 | public final class Document: DOM.Document {
7 | public struct Properties: OptionSet {
| `- note: consider making struct 'Properties' conform to the 'Sendable' protocol
8 | public var rawValue: Int32
9 |
10 | /// Document is XML well formed
11 | public static let wellFormed = Properties(XML_DOC_WELLFORMED)
| |- warning: static property 'wellFormed' is not concurrency-safe because non-'Sendable' type 'Document.Properties' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'wellFormed' 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
12 |
13 | /// Document is Namespace valid
/host/spi-builder-workspace/Sources/XML/Document.swift:14:27: warning: static property 'namespaceValid' is not concurrency-safe because non-'Sendable' type 'Document.Properties' may have shared mutable state; this is an error in the Swift 6 language mode
5 |
6 | public final class Document: DOM.Document {
7 | public struct Properties: OptionSet {
| `- note: consider making struct 'Properties' conform to the 'Sendable' protocol
8 | public var rawValue: Int32
9 |
:
12 |
13 | /// Document is Namespace valid
14 | public static let namespaceValid = Properties(XML_DOC_NSVALID)
| |- warning: static property 'namespaceValid' is not concurrency-safe because non-'Sendable' type 'Document.Properties' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'namespaceValid' 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 | /// DTD validation was successful
/host/spi-builder-workspace/Sources/XML/Document.swift:17:27: warning: static property 'dtdValid' is not concurrency-safe because non-'Sendable' type 'Document.Properties' may have shared mutable state; this is an error in the Swift 6 language mode
5 |
6 | public final class Document: DOM.Document {
7 | public struct Properties: OptionSet {
| `- note: consider making struct 'Properties' conform to the 'Sendable' protocol
8 | public var rawValue: Int32
9 |
:
15 |
16 | /// DTD validation was successful
17 | public static let dtdValid = Properties(XML_DOC_DTDVALID)
| |- warning: static property 'dtdValid' is not concurrency-safe because non-'Sendable' type 'Document.Properties' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'dtdValid' 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 | /// XInclude substitution was done
/host/spi-builder-workspace/Sources/XML/Document.swift:20:27: warning: static property 'performedXIncludeSubstitution' is not concurrency-safe because non-'Sendable' type 'Document.Properties' may have shared mutable state; this is an error in the Swift 6 language mode
5 |
6 | public final class Document: DOM.Document {
7 | public struct Properties: OptionSet {
| `- note: consider making struct 'Properties' conform to the 'Sendable' protocol
8 | public var rawValue: Int32
9 |
:
18 |
19 | /// XInclude substitution was done
20 | public static let performedXIncludeSubstitution = Properties(XML_DOC_XINCLUDE)
| |- warning: static property 'performedXIncludeSubstitution' is not concurrency-safe because non-'Sendable' type 'Document.Properties' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'performedXIncludeSubstitution' 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 | /// Document was built using the API and not by parsing an instance
/host/spi-builder-workspace/Sources/XML/Document.swift:23:27: warning: static property 'userBuilt' is not concurrency-safe because non-'Sendable' type 'Document.Properties' may have shared mutable state; this is an error in the Swift 6 language mode
5 |
6 | public final class Document: DOM.Document {
7 | public struct Properties: OptionSet {
| `- note: consider making struct 'Properties' conform to the 'Sendable' protocol
8 | public var rawValue: Int32
9 |
:
21 |
22 | /// Document was built using the API and not by parsing an instance
23 | public static let userBuilt = Properties(XML_DOC_USERBUILT)
| |- warning: static property 'userBuilt' is not concurrency-safe because non-'Sendable' type 'Document.Properties' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'userBuilt' 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 | /// Built for internal processing
/host/spi-builder-workspace/Sources/XML/Document.swift:26:27: warning: static property 'internalProcessing' is not concurrency-safe because non-'Sendable' type 'Document.Properties' may have shared mutable state; this is an error in the Swift 6 language mode
5 |
6 | public final class Document: DOM.Document {
7 | public struct Properties: OptionSet {
| `- note: consider making struct 'Properties' conform to the 'Sendable' protocol
8 | public var rawValue: Int32
9 |
:
24 |
25 | /// Built for internal processing
26 | public static let internalProcessing = Properties(XML_DOC_INTERNAL)
| |- warning: static property 'internalProcessing' is not concurrency-safe because non-'Sendable' type 'Document.Properties' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'internalProcessing' 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 | init(_ xmlDocProperties: xmlDocProperties) {
/host/spi-builder-workspace/Sources/XML/Extensions/XPath+Extensions.swift:12:1: warning: extension declares a conformance of imported type 'NodeSet' to imported protocols 'RandomAccessCollection', 'BidirectionalCollection', 'Collection', 'Sequence'; this will not behave correctly if the owners of 'XPath' introduce this conformance in the future
10 | }
11 |
12 | extension XPath.NodeSet: RandomAccessCollection {
| |- warning: extension declares a conformance of imported type 'NodeSet' to imported protocols 'RandomAccessCollection', 'BidirectionalCollection', 'Collection', 'Sequence'; this will not behave correctly if the owners of 'XPath' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
13 | public subscript(position: Int) -> Node? {
14 | precondition(position >= startIndex && position <= endIndex)
/host/spi-builder-workspace/Sources/XML/Node.swift:5:1: warning: extension declares a conformance of imported type 'Node' to imported protocol 'Constructable'; this will not behave correctly if the owners of 'DOM' introduce this conformance in the future
3 | import DOM
4 |
5 | extension Node: Constructable {
| |- warning: extension declares a conformance of imported type 'Node' to imported protocol 'Constructable'; this will not behave correctly if the owners of 'DOM' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
6 | public static func construct(with rawValue: xmlNodePtr?) -> Node? {
7 | guard let rawValue = rawValue else {
/host/spi-builder-workspace/Sources/XML/Parser.swift:10:27: warning: static property 'relaxed' is not concurrency-safe because non-'Sendable' type 'Parser.Options' may have shared mutable state; this is an error in the Swift 6 language mode
4 |
5 | public enum Parser {
6 | public struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
7 | public var rawValue: Int32
8 |
9 | /// Relaxed parser
10 | public static let relaxed = Options(XML_PARSE_RECOVER)
| |- warning: static property 'relaxed' is not concurrency-safe because non-'Sendable' type 'Parser.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'relaxed' 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
11 |
12 | /// Substitute entities.
/host/spi-builder-workspace/Sources/XML/Parser.swift:13:27: warning: static property 'substituteEntities' is not concurrency-safe because non-'Sendable' type 'Parser.Options' may have shared mutable state; this is an error in the Swift 6 language mode
4 |
5 | public enum Parser {
6 | public struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
7 | public var rawValue: Int32
8 |
:
11 |
12 | /// Substitute entities.
13 | public static let substituteEntities = Options(XML_PARSE_NOENT)
| |- warning: static property 'substituteEntities' is not concurrency-safe because non-'Sendable' type 'Parser.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'substituteEntities' 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
14 |
15 | /// Load external subset
/host/spi-builder-workspace/Sources/XML/Parser.swift:16:27: warning: static property 'loadDTDExternalSubset' is not concurrency-safe because non-'Sendable' type 'Parser.Options' may have shared mutable state; this is an error in the Swift 6 language mode
4 |
5 | public enum Parser {
6 | public struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
7 | public var rawValue: Int32
8 |
:
14 |
15 | /// Load external subset
16 | public static let loadDTDExternalSubset = Options(XML_PARSE_DTDLOAD)
| |- warning: static property 'loadDTDExternalSubset' is not concurrency-safe because non-'Sendable' type 'Parser.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'loadDTDExternalSubset' 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
17 |
18 | /// Use default DTD attributes
/host/spi-builder-workspace/Sources/XML/Parser.swift:19:27: warning: static property 'useDefaultDTDAttributes' is not concurrency-safe because non-'Sendable' type 'Parser.Options' may have shared mutable state; this is an error in the Swift 6 language mode
4 |
5 | public enum Parser {
6 | public struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
7 | public var rawValue: Int32
8 |
:
17 |
18 | /// Use default DTD attributes
19 | public static let useDefaultDTDAttributes = Options(XML_PARSE_DTDATTR)
| |- warning: static property 'useDefaultDTDAttributes' is not concurrency-safe because non-'Sendable' type 'Parser.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'useDefaultDTDAttributes' 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
20 |
21 | /// Validate with the DTD
/host/spi-builder-workspace/Sources/XML/Parser.swift:22:27: warning: static property 'validateDTD' is not concurrency-safe because non-'Sendable' type 'Parser.Options' may have shared mutable state; this is an error in the Swift 6 language mode
4 |
5 | public enum Parser {
6 | public struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
7 | public var rawValue: Int32
8 |
:
20 |
21 | /// Validate with the DTD
22 | public static let validateDTD = Options(XML_PARSE_DTDVALID)
| |- warning: static property 'validateDTD' is not concurrency-safe because non-'Sendable' type 'Parser.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'validateDTD' 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
23 |
24 | /// Suppress errors
/host/spi-builder-workspace/Sources/XML/Parser.swift:25:27: warning: static property 'suppressErrors' is not concurrency-safe because non-'Sendable' type 'Parser.Options' may have shared mutable state; this is an error in the Swift 6 language mode
4 |
5 | public enum Parser {
6 | public struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
7 | public var rawValue: Int32
8 |
:
23 |
24 | /// Suppress errors
25 | public static let suppressErrors = Options(XML_PARSE_NOERROR)
| |- warning: static property 'suppressErrors' is not concurrency-safe because non-'Sendable' type 'Parser.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'suppressErrors' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
26 |
27 | /// Suppress warnings
/host/spi-builder-workspace/Sources/XML/Parser.swift:28:27: warning: static property 'suppressWarnings' is not concurrency-safe because non-'Sendable' type 'Parser.Options' may have shared mutable state; this is an error in the Swift 6 language mode
4 |
5 | public enum Parser {
6 | public struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
7 | public var rawValue: Int32
8 |
:
26 |
27 | /// Suppress warnings
28 | public static let suppressWarnings = Options(XML_PARSE_NOWARNING)
| |- warning: static property 'suppressWarnings' is not concurrency-safe because non-'Sendable' type 'Parser.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'suppressWarnings' 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 |
30 | /// Pedantic error reporting
/host/spi-builder-workspace/Sources/XML/Parser.swift:31:27: warning: static property 'pedantic' is not concurrency-safe because non-'Sendable' type 'Parser.Options' may have shared mutable state; this is an error in the Swift 6 language mode
4 |
5 | public enum Parser {
6 | public struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
7 | public var rawValue: Int32
8 |
:
29 |
30 | /// Pedantic error reporting
31 | public static let pedantic = Options(XML_PARSE_PEDANTIC)
| |- warning: static property 'pedantic' is not concurrency-safe because non-'Sendable' type 'Parser.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'pedantic' 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
32 |
33 | /// Remove blank nodes
/host/spi-builder-workspace/Sources/XML/Parser.swift:34:27: warning: static property 'removeBlankNodes' is not concurrency-safe because non-'Sendable' type 'Parser.Options' may have shared mutable state; this is an error in the Swift 6 language mode
4 |
5 | public enum Parser {
6 | public struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
7 | public var rawValue: Int32
8 |
:
32 |
33 | /// Remove blank nodes
34 | public static let removeBlankNodes = Options(XML_PARSE_NOBLANKS)
| |- warning: static property 'removeBlankNodes' is not concurrency-safe because non-'Sendable' type 'Parser.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'removeBlankNodes' 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
35 |
36 | /// Use the SAX1 interface
/host/spi-builder-workspace/Sources/XML/Parser.swift:37:27: warning: static property 'useSAX1Interface' is not concurrency-safe because non-'Sendable' type 'Parser.Options' may have shared mutable state; this is an error in the Swift 6 language mode
4 |
5 | public enum Parser {
6 | public struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
7 | public var rawValue: Int32
8 |
:
35 |
36 | /// Use the SAX1 interface
37 | public static let useSAX1Interface = Options(XML_PARSE_SAX1)
| |- warning: static property 'useSAX1Interface' is not concurrency-safe because non-'Sendable' type 'Parser.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'useSAX1Interface' 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
38 |
39 | /// Implement XInclude substituion
/host/spi-builder-workspace/Sources/XML/Parser.swift:40:27: warning: static property 'implementXIncludeSubstitution' is not concurrency-safe because non-'Sendable' type 'Parser.Options' may have shared mutable state; this is an error in the Swift 6 language mode
4 |
5 | public enum Parser {
6 | public struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
7 | public var rawValue: Int32
8 |
:
38 |
39 | /// Implement XInclude substituion
40 | public static let implementXIncludeSubstitution = Options(XML_PARSE_XINCLUDE)
| |- warning: static property 'implementXIncludeSubstitution' is not concurrency-safe because non-'Sendable' type 'Parser.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'implementXIncludeSubstitution' 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
41 |
42 | /// Forbid network access
/host/spi-builder-workspace/Sources/XML/Parser.swift:43:27: warning: static property 'forbidNetworkAccess' is not concurrency-safe because non-'Sendable' type 'Parser.Options' may have shared mutable state; this is an error in the Swift 6 language mode
4 |
5 | public enum Parser {
6 | public struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
7 | public var rawValue: Int32
8 |
:
41 |
42 | /// Forbid network access
43 | public static let forbidNetworkAccess = Options(XML_PARSE_NONET)
| |- warning: static property 'forbidNetworkAccess' is not concurrency-safe because non-'Sendable' type 'Parser.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'forbidNetworkAccess' 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
44 |
45 | /// Do not reuse the context dictionary
/host/spi-builder-workspace/Sources/XML/Parser.swift:46:27: warning: static property 'noContextDictionaryReuse' is not concurrency-safe because non-'Sendable' type 'Parser.Options' may have shared mutable state; this is an error in the Swift 6 language mode
4 |
5 | public enum Parser {
6 | public struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
7 | public var rawValue: Int32
8 |
:
44 |
45 | /// Do not reuse the context dictionary
46 | public static let noContextDictionaryReuse = Options(XML_PARSE_NODICT)
| |- warning: static property 'noContextDictionaryReuse' is not concurrency-safe because non-'Sendable' type 'Parser.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'noContextDictionaryReuse' 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
47 |
48 | /// Remove redundant namespaces declarations
/host/spi-builder-workspace/Sources/XML/Parser.swift:49:27: warning: static property 'removeRedundantNamespaceDeclarations' is not concurrency-safe because non-'Sendable' type 'Parser.Options' may have shared mutable state; this is an error in the Swift 6 language mode
4 |
5 | public enum Parser {
6 | public struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
7 | public var rawValue: Int32
8 |
:
47 |
48 | /// Remove redundant namespaces declarations
49 | public static let removeRedundantNamespaceDeclarations = Options(XML_PARSE_NSCLEAN)
| |- warning: static property 'removeRedundantNamespaceDeclarations' is not concurrency-safe because non-'Sendable' type 'Parser.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'removeRedundantNamespaceDeclarations' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
50 |
51 | /// Merge CDATA as text nodes
/host/spi-builder-workspace/Sources/XML/Parser.swift:52:27: warning: static property 'mergeCDATA' is not concurrency-safe because non-'Sendable' type 'Parser.Options' may have shared mutable state; this is an error in the Swift 6 language mode
4 |
5 | public enum Parser {
6 | public struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
7 | public var rawValue: Int32
8 |
:
50 |
51 | /// Merge CDATA as text nodes
52 | public static let mergeCDATA = Options(XML_PARSE_NOCDATA)
| |- warning: static property 'mergeCDATA' is not concurrency-safe because non-'Sendable' type 'Parser.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'mergeCDATA' 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 | /// Do not generate XINCLUDE START/END nodes
/host/spi-builder-workspace/Sources/XML/Parser.swift:55:27: warning: static property 'noXIncludeDelimiterNodes' is not concurrency-safe because non-'Sendable' type 'Parser.Options' may have shared mutable state; this is an error in the Swift 6 language mode
4 |
5 | public enum Parser {
6 | public struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
7 | public var rawValue: Int32
8 |
:
53 |
54 | /// Do not generate XINCLUDE START/END nodes
55 | public static let noXIncludeDelimiterNodes = Options(XML_PARSE_NOXINCNODE)
| |- warning: static property 'noXIncludeDelimiterNodes' is not concurrency-safe because non-'Sendable' type 'Parser.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'noXIncludeDelimiterNodes' 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
56 |
57 | /// Compact small text nodes.
/host/spi-builder-workspace/Sources/XML/Parser.swift:59:27: warning: static property 'compact' is not concurrency-safe because non-'Sendable' type 'Parser.Options' may have shared mutable state; this is an error in the Swift 6 language mode
4 |
5 | public enum Parser {
6 | public struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
7 | public var rawValue: Int32
8 |
:
57 | /// Compact small text nodes.
58 | /// - Warning: Modification of the resulting tree isn't allowed
59 | public static let compact = Options(XML_PARSE_COMPACT)
| |- warning: static property 'compact' is not concurrency-safe because non-'Sendable' type 'Parser.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'compact' 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
60 |
61 | /// Do not fixup XINCLUDE xml:base uris
/host/spi-builder-workspace/Sources/XML/Parser.swift:62:27: warning: static property 'noXIncludeBaseURIFixup' is not concurrency-safe because non-'Sendable' type 'Parser.Options' may have shared mutable state; this is an error in the Swift 6 language mode
4 |
5 | public enum Parser {
6 | public struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
7 | public var rawValue: Int32
8 |
:
60 |
61 | /// Do not fixup XINCLUDE xml:base uris
62 | public static let noXIncludeBaseURIFixup = Options(XML_PARSE_NOBASEFIX)
| |- warning: static property 'noXIncludeBaseURIFixup' is not concurrency-safe because non-'Sendable' type 'Parser.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'noXIncludeBaseURIFixup' 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 | /// Relax any hardcoded limit from the parser
/host/spi-builder-workspace/Sources/XML/Parser.swift:65:27: warning: static property 'relaxHardcodedLimits' is not concurrency-safe because non-'Sendable' type 'Parser.Options' may have shared mutable state; this is an error in the Swift 6 language mode
4 |
5 | public enum Parser {
6 | public struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
7 | public var rawValue: Int32
8 |
:
63 |
64 | /// Relax any hardcoded limit from the parser
65 | public static let relaxHardcodedLimits = Options(XML_PARSE_HUGE)
| |- warning: static property 'relaxHardcodedLimits' is not concurrency-safe because non-'Sendable' type 'Parser.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'relaxHardcodedLimits' 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
66 |
67 | /// Ignore internal document encoding hint
/host/spi-builder-workspace/Sources/XML/Parser.swift:68:27: warning: static property 'ignoreEncodingHint' is not concurrency-safe because non-'Sendable' type 'Parser.Options' may have shared mutable state; this is an error in the Swift 6 language mode
4 |
5 | public enum Parser {
6 | public struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
7 | public var rawValue: Int32
8 |
:
66 |
67 | /// Ignore internal document encoding hint
68 | public static let ignoreEncodingHint = Options(XML_PARSE_IGNORE_ENC)
| |- warning: static property 'ignoreEncodingHint' is not concurrency-safe because non-'Sendable' type 'Parser.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'ignoreEncodingHint' 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
69 |
70 | /// Store big lines numbers in text PSVI field
/host/spi-builder-workspace/Sources/XML/Parser.swift:71:27: warning: static property 'bigLineNumbers' is not concurrency-safe because non-'Sendable' type 'Parser.Options' may have shared mutable state; this is an error in the Swift 6 language mode
4 |
5 | public enum Parser {
6 | public struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
7 | public var rawValue: Int32
8 |
:
69 |
70 | /// Store big lines numbers in text PSVI field
71 | public static let bigLineNumbers = Options(XML_PARSE_BIG_LINES)
| |- warning: static property 'bigLineNumbers' is not concurrency-safe because non-'Sendable' type 'Parser.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'bigLineNumbers' 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
72 |
73 | init(_ xmlParserOption: xmlParserOption) {
/host/spi-builder-workspace/Sources/XML/Parser.swift:109:17: warning: var 'initialization' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
107 | // MARK: -
108 |
109 | fileprivate var initialization: Void = { xmlInitParser() }()
| |- warning: var 'initialization' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'initialization' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'initialization' 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 |
[38/51] Compiling XML DocumentFragment.swift
[39/51] Compiling XML Element.swift
[40/51] Compiling XML XPath+Extensions.swift
/host/spi-builder-workspace/Sources/XML/Extensions/XPath+Extensions.swift:12:1: warning: extension declares a conformance of imported type 'NodeSet' to imported protocols 'RandomAccessCollection', 'BidirectionalCollection', 'Collection', 'Sequence'; this will not behave correctly if the owners of 'XPath' introduce this conformance in the future
10 | }
11 |
12 | extension XPath.NodeSet: RandomAccessCollection {
| |- warning: extension declares a conformance of imported type 'NodeSet' to imported protocols 'RandomAccessCollection', 'BidirectionalCollection', 'Collection', 'Sequence'; this will not behave correctly if the owners of 'XPath' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
13 | public subscript(position: Int) -> Node? {
14 | precondition(position >= startIndex && position <= endIndex)
[41/51] Compiling HTML Node.swift
/host/spi-builder-workspace/Sources/HTML/Node.swift:5:1: warning: extension declares a conformance of imported type 'Node' to imported protocol 'Constructable'; this will not behave correctly if the owners of 'DOM' introduce this conformance in the future
3 | import DOM
4 |
5 | extension Node: Constructable {
| |- warning: extension declares a conformance of imported type 'Node' to imported protocol 'Constructable'; this will not behave correctly if the owners of 'DOM' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
6 | public static func construct(with rawValue: xmlNodePtr?) -> Node? {
7 | guard let rawValue = rawValue else {
[42/51] Compiling HTML Parser.swift
/host/spi-builder-workspace/Sources/HTML/Parser.swift:10:27: warning: static property 'relaxed' is not concurrency-safe because non-'Sendable' type 'Parser.Options' may have shared mutable state; this is an error in the Swift 6 language mode
4 |
5 | public enum Parser {
6 | public struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
7 | public var rawValue: Int32
8 |
9 | /// Relaxed parsing
10 | public static let relaxed = Options(HTML_PARSE_RECOVER)
| |- warning: static property 'relaxed' is not concurrency-safe because non-'Sendable' type 'Parser.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'relaxed' 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
11 |
12 | /// Do not default a doctype if not found
/host/spi-builder-workspace/Sources/HTML/Parser.swift:13:27: warning: static property 'noDefaultDTD' is not concurrency-safe because non-'Sendable' type 'Parser.Options' may have shared mutable state; this is an error in the Swift 6 language mode
4 |
5 | public enum Parser {
6 | public struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
7 | public var rawValue: Int32
8 |
:
11 |
12 | /// Do not default a doctype if not found
13 | public static let noDefaultDTD = Options(HTML_PARSE_NODEFDTD)
| |- warning: static property 'noDefaultDTD' is not concurrency-safe because non-'Sendable' type 'Parser.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'noDefaultDTD' 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
14 |
15 | /// Suppress errors
/host/spi-builder-workspace/Sources/HTML/Parser.swift:16:27: warning: static property 'suppressErrors' is not concurrency-safe because non-'Sendable' type 'Parser.Options' may have shared mutable state; this is an error in the Swift 6 language mode
4 |
5 | public enum Parser {
6 | public struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
7 | public var rawValue: Int32
8 |
:
14 |
15 | /// Suppress errors
16 | public static let suppressErrors = Options(HTML_PARSE_NOERROR)
| |- warning: static property 'suppressErrors' is not concurrency-safe because non-'Sendable' type 'Parser.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'suppressErrors' 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
17 |
18 | /// Suppress warnings
/host/spi-builder-workspace/Sources/HTML/Parser.swift:19:27: warning: static property 'suppressWarnings' is not concurrency-safe because non-'Sendable' type 'Parser.Options' may have shared mutable state; this is an error in the Swift 6 language mode
4 |
5 | public enum Parser {
6 | public struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
7 | public var rawValue: Int32
8 |
:
17 |
18 | /// Suppress warnings
19 | public static let suppressWarnings = Options(HTML_PARSE_NOWARNING)
| |- warning: static property 'suppressWarnings' is not concurrency-safe because non-'Sendable' type 'Parser.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'suppressWarnings' 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
20 |
21 | /// Pedantic error reporting
/host/spi-builder-workspace/Sources/HTML/Parser.swift:22:27: warning: static property 'pedantic' is not concurrency-safe because non-'Sendable' type 'Parser.Options' may have shared mutable state; this is an error in the Swift 6 language mode
4 |
5 | public enum Parser {
6 | public struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
7 | public var rawValue: Int32
8 |
:
20 |
21 | /// Pedantic error reporting
22 | public static let pedantic = Options(HTML_PARSE_PEDANTIC)
| |- warning: static property 'pedantic' is not concurrency-safe because non-'Sendable' type 'Parser.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'pedantic' 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
23 |
24 | /// Remove blank nodes
/host/spi-builder-workspace/Sources/HTML/Parser.swift:25:27: warning: static property 'removeBlankNodes' is not concurrency-safe because non-'Sendable' type 'Parser.Options' may have shared mutable state; this is an error in the Swift 6 language mode
4 |
5 | public enum Parser {
6 | public struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
7 | public var rawValue: Int32
8 |
:
23 |
24 | /// Remove blank nodes
25 | public static let removeBlankNodes = Options(HTML_PARSE_NOBLANKS)
| |- warning: static property 'removeBlankNodes' is not concurrency-safe because non-'Sendable' type 'Parser.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'removeBlankNodes' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
26 |
27 | /// Forbid network access
/host/spi-builder-workspace/Sources/HTML/Parser.swift:28:27: warning: static property 'forbidNetworkAccess' is not concurrency-safe because non-'Sendable' type 'Parser.Options' may have shared mutable state; this is an error in the Swift 6 language mode
4 |
5 | public enum Parser {
6 | public struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
7 | public var rawValue: Int32
8 |
:
26 |
27 | /// Forbid network access
28 | public static let forbidNetworkAccess = Options(HTML_PARSE_NONET)
| |- warning: static property 'forbidNetworkAccess' is not concurrency-safe because non-'Sendable' type 'Parser.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'forbidNetworkAccess' 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 |
30 | /// Do not add implied html/body... elements
/host/spi-builder-workspace/Sources/HTML/Parser.swift:31:27: warning: static property 'omitImpliedTags' is not concurrency-safe because non-'Sendable' type 'Parser.Options' may have shared mutable state; this is an error in the Swift 6 language mode
4 |
5 | public enum Parser {
6 | public struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
7 | public var rawValue: Int32
8 |
:
29 |
30 | /// Do not add implied html/body... elements
31 | public static let omitImpliedTags = Options(HTML_PARSE_NOIMPLIED)
| |- warning: static property 'omitImpliedTags' is not concurrency-safe because non-'Sendable' type 'Parser.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'omitImpliedTags' 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
32 |
33 | /// Compact small text nodes
/host/spi-builder-workspace/Sources/HTML/Parser.swift:34:27: warning: static property 'compact' is not concurrency-safe because non-'Sendable' type 'Parser.Options' may have shared mutable state; this is an error in the Swift 6 language mode
4 |
5 | public enum Parser {
6 | public struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
7 | public var rawValue: Int32
8 |
:
32 |
33 | /// Compact small text nodes
34 | public static let compact = Options(HTML_PARSE_COMPACT)
| |- warning: static property 'compact' is not concurrency-safe because non-'Sendable' type 'Parser.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'compact' 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
35 |
36 | /// Ignore internal document encoding hint
/host/spi-builder-workspace/Sources/HTML/Parser.swift:37:27: warning: static property 'ignoreDocumentEncodingHint' is not concurrency-safe because non-'Sendable' type 'Parser.Options' may have shared mutable state; this is an error in the Swift 6 language mode
4 |
5 | public enum Parser {
6 | public struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
7 | public var rawValue: Int32
8 |
:
35 |
36 | /// Ignore internal document encoding hint
37 | public static let ignoreDocumentEncodingHint = Options(HTML_PARSE_IGNORE_ENC)
| |- warning: static property 'ignoreDocumentEncodingHint' is not concurrency-safe because non-'Sendable' type 'Parser.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'ignoreDocumentEncodingHint' 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
38 |
39 | init(_ xmlParserOption: htmlParserOption) {
/host/spi-builder-workspace/Sources/HTML/Parser.swift:77:17: warning: var 'initialization' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
75 | // MARK: -
76 |
77 | fileprivate var initialization: Void = { xmlInitParser() }()
| |- warning: var 'initialization' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'initialization' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'initialization' 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
78 |
[43/51] Compiling HTML Element.swift
[44/51] Compiling HTML XPath+Extensions.swift
/host/spi-builder-workspace/Sources/HTML/Extensions/XPath+Extensions.swift:6:1: warning: extension declares a conformance of imported type 'NodeSet' to imported protocols 'RandomAccessCollection', 'BidirectionalCollection', 'Collection', 'Sequence'; this will not behave correctly if the owners of 'XPath' introduce this conformance in the future
4 | import XPath
5 |
6 | extension XPath.NodeSet: RandomAccessCollection {
| |- warning: extension declares a conformance of imported type 'NodeSet' to imported protocols 'RandomAccessCollection', 'BidirectionalCollection', 'Collection', 'Sequence'; this will not behave correctly if the owners of 'XPath' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
7 | public subscript(position: Int) -> Node? {
8 | precondition(position >= startIndex && position <= endIndex)
[45/51] Compiling HTML DocumentFragment.swift
[46/51] Compiling HTML HTMLTags.swift
[47/51] Compiling XML CDATA.swift
[48/51] Compiling XML Document.swift
/host/spi-builder-workspace/Sources/XML/Document.swift:11:27: warning: static property 'wellFormed' is not concurrency-safe because non-'Sendable' type 'Document.Properties' may have shared mutable state; this is an error in the Swift 6 language mode
5 |
6 | public final class Document: DOM.Document {
7 | public struct Properties: OptionSet {
| `- note: consider making struct 'Properties' conform to the 'Sendable' protocol
8 | public var rawValue: Int32
9 |
10 | /// Document is XML well formed
11 | public static let wellFormed = Properties(XML_DOC_WELLFORMED)
| |- warning: static property 'wellFormed' is not concurrency-safe because non-'Sendable' type 'Document.Properties' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'wellFormed' 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
12 |
13 | /// Document is Namespace valid
/host/spi-builder-workspace/Sources/XML/Document.swift:14:27: warning: static property 'namespaceValid' is not concurrency-safe because non-'Sendable' type 'Document.Properties' may have shared mutable state; this is an error in the Swift 6 language mode
5 |
6 | public final class Document: DOM.Document {
7 | public struct Properties: OptionSet {
| `- note: consider making struct 'Properties' conform to the 'Sendable' protocol
8 | public var rawValue: Int32
9 |
:
12 |
13 | /// Document is Namespace valid
14 | public static let namespaceValid = Properties(XML_DOC_NSVALID)
| |- warning: static property 'namespaceValid' is not concurrency-safe because non-'Sendable' type 'Document.Properties' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'namespaceValid' 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 | /// DTD validation was successful
/host/spi-builder-workspace/Sources/XML/Document.swift:17:27: warning: static property 'dtdValid' is not concurrency-safe because non-'Sendable' type 'Document.Properties' may have shared mutable state; this is an error in the Swift 6 language mode
5 |
6 | public final class Document: DOM.Document {
7 | public struct Properties: OptionSet {
| `- note: consider making struct 'Properties' conform to the 'Sendable' protocol
8 | public var rawValue: Int32
9 |
:
15 |
16 | /// DTD validation was successful
17 | public static let dtdValid = Properties(XML_DOC_DTDVALID)
| |- warning: static property 'dtdValid' is not concurrency-safe because non-'Sendable' type 'Document.Properties' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'dtdValid' 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 | /// XInclude substitution was done
/host/spi-builder-workspace/Sources/XML/Document.swift:20:27: warning: static property 'performedXIncludeSubstitution' is not concurrency-safe because non-'Sendable' type 'Document.Properties' may have shared mutable state; this is an error in the Swift 6 language mode
5 |
6 | public final class Document: DOM.Document {
7 | public struct Properties: OptionSet {
| `- note: consider making struct 'Properties' conform to the 'Sendable' protocol
8 | public var rawValue: Int32
9 |
:
18 |
19 | /// XInclude substitution was done
20 | public static let performedXIncludeSubstitution = Properties(XML_DOC_XINCLUDE)
| |- warning: static property 'performedXIncludeSubstitution' is not concurrency-safe because non-'Sendable' type 'Document.Properties' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'performedXIncludeSubstitution' 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 | /// Document was built using the API and not by parsing an instance
/host/spi-builder-workspace/Sources/XML/Document.swift:23:27: warning: static property 'userBuilt' is not concurrency-safe because non-'Sendable' type 'Document.Properties' may have shared mutable state; this is an error in the Swift 6 language mode
5 |
6 | public final class Document: DOM.Document {
7 | public struct Properties: OptionSet {
| `- note: consider making struct 'Properties' conform to the 'Sendable' protocol
8 | public var rawValue: Int32
9 |
:
21 |
22 | /// Document was built using the API and not by parsing an instance
23 | public static let userBuilt = Properties(XML_DOC_USERBUILT)
| |- warning: static property 'userBuilt' is not concurrency-safe because non-'Sendable' type 'Document.Properties' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'userBuilt' 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 | /// Built for internal processing
/host/spi-builder-workspace/Sources/XML/Document.swift:26:27: warning: static property 'internalProcessing' is not concurrency-safe because non-'Sendable' type 'Document.Properties' may have shared mutable state; this is an error in the Swift 6 language mode
5 |
6 | public final class Document: DOM.Document {
7 | public struct Properties: OptionSet {
| `- note: consider making struct 'Properties' conform to the 'Sendable' protocol
8 | public var rawValue: Int32
9 |
:
24 |
25 | /// Built for internal processing
26 | public static let internalProcessing = Properties(XML_DOC_INTERNAL)
| |- warning: static property 'internalProcessing' is not concurrency-safe because non-'Sendable' type 'Document.Properties' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'internalProcessing' 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 | init(_ xmlDocProperties: xmlDocProperties) {
/host/spi-builder-workspace/Sources/XML/Document.swift:63:17: warning: reference to var 'xmlFree' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
61 | public override var description: String {
62 | var buffer: UnsafeMutablePointer<xmlChar>?
63 | defer { xmlFree(buffer) }
| `- warning: reference to var 'xmlFree' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
64 |
65 | xmlDocDumpMemoryEnc(xmlDoc, &buffer, nil, "UTF-8")
libxml2.xmlFree:1:12: note: var declared here
1 | public var xmlFree: xmlFreeFunc!
| `- note: var declared here
[49/51] Compiling HTML Document.swift
[50/51] Emitting module HTML
/host/spi-builder-workspace/Sources/HTML/Extensions/XPath+Extensions.swift:6:1: warning: extension declares a conformance of imported type 'NodeSet' to imported protocols 'RandomAccessCollection', 'BidirectionalCollection', 'Collection', 'Sequence'; this will not behave correctly if the owners of 'XPath' introduce this conformance in the future
4 | import XPath
5 |
6 | extension XPath.NodeSet: RandomAccessCollection {
| |- warning: extension declares a conformance of imported type 'NodeSet' to imported protocols 'RandomAccessCollection', 'BidirectionalCollection', 'Collection', 'Sequence'; this will not behave correctly if the owners of 'XPath' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
7 | public subscript(position: Int) -> Node? {
8 | precondition(position >= startIndex && position <= endIndex)
/host/spi-builder-workspace/Sources/HTML/Node.swift:5:1: warning: extension declares a conformance of imported type 'Node' to imported protocol 'Constructable'; this will not behave correctly if the owners of 'DOM' introduce this conformance in the future
3 | import DOM
4 |
5 | extension Node: Constructable {
| |- warning: extension declares a conformance of imported type 'Node' to imported protocol 'Constructable'; this will not behave correctly if the owners of 'DOM' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
6 | public static func construct(with rawValue: xmlNodePtr?) -> Node? {
7 | guard let rawValue = rawValue else {
/host/spi-builder-workspace/Sources/HTML/Parser.swift:10:27: warning: static property 'relaxed' is not concurrency-safe because non-'Sendable' type 'Parser.Options' may have shared mutable state; this is an error in the Swift 6 language mode
4 |
5 | public enum Parser {
6 | public struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
7 | public var rawValue: Int32
8 |
9 | /// Relaxed parsing
10 | public static let relaxed = Options(HTML_PARSE_RECOVER)
| |- warning: static property 'relaxed' is not concurrency-safe because non-'Sendable' type 'Parser.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'relaxed' 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
11 |
12 | /// Do not default a doctype if not found
/host/spi-builder-workspace/Sources/HTML/Parser.swift:13:27: warning: static property 'noDefaultDTD' is not concurrency-safe because non-'Sendable' type 'Parser.Options' may have shared mutable state; this is an error in the Swift 6 language mode
4 |
5 | public enum Parser {
6 | public struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
7 | public var rawValue: Int32
8 |
:
11 |
12 | /// Do not default a doctype if not found
13 | public static let noDefaultDTD = Options(HTML_PARSE_NODEFDTD)
| |- warning: static property 'noDefaultDTD' is not concurrency-safe because non-'Sendable' type 'Parser.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'noDefaultDTD' 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
14 |
15 | /// Suppress errors
/host/spi-builder-workspace/Sources/HTML/Parser.swift:16:27: warning: static property 'suppressErrors' is not concurrency-safe because non-'Sendable' type 'Parser.Options' may have shared mutable state; this is an error in the Swift 6 language mode
4 |
5 | public enum Parser {
6 | public struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
7 | public var rawValue: Int32
8 |
:
14 |
15 | /// Suppress errors
16 | public static let suppressErrors = Options(HTML_PARSE_NOERROR)
| |- warning: static property 'suppressErrors' is not concurrency-safe because non-'Sendable' type 'Parser.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'suppressErrors' 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
17 |
18 | /// Suppress warnings
/host/spi-builder-workspace/Sources/HTML/Parser.swift:19:27: warning: static property 'suppressWarnings' is not concurrency-safe because non-'Sendable' type 'Parser.Options' may have shared mutable state; this is an error in the Swift 6 language mode
4 |
5 | public enum Parser {
6 | public struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
7 | public var rawValue: Int32
8 |
:
17 |
18 | /// Suppress warnings
19 | public static let suppressWarnings = Options(HTML_PARSE_NOWARNING)
| |- warning: static property 'suppressWarnings' is not concurrency-safe because non-'Sendable' type 'Parser.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'suppressWarnings' 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
20 |
21 | /// Pedantic error reporting
/host/spi-builder-workspace/Sources/HTML/Parser.swift:22:27: warning: static property 'pedantic' is not concurrency-safe because non-'Sendable' type 'Parser.Options' may have shared mutable state; this is an error in the Swift 6 language mode
4 |
5 | public enum Parser {
6 | public struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
7 | public var rawValue: Int32
8 |
:
20 |
21 | /// Pedantic error reporting
22 | public static let pedantic = Options(HTML_PARSE_PEDANTIC)
| |- warning: static property 'pedantic' is not concurrency-safe because non-'Sendable' type 'Parser.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'pedantic' 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
23 |
24 | /// Remove blank nodes
/host/spi-builder-workspace/Sources/HTML/Parser.swift:25:27: warning: static property 'removeBlankNodes' is not concurrency-safe because non-'Sendable' type 'Parser.Options' may have shared mutable state; this is an error in the Swift 6 language mode
4 |
5 | public enum Parser {
6 | public struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
7 | public var rawValue: Int32
8 |
:
23 |
24 | /// Remove blank nodes
25 | public static let removeBlankNodes = Options(HTML_PARSE_NOBLANKS)
| |- warning: static property 'removeBlankNodes' is not concurrency-safe because non-'Sendable' type 'Parser.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'removeBlankNodes' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
26 |
27 | /// Forbid network access
/host/spi-builder-workspace/Sources/HTML/Parser.swift:28:27: warning: static property 'forbidNetworkAccess' is not concurrency-safe because non-'Sendable' type 'Parser.Options' may have shared mutable state; this is an error in the Swift 6 language mode
4 |
5 | public enum Parser {
6 | public struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
7 | public var rawValue: Int32
8 |
:
26 |
27 | /// Forbid network access
28 | public static let forbidNetworkAccess = Options(HTML_PARSE_NONET)
| |- warning: static property 'forbidNetworkAccess' is not concurrency-safe because non-'Sendable' type 'Parser.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'forbidNetworkAccess' 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 |
30 | /// Do not add implied html/body... elements
/host/spi-builder-workspace/Sources/HTML/Parser.swift:31:27: warning: static property 'omitImpliedTags' is not concurrency-safe because non-'Sendable' type 'Parser.Options' may have shared mutable state; this is an error in the Swift 6 language mode
4 |
5 | public enum Parser {
6 | public struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
7 | public var rawValue: Int32
8 |
:
29 |
30 | /// Do not add implied html/body... elements
31 | public static let omitImpliedTags = Options(HTML_PARSE_NOIMPLIED)
| |- warning: static property 'omitImpliedTags' is not concurrency-safe because non-'Sendable' type 'Parser.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'omitImpliedTags' 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
32 |
33 | /// Compact small text nodes
/host/spi-builder-workspace/Sources/HTML/Parser.swift:34:27: warning: static property 'compact' is not concurrency-safe because non-'Sendable' type 'Parser.Options' may have shared mutable state; this is an error in the Swift 6 language mode
4 |
5 | public enum Parser {
6 | public struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
7 | public var rawValue: Int32
8 |
:
32 |
33 | /// Compact small text nodes
34 | public static let compact = Options(HTML_PARSE_COMPACT)
| |- warning: static property 'compact' is not concurrency-safe because non-'Sendable' type 'Parser.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'compact' 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
35 |
36 | /// Ignore internal document encoding hint
/host/spi-builder-workspace/Sources/HTML/Parser.swift:37:27: warning: static property 'ignoreDocumentEncodingHint' is not concurrency-safe because non-'Sendable' type 'Parser.Options' may have shared mutable state; this is an error in the Swift 6 language mode
4 |
5 | public enum Parser {
6 | public struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
7 | public var rawValue: Int32
8 |
:
35 |
36 | /// Ignore internal document encoding hint
37 | public static let ignoreDocumentEncodingHint = Options(HTML_PARSE_IGNORE_ENC)
| |- warning: static property 'ignoreDocumentEncodingHint' is not concurrency-safe because non-'Sendable' type 'Parser.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'ignoreDocumentEncodingHint' 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
38 |
39 | init(_ xmlParserOption: htmlParserOption) {
/host/spi-builder-workspace/Sources/HTML/Parser.swift:77:17: warning: var 'initialization' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
75 | // MARK: -
76 |
77 | fileprivate var initialization: Void = { xmlInitParser() }()
| |- warning: var 'initialization' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'initialization' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'initialization' 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
78 |
[52/52] Compiling XML Parser.swift
/host/spi-builder-workspace/Sources/XML/Parser.swift:10:27: warning: static property 'relaxed' is not concurrency-safe because non-'Sendable' type 'Parser.Options' may have shared mutable state; this is an error in the Swift 6 language mode
4 |
5 | public enum Parser {
6 | public struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
7 | public var rawValue: Int32
8 |
9 | /// Relaxed parser
10 | public static let relaxed = Options(XML_PARSE_RECOVER)
| |- warning: static property 'relaxed' is not concurrency-safe because non-'Sendable' type 'Parser.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'relaxed' 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
11 |
12 | /// Substitute entities.
/host/spi-builder-workspace/Sources/XML/Parser.swift:13:27: warning: static property 'substituteEntities' is not concurrency-safe because non-'Sendable' type 'Parser.Options' may have shared mutable state; this is an error in the Swift 6 language mode
4 |
5 | public enum Parser {
6 | public struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
7 | public var rawValue: Int32
8 |
:
11 |
12 | /// Substitute entities.
13 | public static let substituteEntities = Options(XML_PARSE_NOENT)
| |- warning: static property 'substituteEntities' is not concurrency-safe because non-'Sendable' type 'Parser.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'substituteEntities' 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
14 |
15 | /// Load external subset
/host/spi-builder-workspace/Sources/XML/Parser.swift:16:27: warning: static property 'loadDTDExternalSubset' is not concurrency-safe because non-'Sendable' type 'Parser.Options' may have shared mutable state; this is an error in the Swift 6 language mode
4 |
5 | public enum Parser {
6 | public struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
7 | public var rawValue: Int32
8 |
:
14 |
15 | /// Load external subset
16 | public static let loadDTDExternalSubset = Options(XML_PARSE_DTDLOAD)
| |- warning: static property 'loadDTDExternalSubset' is not concurrency-safe because non-'Sendable' type 'Parser.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'loadDTDExternalSubset' 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
17 |
18 | /// Use default DTD attributes
/host/spi-builder-workspace/Sources/XML/Parser.swift:19:27: warning: static property 'useDefaultDTDAttributes' is not concurrency-safe because non-'Sendable' type 'Parser.Options' may have shared mutable state; this is an error in the Swift 6 language mode
4 |
5 | public enum Parser {
6 | public struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
7 | public var rawValue: Int32
8 |
:
17 |
18 | /// Use default DTD attributes
19 | public static let useDefaultDTDAttributes = Options(XML_PARSE_DTDATTR)
| |- warning: static property 'useDefaultDTDAttributes' is not concurrency-safe because non-'Sendable' type 'Parser.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'useDefaultDTDAttributes' 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
20 |
21 | /// Validate with the DTD
/host/spi-builder-workspace/Sources/XML/Parser.swift:22:27: warning: static property 'validateDTD' is not concurrency-safe because non-'Sendable' type 'Parser.Options' may have shared mutable state; this is an error in the Swift 6 language mode
4 |
5 | public enum Parser {
6 | public struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
7 | public var rawValue: Int32
8 |
:
20 |
21 | /// Validate with the DTD
22 | public static let validateDTD = Options(XML_PARSE_DTDVALID)
| |- warning: static property 'validateDTD' is not concurrency-safe because non-'Sendable' type 'Parser.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'validateDTD' 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
23 |
24 | /// Suppress errors
/host/spi-builder-workspace/Sources/XML/Parser.swift:25:27: warning: static property 'suppressErrors' is not concurrency-safe because non-'Sendable' type 'Parser.Options' may have shared mutable state; this is an error in the Swift 6 language mode
4 |
5 | public enum Parser {
6 | public struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
7 | public var rawValue: Int32
8 |
:
23 |
24 | /// Suppress errors
25 | public static let suppressErrors = Options(XML_PARSE_NOERROR)
| |- warning: static property 'suppressErrors' is not concurrency-safe because non-'Sendable' type 'Parser.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'suppressErrors' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
26 |
27 | /// Suppress warnings
/host/spi-builder-workspace/Sources/XML/Parser.swift:28:27: warning: static property 'suppressWarnings' is not concurrency-safe because non-'Sendable' type 'Parser.Options' may have shared mutable state; this is an error in the Swift 6 language mode
4 |
5 | public enum Parser {
6 | public struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
7 | public var rawValue: Int32
8 |
:
26 |
27 | /// Suppress warnings
28 | public static let suppressWarnings = Options(XML_PARSE_NOWARNING)
| |- warning: static property 'suppressWarnings' is not concurrency-safe because non-'Sendable' type 'Parser.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'suppressWarnings' 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 |
30 | /// Pedantic error reporting
/host/spi-builder-workspace/Sources/XML/Parser.swift:31:27: warning: static property 'pedantic' is not concurrency-safe because non-'Sendable' type 'Parser.Options' may have shared mutable state; this is an error in the Swift 6 language mode
4 |
5 | public enum Parser {
6 | public struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
7 | public var rawValue: Int32
8 |
:
29 |
30 | /// Pedantic error reporting
31 | public static let pedantic = Options(XML_PARSE_PEDANTIC)
| |- warning: static property 'pedantic' is not concurrency-safe because non-'Sendable' type 'Parser.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'pedantic' 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
32 |
33 | /// Remove blank nodes
/host/spi-builder-workspace/Sources/XML/Parser.swift:34:27: warning: static property 'removeBlankNodes' is not concurrency-safe because non-'Sendable' type 'Parser.Options' may have shared mutable state; this is an error in the Swift 6 language mode
4 |
5 | public enum Parser {
6 | public struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
7 | public var rawValue: Int32
8 |
:
32 |
33 | /// Remove blank nodes
34 | public static let removeBlankNodes = Options(XML_PARSE_NOBLANKS)
| |- warning: static property 'removeBlankNodes' is not concurrency-safe because non-'Sendable' type 'Parser.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'removeBlankNodes' 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
35 |
36 | /// Use the SAX1 interface
/host/spi-builder-workspace/Sources/XML/Parser.swift:37:27: warning: static property 'useSAX1Interface' is not concurrency-safe because non-'Sendable' type 'Parser.Options' may have shared mutable state; this is an error in the Swift 6 language mode
4 |
5 | public enum Parser {
6 | public struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
7 | public var rawValue: Int32
8 |
:
35 |
36 | /// Use the SAX1 interface
37 | public static let useSAX1Interface = Options(XML_PARSE_SAX1)
| |- warning: static property 'useSAX1Interface' is not concurrency-safe because non-'Sendable' type 'Parser.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'useSAX1Interface' 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
38 |
39 | /// Implement XInclude substituion
/host/spi-builder-workspace/Sources/XML/Parser.swift:40:27: warning: static property 'implementXIncludeSubstitution' is not concurrency-safe because non-'Sendable' type 'Parser.Options' may have shared mutable state; this is an error in the Swift 6 language mode
4 |
5 | public enum Parser {
6 | public struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
7 | public var rawValue: Int32
8 |
:
38 |
39 | /// Implement XInclude substituion
40 | public static let implementXIncludeSubstitution = Options(XML_PARSE_XINCLUDE)
| |- warning: static property 'implementXIncludeSubstitution' is not concurrency-safe because non-'Sendable' type 'Parser.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'implementXIncludeSubstitution' 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
41 |
42 | /// Forbid network access
/host/spi-builder-workspace/Sources/XML/Parser.swift:43:27: warning: static property 'forbidNetworkAccess' is not concurrency-safe because non-'Sendable' type 'Parser.Options' may have shared mutable state; this is an error in the Swift 6 language mode
4 |
5 | public enum Parser {
6 | public struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
7 | public var rawValue: Int32
8 |
:
41 |
42 | /// Forbid network access
43 | public static let forbidNetworkAccess = Options(XML_PARSE_NONET)
| |- warning: static property 'forbidNetworkAccess' is not concurrency-safe because non-'Sendable' type 'Parser.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'forbidNetworkAccess' 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
44 |
45 | /// Do not reuse the context dictionary
/host/spi-builder-workspace/Sources/XML/Parser.swift:46:27: warning: static property 'noContextDictionaryReuse' is not concurrency-safe because non-'Sendable' type 'Parser.Options' may have shared mutable state; this is an error in the Swift 6 language mode
4 |
5 | public enum Parser {
6 | public struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
7 | public var rawValue: Int32
8 |
:
44 |
45 | /// Do not reuse the context dictionary
46 | public static let noContextDictionaryReuse = Options(XML_PARSE_NODICT)
| |- warning: static property 'noContextDictionaryReuse' is not concurrency-safe because non-'Sendable' type 'Parser.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'noContextDictionaryReuse' 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
47 |
48 | /// Remove redundant namespaces declarations
/host/spi-builder-workspace/Sources/XML/Parser.swift:49:27: warning: static property 'removeRedundantNamespaceDeclarations' is not concurrency-safe because non-'Sendable' type 'Parser.Options' may have shared mutable state; this is an error in the Swift 6 language mode
4 |
5 | public enum Parser {
6 | public struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
7 | public var rawValue: Int32
8 |
:
47 |
48 | /// Remove redundant namespaces declarations
49 | public static let removeRedundantNamespaceDeclarations = Options(XML_PARSE_NSCLEAN)
| |- warning: static property 'removeRedundantNamespaceDeclarations' is not concurrency-safe because non-'Sendable' type 'Parser.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'removeRedundantNamespaceDeclarations' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
50 |
51 | /// Merge CDATA as text nodes
/host/spi-builder-workspace/Sources/XML/Parser.swift:52:27: warning: static property 'mergeCDATA' is not concurrency-safe because non-'Sendable' type 'Parser.Options' may have shared mutable state; this is an error in the Swift 6 language mode
4 |
5 | public enum Parser {
6 | public struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
7 | public var rawValue: Int32
8 |
:
50 |
51 | /// Merge CDATA as text nodes
52 | public static let mergeCDATA = Options(XML_PARSE_NOCDATA)
| |- warning: static property 'mergeCDATA' is not concurrency-safe because non-'Sendable' type 'Parser.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'mergeCDATA' 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 | /// Do not generate XINCLUDE START/END nodes
/host/spi-builder-workspace/Sources/XML/Parser.swift:55:27: warning: static property 'noXIncludeDelimiterNodes' is not concurrency-safe because non-'Sendable' type 'Parser.Options' may have shared mutable state; this is an error in the Swift 6 language mode
4 |
5 | public enum Parser {
6 | public struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
7 | public var rawValue: Int32
8 |
:
53 |
54 | /// Do not generate XINCLUDE START/END nodes
55 | public static let noXIncludeDelimiterNodes = Options(XML_PARSE_NOXINCNODE)
| |- warning: static property 'noXIncludeDelimiterNodes' is not concurrency-safe because non-'Sendable' type 'Parser.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'noXIncludeDelimiterNodes' 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
56 |
57 | /// Compact small text nodes.
/host/spi-builder-workspace/Sources/XML/Parser.swift:59:27: warning: static property 'compact' is not concurrency-safe because non-'Sendable' type 'Parser.Options' may have shared mutable state; this is an error in the Swift 6 language mode
4 |
5 | public enum Parser {
6 | public struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
7 | public var rawValue: Int32
8 |
:
57 | /// Compact small text nodes.
58 | /// - Warning: Modification of the resulting tree isn't allowed
59 | public static let compact = Options(XML_PARSE_COMPACT)
| |- warning: static property 'compact' is not concurrency-safe because non-'Sendable' type 'Parser.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'compact' 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
60 |
61 | /// Do not fixup XINCLUDE xml:base uris
/host/spi-builder-workspace/Sources/XML/Parser.swift:62:27: warning: static property 'noXIncludeBaseURIFixup' is not concurrency-safe because non-'Sendable' type 'Parser.Options' may have shared mutable state; this is an error in the Swift 6 language mode
4 |
5 | public enum Parser {
6 | public struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
7 | public var rawValue: Int32
8 |
:
60 |
61 | /// Do not fixup XINCLUDE xml:base uris
62 | public static let noXIncludeBaseURIFixup = Options(XML_PARSE_NOBASEFIX)
| |- warning: static property 'noXIncludeBaseURIFixup' is not concurrency-safe because non-'Sendable' type 'Parser.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'noXIncludeBaseURIFixup' 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 | /// Relax any hardcoded limit from the parser
/host/spi-builder-workspace/Sources/XML/Parser.swift:65:27: warning: static property 'relaxHardcodedLimits' is not concurrency-safe because non-'Sendable' type 'Parser.Options' may have shared mutable state; this is an error in the Swift 6 language mode
4 |
5 | public enum Parser {
6 | public struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
7 | public var rawValue: Int32
8 |
:
63 |
64 | /// Relax any hardcoded limit from the parser
65 | public static let relaxHardcodedLimits = Options(XML_PARSE_HUGE)
| |- warning: static property 'relaxHardcodedLimits' is not concurrency-safe because non-'Sendable' type 'Parser.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'relaxHardcodedLimits' 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
66 |
67 | /// Ignore internal document encoding hint
/host/spi-builder-workspace/Sources/XML/Parser.swift:68:27: warning: static property 'ignoreEncodingHint' is not concurrency-safe because non-'Sendable' type 'Parser.Options' may have shared mutable state; this is an error in the Swift 6 language mode
4 |
5 | public enum Parser {
6 | public struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
7 | public var rawValue: Int32
8 |
:
66 |
67 | /// Ignore internal document encoding hint
68 | public static let ignoreEncodingHint = Options(XML_PARSE_IGNORE_ENC)
| |- warning: static property 'ignoreEncodingHint' is not concurrency-safe because non-'Sendable' type 'Parser.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'ignoreEncodingHint' 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
69 |
70 | /// Store big lines numbers in text PSVI field
/host/spi-builder-workspace/Sources/XML/Parser.swift:71:27: warning: static property 'bigLineNumbers' is not concurrency-safe because non-'Sendable' type 'Parser.Options' may have shared mutable state; this is an error in the Swift 6 language mode
4 |
5 | public enum Parser {
6 | public struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
7 | public var rawValue: Int32
8 |
:
69 |
70 | /// Store big lines numbers in text PSVI field
71 | public static let bigLineNumbers = Options(XML_PARSE_BIG_LINES)
| |- warning: static property 'bigLineNumbers' is not concurrency-safe because non-'Sendable' type 'Parser.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'bigLineNumbers' 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
72 |
73 | init(_ xmlParserOption: xmlParserOption) {
/host/spi-builder-workspace/Sources/XML/Parser.swift:109:17: warning: var 'initialization' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
107 | // MARK: -
108 |
109 | fileprivate var initialization: Void = { xmlInitParser() }()
| |- warning: var 'initialization' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'initialization' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'initialization' 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 |
Build complete! (11.35s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "Markup",
"name" : "Markup",
"path" : "/host/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "Markup",
"targets" : [
"XML",
"HTML"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "libxml2",
"module_type" : "SystemLibraryTarget",
"name" : "libxml2",
"path" : "Modules",
"product_memberships" : [
"Markup"
],
"sources" : [
],
"type" : "system-target"
},
{
"c99name" : "XSLT",
"module_type" : "SwiftTarget",
"name" : "XSLT",
"path" : "Sources/XSLT",
"sources" : [
"XSLT.swift"
],
"target_dependencies" : [
"libxml2"
],
"type" : "library"
},
{
"c99name" : "XPath",
"module_type" : "SwiftTarget",
"name" : "XPath",
"path" : "Sources/XPath",
"product_memberships" : [
"Markup"
],
"sources" : [
"Context.swift",
"Expression.swift",
"NodeSet.swift",
"Object.swift",
"XPath.swift"
],
"target_dependencies" : [
"DOM",
"libxml2"
],
"type" : "library"
},
{
"c99name" : "XMLTests",
"module_type" : "SwiftTarget",
"name" : "XMLTests",
"path" : "Tests/XMLTests",
"sources" : [
"XMLBuilderTests.swift",
"XMLTests.swift"
],
"target_dependencies" : [
"XML"
],
"type" : "test"
},
{
"c99name" : "XML",
"module_type" : "SwiftTarget",
"name" : "XML",
"path" : "Sources/XML",
"product_memberships" : [
"Markup"
],
"sources" : [
"CDATA.swift",
"Document.swift",
"DocumentFragment.swift",
"Element.swift",
"Extensions/XPath+Extensions.swift",
"Namespace.swift",
"Node.swift",
"Parser.swift"
],
"target_dependencies" : [
"DOM",
"XPath",
"libxml2"
],
"type" : "library"
},
{
"c99name" : "XInclude",
"module_type" : "SwiftTarget",
"name" : "XInclude",
"path" : "Sources/XInclude",
"sources" : [
"XInclude.swift"
],
"target_dependencies" : [
"libxml2"
],
"type" : "library"
},
{
"c99name" : "HTMLTests",
"module_type" : "SwiftTarget",
"name" : "HTMLTests",
"path" : "Tests/HTMLTests",
"sources" : [
"HTMLBuilderTests.swift",
"HTMLTests.swift"
],
"target_dependencies" : [
"HTML"
],
"type" : "test"
},
{
"c99name" : "HTML",
"module_type" : "SwiftTarget",
"name" : "HTML",
"path" : "Sources/HTML",
"product_memberships" : [
"Markup"
],
"sources" : [
"Document.swift",
"DocumentFragment.swift",
"Element.swift",
"Extensions/XPath+Extensions.swift",
"HTMLTags.swift",
"Node.swift",
"Parser.swift"
],
"target_dependencies" : [
"DOM",
"XPath",
"libxml2"
],
"type" : "library"
},
{
"c99name" : "DOM",
"module_type" : "SwiftTarget",
"name" : "DOM",
"path" : "Sources/DOM",
"product_memberships" : [
"Markup"
],
"sources" : [
"Builders/DOMBuilder.swift",
"Builders/StringBuilder.swift",
"Comment.swift",
"Document.swift",
"DocumentFragment.swift",
"DocumentType.swift",
"Element.swift",
"Error.swift",
"Extensions/String+Extensions.swift",
"Node.swift",
"ProcessingInstruction.swift",
"Text.swift"
],
"target_dependencies" : [
"libxml2"
],
"type" : "library"
}
],
"tools_version" : "5.3"
}
Done.