The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Successful build of MemoryLayoutKit, reference 0.0.4 (06dc9f), with Swift 6.0 for Linux on 1 Nov 2024 05:16:05 UTC.

Swift 6 data race errors: 0

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/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 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Octadero/MemoryLayoutKit.git
Reference: 0.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/Octadero/MemoryLayoutKit
 * tag               0.0.4      -> FETCH_HEAD
HEAD is now at 06dc9f9 Swift 4.2 ready, Xcode beta 5 tested
Cloned https://github.com/Octadero/MemoryLayoutKit.git
Revision (git rev-parse @):
06dc9f9ffbbc5844e72d9ddee83f4b78e8c564c0
SUCCESS checkout https://github.com/Octadero/MemoryLayoutKit.git at 0.0.4
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $PWD
https://github.com/Octadero/MemoryLayoutKit.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/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 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
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/8] Compiling MemoryLayoutKit Array.swift
[4/8] Emitting module MemoryLayoutKit
/host/spi-builder-workspace/Sources/MemoryLayoutKit/Data.swift:21:2: warning: 'public' modifier is redundant for instance method declared in a public extension
19 | /// Feature to print data as hex array.
20 | public extension Data {
21 | 	public func hexEncodedString() -> String {
   |  `- warning: 'public' modifier is redundant for instance method declared in a public extension
22 | 		return map { String(format: " 0x%02hhx", $0) }.joined()
23 | 	}
/host/spi-builder-workspace/Sources/MemoryLayoutKit/Data.swift:27:2: warning: 'public' modifier is redundant for instance method declared in a public extension
25 |
26 | public extension Data {
27 | 	public func decode<T>() -> T {
   |  `- warning: 'public' modifier is redundant for instance method declared in a public extension
28 | 		let pointer = UnsafeMutablePointer<T>.allocate(capacity: MemoryLayout<T>.size)
29 | 		NSData(data: self).getBytes(pointer, length: MemoryLayout<T>.size)
/host/spi-builder-workspace/Sources/MemoryLayoutKit/Data.swift:35:2: warning: 'public' modifier is redundant for initializer declared in a public extension
33 | 	}
34 |
35 | 	public init<T>(fromArray values: [T]) {
   |  `- warning: 'public' modifier is redundant for initializer declared in a public extension
36 | 		var values = values
37 | 		self.init(buffer: UnsafeBufferPointer(start: &values, count: values.count))
/host/spi-builder-workspace/Sources/MemoryLayoutKit/Data.swift:40:2: warning: 'public' modifier is redundant for instance method declared in a public extension
38 | 	}
39 |
40 | 	public func toArray<T>(type: T.Type) -> [T] {
   |  `- warning: 'public' modifier is redundant for instance method declared in a public extension
41 | 		return self.withUnsafeBytes {
42 | 			[T](UnsafeBufferPointer(start: $0, count: self.count/MemoryLayout<T>.stride))
/host/spi-builder-workspace/Sources/MemoryLayoutKit/SynchronizedArray.swift:121:5: warning: 'public' modifier is redundant for instance method declared in a public extension
119 | 	/// - Parameter transform: A closure that accepts an element of this sequence as its argument and returns an optional value.
120 | 	/// - Returns: An array of the non-nil results of calling transform with each element of the sequence.
121 |     public func compactMap<ElementOfResult>(_ transform: (Element) throws -> ElementOfResult?) rethrows -> [ElementOfResult] {
    |     `- warning: 'public' modifier is redundant for instance method declared in a public extension
122 | 		var result = [ElementOfResult]()
123 |         try queue.sync { result = try self.array.compactMap(transform) }
/host/spi-builder-workspace/Sources/MemoryLayoutKit/SynchronizedArray.swift:166:2: warning: 'public' modifier is redundant for instance method declared in a public extension
164 | 	}
165 |
166 | 	public func append<S>(contentsOf newElements: S) where S : Sequence, S.Iterator.Element == Element {
    |  `- warning: 'public' modifier is redundant for instance method declared in a public extension
167 | 		queue.async(flags: .barrier) {
168 | 			self.array.append(contentsOf: newElements)
[5/8] Compiling MemoryLayoutKit SynchronizedArray.swift
/host/spi-builder-workspace/Sources/MemoryLayoutKit/SynchronizedArray.swift:121:5: warning: 'public' modifier is redundant for instance method declared in a public extension
119 | 	/// - Parameter transform: A closure that accepts an element of this sequence as its argument and returns an optional value.
120 | 	/// - Returns: An array of the non-nil results of calling transform with each element of the sequence.
121 |     public func compactMap<ElementOfResult>(_ transform: (Element) throws -> ElementOfResult?) rethrows -> [ElementOfResult] {
    |     `- warning: 'public' modifier is redundant for instance method declared in a public extension
122 | 		var result = [ElementOfResult]()
123 |         try queue.sync { result = try self.array.compactMap(transform) }
/host/spi-builder-workspace/Sources/MemoryLayoutKit/SynchronizedArray.swift:166:2: warning: 'public' modifier is redundant for instance method declared in a public extension
164 | 	}
165 |
166 | 	public func append<S>(contentsOf newElements: S) where S : Sequence, S.Iterator.Element == Element {
    |  `- warning: 'public' modifier is redundant for instance method declared in a public extension
167 | 		queue.async(flags: .barrier) {
168 | 			self.array.append(contentsOf: newElements)
/host/spi-builder-workspace/Sources/MemoryLayoutKit/SynchronizedArray.swift:153:4: warning: capture of 'self' with non-sendable type 'SynchronizedArray<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 19 |
 20 | /// A thread-safe array.
 21 | public class SynchronizedArray<Element> {
    |              `- note: generic class 'SynchronizedArray' does not conform to the 'Sendable' protocol
 22 | 	fileprivate let queue = DispatchQueue(label: "com.octadero.SynchronizedArray", qos: .userInteractive, attributes: .concurrent)
 23 | 	fileprivate var array = [Element]()
    :
151 | 	func append( _ element: Element) {
152 | 		queue.async(flags: .barrier) {
153 | 			self.array.append(element)
    |    `- warning: capture of 'self' with non-sendable type 'SynchronizedArray<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
154 | 		}
155 | 	}
/host/spi-builder-workspace/Sources/MemoryLayoutKit/SynchronizedArray.swift:153:22: warning: capture of 'element' with non-sendable type 'Element' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 19 |
 20 | /// A thread-safe array.
 21 | public class SynchronizedArray<Element> {
    |                                `- note: consider making generic parameter 'Element' conform to the 'Sendable' protocol
 22 | 	fileprivate let queue = DispatchQueue(label: "com.octadero.SynchronizedArray", qos: .userInteractive, attributes: .concurrent)
 23 | 	fileprivate var array = [Element]()
    :
151 | 	func append( _ element: Element) {
152 | 		queue.async(flags: .barrier) {
153 | 			self.array.append(element)
    |                      `- warning: capture of 'element' with non-sendable type 'Element' in a `@Sendable` closure; this is an error in the Swift 6 language mode
154 | 		}
155 | 	}
/host/spi-builder-workspace/Sources/MemoryLayoutKit/SynchronizedArray.swift:162:4: warning: capture of 'self' with non-sendable type 'SynchronizedArray<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 19 |
 20 | /// A thread-safe array.
 21 | public class SynchronizedArray<Element> {
    |              `- note: generic class 'SynchronizedArray' does not conform to the 'Sendable' protocol
 22 | 	fileprivate let queue = DispatchQueue(label: "com.octadero.SynchronizedArray", qos: .userInteractive, attributes: .concurrent)
 23 | 	fileprivate var array = [Element]()
    :
160 | 	func append(_ elements: [Element]) {
161 | 		queue.async(flags: .barrier) {
162 | 			self.array += elements
    |    `- warning: capture of 'self' with non-sendable type 'SynchronizedArray<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
163 | 		}
164 | 	}
/host/spi-builder-workspace/Sources/MemoryLayoutKit/SynchronizedArray.swift:162:18: warning: capture of 'elements' with non-sendable type '[Element]' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 19 |
 20 | /// A thread-safe array.
 21 | public class SynchronizedArray<Element> {
    |                                `- note: consider making generic parameter 'Element' conform to the 'Sendable' protocol
 22 | 	fileprivate let queue = DispatchQueue(label: "com.octadero.SynchronizedArray", qos: .userInteractive, attributes: .concurrent)
 23 | 	fileprivate var array = [Element]()
    :
160 | 	func append(_ elements: [Element]) {
161 | 		queue.async(flags: .barrier) {
162 | 			self.array += elements
    |                  `- warning: capture of 'elements' with non-sendable type '[Element]' in a `@Sendable` closure; this is an error in the Swift 6 language mode
163 | 		}
164 | 	}
/host/spi-builder-workspace/Sources/MemoryLayoutKit/SynchronizedArray.swift:168:4: warning: capture of 'self' with non-sendable type 'SynchronizedArray<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 19 |
 20 | /// A thread-safe array.
 21 | public class SynchronizedArray<Element> {
    |              `- note: generic class 'SynchronizedArray' does not conform to the 'Sendable' protocol
 22 | 	fileprivate let queue = DispatchQueue(label: "com.octadero.SynchronizedArray", qos: .userInteractive, attributes: .concurrent)
 23 | 	fileprivate var array = [Element]()
    :
166 | 	public func append<S>(contentsOf newElements: S) where S : Sequence, S.Iterator.Element == Element {
167 | 		queue.async(flags: .barrier) {
168 | 			self.array.append(contentsOf: newElements)
    |    `- warning: capture of 'self' with non-sendable type 'SynchronizedArray<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
169 | 		}
170 | 	}
/host/spi-builder-workspace/Sources/MemoryLayoutKit/SynchronizedArray.swift:168:34: warning: capture of 'newElements' with non-sendable type 'S' in a `@Sendable` closure; this is an error in the Swift 6 language mode
164 | 	}
165 |
166 | 	public func append<S>(contentsOf newElements: S) where S : Sequence, S.Iterator.Element == Element {
    |                     `- note: consider making generic parameter 'S' conform to the 'Sendable' protocol
167 | 		queue.async(flags: .barrier) {
168 | 			self.array.append(contentsOf: newElements)
    |                                  `- warning: capture of 'newElements' with non-sendable type 'S' in a `@Sendable` closure; this is an error in the Swift 6 language mode
169 | 		}
170 | 	}
/host/spi-builder-workspace/Sources/MemoryLayoutKit/SynchronizedArray.swift:179:4: warning: capture of 'self' with non-sendable type 'SynchronizedArray<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 19 |
 20 | /// A thread-safe array.
 21 | public class SynchronizedArray<Element> {
    |              `- note: generic class 'SynchronizedArray' does not conform to the 'Sendable' protocol
 22 | 	fileprivate let queue = DispatchQueue(label: "com.octadero.SynchronizedArray", qos: .userInteractive, attributes: .concurrent)
 23 | 	fileprivate var array = [Element]()
    :
177 | 	func insert( _ element: Element, at index: Int) {
178 | 		queue.async(flags: .barrier) {
179 | 			self.array.insert(element, at: index)
    |    `- warning: capture of 'self' with non-sendable type 'SynchronizedArray<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
180 | 		}
181 | 	}
/host/spi-builder-workspace/Sources/MemoryLayoutKit/SynchronizedArray.swift:179:22: warning: capture of 'element' with non-sendable type 'Element' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 19 |
 20 | /// A thread-safe array.
 21 | public class SynchronizedArray<Element> {
    |                                `- note: consider making generic parameter 'Element' conform to the 'Sendable' protocol
 22 | 	fileprivate let queue = DispatchQueue(label: "com.octadero.SynchronizedArray", qos: .userInteractive, attributes: .concurrent)
 23 | 	fileprivate var array = [Element]()
    :
177 | 	func insert( _ element: Element, at index: Int) {
178 | 		queue.async(flags: .barrier) {
179 | 			self.array.insert(element, at: index)
    |                      `- warning: capture of 'element' with non-sendable type 'Element' in a `@Sendable` closure; this is an error in the Swift 6 language mode
180 | 		}
181 | 	}
/host/spi-builder-workspace/Sources/MemoryLayoutKit/SynchronizedArray.swift:190:10: warning: capture of 'self' with non-sendable type 'SynchronizedArray<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 19 |
 20 | /// A thread-safe array.
 21 | public class SynchronizedArray<Element> {
    |              `- note: generic class 'SynchronizedArray' does not conform to the 'Sendable' protocol
 22 | 	fileprivate let queue = DispatchQueue(label: "com.octadero.SynchronizedArray", qos: .userInteractive, attributes: .concurrent)
 23 | 	fileprivate var array = [Element]()
    :
188 | 	func remove(at index: Int, completion: @escaping ((Element?) -> Void)) {
189 | 		queue.async(flags: .barrier) {
190 | 			guard self.array.count > index else {
    |          `- warning: capture of 'self' with non-sendable type 'SynchronizedArray<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
191 | 				DispatchQueue.main.async {
192 | 					completion(nil)
/host/spi-builder-workspace/Sources/MemoryLayoutKit/SynchronizedArray.swift:192:6: warning: capture of 'completion' with non-sendable type '(Element?) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
190 | 			guard self.array.count > index else {
191 | 				DispatchQueue.main.async {
192 | 					completion(nil)
    |      |- warning: capture of 'completion' with non-sendable type '(Element?) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |      `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
193 | 				}
194 | 				return
/host/spi-builder-workspace/Sources/MemoryLayoutKit/SynchronizedArray.swift:192:6: warning: capture of 'completion' with non-sendable type '(Element?) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
190 | 			guard self.array.count > index else {
191 | 				DispatchQueue.main.async {
192 | 					completion(nil)
    |      |- warning: capture of 'completion' with non-sendable type '(Element?) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |      `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
193 | 				}
194 | 				return
/host/spi-builder-workspace/Sources/MemoryLayoutKit/SynchronizedArray.swift:200:5: warning: capture of 'completion' with non-sendable type '(Element?) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
198 |
199 | 			DispatchQueue.main.async {
200 | 				completion(element)
    |     |- warning: capture of 'completion' with non-sendable type '(Element?) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |     `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
201 | 			}
202 | 		}
/host/spi-builder-workspace/Sources/MemoryLayoutKit/SynchronizedArray.swift:200:16: warning: capture of 'element' with non-sendable type 'Element' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 19 |
 20 | /// A thread-safe array.
 21 | public class SynchronizedArray<Element> {
    |                                `- note: consider making generic parameter 'Element' conform to the 'Sendable' protocol
 22 | 	fileprivate let queue = DispatchQueue(label: "com.octadero.SynchronizedArray", qos: .userInteractive, attributes: .concurrent)
 23 | 	fileprivate var array = [Element]()
    :
198 |
199 | 			DispatchQueue.main.async {
200 | 				completion(element)
    |                `- warning: capture of 'element' with non-sendable type 'Element' in a `@Sendable` closure; this is an error in the Swift 6 language mode
201 | 			}
202 | 		}
/host/spi-builder-workspace/Sources/MemoryLayoutKit/SynchronizedArray.swift:223:22: warning: capture of 'self' with non-sendable type 'SynchronizedArray<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 19 |
 20 | /// A thread-safe array.
 21 | public class SynchronizedArray<Element> {
    |              `- note: generic class 'SynchronizedArray' does not conform to the 'Sendable' protocol
 22 | 	fileprivate let queue = DispatchQueue(label: "com.octadero.SynchronizedArray", qos: .userInteractive, attributes: .concurrent)
 23 | 	fileprivate var array = [Element]()
    :
221 | 	func remove(where predicate: @escaping (Element) -> Bool, completion: @escaping ((Element) -> Void)) {
222 | 		queue.async(flags: .barrier) {
223 | 			guard let index = self.array.index(where: predicate) else { return }
    |                      `- warning: capture of 'self' with non-sendable type 'SynchronizedArray<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
224 | 			let element = self.array.remove(at: index)
225 |
/host/spi-builder-workspace/Sources/MemoryLayoutKit/SynchronizedArray.swift:223:46: warning: capture of 'predicate' with non-sendable type '(Element) -> Bool' in a `@Sendable` closure; this is an error in the Swift 6 language mode
221 | 	func remove(where predicate: @escaping (Element) -> Bool, completion: @escaping ((Element) -> Void)) {
222 | 		queue.async(flags: .barrier) {
223 | 			guard let index = self.array.index(where: predicate) else { return }
    |                                              |- warning: capture of 'predicate' with non-sendable type '(Element) -> Bool' in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |                                              `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
224 | 			let element = self.array.remove(at: index)
225 |
/host/spi-builder-workspace/Sources/MemoryLayoutKit/SynchronizedArray.swift:227:5: warning: capture of 'completion' with non-sendable type '(Element) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
225 |
226 | 			DispatchQueue.main.async {
227 | 				completion(element)
    |     |- warning: capture of 'completion' with non-sendable type '(Element) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |     `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
228 | 			}
229 | 		}
/host/spi-builder-workspace/Sources/MemoryLayoutKit/SynchronizedArray.swift:227:5: warning: capture of 'completion' with non-sendable type '(Element) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
225 |
226 | 			DispatchQueue.main.async {
227 | 				completion(element)
    |     |- warning: capture of 'completion' with non-sendable type '(Element) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |     `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
228 | 			}
229 | 		}
/host/spi-builder-workspace/Sources/MemoryLayoutKit/SynchronizedArray.swift:227:16: warning: capture of 'element' with non-sendable type 'Element' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 19 |
 20 | /// A thread-safe array.
 21 | public class SynchronizedArray<Element> {
    |                                `- note: consider making generic parameter 'Element' conform to the 'Sendable' protocol
 22 | 	fileprivate let queue = DispatchQueue(label: "com.octadero.SynchronizedArray", qos: .userInteractive, attributes: .concurrent)
 23 | 	fileprivate var array = [Element]()
    :
225 |
226 | 			DispatchQueue.main.async {
227 | 				completion(element)
    |                `- warning: capture of 'element' with non-sendable type 'Element' in a `@Sendable` closure; this is an error in the Swift 6 language mode
228 | 			}
229 | 		}
/host/spi-builder-workspace/Sources/MemoryLayoutKit/SynchronizedArray.swift:237:19: warning: capture of 'self' with non-sendable type 'SynchronizedArray<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 19 |
 20 | /// A thread-safe array.
 21 | public class SynchronizedArray<Element> {
    |              `- note: generic class 'SynchronizedArray' does not conform to the 'Sendable' protocol
 22 | 	fileprivate let queue = DispatchQueue(label: "com.octadero.SynchronizedArray", qos: .userInteractive, attributes: .concurrent)
 23 | 	fileprivate var array = [Element]()
    :
235 | 	func removeAll(completion: @escaping (([Element]) -> Void)) {
236 | 		queue.async(flags: .barrier) {
237 | 			let elements = self.array
    |                   `- warning: capture of 'self' with non-sendable type 'SynchronizedArray<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
238 | 			self.array.removeAll()
239 |
/host/spi-builder-workspace/Sources/MemoryLayoutKit/SynchronizedArray.swift:241:5: warning: capture of 'completion' with non-sendable type '([Element]) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
239 |
240 | 			DispatchQueue.main.async {
241 | 				completion(elements)
    |     |- warning: capture of 'completion' with non-sendable type '([Element]) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |     `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
242 | 			}
243 | 		}
/host/spi-builder-workspace/Sources/MemoryLayoutKit/SynchronizedArray.swift:241:5: warning: capture of 'completion' with non-sendable type '([Element]) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
239 |
240 | 			DispatchQueue.main.async {
241 | 				completion(elements)
    |     |- warning: capture of 'completion' with non-sendable type '([Element]) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |     `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
242 | 			}
243 | 		}
/host/spi-builder-workspace/Sources/MemoryLayoutKit/SynchronizedArray.swift:241:16: warning: capture of 'elements' with non-sendable type '[Element]' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 19 |
 20 | /// A thread-safe array.
 21 | public class SynchronizedArray<Element> {
    |                                `- note: consider making generic parameter 'Element' conform to the 'Sendable' protocol
 22 | 	fileprivate let queue = DispatchQueue(label: "com.octadero.SynchronizedArray", qos: .userInteractive, attributes: .concurrent)
 23 | 	fileprivate var array = [Element]()
    :
239 |
240 | 			DispatchQueue.main.async {
241 | 				completion(elements)
    |                `- warning: capture of 'elements' with non-sendable type '[Element]' in a `@Sendable` closure; this is an error in the Swift 6 language mode
242 | 			}
243 | 		}
/host/spi-builder-workspace/Sources/MemoryLayoutKit/SynchronizedArray.swift:269:13: warning: capture of 'self' with non-sendable type 'SynchronizedArray<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 19 |
 20 | /// A thread-safe array.
 21 | public class SynchronizedArray<Element> {
    |              `- note: generic class 'SynchronizedArray' does not conform to the 'Sendable' protocol
 22 | 	fileprivate let queue = DispatchQueue(label: "com.octadero.SynchronizedArray", qos: .userInteractive, attributes: .concurrent)
 23 | 	fileprivate var array = [Element]()
    :
267 | 		var result: Int = 0
268 | 		queue.async(flags: .barrier) {
269 | 			result = self.array.underestimatedCount
    |             `- warning: capture of 'self' with non-sendable type 'SynchronizedArray<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
270 | 		}
271 | 		return result
/host/spi-builder-workspace/Sources/MemoryLayoutKit/SynchronizedArray.swift:269:4: warning: mutation of captured var 'result' in concurrently-executing code; this is an error in the Swift 6 language mode
267 | 		var result: Int = 0
268 | 		queue.async(flags: .barrier) {
269 | 			result = self.array.underestimatedCount
    |    `- warning: mutation of captured var 'result' in concurrently-executing code; this is an error in the Swift 6 language mode
270 | 		}
271 | 		return result
/host/spi-builder-workspace/Sources/MemoryLayoutKit/SynchronizedArray.swift:370:13: warning: capture of 'self' with non-sendable type 'SynchronizedArray<String>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 19 |
 20 | /// A thread-safe array.
 21 | public class SynchronizedArray<Element> {
    |              `- note: generic class 'SynchronizedArray' does not conform to the 'Sendable' protocol
 22 | 	fileprivate let queue = DispatchQueue(label: "com.octadero.SynchronizedArray", qos: .userInteractive, attributes: .concurrent)
 23 | 	fileprivate var array = [Element]()
    :
368 | 		var result = ""
369 | 		queue.async(flags: .barrier) {
370 | 			result = self.array.joined(separator: separator)
    |             `- warning: capture of 'self' with non-sendable type 'SynchronizedArray<String>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
371 | 		}
372 | 		return result
/host/spi-builder-workspace/Sources/MemoryLayoutKit/SynchronizedArray.swift:370:4: warning: mutation of captured var 'result' in concurrently-executing code; this is an error in the Swift 6 language mode
368 | 		var result = ""
369 | 		queue.async(flags: .barrier) {
370 | 			result = self.array.joined(separator: separator)
    |    `- warning: mutation of captured var 'result' in concurrently-executing code; this is an error in the Swift 6 language mode
371 | 		}
372 | 		return result
/host/spi-builder-workspace/Sources/MemoryLayoutKit/SynchronizedArray.swift:380:4: warning: capture of 'self' with non-sendable type 'SynchronizedArray<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 19 |
 20 | /// A thread-safe array.
 21 | public class SynchronizedArray<Element> {
    |              `- note: generic class 'SynchronizedArray' does not conform to the 'Sendable' protocol
 22 | 	fileprivate let queue = DispatchQueue(label: "com.octadero.SynchronizedArray", qos: .userInteractive, attributes: .concurrent)
 23 | 	fileprivate var array = [Element]()
    :
378 | 	func removeSubrange(_ bounds: ClosedRange<SynchronizedArray.Index>) {
379 | 		queue.async(flags: .barrier) {
380 | 			self.array.removeSubrange(bounds)
    |    `- warning: capture of 'self' with non-sendable type 'SynchronizedArray<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
381 | 		}
382 | 	}
/host/spi-builder-workspace/Sources/MemoryLayoutKit/SynchronizedArray.swift:386:4: warning: capture of 'self' with non-sendable type 'SynchronizedArray<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 19 |
 20 | /// A thread-safe array.
 21 | public class SynchronizedArray<Element> {
    |              `- note: generic class 'SynchronizedArray' does not conform to the 'Sendable' protocol
 22 | 	fileprivate let queue = DispatchQueue(label: "com.octadero.SynchronizedArray", qos: .userInteractive, attributes: .concurrent)
 23 | 	fileprivate var array = [Element]()
    :
384 | 	func removeSubrange(_ bounds: CountableRange<SynchronizedArray.Index>) {
385 | 		queue.async(flags: .barrier) {
386 | 			self.array.removeSubrange(bounds)
    |    `- warning: capture of 'self' with non-sendable type 'SynchronizedArray<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
387 | 		}
388 | 	}
/host/spi-builder-workspace/Sources/MemoryLayoutKit/SynchronizedArray.swift:413:5: warning: capture of 'self' with non-sendable type 'SynchronizedArray<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 19 |
 20 | /// A thread-safe array.
 21 | public class SynchronizedArray<Element> {
    |              `- note: generic class 'SynchronizedArray' does not conform to the 'Sendable' protocol
 22 | 	fileprivate let queue = DispatchQueue(label: "com.octadero.SynchronizedArray", qos: .userInteractive, attributes: .concurrent)
 23 | 	fileprivate var array = [Element]()
    :
411 | 		set {
412 | 			queue.async(flags: .barrier) {
413 | 				self.array[index] = newValue
    |     `- warning: capture of 'self' with non-sendable type 'SynchronizedArray<Element>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
414 | 			}
415 | 		}
/host/spi-builder-workspace/Sources/MemoryLayoutKit/SynchronizedArray.swift:413:25: warning: capture of 'newValue' with non-sendable type 'Element' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 19 |
 20 | /// A thread-safe array.
 21 | public class SynchronizedArray<Element> {
    |                                `- note: consider making generic parameter 'Element' conform to the 'Sendable' protocol
 22 | 	fileprivate let queue = DispatchQueue(label: "com.octadero.SynchronizedArray", qos: .userInteractive, attributes: .concurrent)
 23 | 	fileprivate var array = [Element]()
    :
411 | 		set {
412 | 			queue.async(flags: .barrier) {
413 | 				self.array[index] = newValue
    |                         `- warning: capture of 'newValue' with non-sendable type 'Element' in a `@Sendable` closure; this is an error in the Swift 6 language mode
414 | 			}
415 | 		}
[6/8] Compiling MemoryLayoutKit MemoryLayoutKit.swift
[7/8] Compiling MemoryLayoutKit Data.swift
/host/spi-builder-workspace/Sources/MemoryLayoutKit/Data.swift:21:2: warning: 'public' modifier is redundant for instance method declared in a public extension
19 | /// Feature to print data as hex array.
20 | public extension Data {
21 | 	public func hexEncodedString() -> String {
   |  `- warning: 'public' modifier is redundant for instance method declared in a public extension
22 | 		return map { String(format: " 0x%02hhx", $0) }.joined()
23 | 	}
/host/spi-builder-workspace/Sources/MemoryLayoutKit/Data.swift:27:2: warning: 'public' modifier is redundant for instance method declared in a public extension
25 |
26 | public extension Data {
27 | 	public func decode<T>() -> T {
   |  `- warning: 'public' modifier is redundant for instance method declared in a public extension
28 | 		let pointer = UnsafeMutablePointer<T>.allocate(capacity: MemoryLayout<T>.size)
29 | 		NSData(data: self).getBytes(pointer, length: MemoryLayout<T>.size)
/host/spi-builder-workspace/Sources/MemoryLayoutKit/Data.swift:35:2: warning: 'public' modifier is redundant for initializer declared in a public extension
33 | 	}
34 |
35 | 	public init<T>(fromArray values: [T]) {
   |  `- warning: 'public' modifier is redundant for initializer declared in a public extension
36 | 		var values = values
37 | 		self.init(buffer: UnsafeBufferPointer(start: &values, count: values.count))
/host/spi-builder-workspace/Sources/MemoryLayoutKit/Data.swift:40:2: warning: 'public' modifier is redundant for instance method declared in a public extension
38 | 	}
39 |
40 | 	public func toArray<T>(type: T.Type) -> [T] {
   |  `- warning: 'public' modifier is redundant for instance method declared in a public extension
41 | 		return self.withUnsafeBytes {
42 | 			[T](UnsafeBufferPointer(start: $0, count: self.count/MemoryLayout<T>.stride))
/host/spi-builder-workspace/Sources/MemoryLayoutKit/Data.swift:37:21: warning: initialization of 'UnsafeBufferPointer<T>' results in a dangling buffer pointer
35 | 	public init<T>(fromArray values: [T]) {
36 | 		var values = values
37 | 		self.init(buffer: UnsafeBufferPointer(start: &values, count: values.count))
   |                     |                          |- note: implicit argument conversion from '[T]' to 'UnsafePointer<T>?' produces a pointer valid only for the duration of the call to 'init(start:count:)'
   |                     |                          `- note: use the 'withUnsafeBufferPointer' method on Array in order to explicitly convert argument to buffer pointer valid for a defined scope
   |                     `- warning: initialization of 'UnsafeBufferPointer<T>' results in a dangling buffer pointer
38 | 	}
39 |
[8/8] Compiling MemoryLayoutKit General.swift
Build complete! (8.30s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "MemoryLayoutKit",
  "name" : "MemoryLayoutKit",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "MemoryLayoutKit",
      "targets" : [
        "MemoryLayoutKit"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "MemoryLayoutKitTests",
      "module_type" : "SwiftTarget",
      "name" : "MemoryLayoutKitTests",
      "path" : "Tests/MemoryLayoutKitTests",
      "sources" : [
        "MemoryLayoutKitTests.swift"
      ],
      "target_dependencies" : [
        "MemoryLayoutKit"
      ],
      "type" : "test"
    },
    {
      "c99name" : "MemoryLayoutKit",
      "module_type" : "SwiftTarget",
      "name" : "MemoryLayoutKit",
      "path" : "Sources/MemoryLayoutKit",
      "product_memberships" : [
        "MemoryLayoutKit"
      ],
      "sources" : [
        "Array.swift",
        "Data.swift",
        "General.swift",
        "MemoryLayoutKit.swift",
        "SynchronizedArray.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "4.2"
}
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.