Build Information
Failed to build SwiftSpellbook_macOS, reference 2.0.0 (40a119), with Swift 6.0 for macOS (SPM) on 13 Nov 2025 21:23:37 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.2.0.app xcrun swift build --arch arm64Build Log
========================================
RunAll
========================================
Builder version: 4.68.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Alkenso/SwiftSpellbook_macOS.git
Reference: 2.0.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/Alkenso/SwiftSpellbook_macOS
* tag 2.0.0 -> FETCH_HEAD
HEAD is now at 40a1199 Update README.md
Cloned https://github.com/Alkenso/SwiftSpellbook_macOS.git
Revision (git rev-parse @):
40a11990f298a7b332ae76002c6e9afc341a74e5
SUCCESS checkout https://github.com/Alkenso/SwiftSpellbook_macOS.git at 2.0.0
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $PWD
https://github.com/Alkenso/SwiftSpellbook_macOS.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.2.0.app xcrun swift build --arch arm64
Building for debugging...
[0/10] Write sources
[8/10] Write swift-version-5BDAB9E9C0126B9D.txt
[9/10] Compiling _SpellbookFoundationObjC SpellbookObjC.mm
error: emit-module command failed with exit code 1 (use -v to see invocation)
[11/66] Emitting module SpellbookFoundation
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftSpellbook/Sources/SpellbookFoundation/Threading & Concurrency/Synchronized.swift:126:17: error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@in_guaranteed τ_0_0) -> @sil_sending @out τ_0_1 for <τ_0_0, τ_1_0>' value as a 'sending' result risks causing data races
124 |
125 | extension Synchronized: _ValueUpdateWrapping {
126 | public func _readValue<R>(body: (Value) -> sending R) -> sending R {
| |- error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@in_guaranteed τ_0_0) -> @sil_sending @out τ_0_1 for <τ_0_0, τ_1_0>' value as a 'sending' result risks causing data races
| |- note: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@in_guaranteed τ_0_0) -> @sil_sending @out τ_0_1 for <τ_0_0, τ_1_0>' value risks causing races since the caller assumes the value can be safely sent to other isolation domains
| `- note: '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@in_guaranteed τ_0_0) -> @sil_sending @out τ_0_1 for <τ_0_0, τ_1_0>' is a non-Sendable type
127 | read { body($0) }
128 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftSpellbook/Sources/SpellbookFoundation/Threading & Concurrency/Synchronized.swift:130:17: error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@inout τ_0_0) -> @sil_sending @out τ_0_1 for <τ_0_0, τ_1_0>' value as a 'sending' result risks causing data races
128 | }
129 |
130 | public func _updateValue<R>(body: (inout Value) -> sending R) -> sending R {
| |- error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@inout τ_0_0) -> @sil_sending @out τ_0_1 for <τ_0_0, τ_1_0>' value as a 'sending' result risks causing data races
| |- note: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@inout τ_0_0) -> @sil_sending @out τ_0_1 for <τ_0_0, τ_1_0>' value risks causing races since the caller assumes the value can be safely sent to other isolation domains
| `- note: '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@inout τ_0_0) -> @sil_sending @out τ_0_1 for <τ_0_0, τ_1_0>' is a non-Sendable type
131 | write { body(&$0) }
132 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftSpellbook/Sources/SpellbookFoundation/Threading & Concurrency/Synchronized.swift:197:10: error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <τ_0_1, τ_0_0>' value as a 'sending' result risks causing data races
195 |
196 | extension UnfairLock: SynchronizedLocking {
197 | func withWriteLock<R, E: Error>(_ body: () throws(E) -> sending R) throws(E) -> sending R {
| |- error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <τ_0_1, τ_0_0>' value as a 'sending' result risks causing data races
| |- note: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <τ_0_1, τ_0_0>' value risks causing races since the caller assumes the value can be safely sent to other isolation domains
| `- note: '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <τ_0_1, τ_0_0>' is a non-Sendable type
198 | try withLock(body)
199 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftSpellbook/Sources/SpellbookFoundation/Threading & Concurrency/Synchronized.swift:191:10: error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <τ_0_1, τ_0_0>' value as a 'sending' result risks causing data races
189 |
190 | extension SynchronizedLocking {
191 | func withReadLock<R, E: Error>(_ body: () throws(E) -> sending R) throws(E) -> sending R {
| |- error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <τ_0_1, τ_0_0>' value as a 'sending' result risks causing data races
| |- note: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <τ_0_1, τ_0_0>' value risks causing races since the caller assumes the value can be safely sent to other isolation domains
| `- note: '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <τ_0_1, τ_0_0>' is a non-Sendable type
192 | try withWriteLock(body)
193 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftSpellbook/Sources/SpellbookFoundation/Threading & Concurrency/PosixLocks.swift:118:17: error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <τ_0_1, τ_0_0>' value as a 'sending' result risks causing data races
116 | }
117 |
118 | public func withWriteLock<R, E: Error>(_ body: () throws(E) -> sending R) throws(E) -> sending R {
| |- error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <τ_0_1, τ_0_0>' value as a 'sending' result risks causing data races
| |- note: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <τ_0_1, τ_0_0>' value risks causing races since the caller assumes the value can be safely sent to other isolation domains
| `- note: '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <τ_0_1, τ_0_0>' is a non-Sendable type
119 | writeLock()
120 | defer { unlock() }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftSpellbook/Sources/SpellbookFoundation/Threading & Concurrency/PosixLocks.swift:106:17: error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <τ_0_1, τ_0_0>' value as a 'sending' result risks causing data races
104 | }
105 |
106 | public func withReadLock<R, E: Error>(_ body: () throws(E) -> sending R) throws(E) -> sending R {
| |- error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <τ_0_1, τ_0_0>' value as a 'sending' result risks causing data races
| |- note: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <τ_0_1, τ_0_0>' value risks causing races since the caller assumes the value can be safely sent to other isolation domains
| `- note: '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <τ_0_1, τ_0_0>' is a non-Sendable type
107 | readLock()
108 | defer { unlock() }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftSpellbook/Sources/SpellbookFoundation/Threading & Concurrency/Synchronized.swift:205:10: error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <τ_0_1, τ_0_0>' value as a 'sending' result risks causing data races
203 |
204 | extension DispatchQueue: SynchronizedLocking {
205 | func withWriteLock<R, E: Error>(_ body: () throws(E) -> sending R) throws(E) -> sending R {
| |- error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <τ_0_1, τ_0_0>' value as a 'sending' result risks causing data races
| |- note: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <τ_0_1, τ_0_0>' value risks causing races since the caller assumes the value can be safely sent to other isolation domains
| `- note: '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <τ_0_1, τ_0_0>' is a non-Sendable type
206 | try sync(flags: .barrier) { UncheckedSendable(Result(catching: body)) }.wrappedValue.get()
207 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftSpellbook/Sources/SpellbookFoundation/Threading & Concurrency/Synchronized.swift:209:10: error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <τ_0_1, τ_0_0>' value as a 'sending' result risks causing data races
207 | }
208 |
209 | func withReadLock<R, E: Error>(_ body: () throws(E) -> sending R) throws(E) -> sending R {
| |- error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <τ_0_1, τ_0_0>' value as a 'sending' result risks causing data races
| |- note: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <τ_0_1, τ_0_0>' value risks causing races since the caller assumes the value can be safely sent to other isolation domains
| `- note: '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <τ_0_1, τ_0_0>' is a non-Sendable type
210 | try sync { UncheckedSendable(Result(catching: body)) }.wrappedValue.get()
211 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftSpellbook/Sources/SpellbookFoundation/ValueObserving/ValueStore.swift:271:17: error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@in_guaranteed τ_0_0) -> @sil_sending @out τ_0_1 for <τ_0_0, τ_1_0>' value as a 'sending' result risks causing data races
269 |
270 | extension ValueStore: _ValueUpdateWrapping {
271 | public func _readValue<R>(body: (Value) -> sending R) -> sending R {
| |- error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@in_guaranteed τ_0_0) -> @sil_sending @out τ_0_1 for <τ_0_0, τ_1_0>' value as a 'sending' result risks causing data races
| |- note: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@in_guaranteed τ_0_0) -> @sil_sending @out τ_0_1 for <τ_0_0, τ_1_0>' value risks causing races since the caller assumes the value can be safely sent to other isolation domains
| `- note: '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@in_guaranteed τ_0_0) -> @sil_sending @out τ_0_1 for <τ_0_0, τ_1_0>' is a non-Sendable type
272 | update { body($0) }
273 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftSpellbook/Sources/SpellbookFoundation/ValueObserving/ValueStore.swift:275:17: error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@inout τ_0_0) -> @sil_sending @out τ_0_1 for <τ_0_0, τ_1_0>' value as a 'sending' result risks causing data races
273 | }
274 |
275 | public func _updateValue<R>(body: (inout Value) -> sending R) -> sending R {
| |- error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@inout τ_0_0) -> @sil_sending @out τ_0_1 for <τ_0_0, τ_1_0>' value as a 'sending' result risks causing data races
| |- note: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@inout τ_0_0) -> @sil_sending @out τ_0_1 for <τ_0_0, τ_1_0>' value risks causing races since the caller assumes the value can be safely sent to other isolation domains
| `- note: '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@inout τ_0_0) -> @sil_sending @out τ_0_1 for <τ_0_0, τ_1_0>' is a non-Sendable type
276 | update(body: body)
277 | }
[12/72] Compiling SpellbookFoundation SpellbookLog.swift
[13/72] Compiling SpellbookFoundation Utils.swift
[14/72] Compiling SpellbookFoundation ValueBuilder.swift
[15/72] Compiling SpellbookFoundation WildcardExpression.swift
[16/72] Compiling SpellbookFoundation DictionaryCodingKey.swift
[17/72] Compiling SpellbookFoundation DictionaryReader.swift
[18/72] Compiling SpellbookFoundation Extensions - Combine.swift
[19/72] Compiling SpellbookFoundation Proxies - Combine.swift
[20/72] Compiling SpellbookFoundation Benchmark.swift
[21/72] Compiling SpellbookFoundation CancellationToken.swift
[22/72] Compiling SpellbookFoundation CollectionDiff.swift
[23/72] Compiling SpellbookFoundation Environment.swift
[24/72] Compiling SpellbookFoundation Exceptions.swift
[25/72] Compiling SpellbookFoundation Extensions - Codable.swift
[26/72] Compiling SpellbookFoundation Extensions - Collections.swift
[27/72] Compiling SpellbookFoundation Extensions - Comparable.swift
[28/72] Compiling SpellbookFoundation Extensions - Formatters.swift
[29/72] Compiling SpellbookFoundation Extensions - StandardTypes.swift
[30/72] Compiling SpellbookFoundation SBUnit.swift
[31/72] Compiling SpellbookFoundation EventAsk.swift
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftSpellbook/Sources/SpellbookFoundation/ValueObserving/ValueStore.swift:271:17: error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@in_guaranteed τ_0_0) -> @sil_sending @out τ_0_1 for <τ_0_0, τ_1_0>' value as a 'sending' result risks causing data races
269 |
270 | extension ValueStore: _ValueUpdateWrapping {
271 | public func _readValue<R>(body: (Value) -> sending R) -> sending R {
| |- error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@in_guaranteed τ_0_0) -> @sil_sending @out τ_0_1 for <τ_0_0, τ_1_0>' value as a 'sending' result risks causing data races
| |- note: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@in_guaranteed τ_0_0) -> @sil_sending @out τ_0_1 for <τ_0_0, τ_1_0>' value risks causing races since the caller assumes the value can be safely sent to other isolation domains
| `- note: '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@in_guaranteed τ_0_0) -> @sil_sending @out τ_0_1 for <τ_0_0, τ_1_0>' is a non-Sendable type
272 | update { body($0) }
273 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftSpellbook/Sources/SpellbookFoundation/ValueObserving/ValueStore.swift:275:17: error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@inout τ_0_0) -> @sil_sending @out τ_0_1 for <τ_0_0, τ_1_0>' value as a 'sending' result risks causing data races
273 | }
274 |
275 | public func _updateValue<R>(body: (inout Value) -> sending R) -> sending R {
| |- error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@inout τ_0_0) -> @sil_sending @out τ_0_1 for <τ_0_0, τ_1_0>' value as a 'sending' result risks causing data races
| |- note: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@inout τ_0_0) -> @sil_sending @out τ_0_1 for <τ_0_0, τ_1_0>' value risks causing races since the caller assumes the value can be safely sent to other isolation domains
| `- note: '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@inout τ_0_0) -> @sil_sending @out τ_0_1 for <τ_0_0, τ_1_0>' is a non-Sendable type
276 | update(body: body)
277 | }
[32/72] Compiling SpellbookFoundation EventNotify.swift
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftSpellbook/Sources/SpellbookFoundation/ValueObserving/ValueStore.swift:271:17: error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@in_guaranteed τ_0_0) -> @sil_sending @out τ_0_1 for <τ_0_0, τ_1_0>' value as a 'sending' result risks causing data races
269 |
270 | extension ValueStore: _ValueUpdateWrapping {
271 | public func _readValue<R>(body: (Value) -> sending R) -> sending R {
| |- error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@in_guaranteed τ_0_0) -> @sil_sending @out τ_0_1 for <τ_0_0, τ_1_0>' value as a 'sending' result risks causing data races
| |- note: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@in_guaranteed τ_0_0) -> @sil_sending @out τ_0_1 for <τ_0_0, τ_1_0>' value risks causing races since the caller assumes the value can be safely sent to other isolation domains
| `- note: '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@in_guaranteed τ_0_0) -> @sil_sending @out τ_0_1 for <τ_0_0, τ_1_0>' is a non-Sendable type
272 | update { body($0) }
273 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftSpellbook/Sources/SpellbookFoundation/ValueObserving/ValueStore.swift:275:17: error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@inout τ_0_0) -> @sil_sending @out τ_0_1 for <τ_0_0, τ_1_0>' value as a 'sending' result risks causing data races
273 | }
274 |
275 | public func _updateValue<R>(body: (inout Value) -> sending R) -> sending R {
| |- error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@inout τ_0_0) -> @sil_sending @out τ_0_1 for <τ_0_0, τ_1_0>' value as a 'sending' result risks causing data races
| |- note: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@inout τ_0_0) -> @sil_sending @out τ_0_1 for <τ_0_0, τ_1_0>' value risks causing races since the caller assumes the value can be safely sent to other isolation domains
| `- note: '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@inout τ_0_0) -> @sil_sending @out τ_0_1 for <τ_0_0, τ_1_0>' is a non-Sendable type
276 | update(body: body)
277 | }
[33/72] Compiling SpellbookFoundation ValueObservable.swift
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftSpellbook/Sources/SpellbookFoundation/ValueObserving/ValueStore.swift:271:17: error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@in_guaranteed τ_0_0) -> @sil_sending @out τ_0_1 for <τ_0_0, τ_1_0>' value as a 'sending' result risks causing data races
269 |
270 | extension ValueStore: _ValueUpdateWrapping {
271 | public func _readValue<R>(body: (Value) -> sending R) -> sending R {
| |- error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@in_guaranteed τ_0_0) -> @sil_sending @out τ_0_1 for <τ_0_0, τ_1_0>' value as a 'sending' result risks causing data races
| |- note: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@in_guaranteed τ_0_0) -> @sil_sending @out τ_0_1 for <τ_0_0, τ_1_0>' value risks causing races since the caller assumes the value can be safely sent to other isolation domains
| `- note: '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@in_guaranteed τ_0_0) -> @sil_sending @out τ_0_1 for <τ_0_0, τ_1_0>' is a non-Sendable type
272 | update { body($0) }
273 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftSpellbook/Sources/SpellbookFoundation/ValueObserving/ValueStore.swift:275:17: error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@inout τ_0_0) -> @sil_sending @out τ_0_1 for <τ_0_0, τ_1_0>' value as a 'sending' result risks causing data races
273 | }
274 |
275 | public func _updateValue<R>(body: (inout Value) -> sending R) -> sending R {
| |- error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@inout τ_0_0) -> @sil_sending @out τ_0_1 for <τ_0_0, τ_1_0>' value as a 'sending' result risks causing data races
| |- note: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@inout τ_0_0) -> @sil_sending @out τ_0_1 for <τ_0_0, τ_1_0>' value risks causing races since the caller assumes the value can be safely sent to other isolation domains
| `- note: '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@inout τ_0_0) -> @sil_sending @out τ_0_1 for <τ_0_0, τ_1_0>' is a non-Sendable type
276 | update(body: body)
277 | }
[34/72] Compiling SpellbookFoundation ValueObserving.swift
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftSpellbook/Sources/SpellbookFoundation/ValueObserving/ValueStore.swift:271:17: error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@in_guaranteed τ_0_0) -> @sil_sending @out τ_0_1 for <τ_0_0, τ_1_0>' value as a 'sending' result risks causing data races
269 |
270 | extension ValueStore: _ValueUpdateWrapping {
271 | public func _readValue<R>(body: (Value) -> sending R) -> sending R {
| |- error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@in_guaranteed τ_0_0) -> @sil_sending @out τ_0_1 for <τ_0_0, τ_1_0>' value as a 'sending' result risks causing data races
| |- note: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@in_guaranteed τ_0_0) -> @sil_sending @out τ_0_1 for <τ_0_0, τ_1_0>' value risks causing races since the caller assumes the value can be safely sent to other isolation domains
| `- note: '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@in_guaranteed τ_0_0) -> @sil_sending @out τ_0_1 for <τ_0_0, τ_1_0>' is a non-Sendable type
272 | update { body($0) }
273 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftSpellbook/Sources/SpellbookFoundation/ValueObserving/ValueStore.swift:275:17: error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@inout τ_0_0) -> @sil_sending @out τ_0_1 for <τ_0_0, τ_1_0>' value as a 'sending' result risks causing data races
273 | }
274 |
275 | public func _updateValue<R>(body: (inout Value) -> sending R) -> sending R {
| |- error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@inout τ_0_0) -> @sil_sending @out τ_0_1 for <τ_0_0, τ_1_0>' value as a 'sending' result risks causing data races
| |- note: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@inout τ_0_0) -> @sil_sending @out τ_0_1 for <τ_0_0, τ_1_0>' value risks causing races since the caller assumes the value can be safely sent to other isolation domains
| `- note: '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@inout τ_0_0) -> @sil_sending @out τ_0_1 for <τ_0_0, τ_1_0>' is a non-Sendable type
276 | update(body: body)
277 | }
[35/72] Compiling SpellbookFoundation ValueStore.swift
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftSpellbook/Sources/SpellbookFoundation/ValueObserving/ValueStore.swift:271:17: error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@in_guaranteed τ_0_0) -> @sil_sending @out τ_0_1 for <τ_0_0, τ_1_0>' value as a 'sending' result risks causing data races
269 |
270 | extension ValueStore: _ValueUpdateWrapping {
271 | public func _readValue<R>(body: (Value) -> sending R) -> sending R {
| |- error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@in_guaranteed τ_0_0) -> @sil_sending @out τ_0_1 for <τ_0_0, τ_1_0>' value as a 'sending' result risks causing data races
| |- note: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@in_guaranteed τ_0_0) -> @sil_sending @out τ_0_1 for <τ_0_0, τ_1_0>' value risks causing races since the caller assumes the value can be safely sent to other isolation domains
| `- note: '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@in_guaranteed τ_0_0) -> @sil_sending @out τ_0_1 for <τ_0_0, τ_1_0>' is a non-Sendable type
272 | update { body($0) }
273 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftSpellbook/Sources/SpellbookFoundation/ValueObserving/ValueStore.swift:275:17: error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@inout τ_0_0) -> @sil_sending @out τ_0_1 for <τ_0_0, τ_1_0>' value as a 'sending' result risks causing data races
273 | }
274 |
275 | public func _updateValue<R>(body: (inout Value) -> sending R) -> sending R {
| |- error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@inout τ_0_0) -> @sil_sending @out τ_0_1 for <τ_0_0, τ_1_0>' value as a 'sending' result risks causing data races
| |- note: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@inout τ_0_0) -> @sil_sending @out τ_0_1 for <τ_0_0, τ_1_0>' value risks causing races since the caller assumes the value can be safely sent to other isolation domains
| `- note: '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@inout τ_0_0) -> @sil_sending @out τ_0_1 for <τ_0_0, τ_1_0>' is a non-Sendable type
276 | update(body: body)
277 | }
[36/72] Compiling SpellbookFoundation ValueView.swift
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftSpellbook/Sources/SpellbookFoundation/ValueObserving/ValueStore.swift:271:17: error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@in_guaranteed τ_0_0) -> @sil_sending @out τ_0_1 for <τ_0_0, τ_1_0>' value as a 'sending' result risks causing data races
269 |
270 | extension ValueStore: _ValueUpdateWrapping {
271 | public func _readValue<R>(body: (Value) -> sending R) -> sending R {
| |- error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@in_guaranteed τ_0_0) -> @sil_sending @out τ_0_1 for <τ_0_0, τ_1_0>' value as a 'sending' result risks causing data races
| |- note: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@in_guaranteed τ_0_0) -> @sil_sending @out τ_0_1 for <τ_0_0, τ_1_0>' value risks causing races since the caller assumes the value can be safely sent to other isolation domains
| `- note: '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@in_guaranteed τ_0_0) -> @sil_sending @out τ_0_1 for <τ_0_0, τ_1_0>' is a non-Sendable type
272 | update { body($0) }
273 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftSpellbook/Sources/SpellbookFoundation/ValueObserving/ValueStore.swift:275:17: error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@inout τ_0_0) -> @sil_sending @out τ_0_1 for <τ_0_0, τ_1_0>' value as a 'sending' result risks causing data races
273 | }
274 |
275 | public func _updateValue<R>(body: (inout Value) -> sending R) -> sending R {
| |- error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@inout τ_0_0) -> @sil_sending @out τ_0_1 for <τ_0_0, τ_1_0>' value as a 'sending' result risks causing data races
| |- note: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@inout τ_0_0) -> @sil_sending @out τ_0_1 for <τ_0_0, τ_1_0>' value risks causing races since the caller assumes the value can be safely sent to other isolation domains
| `- note: '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@inout τ_0_0) -> @sil_sending @out τ_0_1 for <τ_0_0, τ_1_0>' is a non-Sendable type
276 | update(body: body)
277 | }
[37/72] Compiling SpellbookFoundation DictionaryWriter.swift
[38/72] Compiling SpellbookFoundation CommonError.swift
[39/72] Compiling SpellbookFoundation CustomErrorUpdating.swift
[40/72] Compiling SpellbookFoundation Extensions - Error.swift
[41/72] Compiling SpellbookFoundation Extensions - NSError.swift
[42/72] Compiling SpellbookFoundation IOKitError.swift
[43/72] Compiling SpellbookFoundation Extensions - Locks.swift
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftSpellbook/Sources/SpellbookFoundation/Threading & Concurrency/Synchronized.swift:198:13: error: returning task-isolated 'body' as a 'sending' result risks causing data races
196 | extension UnfairLock: SynchronizedLocking {
197 | func withWriteLock<R, E: Error>(_ body: () throws(E) -> sending R) throws(E) -> sending R {
198 | try withLock(body)
| |- error: returning task-isolated 'body' as a 'sending' result risks causing data races
| `- note: returning task-isolated 'body' risks causing data races since the caller assumes that 'body' can be safely sent to other isolation domains
199 | }
200 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftSpellbook/Sources/SpellbookFoundation/Threading & Concurrency/Synchronized.swift:197:10: error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <τ_0_1, τ_0_0>' value as a 'sending' result risks causing data races
195 |
196 | extension UnfairLock: SynchronizedLocking {
197 | func withWriteLock<R, E: Error>(_ body: () throws(E) -> sending R) throws(E) -> sending R {
| |- error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <τ_0_1, τ_0_0>' value as a 'sending' result risks causing data races
| |- note: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <τ_0_1, τ_0_0>' value risks causing races since the caller assumes the value can be safely sent to other isolation domains
| `- note: '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <τ_0_1, τ_0_0>' is a non-Sendable type
198 | try withLock(body)
199 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftSpellbook/Sources/SpellbookFoundation/Threading & Concurrency/PosixLocks.swift:118:17: error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <τ_0_1, τ_0_0>' value as a 'sending' result risks causing data races
116 | }
117 |
118 | public func withWriteLock<R, E: Error>(_ body: () throws(E) -> sending R) throws(E) -> sending R {
| |- error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <τ_0_1, τ_0_0>' value as a 'sending' result risks causing data races
| |- note: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <τ_0_1, τ_0_0>' value risks causing races since the caller assumes the value can be safely sent to other isolation domains
| `- note: '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <τ_0_1, τ_0_0>' is a non-Sendable type
119 | writeLock()
120 | defer { unlock() }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftSpellbook/Sources/SpellbookFoundation/Threading & Concurrency/Synchronized.swift:205:10: error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <τ_0_1, τ_0_0>' value as a 'sending' result risks causing data races
203 |
204 | extension DispatchQueue: SynchronizedLocking {
205 | func withWriteLock<R, E: Error>(_ body: () throws(E) -> sending R) throws(E) -> sending R {
| |- error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <τ_0_1, τ_0_0>' value as a 'sending' result risks causing data races
| |- note: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <τ_0_1, τ_0_0>' value risks causing races since the caller assumes the value can be safely sent to other isolation domains
| `- note: '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <τ_0_1, τ_0_0>' is a non-Sendable type
206 | try sync(flags: .barrier) { UncheckedSendable(Result(catching: body)) }.wrappedValue.get()
207 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftSpellbook/Sources/SpellbookFoundation/Threading & Concurrency/Synchronized.swift:192:13: error: returning task-isolated 'body' as a 'sending' result risks causing data races
190 | extension SynchronizedLocking {
191 | func withReadLock<R, E: Error>(_ body: () throws(E) -> sending R) throws(E) -> sending R {
192 | try withWriteLock(body)
| |- error: returning task-isolated 'body' as a 'sending' result risks causing data races
| `- note: returning task-isolated 'body' risks causing data races since the caller assumes that 'body' can be safely sent to other isolation domains
193 | }
194 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftSpellbook/Sources/SpellbookFoundation/Threading & Concurrency/Synchronized.swift:191:10: error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <τ_0_1, τ_0_0>' value as a 'sending' result risks causing data races
189 |
190 | extension SynchronizedLocking {
191 | func withReadLock<R, E: Error>(_ body: () throws(E) -> sending R) throws(E) -> sending R {
| |- error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <τ_0_1, τ_0_0>' value as a 'sending' result risks causing data races
| |- note: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <τ_0_1, τ_0_0>' value risks causing races since the caller assumes the value can be safely sent to other isolation domains
| `- note: '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <τ_0_1, τ_0_0>' is a non-Sendable type
192 | try withWriteLock(body)
193 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftSpellbook/Sources/SpellbookFoundation/Threading & Concurrency/PosixLocks.swift:106:17: error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <τ_0_1, τ_0_0>' value as a 'sending' result risks causing data races
104 | }
105 |
106 | public func withReadLock<R, E: Error>(_ body: () throws(E) -> sending R) throws(E) -> sending R {
| |- error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <τ_0_1, τ_0_0>' value as a 'sending' result risks causing data races
| |- note: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <τ_0_1, τ_0_0>' value risks causing races since the caller assumes the value can be safely sent to other isolation domains
| `- note: '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <τ_0_1, τ_0_0>' is a non-Sendable type
107 | readLock()
108 | defer { unlock() }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftSpellbook/Sources/SpellbookFoundation/Threading & Concurrency/Synchronized.swift:209:10: error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <τ_0_1, τ_0_0>' value as a 'sending' result risks causing data races
207 | }
208 |
209 | func withReadLock<R, E: Error>(_ body: () throws(E) -> sending R) throws(E) -> sending R {
| |- error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <τ_0_1, τ_0_0>' value as a 'sending' result risks causing data races
| |- note: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <τ_0_1, τ_0_0>' value risks causing races since the caller assumes the value can be safely sent to other isolation domains
| `- note: '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <τ_0_1, τ_0_0>' is a non-Sendable type
210 | try sync { UncheckedSendable(Result(catching: body)) }.wrappedValue.get()
211 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftSpellbook/Sources/SpellbookFoundation/Threading & Concurrency/Synchronized.swift:58:18: error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <any Error, R>' value as a 'sending' result risks causing data races
56 |
57 | public func read<R>(_ reader: (Value) throws -> sending R) rethrows -> sending R {
58 | try lock.withReadLock { try reader(value) }
| |- error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <any Error, R>' value as a 'sending' result risks causing data races
| |- note: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <any Error, R>' value risks causing races since the caller assumes the value can be safely sent to other isolation domains
| `- note: '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <any Error, R>' is a non-Sendable type
59 | }
60 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftSpellbook/Sources/SpellbookFoundation/Threading & Concurrency/Synchronized.swift:66:18: error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <any Error, R>' value as a 'sending' result risks causing data races
64 |
65 | public func write<R>(_ writer: (inout Value) throws -> sending R) rethrows -> sending R {
66 | try lock.withWriteLock { try writer(&value) }
| |- error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <any Error, R>' value as a 'sending' result risks causing data races
| |- note: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <any Error, R>' value risks causing races since the caller assumes the value can be safely sent to other isolation domains
| `- note: '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <any Error, R>' is a non-Sendable type
67 | }
68 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftSpellbook/Sources/SpellbookFoundation/Threading & Concurrency/Synchronized.swift:127:9: error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@in_guaranteed τ_0_0) -> (@sil_sending @out τ_0_1, @error any Error) for <Value, R>' value as a 'sending' result risks causing data races
125 | extension Synchronized: _ValueUpdateWrapping {
126 | public func _readValue<R>(body: (Value) -> sending R) -> sending R {
127 | read { body($0) }
| |- error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@in_guaranteed τ_0_0) -> (@sil_sending @out τ_0_1, @error any Error) for <Value, R>' value as a 'sending' result risks causing data races
| |- note: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@in_guaranteed τ_0_0) -> (@sil_sending @out τ_0_1, @error any Error) for <Value, R>' value risks causing races since the caller assumes the value can be safely sent to other isolation domains
| `- note: '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@in_guaranteed τ_0_0) -> (@sil_sending @out τ_0_1, @error any Error) for <Value, R>' is a non-Sendable type
128 | }
129 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftSpellbook/Sources/SpellbookFoundation/Threading & Concurrency/Synchronized.swift:127:16: error: returning task-isolated '$0' as a 'sending' result risks causing data races
125 | extension Synchronized: _ValueUpdateWrapping {
126 | public func _readValue<R>(body: (Value) -> sending R) -> sending R {
127 | read { body($0) }
| |- error: returning task-isolated '$0' as a 'sending' result risks causing data races
| `- note: returning task-isolated '$0' risks causing data races since the caller assumes that '$0' can be safely sent to other isolation domains
128 | }
129 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftSpellbook/Sources/SpellbookFoundation/Threading & Concurrency/Synchronized.swift:131:9: error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@inout τ_0_0) -> (@sil_sending @out τ_0_1, @error any Error) for <Value, R>' value as a 'sending' result risks causing data races
129 |
130 | public func _updateValue<R>(body: (inout Value) -> sending R) -> sending R {
131 | write { body(&$0) }
| |- error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@inout τ_0_0) -> (@sil_sending @out τ_0_1, @error any Error) for <Value, R>' value as a 'sending' result risks causing data races
| |- note: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@inout τ_0_0) -> (@sil_sending @out τ_0_1, @error any Error) for <Value, R>' value risks causing races since the caller assumes the value can be safely sent to other isolation domains
| `- note: '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@inout τ_0_0) -> (@sil_sending @out τ_0_1, @error any Error) for <Value, R>' is a non-Sendable type
132 | }
133 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftSpellbook/Sources/SpellbookFoundation/Threading & Concurrency/Synchronized.swift:131:17: error: returning task-isolated '$0' as a 'sending' result risks causing data races
129 |
130 | public func _updateValue<R>(body: (inout Value) -> sending R) -> sending R {
131 | write { body(&$0) }
| |- error: returning task-isolated '$0' as a 'sending' result risks causing data races
| `- note: returning task-isolated '$0' risks causing data races since the caller assumes that '$0' can be safely sent to other isolation domains
132 | }
133 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftSpellbook/Sources/SpellbookFoundation/Threading & Concurrency/Synchronized.swift:126:17: error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@in_guaranteed τ_0_0) -> @sil_sending @out τ_0_1 for <τ_0_0, τ_1_0>' value as a 'sending' result risks causing data races
124 |
125 | extension Synchronized: _ValueUpdateWrapping {
126 | public func _readValue<R>(body: (Value) -> sending R) -> sending R {
| |- error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@in_guaranteed τ_0_0) -> @sil_sending @out τ_0_1 for <τ_0_0, τ_1_0>' value as a 'sending' result risks causing data races
| |- note: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@in_guaranteed τ_0_0) -> @sil_sending @out τ_0_1 for <τ_0_0, τ_1_0>' value risks causing races since the caller assumes the value can be safely sent to other isolation domains
| `- note: '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@in_guaranteed τ_0_0) -> @sil_sending @out τ_0_1 for <τ_0_0, τ_1_0>' is a non-Sendable type
127 | read { body($0) }
128 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftSpellbook/Sources/SpellbookFoundation/Threading & Concurrency/Synchronized.swift:130:17: error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@inout τ_0_0) -> @sil_sending @out τ_0_1 for <τ_0_0, τ_1_0>' value as a 'sending' result risks causing data races
128 | }
129 |
130 | public func _updateValue<R>(body: (inout Value) -> sending R) -> sending R {
| |- error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@inout τ_0_0) -> @sil_sending @out τ_0_1 for <τ_0_0, τ_1_0>' value as a 'sending' result risks causing data races
| |- note: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@inout τ_0_0) -> @sil_sending @out τ_0_1 for <τ_0_0, τ_1_0>' value risks causing races since the caller assumes the value can be safely sent to other isolation domains
| `- note: '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@inout τ_0_0) -> @sil_sending @out τ_0_1 for <τ_0_0, τ_1_0>' is a non-Sendable type
131 | write { body(&$0) }
132 | }
[44/72] Compiling SpellbookFoundation Extensions - Task.swift
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftSpellbook/Sources/SpellbookFoundation/Threading & Concurrency/Synchronized.swift:198:13: error: returning task-isolated 'body' as a 'sending' result risks causing data races
196 | extension UnfairLock: SynchronizedLocking {
197 | func withWriteLock<R, E: Error>(_ body: () throws(E) -> sending R) throws(E) -> sending R {
198 | try withLock(body)
| |- error: returning task-isolated 'body' as a 'sending' result risks causing data races
| `- note: returning task-isolated 'body' risks causing data races since the caller assumes that 'body' can be safely sent to other isolation domains
199 | }
200 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftSpellbook/Sources/SpellbookFoundation/Threading & Concurrency/Synchronized.swift:197:10: error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <τ_0_1, τ_0_0>' value as a 'sending' result risks causing data races
195 |
196 | extension UnfairLock: SynchronizedLocking {
197 | func withWriteLock<R, E: Error>(_ body: () throws(E) -> sending R) throws(E) -> sending R {
| |- error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <τ_0_1, τ_0_0>' value as a 'sending' result risks causing data races
| |- note: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <τ_0_1, τ_0_0>' value risks causing races since the caller assumes the value can be safely sent to other isolation domains
| `- note: '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <τ_0_1, τ_0_0>' is a non-Sendable type
198 | try withLock(body)
199 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftSpellbook/Sources/SpellbookFoundation/Threading & Concurrency/PosixLocks.swift:118:17: error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <τ_0_1, τ_0_0>' value as a 'sending' result risks causing data races
116 | }
117 |
118 | public func withWriteLock<R, E: Error>(_ body: () throws(E) -> sending R) throws(E) -> sending R {
| |- error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <τ_0_1, τ_0_0>' value as a 'sending' result risks causing data races
| |- note: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <τ_0_1, τ_0_0>' value risks causing races since the caller assumes the value can be safely sent to other isolation domains
| `- note: '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <τ_0_1, τ_0_0>' is a non-Sendable type
119 | writeLock()
120 | defer { unlock() }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftSpellbook/Sources/SpellbookFoundation/Threading & Concurrency/Synchronized.swift:205:10: error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <τ_0_1, τ_0_0>' value as a 'sending' result risks causing data races
203 |
204 | extension DispatchQueue: SynchronizedLocking {
205 | func withWriteLock<R, E: Error>(_ body: () throws(E) -> sending R) throws(E) -> sending R {
| |- error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <τ_0_1, τ_0_0>' value as a 'sending' result risks causing data races
| |- note: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <τ_0_1, τ_0_0>' value risks causing races since the caller assumes the value can be safely sent to other isolation domains
| `- note: '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <τ_0_1, τ_0_0>' is a non-Sendable type
206 | try sync(flags: .barrier) { UncheckedSendable(Result(catching: body)) }.wrappedValue.get()
207 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftSpellbook/Sources/SpellbookFoundation/Threading & Concurrency/Synchronized.swift:192:13: error: returning task-isolated 'body' as a 'sending' result risks causing data races
190 | extension SynchronizedLocking {
191 | func withReadLock<R, E: Error>(_ body: () throws(E) -> sending R) throws(E) -> sending R {
192 | try withWriteLock(body)
| |- error: returning task-isolated 'body' as a 'sending' result risks causing data races
| `- note: returning task-isolated 'body' risks causing data races since the caller assumes that 'body' can be safely sent to other isolation domains
193 | }
194 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftSpellbook/Sources/SpellbookFoundation/Threading & Concurrency/Synchronized.swift:191:10: error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <τ_0_1, τ_0_0>' value as a 'sending' result risks causing data races
189 |
190 | extension SynchronizedLocking {
191 | func withReadLock<R, E: Error>(_ body: () throws(E) -> sending R) throws(E) -> sending R {
| |- error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <τ_0_1, τ_0_0>' value as a 'sending' result risks causing data races
| |- note: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <τ_0_1, τ_0_0>' value risks causing races since the caller assumes the value can be safely sent to other isolation domains
| `- note: '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <τ_0_1, τ_0_0>' is a non-Sendable type
192 | try withWriteLock(body)
193 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftSpellbook/Sources/SpellbookFoundation/Threading & Concurrency/PosixLocks.swift:106:17: error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <τ_0_1, τ_0_0>' value as a 'sending' result risks causing data races
104 | }
105 |
106 | public func withReadLock<R, E: Error>(_ body: () throws(E) -> sending R) throws(E) -> sending R {
| |- error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <τ_0_1, τ_0_0>' value as a 'sending' result risks causing data races
| |- note: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <τ_0_1, τ_0_0>' value risks causing races since the caller assumes the value can be safely sent to other isolation domains
| `- note: '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <τ_0_1, τ_0_0>' is a non-Sendable type
107 | readLock()
108 | defer { unlock() }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftSpellbook/Sources/SpellbookFoundation/Threading & Concurrency/Synchronized.swift:209:10: error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <τ_0_1, τ_0_0>' value as a 'sending' result risks causing data races
207 | }
208 |
209 | func withReadLock<R, E: Error>(_ body: () throws(E) -> sending R) throws(E) -> sending R {
| |- error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <τ_0_1, τ_0_0>' value as a 'sending' result risks causing data races
| |- note: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <τ_0_1, τ_0_0>' value risks causing races since the caller assumes the value can be safely sent to other isolation domains
| `- note: '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <τ_0_1, τ_0_0>' is a non-Sendable type
210 | try sync { UncheckedSendable(Result(catching: body)) }.wrappedValue.get()
211 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftSpellbook/Sources/SpellbookFoundation/Threading & Concurrency/Synchronized.swift:58:18: error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <any Error, R>' value as a 'sending' result risks causing data races
56 |
57 | public func read<R>(_ reader: (Value) throws -> sending R) rethrows -> sending R {
58 | try lock.withReadLock { try reader(value) }
| |- error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <any Error, R>' value as a 'sending' result risks causing data races
| |- note: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <any Error, R>' value risks causing races since the caller assumes the value can be safely sent to other isolation domains
| `- note: '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <any Error, R>' is a non-Sendable type
59 | }
60 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftSpellbook/Sources/SpellbookFoundation/Threading & Concurrency/Synchronized.swift:66:18: error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <any Error, R>' value as a 'sending' result risks causing data races
64 |
65 | public func write<R>(_ writer: (inout Value) throws -> sending R) rethrows -> sending R {
66 | try lock.withWriteLock { try writer(&value) }
| |- error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <any Error, R>' value as a 'sending' result risks causing data races
| |- note: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <any Error, R>' value risks causing races since the caller assumes the value can be safely sent to other isolation domains
| `- note: '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <any Error, R>' is a non-Sendable type
67 | }
68 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftSpellbook/Sources/SpellbookFoundation/Threading & Concurrency/Synchronized.swift:127:9: error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@in_guaranteed τ_0_0) -> (@sil_sending @out τ_0_1, @error any Error) for <Value, R>' value as a 'sending' result risks causing data races
125 | extension Synchronized: _ValueUpdateWrapping {
126 | public func _readValue<R>(body: (Value) -> sending R) -> sending R {
127 | read { body($0) }
| |- error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@in_guaranteed τ_0_0) -> (@sil_sending @out τ_0_1, @error any Error) for <Value, R>' value as a 'sending' result risks causing data races
| |- note: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@in_guaranteed τ_0_0) -> (@sil_sending @out τ_0_1, @error any Error) for <Value, R>' value risks causing races since the caller assumes the value can be safely sent to other isolation domains
| `- note: '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@in_guaranteed τ_0_0) -> (@sil_sending @out τ_0_1, @error any Error) for <Value, R>' is a non-Sendable type
128 | }
129 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftSpellbook/Sources/SpellbookFoundation/Threading & Concurrency/Synchronized.swift:127:16: error: returning task-isolated '$0' as a 'sending' result risks causing data races
125 | extension Synchronized: _ValueUpdateWrapping {
126 | public func _readValue<R>(body: (Value) -> sending R) -> sending R {
127 | read { body($0) }
| |- error: returning task-isolated '$0' as a 'sending' result risks causing data races
| `- note: returning task-isolated '$0' risks causing data races since the caller assumes that '$0' can be safely sent to other isolation domains
128 | }
129 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftSpellbook/Sources/SpellbookFoundation/Threading & Concurrency/Synchronized.swift:131:9: error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@inout τ_0_0) -> (@sil_sending @out τ_0_1, @error any Error) for <Value, R>' value as a 'sending' result risks causing data races
129 |
130 | public func _updateValue<R>(body: (inout Value) -> sending R) -> sending R {
131 | write { body(&$0) }
| |- error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@inout τ_0_0) -> (@sil_sending @out τ_0_1, @error any Error) for <Value, R>' value as a 'sending' result risks causing data races
| |- note: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@inout τ_0_0) -> (@sil_sending @out τ_0_1, @error any Error) for <Value, R>' value risks causing races since the caller assumes the value can be safely sent to other isolation domains
| `- note: '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@inout τ_0_0) -> (@sil_sending @out τ_0_1, @error any Error) for <Value, R>' is a non-Sendable type
132 | }
133 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftSpellbook/Sources/SpellbookFoundation/Threading & Concurrency/Synchronized.swift:131:17: error: returning task-isolated '$0' as a 'sending' result risks causing data races
129 |
130 | public func _updateValue<R>(body: (inout Value) -> sending R) -> sending R {
131 | write { body(&$0) }
| |- error: returning task-isolated '$0' as a 'sending' result risks causing data races
| `- note: returning task-isolated '$0' risks causing data races since the caller assumes that '$0' can be safely sent to other isolation domains
132 | }
133 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftSpellbook/Sources/SpellbookFoundation/Threading & Concurrency/Synchronized.swift:126:17: error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@in_guaranteed τ_0_0) -> @sil_sending @out τ_0_1 for <τ_0_0, τ_1_0>' value as a 'sending' result risks causing data races
124 |
125 | extension Synchronized: _ValueUpdateWrapping {
126 | public func _readValue<R>(body: (Value) -> sending R) -> sending R {
| |- error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@in_guaranteed τ_0_0) -> @sil_sending @out τ_0_1 for <τ_0_0, τ_1_0>' value as a 'sending' result risks causing data races
| |- note: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@in_guaranteed τ_0_0) -> @sil_sending @out τ_0_1 for <τ_0_0, τ_1_0>' value risks causing races since the caller assumes the value can be safely sent to other isolation domains
| `- note: '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@in_guaranteed τ_0_0) -> @sil_sending @out τ_0_1 for <τ_0_0, τ_1_0>' is a non-Sendable type
127 | read { body($0) }
128 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftSpellbook/Sources/SpellbookFoundation/Threading & Concurrency/Synchronized.swift:130:17: error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@inout τ_0_0) -> @sil_sending @out τ_0_1 for <τ_0_0, τ_1_0>' value as a 'sending' result risks causing data races
128 | }
129 |
130 | public func _updateValue<R>(body: (inout Value) -> sending R) -> sending R {
| |- error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@inout τ_0_0) -> @sil_sending @out τ_0_1 for <τ_0_0, τ_1_0>' value as a 'sending' result risks causing data races
| |- note: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@inout τ_0_0) -> @sil_sending @out τ_0_1 for <τ_0_0, τ_1_0>' value risks causing races since the caller assumes the value can be safely sent to other isolation domains
| `- note: '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@inout τ_0_0) -> @sil_sending @out τ_0_1 for <τ_0_0, τ_1_0>' is a non-Sendable type
131 | write { body(&$0) }
132 | }
[45/72] Compiling SpellbookFoundation PosixLocks.swift
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftSpellbook/Sources/SpellbookFoundation/Threading & Concurrency/Synchronized.swift:198:13: error: returning task-isolated 'body' as a 'sending' result risks causing data races
196 | extension UnfairLock: SynchronizedLocking {
197 | func withWriteLock<R, E: Error>(_ body: () throws(E) -> sending R) throws(E) -> sending R {
198 | try withLock(body)
| |- error: returning task-isolated 'body' as a 'sending' result risks causing data races
| `- note: returning task-isolated 'body' risks causing data races since the caller assumes that 'body' can be safely sent to other isolation domains
199 | }
200 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftSpellbook/Sources/SpellbookFoundation/Threading & Concurrency/Synchronized.swift:197:10: error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <τ_0_1, τ_0_0>' value as a 'sending' result risks causing data races
195 |
196 | extension UnfairLock: SynchronizedLocking {
197 | func withWriteLock<R, E: Error>(_ body: () throws(E) -> sending R) throws(E) -> sending R {
| |- error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <τ_0_1, τ_0_0>' value as a 'sending' result risks causing data races
| |- note: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <τ_0_1, τ_0_0>' value risks causing races since the caller assumes the value can be safely sent to other isolation domains
| `- note: '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <τ_0_1, τ_0_0>' is a non-Sendable type
198 | try withLock(body)
199 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftSpellbook/Sources/SpellbookFoundation/Threading & Concurrency/PosixLocks.swift:118:17: error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <τ_0_1, τ_0_0>' value as a 'sending' result risks causing data races
116 | }
117 |
118 | public func withWriteLock<R, E: Error>(_ body: () throws(E) -> sending R) throws(E) -> sending R {
| |- error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <τ_0_1, τ_0_0>' value as a 'sending' result risks causing data races
| |- note: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <τ_0_1, τ_0_0>' value risks causing races since the caller assumes the value can be safely sent to other isolation domains
| `- note: '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <τ_0_1, τ_0_0>' is a non-Sendable type
119 | writeLock()
120 | defer { unlock() }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftSpellbook/Sources/SpellbookFoundation/Threading & Concurrency/Synchronized.swift:205:10: error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <τ_0_1, τ_0_0>' value as a 'sending' result risks causing data races
203 |
204 | extension DispatchQueue: SynchronizedLocking {
205 | func withWriteLock<R, E: Error>(_ body: () throws(E) -> sending R) throws(E) -> sending R {
| |- error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <τ_0_1, τ_0_0>' value as a 'sending' result risks causing data races
| |- note: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <τ_0_1, τ_0_0>' value risks causing races since the caller assumes the value can be safely sent to other isolation domains
| `- note: '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <τ_0_1, τ_0_0>' is a non-Sendable type
206 | try sync(flags: .barrier) { UncheckedSendable(Result(catching: body)) }.wrappedValue.get()
207 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftSpellbook/Sources/SpellbookFoundation/Threading & Concurrency/Synchronized.swift:192:13: error: returning task-isolated 'body' as a 'sending' result risks causing data races
190 | extension SynchronizedLocking {
191 | func withReadLock<R, E: Error>(_ body: () throws(E) -> sending R) throws(E) -> sending R {
192 | try withWriteLock(body)
| |- error: returning task-isolated 'body' as a 'sending' result risks causing data races
| `- note: returning task-isolated 'body' risks causing data races since the caller assumes that 'body' can be safely sent to other isolation domains
193 | }
194 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftSpellbook/Sources/SpellbookFoundation/Threading & Concurrency/Synchronized.swift:191:10: error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <τ_0_1, τ_0_0>' value as a 'sending' result risks causing data races
189 |
190 | extension SynchronizedLocking {
191 | func withReadLock<R, E: Error>(_ body: () throws(E) -> sending R) throws(E) -> sending R {
| |- error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <τ_0_1, τ_0_0>' value as a 'sending' result risks causing data races
| |- note: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <τ_0_1, τ_0_0>' value risks causing races since the caller assumes the value can be safely sent to other isolation domains
| `- note: '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <τ_0_1, τ_0_0>' is a non-Sendable type
192 | try withWriteLock(body)
193 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftSpellbook/Sources/SpellbookFoundation/Threading & Concurrency/PosixLocks.swift:106:17: error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <τ_0_1, τ_0_0>' value as a 'sending' result risks causing data races
104 | }
105 |
106 | public func withReadLock<R, E: Error>(_ body: () throws(E) -> sending R) throws(E) -> sending R {
| |- error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <τ_0_1, τ_0_0>' value as a 'sending' result risks causing data races
| |- note: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <τ_0_1, τ_0_0>' value risks causing races since the caller assumes the value can be safely sent to other isolation domains
| `- note: '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <τ_0_1, τ_0_0>' is a non-Sendable type
107 | readLock()
108 | defer { unlock() }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftSpellbook/Sources/SpellbookFoundation/Threading & Concurrency/Synchronized.swift:209:10: error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <τ_0_1, τ_0_0>' value as a 'sending' result risks causing data races
207 | }
208 |
209 | func withReadLock<R, E: Error>(_ body: () throws(E) -> sending R) throws(E) -> sending R {
| |- error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <τ_0_1, τ_0_0>' value as a 'sending' result risks causing data races
| |- note: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <τ_0_1, τ_0_0>' value risks causing races since the caller assumes the value can be safely sent to other isolation domains
| `- note: '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <τ_0_1, τ_0_0>' is a non-Sendable type
210 | try sync { UncheckedSendable(Result(catching: body)) }.wrappedValue.get()
211 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftSpellbook/Sources/SpellbookFoundation/Threading & Concurrency/Synchronized.swift:58:18: error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <any Error, R>' value as a 'sending' result risks causing data races
56 |
57 | public func read<R>(_ reader: (Value) throws -> sending R) rethrows -> sending R {
58 | try lock.withReadLock { try reader(value) }
| |- error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <any Error, R>' value as a 'sending' result risks causing data races
| |- note: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <any Error, R>' value risks causing races since the caller assumes the value can be safely sent to other isolation domains
| `- note: '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <any Error, R>' is a non-Sendable type
59 | }
60 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftSpellbook/Sources/SpellbookFoundation/Threading & Concurrency/Synchronized.swift:66:18: error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <any Error, R>' value as a 'sending' result risks causing data races
64 |
65 | public func write<R>(_ writer: (inout Value) throws -> sending R) rethrows -> sending R {
66 | try lock.withWriteLock { try writer(&value) }
| |- error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <any Error, R>' value as a 'sending' result risks causing data races
| |- note: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <any Error, R>' value risks causing races since the caller assumes the value can be safely sent to other isolation domains
| `- note: '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <any Error, R>' is a non-Sendable type
67 | }
68 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftSpellbook/Sources/SpellbookFoundation/Threading & Concurrency/Synchronized.swift:127:9: error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@in_guaranteed τ_0_0) -> (@sil_sending @out τ_0_1, @error any Error) for <Value, R>' value as a 'sending' result risks causing data races
125 | extension Synchronized: _ValueUpdateWrapping {
126 | public func _readValue<R>(body: (Value) -> sending R) -> sending R {
127 | read { body($0) }
| |- error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@in_guaranteed τ_0_0) -> (@sil_sending @out τ_0_1, @error any Error) for <Value, R>' value as a 'sending' result risks causing data races
| |- note: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@in_guaranteed τ_0_0) -> (@sil_sending @out τ_0_1, @error any Error) for <Value, R>' value risks causing races since the caller assumes the value can be safely sent to other isolation domains
| `- note: '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@in_guaranteed τ_0_0) -> (@sil_sending @out τ_0_1, @error any Error) for <Value, R>' is a non-Sendable type
128 | }
129 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftSpellbook/Sources/SpellbookFoundation/Threading & Concurrency/Synchronized.swift:127:16: error: returning task-isolated '$0' as a 'sending' result risks causing data races
125 | extension Synchronized: _ValueUpdateWrapping {
126 | public func _readValue<R>(body: (Value) -> sending R) -> sending R {
127 | read { body($0) }
| |- error: returning task-isolated '$0' as a 'sending' result risks causing data races
| `- note: returning task-isolated '$0' risks causing data races since the caller assumes that '$0' can be safely sent to other isolation domains
128 | }
129 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftSpellbook/Sources/SpellbookFoundation/Threading & Concurrency/Synchronized.swift:131:9: error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@inout τ_0_0) -> (@sil_sending @out τ_0_1, @error any Error) for <Value, R>' value as a 'sending' result risks causing data races
129 |
130 | public func _updateValue<R>(body: (inout Value) -> sending R) -> sending R {
131 | write { body(&$0) }
| |- error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@inout τ_0_0) -> (@sil_sending @out τ_0_1, @error any Error) for <Value, R>' value as a 'sending' result risks causing data races
| |- note: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@inout τ_0_0) -> (@sil_sending @out τ_0_1, @error any Error) for <Value, R>' value risks causing races since the caller assumes the value can be safely sent to other isolation domains
| `- note: '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@inout τ_0_0) -> (@sil_sending @out τ_0_1, @error any Error) for <Value, R>' is a non-Sendable type
132 | }
133 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftSpellbook/Sources/SpellbookFoundation/Threading & Concurrency/Synchronized.swift:131:17: error: returning task-isolated '$0' as a 'sending' result risks causing data races
129 |
130 | public func _updateValue<R>(body: (inout Value) -> sending R) -> sending R {
131 | write { body(&$0) }
| |- error: returning task-isolated '$0' as a 'sending' result risks causing data races
| `- note: returning task-isolated '$0' risks causing data races since the caller assumes that '$0' can be safely sent to other isolation domains
132 | }
133 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftSpellbook/Sources/SpellbookFoundation/Threading & Concurrency/Synchronized.swift:126:17: error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@in_guaranteed τ_0_0) -> @sil_sending @out τ_0_1 for <τ_0_0, τ_1_0>' value as a 'sending' result risks causing data races
124 |
125 | extension Synchronized: _ValueUpdateWrapping {
126 | public func _readValue<R>(body: (Value) -> sending R) -> sending R {
| |- error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@in_guaranteed τ_0_0) -> @sil_sending @out τ_0_1 for <τ_0_0, τ_1_0>' value as a 'sending' result risks causing data races
| |- note: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@in_guaranteed τ_0_0) -> @sil_sending @out τ_0_1 for <τ_0_0, τ_1_0>' value risks causing races since the caller assumes the value can be safely sent to other isolation domains
| `- note: '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@in_guaranteed τ_0_0) -> @sil_sending @out τ_0_1 for <τ_0_0, τ_1_0>' is a non-Sendable type
127 | read { body($0) }
128 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftSpellbook/Sources/SpellbookFoundation/Threading & Concurrency/Synchronized.swift:130:17: error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@inout τ_0_0) -> @sil_sending @out τ_0_1 for <τ_0_0, τ_1_0>' value as a 'sending' result risks causing data races
128 | }
129 |
130 | public func _updateValue<R>(body: (inout Value) -> sending R) -> sending R {
| |- error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@inout τ_0_0) -> @sil_sending @out τ_0_1 for <τ_0_0, τ_1_0>' value as a 'sending' result risks causing data races
| |- note: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@inout τ_0_0) -> @sil_sending @out τ_0_1 for <τ_0_0, τ_1_0>' value risks causing races since the caller assumes the value can be safely sent to other isolation domains
| `- note: '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@inout τ_0_0) -> @sil_sending @out τ_0_1 for <τ_0_0, τ_1_0>' is a non-Sendable type
131 | write { body(&$0) }
132 | }
[46/72] Compiling SpellbookFoundation Synchronized.swift
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftSpellbook/Sources/SpellbookFoundation/Threading & Concurrency/Synchronized.swift:198:13: error: returning task-isolated 'body' as a 'sending' result risks causing data races
196 | extension UnfairLock: SynchronizedLocking {
197 | func withWriteLock<R, E: Error>(_ body: () throws(E) -> sending R) throws(E) -> sending R {
198 | try withLock(body)
| |- error: returning task-isolated 'body' as a 'sending' result risks causing data races
| `- note: returning task-isolated 'body' risks causing data races since the caller assumes that 'body' can be safely sent to other isolation domains
199 | }
200 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftSpellbook/Sources/SpellbookFoundation/Threading & Concurrency/Synchronized.swift:197:10: error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <τ_0_1, τ_0_0>' value as a 'sending' result risks causing data races
195 |
196 | extension UnfairLock: SynchronizedLocking {
197 | func withWriteLock<R, E: Error>(_ body: () throws(E) -> sending R) throws(E) -> sending R {
| |- error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <τ_0_1, τ_0_0>' value as a 'sending' result risks causing data races
| |- note: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <τ_0_1, τ_0_0>' value risks causing races since the caller assumes the value can be safely sent to other isolation domains
| `- note: '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <τ_0_1, τ_0_0>' is a non-Sendable type
198 | try withLock(body)
199 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftSpellbook/Sources/SpellbookFoundation/Threading & Concurrency/PosixLocks.swift:118:17: error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <τ_0_1, τ_0_0>' value as a 'sending' result risks causing data races
116 | }
117 |
118 | public func withWriteLock<R, E: Error>(_ body: () throws(E) -> sending R) throws(E) -> sending R {
| |- error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <τ_0_1, τ_0_0>' value as a 'sending' result risks causing data races
| |- note: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <τ_0_1, τ_0_0>' value risks causing races since the caller assumes the value can be safely sent to other isolation domains
| `- note: '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <τ_0_1, τ_0_0>' is a non-Sendable type
119 | writeLock()
120 | defer { unlock() }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftSpellbook/Sources/SpellbookFoundation/Threading & Concurrency/Synchronized.swift:205:10: error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <τ_0_1, τ_0_0>' value as a 'sending' result risks causing data races
203 |
204 | extension DispatchQueue: SynchronizedLocking {
205 | func withWriteLock<R, E: Error>(_ body: () throws(E) -> sending R) throws(E) -> sending R {
| |- error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <τ_0_1, τ_0_0>' value as a 'sending' result risks causing data races
| |- note: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <τ_0_1, τ_0_0>' value risks causing races since the caller assumes the value can be safely sent to other isolation domains
| `- note: '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <τ_0_1, τ_0_0>' is a non-Sendable type
206 | try sync(flags: .barrier) { UncheckedSendable(Result(catching: body)) }.wrappedValue.get()
207 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftSpellbook/Sources/SpellbookFoundation/Threading & Concurrency/Synchronized.swift:192:13: error: returning task-isolated 'body' as a 'sending' result risks causing data races
190 | extension SynchronizedLocking {
191 | func withReadLock<R, E: Error>(_ body: () throws(E) -> sending R) throws(E) -> sending R {
192 | try withWriteLock(body)
| |- error: returning task-isolated 'body' as a 'sending' result risks causing data races
| `- note: returning task-isolated 'body' risks causing data races since the caller assumes that 'body' can be safely sent to other isolation domains
193 | }
194 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftSpellbook/Sources/SpellbookFoundation/Threading & Concurrency/Synchronized.swift:191:10: error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <τ_0_1, τ_0_0>' value as a 'sending' result risks causing data races
189 |
190 | extension SynchronizedLocking {
191 | func withReadLock<R, E: Error>(_ body: () throws(E) -> sending R) throws(E) -> sending R {
| |- error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <τ_0_1, τ_0_0>' value as a 'sending' result risks causing data races
| |- note: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <τ_0_1, τ_0_0>' value risks causing races since the caller assumes the value can be safely sent to other isolation domains
| `- note: '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <τ_0_1, τ_0_0>' is a non-Sendable type
192 | try withWriteLock(body)
193 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftSpellbook/Sources/SpellbookFoundation/Threading & Concurrency/PosixLocks.swift:106:17: error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <τ_0_1, τ_0_0>' value as a 'sending' result risks causing data races
104 | }
105 |
106 | public func withReadLock<R, E: Error>(_ body: () throws(E) -> sending R) throws(E) -> sending R {
| |- error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <τ_0_1, τ_0_0>' value as a 'sending' result risks causing data races
| |- note: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <τ_0_1, τ_0_0>' value risks causing races since the caller assumes the value can be safely sent to other isolation domains
| `- note: '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <τ_0_1, τ_0_0>' is a non-Sendable type
107 | readLock()
108 | defer { unlock() }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftSpellbook/Sources/SpellbookFoundation/Threading & Concurrency/Synchronized.swift:209:10: error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <τ_0_1, τ_0_0>' value as a 'sending' result risks causing data races
207 | }
208 |
209 | func withReadLock<R, E: Error>(_ body: () throws(E) -> sending R) throws(E) -> sending R {
| |- error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <τ_0_1, τ_0_0>' value as a 'sending' result risks causing data races
| |- note: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <τ_0_1, τ_0_0>' value risks causing races since the caller assumes the value can be safely sent to other isolation domains
| `- note: '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <τ_0_1, τ_0_0>' is a non-Sendable type
210 | try sync { UncheckedSendable(Result(catching: body)) }.wrappedValue.get()
211 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftSpellbook/Sources/SpellbookFoundation/Threading & Concurrency/Synchronized.swift:58:18: error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <any Error, R>' value as a 'sending' result risks causing data races
56 |
57 | public func read<R>(_ reader: (Value) throws -> sending R) rethrows -> sending R {
58 | try lock.withReadLock { try reader(value) }
| |- error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <any Error, R>' value as a 'sending' result risks causing data races
| |- note: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <any Error, R>' value risks causing races since the caller assumes the value can be safely sent to other isolation domains
| `- note: '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <any Error, R>' is a non-Sendable type
59 | }
60 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftSpellbook/Sources/SpellbookFoundation/Threading & Concurrency/Synchronized.swift:66:18: error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <any Error, R>' value as a 'sending' result risks causing data races
64 |
65 | public func write<R>(_ writer: (inout Value) throws -> sending R) rethrows -> sending R {
66 | try lock.withWriteLock { try writer(&value) }
| |- error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <any Error, R>' value as a 'sending' result risks causing data races
| |- note: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <any Error, R>' value risks causing races since the caller assumes the value can be safely sent to other isolation domains
| `- note: '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <any Error, R>' is a non-Sendable type
67 | }
68 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftSpellbook/Sources/SpellbookFoundation/Threading & Concurrency/Synchronized.swift:127:9: error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@in_guaranteed τ_0_0) -> (@sil_sending @out τ_0_1, @error any Error) for <Value, R>' value as a 'sending' result risks causing data races
125 | extension Synchronized: _ValueUpdateWrapping {
126 | public func _readValue<R>(body: (Value) -> sending R) -> sending R {
127 | read { body($0) }
| |- error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@in_guaranteed τ_0_0) -> (@sil_sending @out τ_0_1, @error any Error) for <Value, R>' value as a 'sending' result risks causing data races
| |- note: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@in_guaranteed τ_0_0) -> (@sil_sending @out τ_0_1, @error any Error) for <Value, R>' value risks causing races since the caller assumes the value can be safely sent to other isolation domains
| `- note: '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@in_guaranteed τ_0_0) -> (@sil_sending @out τ_0_1, @error any Error) for <Value, R>' is a non-Sendable type
128 | }
129 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftSpellbook/Sources/SpellbookFoundation/Threading & Concurrency/Synchronized.swift:127:16: error: returning task-isolated '$0' as a 'sending' result risks causing data races
125 | extension Synchronized: _ValueUpdateWrapping {
126 | public func _readValue<R>(body: (Value) -> sending R) -> sending R {
127 | read { body($0) }
| |- error: returning task-isolated '$0' as a 'sending' result risks causing data races
| `- note: returning task-isolated '$0' risks causing data races since the caller assumes that '$0' can be safely sent to other isolation domains
128 | }
129 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftSpellbook/Sources/SpellbookFoundation/Threading & Concurrency/Synchronized.swift:131:9: error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@inout τ_0_0) -> (@sil_sending @out τ_0_1, @error any Error) for <Value, R>' value as a 'sending' result risks causing data races
129 |
130 | public func _updateValue<R>(body: (inout Value) -> sending R) -> sending R {
131 | write { body(&$0) }
| |- error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@inout τ_0_0) -> (@sil_sending @out τ_0_1, @error any Error) for <Value, R>' value as a 'sending' result risks causing data races
| |- note: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@inout τ_0_0) -> (@sil_sending @out τ_0_1, @error any Error) for <Value, R>' value risks causing races since the caller assumes the value can be safely sent to other isolation domains
| `- note: '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@inout τ_0_0) -> (@sil_sending @out τ_0_1, @error any Error) for <Value, R>' is a non-Sendable type
132 | }
133 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftSpellbook/Sources/SpellbookFoundation/Threading & Concurrency/Synchronized.swift:131:17: error: returning task-isolated '$0' as a 'sending' result risks causing data races
129 |
130 | public func _updateValue<R>(body: (inout Value) -> sending R) -> sending R {
131 | write { body(&$0) }
| |- error: returning task-isolated '$0' as a 'sending' result risks causing data races
| `- note: returning task-isolated '$0' risks causing data races since the caller assumes that '$0' can be safely sent to other isolation domains
132 | }
133 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftSpellbook/Sources/SpellbookFoundation/Threading & Concurrency/Synchronized.swift:126:17: error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@in_guaranteed τ_0_0) -> @sil_sending @out τ_0_1 for <τ_0_0, τ_1_0>' value as a 'sending' result risks causing data races
124 |
125 | extension Synchronized: _ValueUpdateWrapping {
126 | public func _readValue<R>(body: (Value) -> sending R) -> sending R {
| |- error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@in_guaranteed τ_0_0) -> @sil_sending @out τ_0_1 for <τ_0_0, τ_1_0>' value as a 'sending' result risks causing data races
| |- note: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@in_guaranteed τ_0_0) -> @sil_sending @out τ_0_1 for <τ_0_0, τ_1_0>' value risks causing races since the caller assumes the value can be safely sent to other isolation domains
| `- note: '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@in_guaranteed τ_0_0) -> @sil_sending @out τ_0_1 for <τ_0_0, τ_1_0>' is a non-Sendable type
127 | read { body($0) }
128 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftSpellbook/Sources/SpellbookFoundation/Threading & Concurrency/Synchronized.swift:130:17: error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@inout τ_0_0) -> @sil_sending @out τ_0_1 for <τ_0_0, τ_1_0>' value as a 'sending' result risks causing data races
128 | }
129 |
130 | public func _updateValue<R>(body: (inout Value) -> sending R) -> sending R {
| |- error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@inout τ_0_0) -> @sil_sending @out τ_0_1 for <τ_0_0, τ_1_0>' value as a 'sending' result risks causing data races
| |- note: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@inout τ_0_0) -> @sil_sending @out τ_0_1 for <τ_0_0, τ_1_0>' value risks causing races since the caller assumes the value can be safely sent to other isolation domains
| `- note: '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@inout τ_0_0) -> @sil_sending @out τ_0_1 for <τ_0_0, τ_1_0>' is a non-Sendable type
131 | write { body(&$0) }
132 | }
[47/72] Compiling SpellbookFoundation SynchronizedObjC.swift
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftSpellbook/Sources/SpellbookFoundation/Threading & Concurrency/Synchronized.swift:198:13: error: returning task-isolated 'body' as a 'sending' result risks causing data races
196 | extension UnfairLock: SynchronizedLocking {
197 | func withWriteLock<R, E: Error>(_ body: () throws(E) -> sending R) throws(E) -> sending R {
198 | try withLock(body)
| |- error: returning task-isolated 'body' as a 'sending' result risks causing data races
| `- note: returning task-isolated 'body' risks causing data races since the caller assumes that 'body' can be safely sent to other isolation domains
199 | }
200 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftSpellbook/Sources/SpellbookFoundation/Threading & Concurrency/Synchronized.swift:197:10: error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <τ_0_1, τ_0_0>' value as a 'sending' result risks causing data races
195 |
196 | extension UnfairLock: SynchronizedLocking {
197 | func withWriteLock<R, E: Error>(_ body: () throws(E) -> sending R) throws(E) -> sending R {
| |- error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <τ_0_1, τ_0_0>' value as a 'sending' result risks causing data races
| |- note: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <τ_0_1, τ_0_0>' value risks causing races since the caller assumes the value can be safely sent to other isolation domains
| `- note: '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <τ_0_1, τ_0_0>' is a non-Sendable type
198 | try withLock(body)
199 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftSpellbook/Sources/SpellbookFoundation/Threading & Concurrency/PosixLocks.swift:118:17: error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <τ_0_1, τ_0_0>' value as a 'sending' result risks causing data races
116 | }
117 |
118 | public func withWriteLock<R, E: Error>(_ body: () throws(E) -> sending R) throws(E) -> sending R {
| |- error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <τ_0_1, τ_0_0>' value as a 'sending' result risks causing data races
| |- note: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <τ_0_1, τ_0_0>' value risks causing races since the caller assumes the value can be safely sent to other isolation domains
| `- note: '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <τ_0_1, τ_0_0>' is a non-Sendable type
119 | writeLock()
120 | defer { unlock() }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftSpellbook/Sources/SpellbookFoundation/Threading & Concurrency/Synchronized.swift:205:10: error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <τ_0_1, τ_0_0>' value as a 'sending' result risks causing data races
203 |
204 | extension DispatchQueue: SynchronizedLocking {
205 | func withWriteLock<R, E: Error>(_ body: () throws(E) -> sending R) throws(E) -> sending R {
| |- error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <τ_0_1, τ_0_0>' value as a 'sending' result risks causing data races
| |- note: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <τ_0_1, τ_0_0>' value risks causing races since the caller assumes the value can be safely sent to other isolation domains
| `- note: '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <τ_0_1, τ_0_0>' is a non-Sendable type
206 | try sync(flags: .barrier) { UncheckedSendable(Result(catching: body)) }.wrappedValue.get()
207 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftSpellbook/Sources/SpellbookFoundation/Threading & Concurrency/Synchronized.swift:192:13: error: returning task-isolated 'body' as a 'sending' result risks causing data races
190 | extension SynchronizedLocking {
191 | func withReadLock<R, E: Error>(_ body: () throws(E) -> sending R) throws(E) -> sending R {
192 | try withWriteLock(body)
| |- error: returning task-isolated 'body' as a 'sending' result risks causing data races
| `- note: returning task-isolated 'body' risks causing data races since the caller assumes that 'body' can be safely sent to other isolation domains
193 | }
194 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftSpellbook/Sources/SpellbookFoundation/Threading & Concurrency/Synchronized.swift:191:10: error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <τ_0_1, τ_0_0>' value as a 'sending' result risks causing data races
189 |
190 | extension SynchronizedLocking {
191 | func withReadLock<R, E: Error>(_ body: () throws(E) -> sending R) throws(E) -> sending R {
| |- error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <τ_0_1, τ_0_0>' value as a 'sending' result risks causing data races
| |- note: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <τ_0_1, τ_0_0>' value risks causing races since the caller assumes the value can be safely sent to other isolation domains
| `- note: '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <τ_0_1, τ_0_0>' is a non-Sendable type
192 | try withWriteLock(body)
193 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftSpellbook/Sources/SpellbookFoundation/Threading & Concurrency/PosixLocks.swift:106:17: error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <τ_0_1, τ_0_0>' value as a 'sending' result risks causing data races
104 | }
105 |
106 | public func withReadLock<R, E: Error>(_ body: () throws(E) -> sending R) throws(E) -> sending R {
| |- error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <τ_0_1, τ_0_0>' value as a 'sending' result risks causing data races
| |- note: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <τ_0_1, τ_0_0>' value risks causing races since the caller assumes the value can be safely sent to other isolation domains
| `- note: '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <τ_0_1, τ_0_0>' is a non-Sendable type
107 | readLock()
108 | defer { unlock() }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftSpellbook/Sources/SpellbookFoundation/Threading & Concurrency/Synchronized.swift:209:10: error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <τ_0_1, τ_0_0>' value as a 'sending' result risks causing data races
207 | }
208 |
209 | func withReadLock<R, E: Error>(_ body: () throws(E) -> sending R) throws(E) -> sending R {
| |- error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <τ_0_1, τ_0_0>' value as a 'sending' result risks causing data races
| |- note: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <τ_0_1, τ_0_0>' value risks causing races since the caller assumes the value can be safely sent to other isolation domains
| `- note: '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <τ_0_1, τ_0_0>' is a non-Sendable type
210 | try sync { UncheckedSendable(Result(catching: body)) }.wrappedValue.get()
211 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftSpellbook/Sources/SpellbookFoundation/Threading & Concurrency/Synchronized.swift:58:18: error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <any Error, R>' value as a 'sending' result risks causing data races
56 |
57 | public func read<R>(_ reader: (Value) throws -> sending R) rethrows -> sending R {
58 | try lock.withReadLock { try reader(value) }
| |- error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <any Error, R>' value as a 'sending' result risks causing data races
| |- note: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <any Error, R>' value risks causing races since the caller assumes the value can be safely sent to other isolation domains
| `- note: '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <any Error, R>' is a non-Sendable type
59 | }
60 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftSpellbook/Sources/SpellbookFoundation/Threading & Concurrency/Synchronized.swift:66:18: error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <any Error, R>' value as a 'sending' result risks causing data races
64 |
65 | public func write<R>(_ writer: (inout Value) throws -> sending R) rethrows -> sending R {
66 | try lock.withWriteLock { try writer(&value) }
| |- error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <any Error, R>' value as a 'sending' result risks causing data races
| |- note: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <any Error, R>' value risks causing races since the caller assumes the value can be safely sent to other isolation domains
| `- note: '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <any Error, R>' is a non-Sendable type
67 | }
68 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftSpellbook/Sources/SpellbookFoundation/Threading & Concurrency/Synchronized.swift:127:9: error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@in_guaranteed τ_0_0) -> (@sil_sending @out τ_0_1, @error any Error) for <Value, R>' value as a 'sending' result risks causing data races
125 | extension Synchronized: _ValueUpdateWrapping {
126 | public func _readValue<R>(body: (Value) -> sending R) -> sending R {
127 | read { body($0) }
| |- error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@in_guaranteed τ_0_0) -> (@sil_sending @out τ_0_1, @error any Error) for <Value, R>' value as a 'sending' result risks causing data races
| |- note: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@in_guaranteed τ_0_0) -> (@sil_sending @out τ_0_1, @error any Error) for <Value, R>' value risks causing races since the caller assumes the value can be safely sent to other isolation domains
| `- note: '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@in_guaranteed τ_0_0) -> (@sil_sending @out τ_0_1, @error any Error) for <Value, R>' is a non-Sendable type
128 | }
129 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftSpellbook/Sources/SpellbookFoundation/Threading & Concurrency/Synchronized.swift:127:16: error: returning task-isolated '$0' as a 'sending' result risks causing data races
125 | extension Synchronized: _ValueUpdateWrapping {
126 | public func _readValue<R>(body: (Value) -> sending R) -> sending R {
127 | read { body($0) }
| |- error: returning task-isolated '$0' as a 'sending' result risks causing data races
| `- note: returning task-isolated '$0' risks causing data races since the caller assumes that '$0' can be safely sent to other isolation domains
128 | }
129 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftSpellbook/Sources/SpellbookFoundation/Threading & Concurrency/Synchronized.swift:131:9: error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@inout τ_0_0) -> (@sil_sending @out τ_0_1, @error any Error) for <Value, R>' value as a 'sending' result risks causing data races
129 |
130 | public func _updateValue<R>(body: (inout Value) -> sending R) -> sending R {
131 | write { body(&$0) }
| |- error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@inout τ_0_0) -> (@sil_sending @out τ_0_1, @error any Error) for <Value, R>' value as a 'sending' result risks causing data races
| |- note: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@inout τ_0_0) -> (@sil_sending @out τ_0_1, @error any Error) for <Value, R>' value risks causing races since the caller assumes the value can be safely sent to other isolation domains
| `- note: '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@inout τ_0_0) -> (@sil_sending @out τ_0_1, @error any Error) for <Value, R>' is a non-Sendable type
132 | }
133 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftSpellbook/Sources/SpellbookFoundation/Threading & Concurrency/Synchronized.swift:131:17: error: returning task-isolated '$0' as a 'sending' result risks causing data races
129 |
130 | public func _updateValue<R>(body: (inout Value) -> sending R) -> sending R {
131 | write { body(&$0) }
| |- error: returning task-isolated '$0' as a 'sending' result risks causing data races
| `- note: returning task-isolated '$0' risks causing data races since the caller assumes that '$0' can be safely sent to other isolation domains
132 | }
133 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftSpellbook/Sources/SpellbookFoundation/Threading & Concurrency/Synchronized.swift:126:17: error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@in_guaranteed τ_0_0) -> @sil_sending @out τ_0_1 for <τ_0_0, τ_1_0>' value as a 'sending' result risks causing data races
124 |
125 | extension Synchronized: _ValueUpdateWrapping {
126 | public func _readValue<R>(body: (Value) -> sending R) -> sending R {
| |- error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@in_guaranteed τ_0_0) -> @sil_sending @out τ_0_1 for <τ_0_0, τ_1_0>' value as a 'sending' result risks causing data races
| |- note: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@in_guaranteed τ_0_0) -> @sil_sending @out τ_0_1 for <τ_0_0, τ_1_0>' value risks causing races since the caller assumes the value can be safely sent to other isolation domains
| `- note: '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@in_guaranteed τ_0_0) -> @sil_sending @out τ_0_1 for <τ_0_0, τ_1_0>' is a non-Sendable type
127 | read { body($0) }
128 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftSpellbook/Sources/SpellbookFoundation/Threading & Concurrency/Synchronized.swift:130:17: error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@inout τ_0_0) -> @sil_sending @out τ_0_1 for <τ_0_0, τ_1_0>' value as a 'sending' result risks causing data races
128 | }
129 |
130 | public func _updateValue<R>(body: (inout Value) -> sending R) -> sending R {
| |- error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@inout τ_0_0) -> @sil_sending @out τ_0_1 for <τ_0_0, τ_1_0>' value as a 'sending' result risks causing data races
| |- note: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@inout τ_0_0) -> @sil_sending @out τ_0_1 for <τ_0_0, τ_1_0>' value risks causing races since the caller assumes the value can be safely sent to other isolation domains
| `- note: '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@inout τ_0_0) -> @sil_sending @out τ_0_1 for <τ_0_0, τ_1_0>' is a non-Sendable type
131 | write { body(&$0) }
132 | }
[48/72] Compiling SpellbookFoundation SynchronousExecution.swift
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftSpellbook/Sources/SpellbookFoundation/Threading & Concurrency/Synchronized.swift:198:13: error: returning task-isolated 'body' as a 'sending' result risks causing data races
196 | extension UnfairLock: SynchronizedLocking {
197 | func withWriteLock<R, E: Error>(_ body: () throws(E) -> sending R) throws(E) -> sending R {
198 | try withLock(body)
| |- error: returning task-isolated 'body' as a 'sending' result risks causing data races
| `- note: returning task-isolated 'body' risks causing data races since the caller assumes that 'body' can be safely sent to other isolation domains
199 | }
200 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftSpellbook/Sources/SpellbookFoundation/Threading & Concurrency/Synchronized.swift:197:10: error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <τ_0_1, τ_0_0>' value as a 'sending' result risks causing data races
195 |
196 | extension UnfairLock: SynchronizedLocking {
197 | func withWriteLock<R, E: Error>(_ body: () throws(E) -> sending R) throws(E) -> sending R {
| |- error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <τ_0_1, τ_0_0>' value as a 'sending' result risks causing data races
| |- note: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <τ_0_1, τ_0_0>' value risks causing races since the caller assumes the value can be safely sent to other isolation domains
| `- note: '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <τ_0_1, τ_0_0>' is a non-Sendable type
198 | try withLock(body)
199 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftSpellbook/Sources/SpellbookFoundation/Threading & Concurrency/PosixLocks.swift:118:17: error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <τ_0_1, τ_0_0>' value as a 'sending' result risks causing data races
116 | }
117 |
118 | public func withWriteLock<R, E: Error>(_ body: () throws(E) -> sending R) throws(E) -> sending R {
| |- error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <τ_0_1, τ_0_0>' value as a 'sending' result risks causing data races
| |- note: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <τ_0_1, τ_0_0>' value risks causing races since the caller assumes the value can be safely sent to other isolation domains
| `- note: '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <τ_0_1, τ_0_0>' is a non-Sendable type
119 | writeLock()
120 | defer { unlock() }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftSpellbook/Sources/SpellbookFoundation/Threading & Concurrency/Synchronized.swift:205:10: error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <τ_0_1, τ_0_0>' value as a 'sending' result risks causing data races
203 |
204 | extension DispatchQueue: SynchronizedLocking {
205 | func withWriteLock<R, E: Error>(_ body: () throws(E) -> sending R) throws(E) -> sending R {
| |- error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <τ_0_1, τ_0_0>' value as a 'sending' result risks causing data races
| |- note: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <τ_0_1, τ_0_0>' value risks causing races since the caller assumes the value can be safely sent to other isolation domains
| `- note: '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <τ_0_1, τ_0_0>' is a non-Sendable type
206 | try sync(flags: .barrier) { UncheckedSendable(Result(catching: body)) }.wrappedValue.get()
207 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftSpellbook/Sources/SpellbookFoundation/Threading & Concurrency/Synchronized.swift:192:13: error: returning task-isolated 'body' as a 'sending' result risks causing data races
190 | extension SynchronizedLocking {
191 | func withReadLock<R, E: Error>(_ body: () throws(E) -> sending R) throws(E) -> sending R {
192 | try withWriteLock(body)
| |- error: returning task-isolated 'body' as a 'sending' result risks causing data races
| `- note: returning task-isolated 'body' risks causing data races since the caller assumes that 'body' can be safely sent to other isolation domains
193 | }
194 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftSpellbook/Sources/SpellbookFoundation/Threading & Concurrency/Synchronized.swift:191:10: error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <τ_0_1, τ_0_0>' value as a 'sending' result risks causing data races
189 |
190 | extension SynchronizedLocking {
191 | func withReadLock<R, E: Error>(_ body: () throws(E) -> sending R) throws(E) -> sending R {
| |- error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <τ_0_1, τ_0_0>' value as a 'sending' result risks causing data races
| |- note: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <τ_0_1, τ_0_0>' value risks causing races since the caller assumes the value can be safely sent to other isolation domains
| `- note: '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <τ_0_1, τ_0_0>' is a non-Sendable type
192 | try withWriteLock(body)
193 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftSpellbook/Sources/SpellbookFoundation/Threading & Concurrency/PosixLocks.swift:106:17: error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <τ_0_1, τ_0_0>' value as a 'sending' result risks causing data races
104 | }
105 |
106 | public func withReadLock<R, E: Error>(_ body: () throws(E) -> sending R) throws(E) -> sending R {
| |- error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <τ_0_1, τ_0_0>' value as a 'sending' result risks causing data races
| |- note: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <τ_0_1, τ_0_0>' value risks causing races since the caller assumes the value can be safely sent to other isolation domains
| `- note: '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <τ_0_1, τ_0_0>' is a non-Sendable type
107 | readLock()
108 | defer { unlock() }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftSpellbook/Sources/SpellbookFoundation/Threading & Concurrency/Synchronized.swift:209:10: error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <τ_0_1, τ_0_0>' value as a 'sending' result risks causing data races
207 | }
208 |
209 | func withReadLock<R, E: Error>(_ body: () throws(E) -> sending R) throws(E) -> sending R {
| |- error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <τ_0_1, τ_0_0>' value as a 'sending' result risks causing data races
| |- note: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <τ_0_1, τ_0_0>' value risks causing races since the caller assumes the value can be safely sent to other isolation domains
| `- note: '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <τ_0_1, τ_0_0>' is a non-Sendable type
210 | try sync { UncheckedSendable(Result(catching: body)) }.wrappedValue.get()
211 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftSpellbook/Sources/SpellbookFoundation/Threading & Concurrency/Synchronized.swift:58:18: error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <any Error, R>' value as a 'sending' result risks causing data races
56 |
57 | public func read<R>(_ reader: (Value) throws -> sending R) rethrows -> sending R {
58 | try lock.withReadLock { try reader(value) }
| |- error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <any Error, R>' value as a 'sending' result risks causing data races
| |- note: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <any Error, R>' value risks causing races since the caller assumes the value can be safely sent to other isolation domains
| `- note: '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <any Error, R>' is a non-Sendable type
59 | }
60 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftSpellbook/Sources/SpellbookFoundation/Threading & Concurrency/Synchronized.swift:66:18: error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <any Error, R>' value as a 'sending' result risks causing data races
64 |
65 | public func write<R>(_ writer: (inout Value) throws -> sending R) rethrows -> sending R {
66 | try lock.withWriteLock { try writer(&value) }
| |- error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <any Error, R>' value as a 'sending' result risks causing data races
| |- note: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <any Error, R>' value risks causing races since the caller assumes the value can be safely sent to other isolation domains
| `- note: '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> () -> (@sil_sending @out τ_0_1, @error_indirect τ_0_0) for <any Error, R>' is a non-Sendable type
67 | }
68 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftSpellbook/Sources/SpellbookFoundation/Threading & Concurrency/Synchronized.swift:127:9: error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@in_guaranteed τ_0_0) -> (@sil_sending @out τ_0_1, @error any Error) for <Value, R>' value as a 'sending' result risks causing data races
125 | extension Synchronized: _ValueUpdateWrapping {
126 | public func _readValue<R>(body: (Value) -> sending R) -> sending R {
127 | read { body($0) }
| |- error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@in_guaranteed τ_0_0) -> (@sil_sending @out τ_0_1, @error any Error) for <Value, R>' value as a 'sending' result risks causing data races
| |- note: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@in_guaranteed τ_0_0) -> (@sil_sending @out τ_0_1, @error any Error) for <Value, R>' value risks causing races since the caller assumes the value can be safely sent to other isolation domains
| `- note: '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@in_guaranteed τ_0_0) -> (@sil_sending @out τ_0_1, @error any Error) for <Value, R>' is a non-Sendable type
128 | }
129 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftSpellbook/Sources/SpellbookFoundation/Threading & Concurrency/Synchronized.swift:127:16: error: returning task-isolated '$0' as a 'sending' result risks causing data races
125 | extension Synchronized: _ValueUpdateWrapping {
126 | public func _readValue<R>(body: (Value) -> sending R) -> sending R {
127 | read { body($0) }
| |- error: returning task-isolated '$0' as a 'sending' result risks causing data races
| `- note: returning task-isolated '$0' risks causing data races since the caller assumes that '$0' can be safely sent to other isolation domains
128 | }
129 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftSpellbook/Sources/SpellbookFoundation/Threading & Concurrency/Synchronized.swift:131:9: error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@inout τ_0_0) -> (@sil_sending @out τ_0_1, @error any Error) for <Value, R>' value as a 'sending' result risks causing data races
129 |
130 | public func _updateValue<R>(body: (inout Value) -> sending R) -> sending R {
131 | write { body(&$0) }
| |- error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@inout τ_0_0) -> (@sil_sending @out τ_0_1, @error any Error) for <Value, R>' value as a 'sending' result risks causing data races
| |- note: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@inout τ_0_0) -> (@sil_sending @out τ_0_1, @error any Error) for <Value, R>' value risks causing races since the caller assumes the value can be safely sent to other isolation domains
| `- note: '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@inout τ_0_0) -> (@sil_sending @out τ_0_1, @error any Error) for <Value, R>' is a non-Sendable type
132 | }
133 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftSpellbook/Sources/SpellbookFoundation/Threading & Concurrency/Synchronized.swift:131:17: error: returning task-isolated '$0' as a 'sending' result risks causing data races
129 |
130 | public func _updateValue<R>(body: (inout Value) -> sending R) -> sending R {
131 | write { body(&$0) }
| |- error: returning task-isolated '$0' as a 'sending' result risks causing data races
| `- note: returning task-isolated '$0' risks causing data races since the caller assumes that '$0' can be safely sent to other isolation domains
132 | }
133 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftSpellbook/Sources/SpellbookFoundation/Threading & Concurrency/Synchronized.swift:126:17: error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@in_guaranteed τ_0_0) -> @sil_sending @out τ_0_1 for <τ_0_0, τ_1_0>' value as a 'sending' result risks causing data races
124 |
125 | extension Synchronized: _ValueUpdateWrapping {
126 | public func _readValue<R>(body: (Value) -> sending R) -> sending R {
| |- error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@in_guaranteed τ_0_0) -> @sil_sending @out τ_0_1 for <τ_0_0, τ_1_0>' value as a 'sending' result risks causing data races
| |- note: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@in_guaranteed τ_0_0) -> @sil_sending @out τ_0_1 for <τ_0_0, τ_1_0>' value risks causing races since the caller assumes the value can be safely sent to other isolation domains
| `- note: '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@in_guaranteed τ_0_0) -> @sil_sending @out τ_0_1 for <τ_0_0, τ_1_0>' is a non-Sendable type
127 | read { body($0) }
128 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftSpellbook/Sources/SpellbookFoundation/Threading & Concurrency/Synchronized.swift:130:17: error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@inout τ_0_0) -> @sil_sending @out τ_0_1 for <τ_0_0, τ_1_0>' value as a 'sending' result risks causing data races
128 | }
129 |
130 | public func _updateValue<R>(body: (inout Value) -> sending R) -> sending R {
| |- error: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@inout τ_0_0) -> @sil_sending @out τ_0_1 for <τ_0_0, τ_1_0>' value as a 'sending' result risks causing data races
| |- note: returning a task-isolated '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@inout τ_0_0) -> @sil_sending @out τ_0_1 for <τ_0_0, τ_1_0>' value risks causing races since the caller assumes the value can be safely sent to other isolation domains
| `- note: '@noescape @callee_guaranteed @substituted <τ_0_0, τ_0_1> (@inout τ_0_0) -> @sil_sending @out τ_0_1 for <τ_0_0, τ_1_0>' is a non-Sendable type
131 | write { body(&$0) }
132 | }
[49/72] Compiling SpellbookFoundation Extensions - Bundle.swift
[50/72] Compiling SpellbookFoundation Extensions - FileManager.swift
[51/72] Compiling SpellbookFoundation FileEnumerator.swift
[52/72] Compiling SpellbookFoundation FileStore.swift
[53/72] Compiling SpellbookFoundation TemporaryDirectory.swift
[54/72] Compiling SpellbookFoundation Internal.swift
[55/72] Compiling SpellbookFoundation UncheckedSendable.swift
[56/72] Compiling SpellbookFoundation Boxing.swift
[57/72] Compiling SpellbookFoundation Closure.swift
[58/72] Compiling SpellbookFoundation Refreshable.swift
[59/72] Compiling SpellbookFoundation Resource (RAII).swift
[60/72] Compiling SpellbookFoundation Types.swift
[61/72] Compiling SpellbookFoundation DeviceInfo.swift
[62/72] Compiling SpellbookFoundation Extensions - ProcessInfo.swift
[63/72] Compiling SpellbookFoundation Atomic.swift
[64/72] Compiling SpellbookFoundation BlockingQueue.swift
[65/72] Compiling SpellbookFoundation ConcurrentBlockOperation.swift
[66/72] Compiling SpellbookFoundation Extensions - DispatchQueue.swift
[67/72] Compiling SpellbookFoundation AuditToken.swift
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftSpellbook/Sources/SpellbookFoundation/Low Level/AuditToken.swift:32:33: error: reference to var 'mach_task_self_' is not concurrency-safe because it involves shared mutable state
30 | /// Returns current task audit token.
31 | public static func current() throws -> audit_token_t {
32 | try audit_token_t(task: mach_task_self_)
| `- error: reference to var 'mach_task_self_' is not concurrency-safe because it involves shared mutable state
33 | }
34 |
Darwin.mach_task_self_:1:12: note: var declared here
1 | public var mach_task_self_: mach_port_t
| `- note: var declared here
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftSpellbook/Sources/SpellbookFoundation/Low Level/AuditToken.swift:37:65: error: reference to var 'mach_task_self_' is not concurrency-safe because it involves shared mutable state
35 | /// Returns task for pid.
36 | public init(pid: pid_t) throws {
37 | let taskName = try NSError.mach.try { task_name_for_pid(mach_task_self_, pid, $0) }
| `- error: reference to var 'mach_task_self_' is not concurrency-safe because it involves shared mutable state
38 | try self.init(task: taskName)
39 | }
Darwin.mach_task_self_:1:12: note: var declared here
1 | public var mach_task_self_: mach_port_t
| `- note: var declared here
[68/72] Compiling SpellbookFoundation BridgedCEnum.swift
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftSpellbook/Sources/SpellbookFoundation/Low Level/AuditToken.swift:32:33: error: reference to var 'mach_task_self_' is not concurrency-safe because it involves shared mutable state
30 | /// Returns current task audit token.
31 | public static func current() throws -> audit_token_t {
32 | try audit_token_t(task: mach_task_self_)
| `- error: reference to var 'mach_task_self_' is not concurrency-safe because it involves shared mutable state
33 | }
34 |
Darwin.mach_task_self_:1:12: note: var declared here
1 | public var mach_task_self_: mach_port_t
| `- note: var declared here
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftSpellbook/Sources/SpellbookFoundation/Low Level/AuditToken.swift:37:65: error: reference to var 'mach_task_self_' is not concurrency-safe because it involves shared mutable state
35 | /// Returns task for pid.
36 | public init(pid: pid_t) throws {
37 | let taskName = try NSError.mach.try { task_name_for_pid(mach_task_self_, pid, $0) }
| `- error: reference to var 'mach_task_self_' is not concurrency-safe because it involves shared mutable state
38 | try self.init(task: taskName)
39 | }
Darwin.mach_task_self_:1:12: note: var declared here
1 | public var mach_task_self_: mach_port_t
| `- note: var declared here
[69/72] Compiling SpellbookFoundation MachTime.swift
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftSpellbook/Sources/SpellbookFoundation/Low Level/AuditToken.swift:32:33: error: reference to var 'mach_task_self_' is not concurrency-safe because it involves shared mutable state
30 | /// Returns current task audit token.
31 | public static func current() throws -> audit_token_t {
32 | try audit_token_t(task: mach_task_self_)
| `- error: reference to var 'mach_task_self_' is not concurrency-safe because it involves shared mutable state
33 | }
34 |
Darwin.mach_task_self_:1:12: note: var declared here
1 | public var mach_task_self_: mach_port_t
| `- note: var declared here
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftSpellbook/Sources/SpellbookFoundation/Low Level/AuditToken.swift:37:65: error: reference to var 'mach_task_self_' is not concurrency-safe because it involves shared mutable state
35 | /// Returns task for pid.
36 | public init(pid: pid_t) throws {
37 | let taskName = try NSError.mach.try { task_name_for_pid(mach_task_self_, pid, $0) }
| `- error: reference to var 'mach_task_self_' is not concurrency-safe because it involves shared mutable state
38 | try self.init(task: taskName)
39 | }
Darwin.mach_task_self_:1:12: note: var declared here
1 | public var mach_task_self_: mach_port_t
| `- note: var declared here
[70/72] Compiling SpellbookFoundation POD+Swift.swift
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftSpellbook/Sources/SpellbookFoundation/Low Level/AuditToken.swift:32:33: error: reference to var 'mach_task_self_' is not concurrency-safe because it involves shared mutable state
30 | /// Returns current task audit token.
31 | public static func current() throws -> audit_token_t {
32 | try audit_token_t(task: mach_task_self_)
| `- error: reference to var 'mach_task_self_' is not concurrency-safe because it involves shared mutable state
33 | }
34 |
Darwin.mach_task_self_:1:12: note: var declared here
1 | public var mach_task_self_: mach_port_t
| `- note: var declared here
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftSpellbook/Sources/SpellbookFoundation/Low Level/AuditToken.swift:37:65: error: reference to var 'mach_task_self_' is not concurrency-safe because it involves shared mutable state
35 | /// Returns task for pid.
36 | public init(pid: pid_t) throws {
37 | let taskName = try NSError.mach.try { task_name_for_pid(mach_task_self_, pid, $0) }
| `- error: reference to var 'mach_task_self_' is not concurrency-safe because it involves shared mutable state
38 | try self.init(task: taskName)
39 | }
Darwin.mach_task_self_:1:12: note: var declared here
1 | public var mach_task_self_: mach_port_t
| `- note: var declared here
[71/72] Compiling SpellbookFoundation Unsafe.swift
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftSpellbook/Sources/SpellbookFoundation/Low Level/AuditToken.swift:32:33: error: reference to var 'mach_task_self_' is not concurrency-safe because it involves shared mutable state
30 | /// Returns current task audit token.
31 | public static func current() throws -> audit_token_t {
32 | try audit_token_t(task: mach_task_self_)
| `- error: reference to var 'mach_task_self_' is not concurrency-safe because it involves shared mutable state
33 | }
34 |
Darwin.mach_task_self_:1:12: note: var declared here
1 | public var mach_task_self_: mach_port_t
| `- note: var declared here
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftSpellbook/Sources/SpellbookFoundation/Low Level/AuditToken.swift:37:65: error: reference to var 'mach_task_self_' is not concurrency-safe because it involves shared mutable state
35 | /// Returns task for pid.
36 | public init(pid: pid_t) throws {
37 | let taskName = try NSError.mach.try { task_name_for_pid(mach_task_self_, pid, $0) }
| `- error: reference to var 'mach_task_self_' is not concurrency-safe because it involves shared mutable state
38 | try self.init(task: taskName)
39 | }
Darwin.mach_task_self_:1:12: note: var declared here
1 | public var mach_task_self_: mach_port_t
| `- note: var declared here
[72/72] Compiling SpellbookFoundation _ValueUpdateWrapping.swift
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftSpellbook/Sources/SpellbookFoundation/Low Level/AuditToken.swift:32:33: error: reference to var 'mach_task_self_' is not concurrency-safe because it involves shared mutable state
30 | /// Returns current task audit token.
31 | public static func current() throws -> audit_token_t {
32 | try audit_token_t(task: mach_task_self_)
| `- error: reference to var 'mach_task_self_' is not concurrency-safe because it involves shared mutable state
33 | }
34 |
Darwin.mach_task_self_:1:12: note: var declared here
1 | public var mach_task_self_: mach_port_t
| `- note: var declared here
/Users/admin/builder/spi-builder-workspace/.build/checkouts/SwiftSpellbook/Sources/SpellbookFoundation/Low Level/AuditToken.swift:37:65: error: reference to var 'mach_task_self_' is not concurrency-safe because it involves shared mutable state
35 | /// Returns task for pid.
36 | public init(pid: pid_t) throws {
37 | let taskName = try NSError.mach.try { task_name_for_pid(mach_task_self_, pid, $0) }
| `- error: reference to var 'mach_task_self_' is not concurrency-safe because it involves shared mutable state
38 | try self.init(task: taskName)
39 | }
Darwin.mach_task_self_:1:12: note: var declared here
1 | public var mach_task_self_: mach_port_t
| `- note: var declared here
Fetching https://github.com/Alkenso/SwiftSpellbook.git
[1/3633] Fetching swiftspellbook
Fetched https://github.com/Alkenso/SwiftSpellbook.git from cache (0.96s)
Computing version for https://github.com/Alkenso/SwiftSpellbook.git
Computed https://github.com/Alkenso/SwiftSpellbook.git at 2.0.1 (0.46s)
Creating working copy for https://github.com/Alkenso/SwiftSpellbook.git
Working copy of https://github.com/Alkenso/SwiftSpellbook.git resolved at 2.0.1
BUILD FAILURE 6.0 macosSpm