Build Information
Successful build of UBJSONSerialization, reference 2.0.4 (3da015
), with Swift 6.0 for Linux on 28 Nov 2024 11:31:56 UTC.
Swift 6 data race errors: 18
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.58.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/frizlab/ubjsonserialization.git
Reference: 2.0.4
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/frizlab/ubjsonserialization
* tag 2.0.4 -> FETCH_HEAD
HEAD is now at 3da0153 Fix writing to OutputStream
Cloned https://github.com/frizlab/ubjsonserialization.git
Revision (git rev-parse @):
3da0153f9f9e3eaa05e1efa2e087d6eba64c92b0
SUCCESS checkout https://github.com/frizlab/ubjsonserialization.git at 2.0.4
========================================
Build
========================================
Selected platform: linux
Swift version: 6.0
Building package at path: $PWD
https://github.com/frizlab/ubjsonserialization.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Fetching https://github.com/Frizlab/stream-reader.git
[1/995] Fetching stream-reader
Fetched https://github.com/Frizlab/stream-reader.git from cache (0.28s)
Computing version for https://github.com/Frizlab/stream-reader.git
Computed https://github.com/Frizlab/stream-reader.git at 3.5.2 (0.46s)
Fetching https://github.com/apple/swift-system.git
[1/3919] Fetching swift-system
Fetched https://github.com/apple/swift-system.git from cache (0.37s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.4.0 (0.62s)
Creating working copy for https://github.com/apple/swift-system.git
Working copy of https://github.com/apple/swift-system.git resolved at 1.4.0
Creating working copy for https://github.com/Frizlab/stream-reader.git
Working copy of https://github.com/Frizlab/stream-reader.git resolved at 3.5.2
Building for debugging...
[0/5] Write sources
[3/5] Compiling CSystem shims.c
[3/5] Write swift-version-24593BA9C3E375BF.txt
[6/33] Emitting module SystemPackage
[7/36] Compiling SystemPackage Util+StringArray.swift
[8/36] Compiling SystemPackage Util.swift
[9/36] Compiling SystemPackage UtilConsumers.swift
[10/36] Compiling SystemPackage Errno.swift
[11/36] Compiling SystemPackage ErrnoWindows.swift
[12/36] Compiling SystemPackage FileDescriptor.swift
[13/36] Compiling SystemPackage FileHelpers.swift
[14/36] Compiling SystemPackage FileOperations.swift
[15/36] Compiling SystemPackage FilePath.swift
[16/36] Compiling SystemPackage FilePathComponentView.swift
[17/36] Compiling SystemPackage FilePathComponents.swift
[18/36] Compiling SystemPackage FilePathParsing.swift
[19/36] Compiling SystemPackage FilePathString.swift
[20/36] Compiling SystemPackage FilePathSyntax.swift
[21/36] Compiling SystemPackage FilePathTemp.swift
[22/36] Compiling SystemPackage FilePathTempPosix.swift
[23/36] Compiling SystemPackage FilePathTempWindows.swift
[24/36] Compiling SystemPackage FilePathWindows.swift
[25/36] Compiling SystemPackage FilePermissions.swift
[26/36] Compiling SystemPackage Mocking.swift
[27/36] Compiling SystemPackage RawBuffer.swift
[28/36] Compiling SystemPackage Syscalls.swift
[29/36] Compiling SystemPackage WindowsSyscallAdapters.swift
[30/36] Compiling SystemPackage MachPort.swift
[31/36] Compiling SystemPackage PlatformString.swift
[32/36] Compiling SystemPackage SystemString.swift
[33/36] Compiling SystemPackage Backcompat.swift
[34/36] Compiling SystemPackage CInterop.swift
[35/36] Compiling SystemPackage Constants.swift
[36/36] Compiling SystemPackage Exports.swift
[38/46] Compiling StreamReader GenericStreamReader.swift
[39/47] Compiling StreamReader StreamReader.swift
[40/47] Compiling StreamReader StreamReaderErrors.swift
[41/47] Compiling StreamReader DataReader.swift
[42/47] Emitting module StreamReader
[43/47] Compiling StreamReader InputStreamReader.swift
[44/47] Compiling StreamReader FileDescriptorReader.swift
[45/47] Compiling StreamReader FileHandleReader.swift
[46/47] Compiling StreamReader URLSessionStreamTaskReader.swift
[47/47] Compiling StreamReader Matching.swift
[49/55] Compiling UBJSONSerialization Utils.swift
[50/55] Compiling UBJSONSerialization UBJSONSpec8Serialization.swift
/host/spi-builder-workspace/Sources/UBJSONSerialization/UBJSONSpec8Serialization.swift:27:21: warning: static property 'keepIntPrecision' is not concurrency-safe because non-'Sendable' type 'UBJSONSpec8Serialization.ReadingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
19 | final public class UBJSONSpec8Serialization {
20 |
21 | public struct ReadingOptions : OptionSet {
| `- note: consider making struct 'ReadingOptions' conform to the 'Sendable' protocol
22 |
23 | public let rawValue: Int
:
25 | /**
26 | Do not convert Int8, Int16, etc. to Int. */
27 | public static let keepIntPrecision = ReadingOptions(rawValue: 1 << 0)
| |- warning: static property 'keepIntPrecision' is not concurrency-safe because non-'Sendable' type 'UBJSONSpec8Serialization.ReadingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'keepIntPrecision' 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
28 |
29 | /**
/host/spi-builder-workspace/Sources/UBJSONSerialization/UBJSONSpec8Serialization.swift:38:21: warning: static property 'allowHighPrecisionNumbers' is not concurrency-safe because non-'Sendable' type 'UBJSONSpec8Serialization.ReadingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
19 | final public class UBJSONSpec8Serialization {
20 |
21 | public struct ReadingOptions : OptionSet {
| `- note: consider making struct 'ReadingOptions' conform to the 'Sendable' protocol
22 |
23 | public let rawValue: Int
:
36 | You can use something like [BigInt](https://github.com/lorentey/BigInt) to handle big integers.
37 | Note high-precision numbers can also be decimals. */
38 | public static let allowHighPrecisionNumbers = ReadingOptions(rawValue: 1 << 1)
| |- warning: static property 'allowHighPrecisionNumbers' is not concurrency-safe because non-'Sendable' type 'UBJSONSpec8Serialization.ReadingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'allowHighPrecisionNumbers' 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
39 |
40 | /**
/host/spi-builder-workspace/Sources/UBJSONSerialization/UBJSONSpec8Serialization.swift:46:21: warning: static property 'returnNopElements' is not concurrency-safe because non-'Sendable' type 'UBJSONSpec8Serialization.ReadingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
19 | final public class UBJSONSpec8Serialization {
20 |
21 | public struct ReadingOptions : OptionSet {
| `- note: consider making struct 'ReadingOptions' conform to the 'Sendable' protocol
22 |
23 | public let rawValue: Int
:
44 | - Note: This applies only to `No-Op` elements at the root of the UBJSON document being deserialized.
45 | For embedded `No-Op`s, see `.keepNopElementsInArrays`. */
46 | public static let returnNopElements = ReadingOptions(rawValue: 1 << 2)
| |- warning: static property 'returnNopElements' is not concurrency-safe because non-'Sendable' type 'UBJSONSpec8Serialization.ReadingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'returnNopElements' 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 | /**
/host/spi-builder-workspace/Sources/UBJSONSerialization/UBJSONSpec8Serialization.swift:58:21: warning: static property 'keepNopElementsInArrays' is not concurrency-safe because non-'Sendable' type 'UBJSONSpec8Serialization.ReadingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
19 | final public class UBJSONSpec8Serialization {
20 |
21 | public struct ReadingOptions : OptionSet {
| `- note: consider making struct 'ReadingOptions' conform to the 'Sendable' protocol
22 |
23 | public let rawValue: Int
:
56 | `No-Op` in a dictionary has no meaning and is always **skipped** for indeterminate size dictionaries
57 | (`No-Op` is invalid in a dictionary whose size is known). */
58 | public static let keepNopElementsInArrays = ReadingOptions(rawValue: 1 << 3)
| |- warning: static property 'keepNopElementsInArrays' is not concurrency-safe because non-'Sendable' type 'UBJSONSpec8Serialization.ReadingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'keepNopElementsInArrays' 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
59 |
60 | public init(rawValue v: Int) {
/host/spi-builder-workspace/Sources/UBJSONSerialization/UBJSONSpec8Serialization.swift:73:21: warning: static property 'normalizeHighPrecisionNumbers' is not concurrency-safe because non-'Sendable' type 'UBJSONSpec8Serialization.WritingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
64 | }
65 |
66 | public struct WritingOptions : OptionSet {
| `- note: consider making struct 'WritingOptions' conform to the 'Sendable' protocol
67 |
68 | public let rawValue: Int
:
71 | Normalize the representation of high precisions numbers before serialization.
72 | See the doc of HighPrecisionNumber for more information about normalization. */
73 | public static let normalizeHighPrecisionNumbers = WritingOptions(rawValue: 1 << 0)
| |- warning: static property 'normalizeHighPrecisionNumbers' is not concurrency-safe because non-'Sendable' type 'UBJSONSpec8Serialization.WritingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'normalizeHighPrecisionNumbers' 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
74 |
75 | /**
/host/spi-builder-workspace/Sources/UBJSONSerialization/UBJSONSpec8Serialization.swift:80:21: warning: static property 'optimizeIntsForSize' is not concurrency-safe because non-'Sendable' type 'UBJSONSpec8Serialization.WritingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
64 | }
65 |
66 | public struct WritingOptions : OptionSet {
| `- note: consider making struct 'WritingOptions' conform to the 'Sendable' protocol
67 |
68 | public let rawValue: Int
:
78 | - Note: This option is always on for `Int` objects.
79 | It has to be specifically asked only for other ints types (`Int8`, `Int16`, etc.) */
80 | public static let optimizeIntsForSize = WritingOptions(rawValue: 1 << 1)
| |- warning: static property 'optimizeIntsForSize' is not concurrency-safe because non-'Sendable' type 'UBJSONSpec8Serialization.WritingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'optimizeIntsForSize' 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
81 |
82 | /**
/host/spi-builder-workspace/Sources/UBJSONSerialization/UBJSONSpec8Serialization.swift:88:21: warning: static property 'skipNopElementsInArrays' is not concurrency-safe because non-'Sendable' type 'UBJSONSpec8Serialization.WritingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
64 | }
65 |
66 | public struct WritingOptions : OptionSet {
| `- note: consider making struct 'WritingOptions' conform to the 'Sendable' protocol
67 |
68 | public let rawValue: Int
:
86 | - Note: This option is expensive (has to do a first pass through the whole serialized object graph before serialization).
87 | Only use it in case there is a chance your data contains `No-op` elements and you want it dropped. */
88 | public static let skipNopElementsInArrays = WritingOptions(rawValue: 1 << 2)
| |- warning: static property 'skipNopElementsInArrays' is not concurrency-safe because non-'Sendable' type 'UBJSONSpec8Serialization.WritingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'skipNopElementsInArrays' 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
89 |
90 | /**
/host/spi-builder-workspace/Sources/UBJSONSerialization/UBJSONSpec8Serialization.swift:93:21: warning: static property 'declareContainerWithUnknownSize' is not concurrency-safe because non-'Sendable' type 'UBJSONSpec8Serialization.WritingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
64 | }
65 |
66 | public struct WritingOptions : OptionSet {
| `- note: consider making struct 'WritingOptions' conform to the 'Sendable' protocol
67 |
68 | public let rawValue: Int
:
91 | Declare the containers to have an unknown size in the serialized data.
92 | Mostly useful if we want to implement proper streaming support later. */
93 | public static let declareContainerWithUnknownSize = WritingOptions(rawValue: 1 << 3)
| |- warning: static property 'declareContainerWithUnknownSize' is not concurrency-safe because non-'Sendable' type 'UBJSONSpec8Serialization.WritingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'declareContainerWithUnknownSize' 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
94 |
95 | public init(rawValue v: Int) {
[51/55] Compiling UBJSONSerialization UBJSONSerializationErrors.swift
/host/spi-builder-workspace/Sources/UBJSONSerialization/UBJSONSerializationErrors.swift:49:7: warning: associated value 'invalidUBJSONObject(invalidElement:)' of 'Sendable'-conforming enum 'UBJSONSerializationError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
47 | An invalid UBJSON object was given to be serialized.
48 | The invalid element is passed in argument to this error. */
49 | case invalidUBJSONObject(invalidElement: Any)
| `- warning: associated value 'invalidUBJSONObject(invalidElement:)' of 'Sendable'-conforming enum 'UBJSONSerializationError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
50 |
51 | /* Spec 8 error */
[52/55] Compiling UBJSONSerialization Nop.swift
/host/spi-builder-workspace/Sources/UBJSONSerialization/Nop.swift:21:20: warning: static property 'sharedNop' is not concurrency-safe because non-'Sendable' type 'Nop' may have shared mutable state; this is an error in the Swift 6 language mode
17 |
18 | It should be used pretty much only when we have proper streaming support to send ``Nop`` values in a stream to keep it alive. */
19 | public struct Nop : Equatable {
| `- note: consider making struct 'Nop' conform to the 'Sendable' protocol
20 |
21 | public static let sharedNop = Nop()
| |- warning: static property 'sharedNop' is not concurrency-safe because non-'Sendable' type 'Nop' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'sharedNop' 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
22 |
23 | public static func ==(lhs: Nop, rhs: Nop) -> Bool {return true}
[53/55] Compiling UBJSONSerialization HighPrecisionNumber.swift
/host/spi-builder-workspace/Sources/UBJSONSerialization/HighPrecisionNumber.swift:91:100: warning: 'IndexDistance' is deprecated: All index distances are now of type Int
89 | }
90 |
91 | mutating func parse() -> (hasNegativeSign: Bool, unsignedIntPart: [Digit], parsedLength: String.IndexDistance) {
| `- warning: 'IndexDistance' is deprecated: All index distances are now of type Int
92 | engine = Parser.waitStart
93 |
/host/spi-builder-workspace/Sources/UBJSONSerialization/HighPrecisionNumber.swift:109:28: warning: 'IndexDistance' is deprecated: All index distances are now of type Int
107 |
108 | var parser = Parser(parsedString: String(stringValue[startIndex...]), allowLeadingZeroOrPlus: allowLeadingZeroOrPlus)
109 | let parseOffset: String.IndexDistance; (hasNegativeSign, unsignedIntPart, parseOffset) = parser.parse()
| `- warning: 'IndexDistance' is deprecated: All index distances are now of type Int
110 | startIndex = stringValue.index(startIndex, offsetBy: parseOffset)
111 |
[54/55] Emitting module UBJSONSerialization
/host/spi-builder-workspace/Sources/UBJSONSerialization/HighPrecisionNumber.swift:91:100: warning: 'IndexDistance' is deprecated: All index distances are now of type Int
89 | }
90 |
91 | mutating func parse() -> (hasNegativeSign: Bool, unsignedIntPart: [Digit], parsedLength: String.IndexDistance) {
| `- warning: 'IndexDistance' is deprecated: All index distances are now of type Int
92 | engine = Parser.waitStart
93 |
/host/spi-builder-workspace/Sources/UBJSONSerialization/Nop.swift:21:20: warning: static property 'sharedNop' is not concurrency-safe because non-'Sendable' type 'Nop' may have shared mutable state; this is an error in the Swift 6 language mode
17 |
18 | It should be used pretty much only when we have proper streaming support to send ``Nop`` values in a stream to keep it alive. */
19 | public struct Nop : Equatable {
| `- note: consider making struct 'Nop' conform to the 'Sendable' protocol
20 |
21 | public static let sharedNop = Nop()
| |- warning: static property 'sharedNop' is not concurrency-safe because non-'Sendable' type 'Nop' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'sharedNop' 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
22 |
23 | public static func ==(lhs: Nop, rhs: Nop) -> Bool {return true}
/host/spi-builder-workspace/Sources/UBJSONSerialization/UBJSONSerialization.swift:27:21: warning: static property 'keepIntPrecision' is not concurrency-safe because non-'Sendable' type 'UBJSONSerialization.ReadingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
19 | final public class UBJSONSerialization {
20 |
21 | public struct ReadingOptions : OptionSet {
| `- note: consider making struct 'ReadingOptions' conform to the 'Sendable' protocol
22 |
23 | public let rawValue: Int
:
25 | /**
26 | Do not convert Int8, Int16, etc. to Int. */
27 | public static let keepIntPrecision = ReadingOptions(rawValue: 1 << 0)
| |- warning: static property 'keepIntPrecision' is not concurrency-safe because non-'Sendable' type 'UBJSONSerialization.ReadingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'keepIntPrecision' 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
28 |
29 | /**
/host/spi-builder-workspace/Sources/UBJSONSerialization/UBJSONSerialization.swift:38:21: warning: static property 'allowHighPrecisionNumbers' is not concurrency-safe because non-'Sendable' type 'UBJSONSerialization.ReadingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
19 | final public class UBJSONSerialization {
20 |
21 | public struct ReadingOptions : OptionSet {
| `- note: consider making struct 'ReadingOptions' conform to the 'Sendable' protocol
22 |
23 | public let rawValue: Int
:
36 | You can use something like [BigInt](https://github.com/lorentey/BigInt) to handle big integers.
37 | Note high-precision numbers can also be decimals. */
38 | public static let allowHighPrecisionNumbers = ReadingOptions(rawValue: 1 << 1)
| |- warning: static property 'allowHighPrecisionNumbers' is not concurrency-safe because non-'Sendable' type 'UBJSONSerialization.ReadingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'allowHighPrecisionNumbers' 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
39 |
40 | /**
/host/spi-builder-workspace/Sources/UBJSONSerialization/UBJSONSerialization.swift:46:21: warning: static property 'returnNopElements' is not concurrency-safe because non-'Sendable' type 'UBJSONSerialization.ReadingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
19 | final public class UBJSONSerialization {
20 |
21 | public struct ReadingOptions : OptionSet {
| `- note: consider making struct 'ReadingOptions' conform to the 'Sendable' protocol
22 |
23 | public let rawValue: Int
:
44 | - Note: This applies only to `No-Op` elements at the root of the UBJSON document being deserialized.
45 | For embedded `No-Op`s, see `.keepNopElementsInArrays`. */
46 | public static let returnNopElements = ReadingOptions(rawValue: 1 << 2)
| |- warning: static property 'returnNopElements' is not concurrency-safe because non-'Sendable' type 'UBJSONSerialization.ReadingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'returnNopElements' 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 | /**
/host/spi-builder-workspace/Sources/UBJSONSerialization/UBJSONSerialization.swift:57:21: warning: static property 'keepNopElementsInArrays' is not concurrency-safe because non-'Sendable' type 'UBJSONSerialization.ReadingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
19 | final public class UBJSONSerialization {
20 |
21 | public struct ReadingOptions : OptionSet {
| `- note: consider making struct 'ReadingOptions' conform to the 'Sendable' protocol
22 |
23 | public let rawValue: Int
:
55 | - Note: ``Nop`` in a dictionary has no meaning and is always **skipped**
56 | (it is NOT (AFAICT) invalid to have a Nop element before a value in a dictionary in a non-optimized dictionary; the `No-Op` is simply skipped). */
57 | public static let keepNopElementsInArrays = ReadingOptions(rawValue: 1 << 3)
| |- warning: static property 'keepNopElementsInArrays' is not concurrency-safe because non-'Sendable' type 'UBJSONSerialization.ReadingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'keepNopElementsInArrays' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
58 |
59 | public init(rawValue v: Int) {
/host/spi-builder-workspace/Sources/UBJSONSerialization/UBJSONSerialization.swift:72:21: warning: static property 'normalizeHighPrecisionNumbers' is not concurrency-safe because non-'Sendable' type 'UBJSONSerialization.WritingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
63 | }
64 |
65 | public struct WritingOptions : OptionSet {
| `- note: consider making struct 'WritingOptions' conform to the 'Sendable' protocol
66 |
67 | public let rawValue: Int
:
70 | Normalize the representation of high precisions numbers before serialization.
71 | See ``HighPrecisionNumber`` for more information about normalization. */
72 | public static let normalizeHighPrecisionNumbers = WritingOptions(rawValue: 1 << 0)
| |- warning: static property 'normalizeHighPrecisionNumbers' is not concurrency-safe because non-'Sendable' type 'UBJSONSerialization.WritingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'normalizeHighPrecisionNumbers' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
73 |
74 | /**
/host/spi-builder-workspace/Sources/UBJSONSerialization/UBJSONSerialization.swift:79:21: warning: static property 'optimizeIntsForSize' is not concurrency-safe because non-'Sendable' type 'UBJSONSerialization.WritingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
63 | }
64 |
65 | public struct WritingOptions : OptionSet {
| `- note: consider making struct 'WritingOptions' conform to the 'Sendable' protocol
66 |
67 | public let rawValue: Int
:
77 | - Note: This option is always on for `Int` objects.
78 | It has to be specifically asked only for other ints types (`Int8`, `Int16`, etc.) */
79 | public static let optimizeIntsForSize = WritingOptions(rawValue: 1 << 1)
| |- warning: static property 'optimizeIntsForSize' is not concurrency-safe because non-'Sendable' type 'UBJSONSerialization.WritingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'optimizeIntsForSize' 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
80 |
81 | /**
/host/spi-builder-workspace/Sources/UBJSONSerialization/UBJSONSerialization.swift:87:21: warning: static property 'skipNopElementsInArrays' is not concurrency-safe because non-'Sendable' type 'UBJSONSerialization.WritingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
63 | }
64 |
65 | public struct WritingOptions : OptionSet {
| `- note: consider making struct 'WritingOptions' conform to the 'Sendable' protocol
66 |
67 | public let rawValue: Int
:
85 | - Note: This option is expensive (has to do a first pass through the whole serialized object graph before serialization).
86 | Only use it in case there is a chance your data contains `No-op` elements and you want it dropped. */
87 | public static let skipNopElementsInArrays = WritingOptions(rawValue: 1 << 2)
| |- warning: static property 'skipNopElementsInArrays' is not concurrency-safe because non-'Sendable' type 'UBJSONSerialization.WritingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'skipNopElementsInArrays' 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
88 |
89 | /**
/host/spi-builder-workspace/Sources/UBJSONSerialization/UBJSONSerialization.swift:98:21: warning: static property 'enableContainerOptimization' is not concurrency-safe because non-'Sendable' type 'UBJSONSerialization.WritingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
63 | }
64 |
65 | public struct WritingOptions : OptionSet {
| `- note: consider making struct 'WritingOptions' conform to the 'Sendable' protocol
66 |
67 | public let rawValue: Int
:
96 | (the count of the container is specified but not its type) because I don't think it has any advantages over the JSON-like representation.
97 | I’d be happy to change my mind if somebody can give me good arguments in favor of this optimization :) */
98 | public static let enableContainerOptimization = WritingOptions(rawValue: 1 << 3)
| |- warning: static property 'enableContainerOptimization' is not concurrency-safe because non-'Sendable' type 'UBJSONSerialization.WritingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'enableContainerOptimization' 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
99 |
100 | public init(rawValue v: Int) {
/host/spi-builder-workspace/Sources/UBJSONSerialization/UBJSONSerializationErrors.swift:49:7: warning: associated value 'invalidUBJSONObject(invalidElement:)' of 'Sendable'-conforming enum 'UBJSONSerializationError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
47 | An invalid UBJSON object was given to be serialized.
48 | The invalid element is passed in argument to this error. */
49 | case invalidUBJSONObject(invalidElement: Any)
| `- warning: associated value 'invalidUBJSONObject(invalidElement:)' of 'Sendable'-conforming enum 'UBJSONSerializationError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
50 |
51 | /* Spec 8 error */
/host/spi-builder-workspace/Sources/UBJSONSerialization/UBJSONSpec8Serialization.swift:27:21: warning: static property 'keepIntPrecision' is not concurrency-safe because non-'Sendable' type 'UBJSONSpec8Serialization.ReadingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
19 | final public class UBJSONSpec8Serialization {
20 |
21 | public struct ReadingOptions : OptionSet {
| `- note: consider making struct 'ReadingOptions' conform to the 'Sendable' protocol
22 |
23 | public let rawValue: Int
:
25 | /**
26 | Do not convert Int8, Int16, etc. to Int. */
27 | public static let keepIntPrecision = ReadingOptions(rawValue: 1 << 0)
| |- warning: static property 'keepIntPrecision' is not concurrency-safe because non-'Sendable' type 'UBJSONSpec8Serialization.ReadingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'keepIntPrecision' 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
28 |
29 | /**
/host/spi-builder-workspace/Sources/UBJSONSerialization/UBJSONSpec8Serialization.swift:38:21: warning: static property 'allowHighPrecisionNumbers' is not concurrency-safe because non-'Sendable' type 'UBJSONSpec8Serialization.ReadingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
19 | final public class UBJSONSpec8Serialization {
20 |
21 | public struct ReadingOptions : OptionSet {
| `- note: consider making struct 'ReadingOptions' conform to the 'Sendable' protocol
22 |
23 | public let rawValue: Int
:
36 | You can use something like [BigInt](https://github.com/lorentey/BigInt) to handle big integers.
37 | Note high-precision numbers can also be decimals. */
38 | public static let allowHighPrecisionNumbers = ReadingOptions(rawValue: 1 << 1)
| |- warning: static property 'allowHighPrecisionNumbers' is not concurrency-safe because non-'Sendable' type 'UBJSONSpec8Serialization.ReadingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'allowHighPrecisionNumbers' 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
39 |
40 | /**
/host/spi-builder-workspace/Sources/UBJSONSerialization/UBJSONSpec8Serialization.swift:46:21: warning: static property 'returnNopElements' is not concurrency-safe because non-'Sendable' type 'UBJSONSpec8Serialization.ReadingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
19 | final public class UBJSONSpec8Serialization {
20 |
21 | public struct ReadingOptions : OptionSet {
| `- note: consider making struct 'ReadingOptions' conform to the 'Sendable' protocol
22 |
23 | public let rawValue: Int
:
44 | - Note: This applies only to `No-Op` elements at the root of the UBJSON document being deserialized.
45 | For embedded `No-Op`s, see `.keepNopElementsInArrays`. */
46 | public static let returnNopElements = ReadingOptions(rawValue: 1 << 2)
| |- warning: static property 'returnNopElements' is not concurrency-safe because non-'Sendable' type 'UBJSONSpec8Serialization.ReadingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'returnNopElements' 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 | /**
/host/spi-builder-workspace/Sources/UBJSONSerialization/UBJSONSpec8Serialization.swift:58:21: warning: static property 'keepNopElementsInArrays' is not concurrency-safe because non-'Sendable' type 'UBJSONSpec8Serialization.ReadingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
19 | final public class UBJSONSpec8Serialization {
20 |
21 | public struct ReadingOptions : OptionSet {
| `- note: consider making struct 'ReadingOptions' conform to the 'Sendable' protocol
22 |
23 | public let rawValue: Int
:
56 | `No-Op` in a dictionary has no meaning and is always **skipped** for indeterminate size dictionaries
57 | (`No-Op` is invalid in a dictionary whose size is known). */
58 | public static let keepNopElementsInArrays = ReadingOptions(rawValue: 1 << 3)
| |- warning: static property 'keepNopElementsInArrays' is not concurrency-safe because non-'Sendable' type 'UBJSONSpec8Serialization.ReadingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'keepNopElementsInArrays' 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
59 |
60 | public init(rawValue v: Int) {
/host/spi-builder-workspace/Sources/UBJSONSerialization/UBJSONSpec8Serialization.swift:73:21: warning: static property 'normalizeHighPrecisionNumbers' is not concurrency-safe because non-'Sendable' type 'UBJSONSpec8Serialization.WritingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
64 | }
65 |
66 | public struct WritingOptions : OptionSet {
| `- note: consider making struct 'WritingOptions' conform to the 'Sendable' protocol
67 |
68 | public let rawValue: Int
:
71 | Normalize the representation of high precisions numbers before serialization.
72 | See the doc of HighPrecisionNumber for more information about normalization. */
73 | public static let normalizeHighPrecisionNumbers = WritingOptions(rawValue: 1 << 0)
| |- warning: static property 'normalizeHighPrecisionNumbers' is not concurrency-safe because non-'Sendable' type 'UBJSONSpec8Serialization.WritingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'normalizeHighPrecisionNumbers' 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
74 |
75 | /**
/host/spi-builder-workspace/Sources/UBJSONSerialization/UBJSONSpec8Serialization.swift:80:21: warning: static property 'optimizeIntsForSize' is not concurrency-safe because non-'Sendable' type 'UBJSONSpec8Serialization.WritingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
64 | }
65 |
66 | public struct WritingOptions : OptionSet {
| `- note: consider making struct 'WritingOptions' conform to the 'Sendable' protocol
67 |
68 | public let rawValue: Int
:
78 | - Note: This option is always on for `Int` objects.
79 | It has to be specifically asked only for other ints types (`Int8`, `Int16`, etc.) */
80 | public static let optimizeIntsForSize = WritingOptions(rawValue: 1 << 1)
| |- warning: static property 'optimizeIntsForSize' is not concurrency-safe because non-'Sendable' type 'UBJSONSpec8Serialization.WritingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'optimizeIntsForSize' 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
81 |
82 | /**
/host/spi-builder-workspace/Sources/UBJSONSerialization/UBJSONSpec8Serialization.swift:88:21: warning: static property 'skipNopElementsInArrays' is not concurrency-safe because non-'Sendable' type 'UBJSONSpec8Serialization.WritingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
64 | }
65 |
66 | public struct WritingOptions : OptionSet {
| `- note: consider making struct 'WritingOptions' conform to the 'Sendable' protocol
67 |
68 | public let rawValue: Int
:
86 | - Note: This option is expensive (has to do a first pass through the whole serialized object graph before serialization).
87 | Only use it in case there is a chance your data contains `No-op` elements and you want it dropped. */
88 | public static let skipNopElementsInArrays = WritingOptions(rawValue: 1 << 2)
| |- warning: static property 'skipNopElementsInArrays' is not concurrency-safe because non-'Sendable' type 'UBJSONSpec8Serialization.WritingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'skipNopElementsInArrays' 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
89 |
90 | /**
/host/spi-builder-workspace/Sources/UBJSONSerialization/UBJSONSpec8Serialization.swift:93:21: warning: static property 'declareContainerWithUnknownSize' is not concurrency-safe because non-'Sendable' type 'UBJSONSpec8Serialization.WritingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
64 | }
65 |
66 | public struct WritingOptions : OptionSet {
| `- note: consider making struct 'WritingOptions' conform to the 'Sendable' protocol
67 |
68 | public let rawValue: Int
:
91 | Declare the containers to have an unknown size in the serialized data.
92 | Mostly useful if we want to implement proper streaming support later. */
93 | public static let declareContainerWithUnknownSize = WritingOptions(rawValue: 1 << 3)
| |- warning: static property 'declareContainerWithUnknownSize' is not concurrency-safe because non-'Sendable' type 'UBJSONSpec8Serialization.WritingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'declareContainerWithUnknownSize' 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
94 |
95 | public init(rawValue v: Int) {
[55/55] Compiling UBJSONSerialization UBJSONSerialization.swift
/host/spi-builder-workspace/Sources/UBJSONSerialization/UBJSONSerialization.swift:27:21: warning: static property 'keepIntPrecision' is not concurrency-safe because non-'Sendable' type 'UBJSONSerialization.ReadingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
19 | final public class UBJSONSerialization {
20 |
21 | public struct ReadingOptions : OptionSet {
| `- note: consider making struct 'ReadingOptions' conform to the 'Sendable' protocol
22 |
23 | public let rawValue: Int
:
25 | /**
26 | Do not convert Int8, Int16, etc. to Int. */
27 | public static let keepIntPrecision = ReadingOptions(rawValue: 1 << 0)
| |- warning: static property 'keepIntPrecision' is not concurrency-safe because non-'Sendable' type 'UBJSONSerialization.ReadingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'keepIntPrecision' 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
28 |
29 | /**
/host/spi-builder-workspace/Sources/UBJSONSerialization/UBJSONSerialization.swift:38:21: warning: static property 'allowHighPrecisionNumbers' is not concurrency-safe because non-'Sendable' type 'UBJSONSerialization.ReadingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
19 | final public class UBJSONSerialization {
20 |
21 | public struct ReadingOptions : OptionSet {
| `- note: consider making struct 'ReadingOptions' conform to the 'Sendable' protocol
22 |
23 | public let rawValue: Int
:
36 | You can use something like [BigInt](https://github.com/lorentey/BigInt) to handle big integers.
37 | Note high-precision numbers can also be decimals. */
38 | public static let allowHighPrecisionNumbers = ReadingOptions(rawValue: 1 << 1)
| |- warning: static property 'allowHighPrecisionNumbers' is not concurrency-safe because non-'Sendable' type 'UBJSONSerialization.ReadingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'allowHighPrecisionNumbers' 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
39 |
40 | /**
/host/spi-builder-workspace/Sources/UBJSONSerialization/UBJSONSerialization.swift:46:21: warning: static property 'returnNopElements' is not concurrency-safe because non-'Sendable' type 'UBJSONSerialization.ReadingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
19 | final public class UBJSONSerialization {
20 |
21 | public struct ReadingOptions : OptionSet {
| `- note: consider making struct 'ReadingOptions' conform to the 'Sendable' protocol
22 |
23 | public let rawValue: Int
:
44 | - Note: This applies only to `No-Op` elements at the root of the UBJSON document being deserialized.
45 | For embedded `No-Op`s, see `.keepNopElementsInArrays`. */
46 | public static let returnNopElements = ReadingOptions(rawValue: 1 << 2)
| |- warning: static property 'returnNopElements' is not concurrency-safe because non-'Sendable' type 'UBJSONSerialization.ReadingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'returnNopElements' 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 | /**
/host/spi-builder-workspace/Sources/UBJSONSerialization/UBJSONSerialization.swift:57:21: warning: static property 'keepNopElementsInArrays' is not concurrency-safe because non-'Sendable' type 'UBJSONSerialization.ReadingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
19 | final public class UBJSONSerialization {
20 |
21 | public struct ReadingOptions : OptionSet {
| `- note: consider making struct 'ReadingOptions' conform to the 'Sendable' protocol
22 |
23 | public let rawValue: Int
:
55 | - Note: ``Nop`` in a dictionary has no meaning and is always **skipped**
56 | (it is NOT (AFAICT) invalid to have a Nop element before a value in a dictionary in a non-optimized dictionary; the `No-Op` is simply skipped). */
57 | public static let keepNopElementsInArrays = ReadingOptions(rawValue: 1 << 3)
| |- warning: static property 'keepNopElementsInArrays' is not concurrency-safe because non-'Sendable' type 'UBJSONSerialization.ReadingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'keepNopElementsInArrays' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
58 |
59 | public init(rawValue v: Int) {
/host/spi-builder-workspace/Sources/UBJSONSerialization/UBJSONSerialization.swift:72:21: warning: static property 'normalizeHighPrecisionNumbers' is not concurrency-safe because non-'Sendable' type 'UBJSONSerialization.WritingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
63 | }
64 |
65 | public struct WritingOptions : OptionSet {
| `- note: consider making struct 'WritingOptions' conform to the 'Sendable' protocol
66 |
67 | public let rawValue: Int
:
70 | Normalize the representation of high precisions numbers before serialization.
71 | See ``HighPrecisionNumber`` for more information about normalization. */
72 | public static let normalizeHighPrecisionNumbers = WritingOptions(rawValue: 1 << 0)
| |- warning: static property 'normalizeHighPrecisionNumbers' is not concurrency-safe because non-'Sendable' type 'UBJSONSerialization.WritingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'normalizeHighPrecisionNumbers' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
73 |
74 | /**
/host/spi-builder-workspace/Sources/UBJSONSerialization/UBJSONSerialization.swift:79:21: warning: static property 'optimizeIntsForSize' is not concurrency-safe because non-'Sendable' type 'UBJSONSerialization.WritingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
63 | }
64 |
65 | public struct WritingOptions : OptionSet {
| `- note: consider making struct 'WritingOptions' conform to the 'Sendable' protocol
66 |
67 | public let rawValue: Int
:
77 | - Note: This option is always on for `Int` objects.
78 | It has to be specifically asked only for other ints types (`Int8`, `Int16`, etc.) */
79 | public static let optimizeIntsForSize = WritingOptions(rawValue: 1 << 1)
| |- warning: static property 'optimizeIntsForSize' is not concurrency-safe because non-'Sendable' type 'UBJSONSerialization.WritingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'optimizeIntsForSize' 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
80 |
81 | /**
/host/spi-builder-workspace/Sources/UBJSONSerialization/UBJSONSerialization.swift:87:21: warning: static property 'skipNopElementsInArrays' is not concurrency-safe because non-'Sendable' type 'UBJSONSerialization.WritingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
63 | }
64 |
65 | public struct WritingOptions : OptionSet {
| `- note: consider making struct 'WritingOptions' conform to the 'Sendable' protocol
66 |
67 | public let rawValue: Int
:
85 | - Note: This option is expensive (has to do a first pass through the whole serialized object graph before serialization).
86 | Only use it in case there is a chance your data contains `No-op` elements and you want it dropped. */
87 | public static let skipNopElementsInArrays = WritingOptions(rawValue: 1 << 2)
| |- warning: static property 'skipNopElementsInArrays' is not concurrency-safe because non-'Sendable' type 'UBJSONSerialization.WritingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'skipNopElementsInArrays' 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
88 |
89 | /**
/host/spi-builder-workspace/Sources/UBJSONSerialization/UBJSONSerialization.swift:98:21: warning: static property 'enableContainerOptimization' is not concurrency-safe because non-'Sendable' type 'UBJSONSerialization.WritingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
63 | }
64 |
65 | public struct WritingOptions : OptionSet {
| `- note: consider making struct 'WritingOptions' conform to the 'Sendable' protocol
66 |
67 | public let rawValue: Int
:
96 | (the count of the container is specified but not its type) because I don't think it has any advantages over the JSON-like representation.
97 | I’d be happy to change my mind if somebody can give me good arguments in favor of this optimization :) */
98 | public static let enableContainerOptimization = WritingOptions(rawValue: 1 << 3)
| |- warning: static property 'enableContainerOptimization' is not concurrency-safe because non-'Sendable' type 'UBJSONSerialization.WritingOptions' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'enableContainerOptimization' 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
99 |
100 | public init(rawValue v: Int) {
/host/spi-builder-workspace/Sources/UBJSONSerialization/Nop.swift:21:20: warning: static property 'sharedNop' is not concurrency-safe because non-'Sendable' type 'Nop' may have shared mutable state; this is an error in the Swift 6 language mode
17 |
18 | It should be used pretty much only when we have proper streaming support to send ``Nop`` values in a stream to keep it alive. */
19 | public struct Nop : Equatable {
| `- note: consider making struct 'Nop' conform to the 'Sendable' protocol
20 |
21 | public static let sharedNop = Nop()
| |- warning: static property 'sharedNop' is not concurrency-safe because non-'Sendable' type 'Nop' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'sharedNop' 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
22 |
23 | public static func ==(lhs: Nop, rhs: Nop) -> Bool {return true}
/host/spi-builder-workspace/Sources/UBJSONSerialization/UBJSONSerialization.swift:877:10: warning: type 'S.Element' is not optional, value can never be nil; this is an error in the Swift 6 language mode
875 | case _ as Nop: return nil
876 |
877 | case nil: newType = .null
| `- warning: type 'S.Element' is not optional, value can never be nil; this is an error in the Swift 6 language mode
878 | case let b as Bool where b: newType = .`true`
879 | case let b as Bool where !b: newType = .`false`
Build complete! (18.04s)
Build complete.
{
"dependencies" : [
{
"identity" : "stream-reader",
"requirement" : {
"range" : [
{
"lower_bound" : "3.0.0",
"upper_bound" : "4.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/Frizlab/stream-reader.git"
}
],
"manifest_display_name" : "UBJSONSerialization",
"name" : "UBJSONSerialization",
"path" : "/host/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "UBJSONSerialization",
"targets" : [
"UBJSONSerialization"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "UBJSONSerializationTests",
"module_type" : "SwiftTarget",
"name" : "UBJSONSerializationTests",
"path" : "Tests/UBJSONSerializationTests",
"sources" : [
"HighPrecisionNumberTests.swift",
"TestHelpers.swift",
"UBJSONSerializationTests.swift",
"UBJSONSpec8SerializationTests.swift"
],
"target_dependencies" : [
"UBJSONSerialization"
],
"type" : "test"
},
{
"c99name" : "UBJSONSerialization",
"module_type" : "SwiftTarget",
"name" : "UBJSONSerialization",
"path" : "Sources/UBJSONSerialization",
"product_dependencies" : [
"StreamReader"
],
"product_memberships" : [
"UBJSONSerialization"
],
"sources" : [
"HighPrecisionNumber.swift",
"Nop.swift",
"UBJSONSerialization.swift",
"UBJSONSerializationErrors.swift",
"UBJSONSpec8Serialization.swift",
"Utils.swift"
],
"type" : "library"
}
],
"tools_version" : "5.1"
}
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Done.