Build Information
Successful build of AsyncStateMachine with Swift 6.0 for macOS (SPM).
Swift 6 data race errors: 3
Build Command
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Build Log
36 | }
37 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/ThrowingInject.swift:35:28: warning: capture of 'b' with non-sendable type 'B' in a `@Sendable` closure; this is an error in the Swift 6 language mode
26 | }
27 |
28 | public func inject<A, B, C, R>(
| `- note: consider making generic parameter 'B' conform to the 'Sendable' protocol
29 | deps a: A,
30 | _ b: B,
:
33 | ) -> @Sendable () async throws -> R {
34 | {
35 | try await block(a, b, c)
| `- warning: capture of 'b' with non-sendable type 'B' in a `@Sendable` closure; this is an error in the Swift 6 language mode
36 | }
37 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/ThrowingInject.swift:35:31: warning: capture of 'c' with non-sendable type 'C' in a `@Sendable` closure; this is an error in the Swift 6 language mode
26 | }
27 |
28 | public func inject<A, B, C, R>(
| `- note: consider making generic parameter 'C' conform to the 'Sendable' protocol
29 | deps a: A,
30 | _ b: B,
:
33 | ) -> @Sendable () async throws -> R {
34 | {
35 | try await block(a, b, c)
| `- warning: capture of 'c' with non-sendable type 'C' in a `@Sendable` closure; this is an error in the Swift 6 language mode
36 | }
37 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/ThrowingInject.swift:47:25: warning: capture of 'a' with non-sendable type 'A' in a `@Sendable` closure; this is an error in the Swift 6 language mode
37 | }
38 |
39 | public func inject<A, B, C, D, R>(
| `- note: consider making generic parameter 'A' conform to the 'Sendable' protocol
40 | deps a: A,
41 | _ b: B,
:
45 | ) -> @Sendable () async throws -> R {
46 | {
47 | try await block(a, b, c, d)
| `- warning: capture of 'a' with non-sendable type 'A' in a `@Sendable` closure; this is an error in the Swift 6 language mode
48 | }
49 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/ThrowingInject.swift:47:28: warning: capture of 'b' with non-sendable type 'B' in a `@Sendable` closure; this is an error in the Swift 6 language mode
37 | }
38 |
39 | public func inject<A, B, C, D, R>(
| `- note: consider making generic parameter 'B' conform to the 'Sendable' protocol
40 | deps a: A,
41 | _ b: B,
:
45 | ) -> @Sendable () async throws -> R {
46 | {
47 | try await block(a, b, c, d)
| `- warning: capture of 'b' with non-sendable type 'B' in a `@Sendable` closure; this is an error in the Swift 6 language mode
48 | }
49 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/ThrowingInject.swift:47:31: warning: capture of 'c' with non-sendable type 'C' in a `@Sendable` closure; this is an error in the Swift 6 language mode
37 | }
38 |
39 | public func inject<A, B, C, D, R>(
| `- note: consider making generic parameter 'C' conform to the 'Sendable' protocol
40 | deps a: A,
41 | _ b: B,
:
45 | ) -> @Sendable () async throws -> R {
46 | {
47 | try await block(a, b, c, d)
| `- warning: capture of 'c' with non-sendable type 'C' in a `@Sendable` closure; this is an error in the Swift 6 language mode
48 | }
49 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/ThrowingInject.swift:47:34: warning: capture of 'd' with non-sendable type 'D' in a `@Sendable` closure; this is an error in the Swift 6 language mode
37 | }
38 |
39 | public func inject<A, B, C, D, R>(
| `- note: consider making generic parameter 'D' conform to the 'Sendable' protocol
40 | deps a: A,
41 | _ b: B,
:
45 | ) -> @Sendable () async throws -> R {
46 | {
47 | try await block(a, b, c, d)
| `- warning: capture of 'd' with non-sendable type 'D' in a `@Sendable` closure; this is an error in the Swift 6 language mode
48 | }
49 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/ThrowingInject.swift:60:25: warning: capture of 'a' with non-sendable type 'A' in a `@Sendable` closure; this is an error in the Swift 6 language mode
49 | }
50 |
51 | public func inject<A, B, C, D, E, R>(
| `- note: consider making generic parameter 'A' conform to the 'Sendable' protocol
52 | deps a: A,
53 | _ b: B,
:
58 | ) -> @Sendable () async throws -> R {
59 | {
60 | try await block(a, b, c, d, e)
| `- warning: capture of 'a' with non-sendable type 'A' in a `@Sendable` closure; this is an error in the Swift 6 language mode
61 | }
62 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/ThrowingInject.swift:60:28: warning: capture of 'b' with non-sendable type 'B' in a `@Sendable` closure; this is an error in the Swift 6 language mode
49 | }
50 |
51 | public func inject<A, B, C, D, E, R>(
| `- note: consider making generic parameter 'B' conform to the 'Sendable' protocol
52 | deps a: A,
53 | _ b: B,
:
58 | ) -> @Sendable () async throws -> R {
59 | {
60 | try await block(a, b, c, d, e)
| `- warning: capture of 'b' with non-sendable type 'B' in a `@Sendable` closure; this is an error in the Swift 6 language mode
61 | }
62 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/ThrowingInject.swift:60:31: warning: capture of 'c' with non-sendable type 'C' in a `@Sendable` closure; this is an error in the Swift 6 language mode
49 | }
50 |
51 | public func inject<A, B, C, D, E, R>(
| `- note: consider making generic parameter 'C' conform to the 'Sendable' protocol
52 | deps a: A,
53 | _ b: B,
:
58 | ) -> @Sendable () async throws -> R {
59 | {
60 | try await block(a, b, c, d, e)
| `- warning: capture of 'c' with non-sendable type 'C' in a `@Sendable` closure; this is an error in the Swift 6 language mode
61 | }
62 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/ThrowingInject.swift:60:34: warning: capture of 'd' with non-sendable type 'D' in a `@Sendable` closure; this is an error in the Swift 6 language mode
49 | }
50 |
51 | public func inject<A, B, C, D, E, R>(
| `- note: consider making generic parameter 'D' conform to the 'Sendable' protocol
52 | deps a: A,
53 | _ b: B,
:
58 | ) -> @Sendable () async throws -> R {
59 | {
60 | try await block(a, b, c, d, e)
| `- warning: capture of 'd' with non-sendable type 'D' in a `@Sendable` closure; this is an error in the Swift 6 language mode
61 | }
62 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/ThrowingInject.swift:60:37: warning: capture of 'e' with non-sendable type 'E' in a `@Sendable` closure; this is an error in the Swift 6 language mode
49 | }
50 |
51 | public func inject<A, B, C, D, E, R>(
| `- note: consider making generic parameter 'E' conform to the 'Sendable' protocol
52 | deps a: A,
53 | _ b: B,
:
58 | ) -> @Sendable () async throws -> R {
59 | {
60 | try await block(a, b, c, d, e)
| `- warning: capture of 'e' with non-sendable type 'E' in a `@Sendable` closure; this is an error in the Swift 6 language mode
61 | }
62 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/ThrowingInject.swift:74:25: warning: capture of 'a' with non-sendable type 'A' in a `@Sendable` closure; this is an error in the Swift 6 language mode
62 | }
63 |
64 | public func inject<A, B, C, D, E, F, R>(
| `- note: consider making generic parameter 'A' conform to the 'Sendable' protocol
65 | deps a: A,
66 | _ b: B,
:
72 | ) -> @Sendable () async throws -> R {
73 | {
74 | try await block(a, b, c, d, e, f)
| `- warning: capture of 'a' with non-sendable type 'A' in a `@Sendable` closure; this is an error in the Swift 6 language mode
75 | }
76 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/ThrowingInject.swift:74:28: warning: capture of 'b' with non-sendable type 'B' in a `@Sendable` closure; this is an error in the Swift 6 language mode
62 | }
63 |
64 | public func inject<A, B, C, D, E, F, R>(
| `- note: consider making generic parameter 'B' conform to the 'Sendable' protocol
65 | deps a: A,
66 | _ b: B,
:
72 | ) -> @Sendable () async throws -> R {
73 | {
74 | try await block(a, b, c, d, e, f)
| `- warning: capture of 'b' with non-sendable type 'B' in a `@Sendable` closure; this is an error in the Swift 6 language mode
75 | }
76 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/ThrowingInject.swift:74:31: warning: capture of 'c' with non-sendable type 'C' in a `@Sendable` closure; this is an error in the Swift 6 language mode
62 | }
63 |
64 | public func inject<A, B, C, D, E, F, R>(
| `- note: consider making generic parameter 'C' conform to the 'Sendable' protocol
65 | deps a: A,
66 | _ b: B,
:
72 | ) -> @Sendable () async throws -> R {
73 | {
74 | try await block(a, b, c, d, e, f)
| `- warning: capture of 'c' with non-sendable type 'C' in a `@Sendable` closure; this is an error in the Swift 6 language mode
75 | }
76 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/ThrowingInject.swift:74:34: warning: capture of 'd' with non-sendable type 'D' in a `@Sendable` closure; this is an error in the Swift 6 language mode
62 | }
63 |
64 | public func inject<A, B, C, D, E, F, R>(
| `- note: consider making generic parameter 'D' conform to the 'Sendable' protocol
65 | deps a: A,
66 | _ b: B,
:
72 | ) -> @Sendable () async throws -> R {
73 | {
74 | try await block(a, b, c, d, e, f)
| `- warning: capture of 'd' with non-sendable type 'D' in a `@Sendable` closure; this is an error in the Swift 6 language mode
75 | }
76 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/ThrowingInject.swift:74:37: warning: capture of 'e' with non-sendable type 'E' in a `@Sendable` closure; this is an error in the Swift 6 language mode
62 | }
63 |
64 | public func inject<A, B, C, D, E, F, R>(
| `- note: consider making generic parameter 'E' conform to the 'Sendable' protocol
65 | deps a: A,
66 | _ b: B,
:
72 | ) -> @Sendable () async throws -> R {
73 | {
74 | try await block(a, b, c, d, e, f)
| `- warning: capture of 'e' with non-sendable type 'E' in a `@Sendable` closure; this is an error in the Swift 6 language mode
75 | }
76 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/ThrowingInject.swift:74:40: warning: capture of 'f' with non-sendable type 'F' in a `@Sendable` closure; this is an error in the Swift 6 language mode
62 | }
63 |
64 | public func inject<A, B, C, D, E, F, R>(
| `- note: consider making generic parameter 'F' conform to the 'Sendable' protocol
65 | deps a: A,
66 | _ b: B,
:
72 | ) -> @Sendable () async throws -> R {
73 | {
74 | try await block(a, b, c, d, e, f)
| `- warning: capture of 'f' with non-sendable type 'F' in a `@Sendable` closure; this is an error in the Swift 6 language mode
75 | }
76 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/ThrowingInject.swift:83:28: warning: capture of 'b' with non-sendable type 'B' in a `@Sendable` closure; this is an error in the Swift 6 language mode
76 | }
77 |
78 | public func inject<A, B, R>(
| `- note: consider making generic parameter 'B' conform to the 'Sendable' protocol
79 | dep b: B,
80 | in block: @Sendable @escaping (A, B) async throws -> R
81 | ) -> @Sendable (A) async throws -> R {
82 | { a in
83 | try await block(a, b)
| `- warning: capture of 'b' with non-sendable type 'B' in a `@Sendable` closure; this is an error in the Swift 6 language mode
84 | }
85 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/ThrowingInject.swift:93:28: warning: capture of 'b' with non-sendable type 'B' in a `@Sendable` closure; this is an error in the Swift 6 language mode
85 | }
86 |
87 | public func inject<A, B, C, R>(
| `- note: consider making generic parameter 'B' conform to the 'Sendable' protocol
88 | deps b: B,
89 | _ c: C,
:
91 | ) -> @Sendable (A) async throws -> R {
92 | { a in
93 | try await block(a, b, c)
| `- warning: capture of 'b' with non-sendable type 'B' in a `@Sendable` closure; this is an error in the Swift 6 language mode
94 | }
95 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/ThrowingInject.swift:93:31: warning: capture of 'c' with non-sendable type 'C' in a `@Sendable` closure; this is an error in the Swift 6 language mode
85 | }
86 |
87 | public func inject<A, B, C, R>(
| `- note: consider making generic parameter 'C' conform to the 'Sendable' protocol
88 | deps b: B,
89 | _ c: C,
:
91 | ) -> @Sendable (A) async throws -> R {
92 | { a in
93 | try await block(a, b, c)
| `- warning: capture of 'c' with non-sendable type 'C' in a `@Sendable` closure; this is an error in the Swift 6 language mode
94 | }
95 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/ThrowingInject.swift:104:28: warning: capture of 'b' with non-sendable type 'B' in a `@Sendable` closure; this is an error in the Swift 6 language mode
95 | }
96 |
97 | public func inject<A, B, C, D, R>(
| `- note: consider making generic parameter 'B' conform to the 'Sendable' protocol
98 | deps b: B,
99 | _ c: C,
:
102 | ) -> @Sendable (A) async throws -> R {
103 | { a in
104 | try await block(a, b, c, d)
| `- warning: capture of 'b' with non-sendable type 'B' in a `@Sendable` closure; this is an error in the Swift 6 language mode
105 | }
106 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/ThrowingInject.swift:104:31: warning: capture of 'c' with non-sendable type 'C' in a `@Sendable` closure; this is an error in the Swift 6 language mode
95 | }
96 |
97 | public func inject<A, B, C, D, R>(
| `- note: consider making generic parameter 'C' conform to the 'Sendable' protocol
98 | deps b: B,
99 | _ c: C,
:
102 | ) -> @Sendable (A) async throws -> R {
103 | { a in
104 | try await block(a, b, c, d)
| `- warning: capture of 'c' with non-sendable type 'C' in a `@Sendable` closure; this is an error in the Swift 6 language mode
105 | }
106 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/ThrowingInject.swift:104:34: warning: capture of 'd' with non-sendable type 'D' in a `@Sendable` closure; this is an error in the Swift 6 language mode
95 | }
96 |
97 | public func inject<A, B, C, D, R>(
| `- note: consider making generic parameter 'D' conform to the 'Sendable' protocol
98 | deps b: B,
99 | _ c: C,
:
102 | ) -> @Sendable (A) async throws -> R {
103 | { a in
104 | try await block(a, b, c, d)
| `- warning: capture of 'd' with non-sendable type 'D' in a `@Sendable` closure; this is an error in the Swift 6 language mode
105 | }
106 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/ThrowingInject.swift:116:28: warning: capture of 'b' with non-sendable type 'B' in a `@Sendable` closure; this is an error in the Swift 6 language mode
106 | }
107 |
108 | public func inject<A, B, C, D, E, R>(
| `- note: consider making generic parameter 'B' conform to the 'Sendable' protocol
109 | deps b: B,
110 | _ c: C,
:
114 | ) -> @Sendable (A) async throws -> R {
115 | { a in
116 | try await block(a, b, c, d, e)
| `- warning: capture of 'b' with non-sendable type 'B' in a `@Sendable` closure; this is an error in the Swift 6 language mode
117 | }
118 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/ThrowingInject.swift:116:31: warning: capture of 'c' with non-sendable type 'C' in a `@Sendable` closure; this is an error in the Swift 6 language mode
106 | }
107 |
108 | public func inject<A, B, C, D, E, R>(
| `- note: consider making generic parameter 'C' conform to the 'Sendable' protocol
109 | deps b: B,
110 | _ c: C,
:
114 | ) -> @Sendable (A) async throws -> R {
115 | { a in
116 | try await block(a, b, c, d, e)
| `- warning: capture of 'c' with non-sendable type 'C' in a `@Sendable` closure; this is an error in the Swift 6 language mode
117 | }
118 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/ThrowingInject.swift:116:34: warning: capture of 'd' with non-sendable type 'D' in a `@Sendable` closure; this is an error in the Swift 6 language mode
106 | }
107 |
108 | public func inject<A, B, C, D, E, R>(
| `- note: consider making generic parameter 'D' conform to the 'Sendable' protocol
109 | deps b: B,
110 | _ c: C,
:
114 | ) -> @Sendable (A) async throws -> R {
115 | { a in
116 | try await block(a, b, c, d, e)
| `- warning: capture of 'd' with non-sendable type 'D' in a `@Sendable` closure; this is an error in the Swift 6 language mode
117 | }
118 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/ThrowingInject.swift:116:37: warning: capture of 'e' with non-sendable type 'E' in a `@Sendable` closure; this is an error in the Swift 6 language mode
106 | }
107 |
108 | public func inject<A, B, C, D, E, R>(
| `- note: consider making generic parameter 'E' conform to the 'Sendable' protocol
109 | deps b: B,
110 | _ c: C,
:
114 | ) -> @Sendable (A) async throws -> R {
115 | { a in
116 | try await block(a, b, c, d, e)
| `- warning: capture of 'e' with non-sendable type 'E' in a `@Sendable` closure; this is an error in the Swift 6 language mode
117 | }
118 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/ThrowingInject.swift:129:28: warning: capture of 'b' with non-sendable type 'B' in a `@Sendable` closure; this is an error in the Swift 6 language mode
118 | }
119 |
120 | public func inject<A, B, C, D, E, F, R>(
| `- note: consider making generic parameter 'B' conform to the 'Sendable' protocol
121 | deps b: B,
122 | _ c: C,
:
127 | ) -> @Sendable (A) async throws -> R {
128 | { a in
129 | try await block(a, b, c, d, e, f)
| `- warning: capture of 'b' with non-sendable type 'B' in a `@Sendable` closure; this is an error in the Swift 6 language mode
130 | }
131 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/ThrowingInject.swift:129:31: warning: capture of 'c' with non-sendable type 'C' in a `@Sendable` closure; this is an error in the Swift 6 language mode
118 | }
119 |
120 | public func inject<A, B, C, D, E, F, R>(
| `- note: consider making generic parameter 'C' conform to the 'Sendable' protocol
121 | deps b: B,
122 | _ c: C,
:
127 | ) -> @Sendable (A) async throws -> R {
128 | { a in
129 | try await block(a, b, c, d, e, f)
| `- warning: capture of 'c' with non-sendable type 'C' in a `@Sendable` closure; this is an error in the Swift 6 language mode
130 | }
131 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/ThrowingInject.swift:129:34: warning: capture of 'd' with non-sendable type 'D' in a `@Sendable` closure; this is an error in the Swift 6 language mode
118 | }
119 |
120 | public func inject<A, B, C, D, E, F, R>(
| `- note: consider making generic parameter 'D' conform to the 'Sendable' protocol
121 | deps b: B,
122 | _ c: C,
:
127 | ) -> @Sendable (A) async throws -> R {
128 | { a in
129 | try await block(a, b, c, d, e, f)
| `- warning: capture of 'd' with non-sendable type 'D' in a `@Sendable` closure; this is an error in the Swift 6 language mode
130 | }
131 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/ThrowingInject.swift:129:37: warning: capture of 'e' with non-sendable type 'E' in a `@Sendable` closure; this is an error in the Swift 6 language mode
118 | }
119 |
120 | public func inject<A, B, C, D, E, F, R>(
| `- note: consider making generic parameter 'E' conform to the 'Sendable' protocol
121 | deps b: B,
122 | _ c: C,
:
127 | ) -> @Sendable (A) async throws -> R {
128 | { a in
129 | try await block(a, b, c, d, e, f)
| `- warning: capture of 'e' with non-sendable type 'E' in a `@Sendable` closure; this is an error in the Swift 6 language mode
130 | }
131 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/ThrowingInject.swift:129:40: warning: capture of 'f' with non-sendable type 'F' in a `@Sendable` closure; this is an error in the Swift 6 language mode
118 | }
119 |
120 | public func inject<A, B, C, D, E, F, R>(
| `- note: consider making generic parameter 'F' conform to the 'Sendable' protocol
121 | deps b: B,
122 | _ c: C,
:
127 | ) -> @Sendable (A) async throws -> R {
128 | { a in
129 | try await block(a, b, c, d, e, f)
| `- warning: capture of 'f' with non-sendable type 'F' in a `@Sendable` closure; this is an error in the Swift 6 language mode
130 | }
131 | }
/Users/admin/builder/spi-builder-workspace/Sources/XCTest/XCTStateMachine.swift:16:7: warning: type 'S' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
9 | import XCTestDynamicOverlay
10 |
11 | public class XCTStateMachine<S, E, O>
| `- note: consider making generic parameter 'S' conform to the 'Sendable' protocol
12 | where
13 | S: DSLCompatible & Equatable,
14 | E: DSLCompatible & Equatable,
15 | O: DSLCompatible & Equatable {
16 | let stateMachine: StateMachine<S, E, O>
| `- warning: type 'S' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
17 |
18 | public init(_ stateMachine: StateMachine<S, E, O>) {
/Users/admin/builder/spi-builder-workspace/Sources/XCTest/XCTStateMachine.swift:30:51: warning: type 'S' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
9 | import XCTestDynamicOverlay
10 |
11 | public class XCTStateMachine<S, E, O>
| `- note: consider making generic parameter 'S' conform to the 'Sendable' protocol
12 | where
13 | S: DSLCompatible & Equatable,
:
28 | ) async -> Self {
29 | for state in states {
30 | let receivedState = await self.stateMachine.reduce(when: state, on: event)
| `- warning: type 'S' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
31 | guard receivedState == expectedState else {
32 | fail(
/Users/admin/builder/spi-builder-workspace/Sources/XCTest/XCTStateMachine.swift:52:54: warning: type 'S' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
9 | import XCTestDynamicOverlay
10 |
11 | public class XCTStateMachine<S, E, O>
| `- note: consider making generic parameter 'S' conform to the 'Sendable' protocol
12 | where
13 | S: DSLCompatible & Equatable,
:
50 | ) async -> Self {
51 | for state in states {
52 | if let receivedState = await self.stateMachine.reduce(when: state, on: event) {
| `- warning: type 'S' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
53 | fail(
54 | """
/Users/admin/builder/spi-builder-workspace/Sources/XCTest/XCTStateMachine.swift:73:46: warning: type 'S' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
9 | import XCTestDynamicOverlay
10 |
11 | public class XCTStateMachine<S, E, O>
| `- note: consider making generic parameter 'S' conform to the 'Sendable' protocol
12 | where
13 | S: DSLCompatible & Equatable,
:
71 | ) -> Self {
72 | for state in states {
73 | let receivedOutput = self.stateMachine.output(for: state)
| `- warning: type 'S' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
74 | guard receivedOutput == expectedOutput else {
75 | onFail(
/Users/admin/builder/spi-builder-workspace/Sources/XCTest/XCTStateMachine.swift:94:49: warning: type 'S' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
9 | import XCTestDynamicOverlay
10 |
11 | public class XCTStateMachine<S, E, O>
| `- note: consider making generic parameter 'S' conform to the 'Sendable' protocol
12 | where
13 | S: DSLCompatible & Equatable,
:
92 | ) -> Self {
93 | for state in states {
94 | if let receivedOutput = self.stateMachine.output(for: state) {
| `- warning: type 'S' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
95 | onFail(
96 | """
[17/40] Compiling AsyncStateMachine Execute.swift
[18/40] Compiling AsyncStateMachine Guard.swift
[19/40] Compiling AsyncStateMachine Never+DSLCompatible.swift
[20/40] Compiling AsyncStateMachine AsyncOnEachSequence.swift
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/AsyncOnEachSequence.swift:10:5: warning: type 'Self' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
8 | extension AsyncSequence {
9 | func onEach(_ block: @Sendable @escaping (Element) async -> Void) -> AsyncOnEachSequence<Self> {
10 | AsyncOnEachSequence(self, onEach: block)
| `- warning: type 'Self' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
11 | }
12 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/AsyncOnEachSequence.swift:10:5: warning: type 'Self' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
8 | extension AsyncSequence {
9 | func onEach(_ block: @Sendable @escaping (Element) async -> Void) -> AsyncOnEachSequence<Self> {
10 | AsyncOnEachSequence(self, onEach: block)
| `- warning: type 'Self' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
11 | }
12 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/AsyncSerialSequence.swift:10:5: warning: type 'Self' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
8 | extension AsyncSequence {
9 | func serial() -> AsyncSerialSequence<Self> {
10 | AsyncSerialSequence(base: self)
| `- warning: type 'Self' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
11 | }
12 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/AsyncSerialSequence.swift:10:5: warning: type 'Self' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
8 | extension AsyncSequence {
9 | func serial() -> AsyncSerialSequence<Self> {
10 | AsyncSerialSequence(base: self)
| `- warning: type 'Self' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
11 | }
12 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/AsyncSerialSequence.swift:148:22: warning: 'withTaskCancellationHandler(handler:operation:)' is deprecated: renamed to 'withTaskCancellationHandler(operation:onCancel:)'
146 | let isCancelled = ManagedCriticalState<Bool>(false)
147 |
148 | return try await withTaskCancellationHandler { [weak self] in
| |- warning: 'withTaskCancellationHandler(handler:operation:)' is deprecated: renamed to 'withTaskCancellationHandler(operation:onCancel:)'
| `- note: use 'withTaskCancellationHandler(operation:onCancel:)' instead
149 | self?.handleNextCancellation(
150 | tokenId: tokenId,
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Binding+Debounce.swift:44:30: warning: capture of 'value' with non-sendable type 'Value' in a `@Sendable` closure; this is an error in the Swift 6 language mode
42 | Task {
43 | var timeToSleep = dueTime.nanoseconds
44 | var currentValue = value
| `- warning: capture of 'value' with non-sendable type 'Value' in a `@Sendable` closure; this is an error in the Swift 6 language mode
45 |
46 | repeat {
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Binding+Debounce.swift:47:13: warning: capture of 'lastKnownValue' with non-sendable type 'ManagedCriticalState<Binding<Value>.DueValue?>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
23 |
24 | extension Binding {
25 | struct DueValue {
| `- note: consider making struct 'DueValue' conform to the 'Sendable' protocol
26 | let value: Value
27 | let dueTime: DispatchTime
:
45 |
46 | repeat {
47 | lastKnownValue.apply(criticalState: nil)
| `- warning: capture of 'lastKnownValue' with non-sendable type 'ManagedCriticalState<Binding<Value>.DueValue?>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
48 |
49 | try? await Task.sleep(nanoseconds: timeToSleep)
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Binding+Debounce.swift:57:11: warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
55 | } while lastKnownValue.criticalState != nil
56 | debounceInProgress.apply(criticalState: false)
57 | self.wrappedValue = currentValue
| `- warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
58 | }
59 | }
SwiftUI.Binding:2:61: note: generic struct 'Binding' does not conform to the 'Sendable' protocol
1 | @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
2 | @frozen @propertyWrapper @dynamicMemberLookup public struct Binding<Value> {
| `- note: generic struct 'Binding' does not conform to the 'Sendable' protocol
3 | public var transaction: Transaction
4 | public init(get: @escaping () -> Value, set: @escaping (Value) -> Void)
[21/40] Compiling AsyncStateMachine AsyncSerialSequence.swift
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/AsyncOnEachSequence.swift:10:5: warning: type 'Self' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
8 | extension AsyncSequence {
9 | func onEach(_ block: @Sendable @escaping (Element) async -> Void) -> AsyncOnEachSequence<Self> {
10 | AsyncOnEachSequence(self, onEach: block)
| `- warning: type 'Self' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
11 | }
12 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/AsyncOnEachSequence.swift:10:5: warning: type 'Self' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
8 | extension AsyncSequence {
9 | func onEach(_ block: @Sendable @escaping (Element) async -> Void) -> AsyncOnEachSequence<Self> {
10 | AsyncOnEachSequence(self, onEach: block)
| `- warning: type 'Self' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
11 | }
12 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/AsyncSerialSequence.swift:10:5: warning: type 'Self' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
8 | extension AsyncSequence {
9 | func serial() -> AsyncSerialSequence<Self> {
10 | AsyncSerialSequence(base: self)
| `- warning: type 'Self' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
11 | }
12 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/AsyncSerialSequence.swift:10:5: warning: type 'Self' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
8 | extension AsyncSequence {
9 | func serial() -> AsyncSerialSequence<Self> {
10 | AsyncSerialSequence(base: self)
| `- warning: type 'Self' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
11 | }
12 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/AsyncSerialSequence.swift:148:22: warning: 'withTaskCancellationHandler(handler:operation:)' is deprecated: renamed to 'withTaskCancellationHandler(operation:onCancel:)'
146 | let isCancelled = ManagedCriticalState<Bool>(false)
147 |
148 | return try await withTaskCancellationHandler { [weak self] in
| |- warning: 'withTaskCancellationHandler(handler:operation:)' is deprecated: renamed to 'withTaskCancellationHandler(operation:onCancel:)'
| `- note: use 'withTaskCancellationHandler(operation:onCancel:)' instead
149 | self?.handleNextCancellation(
150 | tokenId: tokenId,
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Binding+Debounce.swift:44:30: warning: capture of 'value' with non-sendable type 'Value' in a `@Sendable` closure; this is an error in the Swift 6 language mode
42 | Task {
43 | var timeToSleep = dueTime.nanoseconds
44 | var currentValue = value
| `- warning: capture of 'value' with non-sendable type 'Value' in a `@Sendable` closure; this is an error in the Swift 6 language mode
45 |
46 | repeat {
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Binding+Debounce.swift:47:13: warning: capture of 'lastKnownValue' with non-sendable type 'ManagedCriticalState<Binding<Value>.DueValue?>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
23 |
24 | extension Binding {
25 | struct DueValue {
| `- note: consider making struct 'DueValue' conform to the 'Sendable' protocol
26 | let value: Value
27 | let dueTime: DispatchTime
:
45 |
46 | repeat {
47 | lastKnownValue.apply(criticalState: nil)
| `- warning: capture of 'lastKnownValue' with non-sendable type 'ManagedCriticalState<Binding<Value>.DueValue?>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
48 |
49 | try? await Task.sleep(nanoseconds: timeToSleep)
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Binding+Debounce.swift:57:11: warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
55 | } while lastKnownValue.criticalState != nil
56 | debounceInProgress.apply(criticalState: false)
57 | self.wrappedValue = currentValue
| `- warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
58 | }
59 | }
SwiftUI.Binding:2:61: note: generic struct 'Binding' does not conform to the 'Sendable' protocol
1 | @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
2 | @frozen @propertyWrapper @dynamicMemberLookup public struct Binding<Value> {
| `- note: generic struct 'Binding' does not conform to the 'Sendable' protocol
3 | public var transaction: Transaction
4 | public init(get: @escaping () -> Value, set: @escaping (Value) -> Void)
[22/40] Compiling AsyncStateMachine Binding+Debounce.swift
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/AsyncOnEachSequence.swift:10:5: warning: type 'Self' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
8 | extension AsyncSequence {
9 | func onEach(_ block: @Sendable @escaping (Element) async -> Void) -> AsyncOnEachSequence<Self> {
10 | AsyncOnEachSequence(self, onEach: block)
| `- warning: type 'Self' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
11 | }
12 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/AsyncOnEachSequence.swift:10:5: warning: type 'Self' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
8 | extension AsyncSequence {
9 | func onEach(_ block: @Sendable @escaping (Element) async -> Void) -> AsyncOnEachSequence<Self> {
10 | AsyncOnEachSequence(self, onEach: block)
| `- warning: type 'Self' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
11 | }
12 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/AsyncSerialSequence.swift:10:5: warning: type 'Self' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
8 | extension AsyncSequence {
9 | func serial() -> AsyncSerialSequence<Self> {
10 | AsyncSerialSequence(base: self)
| `- warning: type 'Self' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
11 | }
12 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/AsyncSerialSequence.swift:10:5: warning: type 'Self' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
8 | extension AsyncSequence {
9 | func serial() -> AsyncSerialSequence<Self> {
10 | AsyncSerialSequence(base: self)
| `- warning: type 'Self' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
11 | }
12 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/AsyncSerialSequence.swift:148:22: warning: 'withTaskCancellationHandler(handler:operation:)' is deprecated: renamed to 'withTaskCancellationHandler(operation:onCancel:)'
146 | let isCancelled = ManagedCriticalState<Bool>(false)
147 |
148 | return try await withTaskCancellationHandler { [weak self] in
| |- warning: 'withTaskCancellationHandler(handler:operation:)' is deprecated: renamed to 'withTaskCancellationHandler(operation:onCancel:)'
| `- note: use 'withTaskCancellationHandler(operation:onCancel:)' instead
149 | self?.handleNextCancellation(
150 | tokenId: tokenId,
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Binding+Debounce.swift:44:30: warning: capture of 'value' with non-sendable type 'Value' in a `@Sendable` closure; this is an error in the Swift 6 language mode
42 | Task {
43 | var timeToSleep = dueTime.nanoseconds
44 | var currentValue = value
| `- warning: capture of 'value' with non-sendable type 'Value' in a `@Sendable` closure; this is an error in the Swift 6 language mode
45 |
46 | repeat {
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Binding+Debounce.swift:47:13: warning: capture of 'lastKnownValue' with non-sendable type 'ManagedCriticalState<Binding<Value>.DueValue?>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
23 |
24 | extension Binding {
25 | struct DueValue {
| `- note: consider making struct 'DueValue' conform to the 'Sendable' protocol
26 | let value: Value
27 | let dueTime: DispatchTime
:
45 |
46 | repeat {
47 | lastKnownValue.apply(criticalState: nil)
| `- warning: capture of 'lastKnownValue' with non-sendable type 'ManagedCriticalState<Binding<Value>.DueValue?>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
48 |
49 | try? await Task.sleep(nanoseconds: timeToSleep)
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Binding+Debounce.swift:57:11: warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
55 | } while lastKnownValue.criticalState != nil
56 | debounceInProgress.apply(criticalState: false)
57 | self.wrappedValue = currentValue
| `- warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
58 | }
59 | }
SwiftUI.Binding:2:61: note: generic struct 'Binding' does not conform to the 'Sendable' protocol
1 | @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
2 | @frozen @propertyWrapper @dynamicMemberLookup public struct Binding<Value> {
| `- note: generic struct 'Binding' does not conform to the 'Sendable' protocol
3 | public var transaction: Transaction
4 | public init(get: @escaping () -> Value, set: @escaping (Value) -> Void)
[23/40] Compiling AsyncStateMachine AsyncBufferedChannel.swift
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/AsyncBufferedChannel.swift:123:18: warning: 'withTaskCancellationHandler(handler:operation:)' is deprecated: renamed to 'withTaskCancellationHandler(operation:onCancel:)'
121 | let cancellation = ManagedCriticalState<Bool>(false)
122 |
123 | return await withTaskCancellationHandler { [state] in
| |- warning: 'withTaskCancellationHandler(handler:operation:)' is deprecated: renamed to 'withTaskCancellationHandler(operation:onCancel:)'
| `- note: use 'withTaskCancellationHandler(operation:onCancel:)' instead
124 | let awaiting = state.withCriticalRegion { state -> Awaiting? in
125 | cancellation.apply(criticalState: true)
[24/40] Compiling AsyncStateMachine AsyncCompactScanSequence.swift
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/AsyncBufferedChannel.swift:123:18: warning: 'withTaskCancellationHandler(handler:operation:)' is deprecated: renamed to 'withTaskCancellationHandler(operation:onCancel:)'
121 | let cancellation = ManagedCriticalState<Bool>(false)
122 |
123 | return await withTaskCancellationHandler { [state] in
| |- warning: 'withTaskCancellationHandler(handler:operation:)' is deprecated: renamed to 'withTaskCancellationHandler(operation:onCancel:)'
| `- note: use 'withTaskCancellationHandler(operation:onCancel:)' instead
124 | let awaiting = state.withCriticalRegion { state -> Awaiting? in
125 | cancellation.apply(criticalState: true)
[25/40] Compiling AsyncStateMachine AsyncJustSequence.swift
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/AsyncBufferedChannel.swift:123:18: warning: 'withTaskCancellationHandler(handler:operation:)' is deprecated: renamed to 'withTaskCancellationHandler(operation:onCancel:)'
121 | let cancellation = ManagedCriticalState<Bool>(false)
122 |
123 | return await withTaskCancellationHandler { [state] in
| |- warning: 'withTaskCancellationHandler(handler:operation:)' is deprecated: renamed to 'withTaskCancellationHandler(operation:onCancel:)'
| `- note: use 'withTaskCancellationHandler(operation:onCancel:)' instead
124 | let awaiting = state.withCriticalRegion { state -> Awaiting? in
125 | cancellation.apply(criticalState: true)
[26/40] Compiling AsyncStateMachine Runtime.swift
/Users/admin/builder/spi-builder-workspace/Sources/Runtime/Runtime.swift:41:29: warning: capture of 'output' with non-sendable type 'O' in a `@Sendable` closure; this is an error in the Swift 6 language mode
20 | }
21 |
22 | public struct Runtime<S, E, O>: Sendable
| `- note: consider making generic parameter 'O' conform to the 'Sendable' protocol
23 | where S: DSLCompatible, E: DSLCompatible & Sendable, O: DSLCompatible {
24 | var sideEffects = [SideEffect<S, E, O>]()
:
39 |
40 | let predicate: @Sendable (O) -> Bool = { currentOutput in
41 | currentOutput.matches(output)
| `- warning: capture of 'output' with non-sendable type 'O' in a `@Sendable` closure; this is an error in the Swift 6 language mode
42 | }
43 |
/Users/admin/builder/spi-builder-workspace/Sources/Runtime/Runtime.swift:90:29: warning: capture of 'output' with non-sendable type '(OutputAssociatedValue) -> O' in a `@Sendable` closure; this is an error in the Swift 6 language mode
88 |
89 | let predicate: @Sendable (O) -> Bool = { currentOutput in
90 | currentOutput.matches(output)
| |- warning: capture of 'output' with non-sendable type '(OutputAssociatedValue) -> O' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
91 | }
92 |
/Users/admin/builder/spi-builder-workspace/Sources/Runtime/Runtime.swift:191:32: warning: capture of 'state' with non-sendable type 'S' in a `@Sendable` closure; this is an error in the Swift 6 language mode
20 | }
21 |
22 | public struct Runtime<S, E, O>: Sendable
| `- note: consider making generic parameter 'S' conform to the 'Sendable' protocol
23 | where S: DSLCompatible, E: DSLCompatible & Sendable, O: DSLCompatible {
24 | var sideEffects = [SideEffect<S, E, O>]()
:
189 | ) -> Self {
190 | return self.register(middleware: { (inputState: S) in
191 | guard inputState.matches(state) else { return }
| `- warning: capture of 'state' with non-sendable type 'S' in a `@Sendable` closure; this is an error in the Swift 6 language mode
192 | channel.push(event)
193 | })
/Users/admin/builder/spi-builder-workspace/Sources/Runtime/Runtime.swift:192:20: warning: capture of 'event' with non-sendable type 'OtherE' in a `@Sendable` closure; this is an error in the Swift 6 language mode
183 |
184 | @discardableResult
185 | public func connectAsSender<OtherE>(
| `- note: consider making generic parameter 'OtherE' conform to the 'Sendable' protocol
186 | to channel: Channel<OtherE>,
187 | when state: S,
:
190 | return self.register(middleware: { (inputState: S) in
191 | guard inputState.matches(state) else { return }
192 | channel.push(event)
| `- warning: capture of 'event' with non-sendable type 'OtherE' in a `@Sendable` closure; this is an error in the Swift 6 language mode
193 | })
194 | }
/Users/admin/builder/spi-builder-workspace/Sources/Runtime/Runtime.swift:203:62: warning: capture of 'state' with non-sendable type '(StateAssociatedValue) -> S' in a `@Sendable` closure; this is an error in the Swift 6 language mode
201 | ) -> Self {
202 | return self.register(middleware: { (inputState: S) in
203 | guard let value = inputState.associatedValue(matching: state)
| |- warning: capture of 'state' with non-sendable type '(StateAssociatedValue) -> S' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
204 | else { return }
205 | channel.push(event(value))
/Users/admin/builder/spi-builder-workspace/Sources/StateMachine/DSLCompatible.swift:61:19: warning: forming 'UnsafeRawPointer' to a variable of type 'Self'; this is likely incorrect because 'Self' may contain an object reference.
59 | var other = other
60 | // compare memory bitwise (should be the priviledged comparaison point)
61 | return memcmp(&me, &other, MemoryLayout<Self>.size) == 0 || me.label == other.label
| `- warning: forming 'UnsafeRawPointer' to a variable of type 'Self'; this is likely incorrect because 'Self' may contain an object reference.
62 | }
63 |
/Users/admin/builder/spi-builder-workspace/Sources/StateMachine/DSLCompatible.swift:61:24: warning: forming 'UnsafeRawPointer' to a variable of type 'Self'; this is likely incorrect because 'Self' may contain an object reference.
59 | var other = other
60 | // compare memory bitwise (should be the priviledged comparaison point)
61 | return memcmp(&me, &other, MemoryLayout<Self>.size) == 0 || me.label == other.label
| `- warning: forming 'UnsafeRawPointer' to a variable of type 'Self'; this is likely incorrect because 'Self' may contain an object reference.
62 | }
63 |
[27/40] Compiling AsyncStateMachine SideEffect.swift
/Users/admin/builder/spi-builder-workspace/Sources/Runtime/Runtime.swift:41:29: warning: capture of 'output' with non-sendable type 'O' in a `@Sendable` closure; this is an error in the Swift 6 language mode
20 | }
21 |
22 | public struct Runtime<S, E, O>: Sendable
| `- note: consider making generic parameter 'O' conform to the 'Sendable' protocol
23 | where S: DSLCompatible, E: DSLCompatible & Sendable, O: DSLCompatible {
24 | var sideEffects = [SideEffect<S, E, O>]()
:
39 |
40 | let predicate: @Sendable (O) -> Bool = { currentOutput in
41 | currentOutput.matches(output)
| `- warning: capture of 'output' with non-sendable type 'O' in a `@Sendable` closure; this is an error in the Swift 6 language mode
42 | }
43 |
/Users/admin/builder/spi-builder-workspace/Sources/Runtime/Runtime.swift:90:29: warning: capture of 'output' with non-sendable type '(OutputAssociatedValue) -> O' in a `@Sendable` closure; this is an error in the Swift 6 language mode
88 |
89 | let predicate: @Sendable (O) -> Bool = { currentOutput in
90 | currentOutput.matches(output)
| |- warning: capture of 'output' with non-sendable type '(OutputAssociatedValue) -> O' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
91 | }
92 |
/Users/admin/builder/spi-builder-workspace/Sources/Runtime/Runtime.swift:191:32: warning: capture of 'state' with non-sendable type 'S' in a `@Sendable` closure; this is an error in the Swift 6 language mode
20 | }
21 |
22 | public struct Runtime<S, E, O>: Sendable
| `- note: consider making generic parameter 'S' conform to the 'Sendable' protocol
23 | where S: DSLCompatible, E: DSLCompatible & Sendable, O: DSLCompatible {
24 | var sideEffects = [SideEffect<S, E, O>]()
:
189 | ) -> Self {
190 | return self.register(middleware: { (inputState: S) in
191 | guard inputState.matches(state) else { return }
| `- warning: capture of 'state' with non-sendable type 'S' in a `@Sendable` closure; this is an error in the Swift 6 language mode
192 | channel.push(event)
193 | })
/Users/admin/builder/spi-builder-workspace/Sources/Runtime/Runtime.swift:192:20: warning: capture of 'event' with non-sendable type 'OtherE' in a `@Sendable` closure; this is an error in the Swift 6 language mode
183 |
184 | @discardableResult
185 | public func connectAsSender<OtherE>(
| `- note: consider making generic parameter 'OtherE' conform to the 'Sendable' protocol
186 | to channel: Channel<OtherE>,
187 | when state: S,
:
190 | return self.register(middleware: { (inputState: S) in
191 | guard inputState.matches(state) else { return }
192 | channel.push(event)
| `- warning: capture of 'event' with non-sendable type 'OtherE' in a `@Sendable` closure; this is an error in the Swift 6 language mode
193 | })
194 | }
/Users/admin/builder/spi-builder-workspace/Sources/Runtime/Runtime.swift:203:62: warning: capture of 'state' with non-sendable type '(StateAssociatedValue) -> S' in a `@Sendable` closure; this is an error in the Swift 6 language mode
201 | ) -> Self {
202 | return self.register(middleware: { (inputState: S) in
203 | guard let value = inputState.associatedValue(matching: state)
| |- warning: capture of 'state' with non-sendable type '(StateAssociatedValue) -> S' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
204 | else { return }
205 | channel.push(event(value))
/Users/admin/builder/spi-builder-workspace/Sources/StateMachine/DSLCompatible.swift:61:19: warning: forming 'UnsafeRawPointer' to a variable of type 'Self'; this is likely incorrect because 'Self' may contain an object reference.
59 | var other = other
60 | // compare memory bitwise (should be the priviledged comparaison point)
61 | return memcmp(&me, &other, MemoryLayout<Self>.size) == 0 || me.label == other.label
| `- warning: forming 'UnsafeRawPointer' to a variable of type 'Self'; this is likely incorrect because 'Self' may contain an object reference.
62 | }
63 |
/Users/admin/builder/spi-builder-workspace/Sources/StateMachine/DSLCompatible.swift:61:24: warning: forming 'UnsafeRawPointer' to a variable of type 'Self'; this is likely incorrect because 'Self' may contain an object reference.
59 | var other = other
60 | // compare memory bitwise (should be the priviledged comparaison point)
61 | return memcmp(&me, &other, MemoryLayout<Self>.size) == 0 || me.label == other.label
| `- warning: forming 'UnsafeRawPointer' to a variable of type 'Self'; this is likely incorrect because 'Self' may contain an object reference.
62 | }
63 |
[28/40] Compiling AsyncStateMachine DSLCompatible.swift
/Users/admin/builder/spi-builder-workspace/Sources/Runtime/Runtime.swift:41:29: warning: capture of 'output' with non-sendable type 'O' in a `@Sendable` closure; this is an error in the Swift 6 language mode
20 | }
21 |
22 | public struct Runtime<S, E, O>: Sendable
| `- note: consider making generic parameter 'O' conform to the 'Sendable' protocol
23 | where S: DSLCompatible, E: DSLCompatible & Sendable, O: DSLCompatible {
24 | var sideEffects = [SideEffect<S, E, O>]()
:
39 |
40 | let predicate: @Sendable (O) -> Bool = { currentOutput in
41 | currentOutput.matches(output)
| `- warning: capture of 'output' with non-sendable type 'O' in a `@Sendable` closure; this is an error in the Swift 6 language mode
42 | }
43 |
/Users/admin/builder/spi-builder-workspace/Sources/Runtime/Runtime.swift:90:29: warning: capture of 'output' with non-sendable type '(OutputAssociatedValue) -> O' in a `@Sendable` closure; this is an error in the Swift 6 language mode
88 |
89 | let predicate: @Sendable (O) -> Bool = { currentOutput in
90 | currentOutput.matches(output)
| |- warning: capture of 'output' with non-sendable type '(OutputAssociatedValue) -> O' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
91 | }
92 |
/Users/admin/builder/spi-builder-workspace/Sources/Runtime/Runtime.swift:191:32: warning: capture of 'state' with non-sendable type 'S' in a `@Sendable` closure; this is an error in the Swift 6 language mode
20 | }
21 |
22 | public struct Runtime<S, E, O>: Sendable
| `- note: consider making generic parameter 'S' conform to the 'Sendable' protocol
23 | where S: DSLCompatible, E: DSLCompatible & Sendable, O: DSLCompatible {
24 | var sideEffects = [SideEffect<S, E, O>]()
:
189 | ) -> Self {
190 | return self.register(middleware: { (inputState: S) in
191 | guard inputState.matches(state) else { return }
| `- warning: capture of 'state' with non-sendable type 'S' in a `@Sendable` closure; this is an error in the Swift 6 language mode
192 | channel.push(event)
193 | })
/Users/admin/builder/spi-builder-workspace/Sources/Runtime/Runtime.swift:192:20: warning: capture of 'event' with non-sendable type 'OtherE' in a `@Sendable` closure; this is an error in the Swift 6 language mode
183 |
184 | @discardableResult
185 | public func connectAsSender<OtherE>(
| `- note: consider making generic parameter 'OtherE' conform to the 'Sendable' protocol
186 | to channel: Channel<OtherE>,
187 | when state: S,
:
190 | return self.register(middleware: { (inputState: S) in
191 | guard inputState.matches(state) else { return }
192 | channel.push(event)
| `- warning: capture of 'event' with non-sendable type 'OtherE' in a `@Sendable` closure; this is an error in the Swift 6 language mode
193 | })
194 | }
/Users/admin/builder/spi-builder-workspace/Sources/Runtime/Runtime.swift:203:62: warning: capture of 'state' with non-sendable type '(StateAssociatedValue) -> S' in a `@Sendable` closure; this is an error in the Swift 6 language mode
201 | ) -> Self {
202 | return self.register(middleware: { (inputState: S) in
203 | guard let value = inputState.associatedValue(matching: state)
| |- warning: capture of 'state' with non-sendable type '(StateAssociatedValue) -> S' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
204 | else { return }
205 | channel.push(event(value))
/Users/admin/builder/spi-builder-workspace/Sources/StateMachine/DSLCompatible.swift:61:19: warning: forming 'UnsafeRawPointer' to a variable of type 'Self'; this is likely incorrect because 'Self' may contain an object reference.
59 | var other = other
60 | // compare memory bitwise (should be the priviledged comparaison point)
61 | return memcmp(&me, &other, MemoryLayout<Self>.size) == 0 || me.label == other.label
| `- warning: forming 'UnsafeRawPointer' to a variable of type 'Self'; this is likely incorrect because 'Self' may contain an object reference.
62 | }
63 |
/Users/admin/builder/spi-builder-workspace/Sources/StateMachine/DSLCompatible.swift:61:24: warning: forming 'UnsafeRawPointer' to a variable of type 'Self'; this is likely incorrect because 'Self' may contain an object reference.
59 | var other = other
60 | // compare memory bitwise (should be the priviledged comparaison point)
61 | return memcmp(&me, &other, MemoryLayout<Self>.size) == 0 || me.label == other.label
| `- warning: forming 'UnsafeRawPointer' to a variable of type 'Self'; this is likely incorrect because 'Self' may contain an object reference.
62 | }
63 |
[29/40] Compiling AsyncStateMachine Transition.swift
/Users/admin/builder/spi-builder-workspace/Sources/StateMachine/When.swift:53:53: warning: capture of 'state' with non-sendable type 'S' in a `@Sendable` closure; this is an error in the Swift 6 language mode
6 | //
7 |
8 | public struct When<S, E, O>: Sendable
| `- note: consider making generic parameter 'S' conform to the 'Sendable' protocol
9 | where S: DSLCompatible, E: DSLCompatible, O: DSLCompatible {
10 | let predicate: @Sendable (S) -> Bool
:
51 | ) {
52 | self.init(
53 | predicate: { inputState in inputState.matches(state) },
| `- warning: capture of 'state' with non-sendable type 'S' in a `@Sendable` closure; this is an error in the Swift 6 language mode
54 | output: { inputState in execute(inputState).output },
55 | transitions: transitions
/Users/admin/builder/spi-builder-workspace/Sources/StateMachine/When.swift:76:53: warning: capture of 'state' with non-sendable type '(StateAssociatedValue) -> S' in a `@Sendable` closure; this is an error in the Swift 6 language mode
74 | ) {
75 | self.init(
76 | predicate: { inputState in inputState.matches(state) },
| |- warning: capture of 'state' with non-sendable type '(StateAssociatedValue) -> S' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
77 | output: { inputState in
78 | if let inputPayload = inputState.associatedValue(expecting: StateAssociatedValue.self) {
[30/40] Compiling AsyncStateMachine When.swift
/Users/admin/builder/spi-builder-workspace/Sources/StateMachine/When.swift:53:53: warning: capture of 'state' with non-sendable type 'S' in a `@Sendable` closure; this is an error in the Swift 6 language mode
6 | //
7 |
8 | public struct When<S, E, O>: Sendable
| `- note: consider making generic parameter 'S' conform to the 'Sendable' protocol
9 | where S: DSLCompatible, E: DSLCompatible, O: DSLCompatible {
10 | let predicate: @Sendable (S) -> Bool
:
51 | ) {
52 | self.init(
53 | predicate: { inputState in inputState.matches(state) },
| `- warning: capture of 'state' with non-sendable type 'S' in a `@Sendable` closure; this is an error in the Swift 6 language mode
54 | output: { inputState in execute(inputState).output },
55 | transitions: transitions
/Users/admin/builder/spi-builder-workspace/Sources/StateMachine/When.swift:76:53: warning: capture of 'state' with non-sendable type '(StateAssociatedValue) -> S' in a `@Sendable` closure; this is an error in the Swift 6 language mode
74 | ) {
75 | self.init(
76 | predicate: { inputState in inputState.matches(state) },
| |- warning: capture of 'state' with non-sendable type '(StateAssociatedValue) -> S' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
77 | output: { inputState in
78 | if let inputPayload = inputState.associatedValue(expecting: StateAssociatedValue.self) {
[31/40] Compiling AsyncStateMachine AnyAsyncSequence.swift
/Users/admin/builder/spi-builder-workspace/Sources/StateMachine/When.swift:53:53: warning: capture of 'state' with non-sendable type 'S' in a `@Sendable` closure; this is an error in the Swift 6 language mode
6 | //
7 |
8 | public struct When<S, E, O>: Sendable
| `- note: consider making generic parameter 'S' conform to the 'Sendable' protocol
9 | where S: DSLCompatible, E: DSLCompatible, O: DSLCompatible {
10 | let predicate: @Sendable (S) -> Bool
:
51 | ) {
52 | self.init(
53 | predicate: { inputState in inputState.matches(state) },
| `- warning: capture of 'state' with non-sendable type 'S' in a `@Sendable` closure; this is an error in the Swift 6 language mode
54 | output: { inputState in execute(inputState).output },
55 | transitions: transitions
/Users/admin/builder/spi-builder-workspace/Sources/StateMachine/When.swift:76:53: warning: capture of 'state' with non-sendable type '(StateAssociatedValue) -> S' in a `@Sendable` closure; this is an error in the Swift 6 language mode
74 | ) {
75 | self.init(
76 | predicate: { inputState in inputState.matches(state) },
| |- warning: capture of 'state' with non-sendable type '(StateAssociatedValue) -> S' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
77 | output: { inputState in
78 | if let inputPayload = inputState.associatedValue(expecting: StateAssociatedValue.self) {
[32/40] Compiling AsyncStateMachine On.swift
/Users/admin/builder/spi-builder-workspace/Sources/StateMachine/On.swift:23:26: warning: capture of 'event' with non-sendable type 'E' in a `@Sendable` closure; this is an error in the Swift 6 language mode
6 | //
7 |
8 | public struct On<S, E>: Sendable
| `- note: consider making generic parameter 'E' conform to the 'Sendable' protocol
9 | where S: DSLCompatible, E: DSLCompatible {
10 | // predicate and transition are 2 separate things because we want
:
21 | ) {
22 | self.predicate = { inputEvent in
23 | inputEvent.matches(event) && `guard`(inputEvent).predicate
| `- warning: capture of 'event' with non-sendable type 'E' in a `@Sendable` closure; this is an error in the Swift 6 language mode
24 | }
25 | self.transition = { inputEvent in await transition(inputEvent).state }
/Users/admin/builder/spi-builder-workspace/Sources/StateMachine/On.swift:46:35: warning: capture of 'event' with non-sendable type '(EventAssociatedValue) -> E' in a `@Sendable` closure; this is an error in the Swift 6 language mode
44 | self.predicate = { inputEvent in
45 | if let inputPayload = inputEvent.associatedValue(expecting: EventAssociatedValue.self) {
46 | return inputEvent.matches(event) &&
| |- warning: capture of 'event' with non-sendable type '(EventAssociatedValue) -> E' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
47 | `guard`(inputPayload).predicate
48 | }
/Users/admin/builder/spi-builder-workspace/Sources/StateMachine/OneOf.swift:41:37: warning: capture of 'components' with non-sendable type '((T) -> Bool)...' in a `@Sendable` closure; this is an error in the Swift 6 language mode
39 |
40 | public static func buildBlock(_ components: ((T) -> Bool)...) -> OneOf<T> {
41 | OneOf(predicate: { input in components.contains { $0(input) } })
| |- warning: capture of 'components' with non-sendable type '((T) -> Bool)...' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
42 | }
43 | }
[33/40] Compiling AsyncStateMachine OneOf.swift
/Users/admin/builder/spi-builder-workspace/Sources/StateMachine/On.swift:23:26: warning: capture of 'event' with non-sendable type 'E' in a `@Sendable` closure; this is an error in the Swift 6 language mode
6 | //
7 |
8 | public struct On<S, E>: Sendable
| `- note: consider making generic parameter 'E' conform to the 'Sendable' protocol
9 | where S: DSLCompatible, E: DSLCompatible {
10 | // predicate and transition are 2 separate things because we want
:
21 | ) {
22 | self.predicate = { inputEvent in
23 | inputEvent.matches(event) && `guard`(inputEvent).predicate
| `- warning: capture of 'event' with non-sendable type 'E' in a `@Sendable` closure; this is an error in the Swift 6 language mode
24 | }
25 | self.transition = { inputEvent in await transition(inputEvent).state }
/Users/admin/builder/spi-builder-workspace/Sources/StateMachine/On.swift:46:35: warning: capture of 'event' with non-sendable type '(EventAssociatedValue) -> E' in a `@Sendable` closure; this is an error in the Swift 6 language mode
44 | self.predicate = { inputEvent in
45 | if let inputPayload = inputEvent.associatedValue(expecting: EventAssociatedValue.self) {
46 | return inputEvent.matches(event) &&
| |- warning: capture of 'event' with non-sendable type '(EventAssociatedValue) -> E' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
47 | `guard`(inputPayload).predicate
48 | }
/Users/admin/builder/spi-builder-workspace/Sources/StateMachine/OneOf.swift:41:37: warning: capture of 'components' with non-sendable type '((T) -> Bool)...' in a `@Sendable` closure; this is an error in the Swift 6 language mode
39 |
40 | public static func buildBlock(_ components: ((T) -> Bool)...) -> OneOf<T> {
41 | OneOf(predicate: { input in components.contains { $0(input) } })
| |- warning: capture of 'components' with non-sendable type '((T) -> Bool)...' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
42 | }
43 | }
[34/40] Compiling AsyncStateMachine StateMachine.swift
/Users/admin/builder/spi-builder-workspace/Sources/StateMachine/On.swift:23:26: warning: capture of 'event' with non-sendable type 'E' in a `@Sendable` closure; this is an error in the Swift 6 language mode
6 | //
7 |
8 | public struct On<S, E>: Sendable
| `- note: consider making generic parameter 'E' conform to the 'Sendable' protocol
9 | where S: DSLCompatible, E: DSLCompatible {
10 | // predicate and transition are 2 separate things because we want
:
21 | ) {
22 | self.predicate = { inputEvent in
23 | inputEvent.matches(event) && `guard`(inputEvent).predicate
| `- warning: capture of 'event' with non-sendable type 'E' in a `@Sendable` closure; this is an error in the Swift 6 language mode
24 | }
25 | self.transition = { inputEvent in await transition(inputEvent).state }
/Users/admin/builder/spi-builder-workspace/Sources/StateMachine/On.swift:46:35: warning: capture of 'event' with non-sendable type '(EventAssociatedValue) -> E' in a `@Sendable` closure; this is an error in the Swift 6 language mode
44 | self.predicate = { inputEvent in
45 | if let inputPayload = inputEvent.associatedValue(expecting: EventAssociatedValue.self) {
46 | return inputEvent.matches(event) &&
| |- warning: capture of 'event' with non-sendable type '(EventAssociatedValue) -> E' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
47 | `guard`(inputPayload).predicate
48 | }
/Users/admin/builder/spi-builder-workspace/Sources/StateMachine/OneOf.swift:41:37: warning: capture of 'components' with non-sendable type '((T) -> Bool)...' in a `@Sendable` closure; this is an error in the Swift 6 language mode
39 |
40 | public static func buildBlock(_ components: ((T) -> Bool)...) -> OneOf<T> {
41 | OneOf(predicate: { input in components.contains { $0(input) } })
| |- warning: capture of 'components' with non-sendable type '((T) -> Bool)...' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
42 | }
43 | }
[35/40] Compiling AsyncStateMachine Binding+Distinct.swift
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:14:21: warning: capture of 'a' with non-sendable type 'A' in a `@Sendable` closure; this is an error in the Swift 6 language mode
7 |
8 | // swiftlint:disable identifier_name function_parameter_count
9 | public func inject<A, R>(
| `- note: consider making generic parameter 'A' conform to the 'Sendable' protocol
10 | dep a: A,
11 | in block: @Sendable @escaping (A) async -> R
12 | ) -> @Sendable () async -> R {
13 | {
14 | await block(a)
| `- warning: capture of 'a' with non-sendable type 'A' in a `@Sendable` closure; this is an error in the Swift 6 language mode
15 | }
16 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:24:21: warning: capture of 'a' with non-sendable type 'A' in a `@Sendable` closure; this is an error in the Swift 6 language mode
16 | }
17 |
18 | public func inject<A, B, R>(
| `- note: consider making generic parameter 'A' conform to the 'Sendable' protocol
19 | deps a: A,
20 | _ b: B,
:
22 | ) -> @Sendable () async -> R {
23 | {
24 | await block(a, b)
| `- warning: capture of 'a' with non-sendable type 'A' in a `@Sendable` closure; this is an error in the Swift 6 language mode
25 | }
26 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:24:24: warning: capture of 'b' with non-sendable type 'B' in a `@Sendable` closure; this is an error in the Swift 6 language mode
16 | }
17 |
18 | public func inject<A, B, R>(
| `- note: consider making generic parameter 'B' conform to the 'Sendable' protocol
19 | deps a: A,
20 | _ b: B,
:
22 | ) -> @Sendable () async -> R {
23 | {
24 | await block(a, b)
| `- warning: capture of 'b' with non-sendable type 'B' in a `@Sendable` closure; this is an error in the Swift 6 language mode
25 | }
26 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:35:21: warning: capture of 'a' with non-sendable type 'A' in a `@Sendable` closure; this is an error in the Swift 6 language mode
26 | }
27 |
28 | public func inject<A, B, C, R>(
| `- note: consider making generic parameter 'A' conform to the 'Sendable' protocol
29 | deps a: A,
30 | _ b: B,
:
33 | ) -> @Sendable () async -> R {
34 | {
35 | await block(a, b, c)
| `- warning: capture of 'a' with non-sendable type 'A' in a `@Sendable` closure; this is an error in the Swift 6 language mode
36 | }
37 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:35:24: warning: capture of 'b' with non-sendable type 'B' in a `@Sendable` closure; this is an error in the Swift 6 language mode
26 | }
27 |
28 | public func inject<A, B, C, R>(
| `- note: consider making generic parameter 'B' conform to the 'Sendable' protocol
29 | deps a: A,
30 | _ b: B,
:
33 | ) -> @Sendable () async -> R {
34 | {
35 | await block(a, b, c)
| `- warning: capture of 'b' with non-sendable type 'B' in a `@Sendable` closure; this is an error in the Swift 6 language mode
36 | }
37 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:35:27: warning: capture of 'c' with non-sendable type 'C' in a `@Sendable` closure; this is an error in the Swift 6 language mode
26 | }
27 |
28 | public func inject<A, B, C, R>(
| `- note: consider making generic parameter 'C' conform to the 'Sendable' protocol
29 | deps a: A,
30 | _ b: B,
:
33 | ) -> @Sendable () async -> R {
34 | {
35 | await block(a, b, c)
| `- warning: capture of 'c' with non-sendable type 'C' in a `@Sendable` closure; this is an error in the Swift 6 language mode
36 | }
37 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:47:21: warning: capture of 'a' with non-sendable type 'A' in a `@Sendable` closure; this is an error in the Swift 6 language mode
37 | }
38 |
39 | public func inject<A, B, C, D, R>(
| `- note: consider making generic parameter 'A' conform to the 'Sendable' protocol
40 | deps a: A,
41 | _ b: B,
:
45 | ) -> @Sendable () async -> R {
46 | {
47 | await block(a, b, c, d)
| `- warning: capture of 'a' with non-sendable type 'A' in a `@Sendable` closure; this is an error in the Swift 6 language mode
48 | }
49 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:47:24: warning: capture of 'b' with non-sendable type 'B' in a `@Sendable` closure; this is an error in the Swift 6 language mode
37 | }
38 |
39 | public func inject<A, B, C, D, R>(
| `- note: consider making generic parameter 'B' conform to the 'Sendable' protocol
40 | deps a: A,
41 | _ b: B,
:
45 | ) -> @Sendable () async -> R {
46 | {
47 | await block(a, b, c, d)
| `- warning: capture of 'b' with non-sendable type 'B' in a `@Sendable` closure; this is an error in the Swift 6 language mode
48 | }
49 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:47:27: warning: capture of 'c' with non-sendable type 'C' in a `@Sendable` closure; this is an error in the Swift 6 language mode
37 | }
38 |
39 | public func inject<A, B, C, D, R>(
| `- note: consider making generic parameter 'C' conform to the 'Sendable' protocol
40 | deps a: A,
41 | _ b: B,
:
45 | ) -> @Sendable () async -> R {
46 | {
47 | await block(a, b, c, d)
| `- warning: capture of 'c' with non-sendable type 'C' in a `@Sendable` closure; this is an error in the Swift 6 language mode
48 | }
49 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:47:30: warning: capture of 'd' with non-sendable type 'D' in a `@Sendable` closure; this is an error in the Swift 6 language mode
37 | }
38 |
39 | public func inject<A, B, C, D, R>(
| `- note: consider making generic parameter 'D' conform to the 'Sendable' protocol
40 | deps a: A,
41 | _ b: B,
:
45 | ) -> @Sendable () async -> R {
46 | {
47 | await block(a, b, c, d)
| `- warning: capture of 'd' with non-sendable type 'D' in a `@Sendable` closure; this is an error in the Swift 6 language mode
48 | }
49 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:60:21: warning: capture of 'a' with non-sendable type 'A' in a `@Sendable` closure; this is an error in the Swift 6 language mode
49 | }
50 |
51 | public func inject<A, B, C, D, E, R>(
| `- note: consider making generic parameter 'A' conform to the 'Sendable' protocol
52 | deps a: A,
53 | _ b: B,
:
58 | ) -> @Sendable () async -> R {
59 | {
60 | await block(a, b, c, d, e)
| `- warning: capture of 'a' with non-sendable type 'A' in a `@Sendable` closure; this is an error in the Swift 6 language mode
61 | }
62 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:60:24: warning: capture of 'b' with non-sendable type 'B' in a `@Sendable` closure; this is an error in the Swift 6 language mode
49 | }
50 |
51 | public func inject<A, B, C, D, E, R>(
| `- note: consider making generic parameter 'B' conform to the 'Sendable' protocol
52 | deps a: A,
53 | _ b: B,
:
58 | ) -> @Sendable () async -> R {
59 | {
60 | await block(a, b, c, d, e)
| `- warning: capture of 'b' with non-sendable type 'B' in a `@Sendable` closure; this is an error in the Swift 6 language mode
61 | }
62 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:60:27: warning: capture of 'c' with non-sendable type 'C' in a `@Sendable` closure; this is an error in the Swift 6 language mode
49 | }
50 |
51 | public func inject<A, B, C, D, E, R>(
| `- note: consider making generic parameter 'C' conform to the 'Sendable' protocol
52 | deps a: A,
53 | _ b: B,
:
58 | ) -> @Sendable () async -> R {
59 | {
60 | await block(a, b, c, d, e)
| `- warning: capture of 'c' with non-sendable type 'C' in a `@Sendable` closure; this is an error in the Swift 6 language mode
61 | }
62 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:60:30: warning: capture of 'd' with non-sendable type 'D' in a `@Sendable` closure; this is an error in the Swift 6 language mode
49 | }
50 |
51 | public func inject<A, B, C, D, E, R>(
| `- note: consider making generic parameter 'D' conform to the 'Sendable' protocol
52 | deps a: A,
53 | _ b: B,
:
58 | ) -> @Sendable () async -> R {
59 | {
60 | await block(a, b, c, d, e)
| `- warning: capture of 'd' with non-sendable type 'D' in a `@Sendable` closure; this is an error in the Swift 6 language mode
61 | }
62 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:60:33: warning: capture of 'e' with non-sendable type 'E' in a `@Sendable` closure; this is an error in the Swift 6 language mode
49 | }
50 |
51 | public func inject<A, B, C, D, E, R>(
| `- note: consider making generic parameter 'E' conform to the 'Sendable' protocol
52 | deps a: A,
53 | _ b: B,
:
58 | ) -> @Sendable () async -> R {
59 | {
60 | await block(a, b, c, d, e)
| `- warning: capture of 'e' with non-sendable type 'E' in a `@Sendable` closure; this is an error in the Swift 6 language mode
61 | }
62 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:74:21: warning: capture of 'a' with non-sendable type 'A' in a `@Sendable` closure; this is an error in the Swift 6 language mode
62 | }
63 |
64 | public func inject<A, B, C, D, E, F, R>(
| `- note: consider making generic parameter 'A' conform to the 'Sendable' protocol
65 | deps a: A,
66 | _ b: B,
:
72 | ) -> @Sendable () async -> R {
73 | {
74 | await block(a, b, c, d, e, f)
| `- warning: capture of 'a' with non-sendable type 'A' in a `@Sendable` closure; this is an error in the Swift 6 language mode
75 | }
76 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:74:24: warning: capture of 'b' with non-sendable type 'B' in a `@Sendable` closure; this is an error in the Swift 6 language mode
62 | }
63 |
64 | public func inject<A, B, C, D, E, F, R>(
| `- note: consider making generic parameter 'B' conform to the 'Sendable' protocol
65 | deps a: A,
66 | _ b: B,
:
72 | ) -> @Sendable () async -> R {
73 | {
74 | await block(a, b, c, d, e, f)
| `- warning: capture of 'b' with non-sendable type 'B' in a `@Sendable` closure; this is an error in the Swift 6 language mode
75 | }
76 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:74:27: warning: capture of 'c' with non-sendable type 'C' in a `@Sendable` closure; this is an error in the Swift 6 language mode
62 | }
63 |
64 | public func inject<A, B, C, D, E, F, R>(
| `- note: consider making generic parameter 'C' conform to the 'Sendable' protocol
65 | deps a: A,
66 | _ b: B,
:
72 | ) -> @Sendable () async -> R {
73 | {
74 | await block(a, b, c, d, e, f)
| `- warning: capture of 'c' with non-sendable type 'C' in a `@Sendable` closure; this is an error in the Swift 6 language mode
75 | }
76 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:74:30: warning: capture of 'd' with non-sendable type 'D' in a `@Sendable` closure; this is an error in the Swift 6 language mode
62 | }
63 |
64 | public func inject<A, B, C, D, E, F, R>(
| `- note: consider making generic parameter 'D' conform to the 'Sendable' protocol
65 | deps a: A,
66 | _ b: B,
:
72 | ) -> @Sendable () async -> R {
73 | {
74 | await block(a, b, c, d, e, f)
| `- warning: capture of 'd' with non-sendable type 'D' in a `@Sendable` closure; this is an error in the Swift 6 language mode
75 | }
76 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:74:33: warning: capture of 'e' with non-sendable type 'E' in a `@Sendable` closure; this is an error in the Swift 6 language mode
62 | }
63 |
64 | public func inject<A, B, C, D, E, F, R>(
| `- note: consider making generic parameter 'E' conform to the 'Sendable' protocol
65 | deps a: A,
66 | _ b: B,
:
72 | ) -> @Sendable () async -> R {
73 | {
74 | await block(a, b, c, d, e, f)
| `- warning: capture of 'e' with non-sendable type 'E' in a `@Sendable` closure; this is an error in the Swift 6 language mode
75 | }
76 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:74:36: warning: capture of 'f' with non-sendable type 'F' in a `@Sendable` closure; this is an error in the Swift 6 language mode
62 | }
63 |
64 | public func inject<A, B, C, D, E, F, R>(
| `- note: consider making generic parameter 'F' conform to the 'Sendable' protocol
65 | deps a: A,
66 | _ b: B,
:
72 | ) -> @Sendable () async -> R {
73 | {
74 | await block(a, b, c, d, e, f)
| `- warning: capture of 'f' with non-sendable type 'F' in a `@Sendable` closure; this is an error in the Swift 6 language mode
75 | }
76 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:83:24: warning: capture of 'b' with non-sendable type 'B' in a `@Sendable` closure; this is an error in the Swift 6 language mode
76 | }
77 |
78 | public func inject<A, B, R>(
| `- note: consider making generic parameter 'B' conform to the 'Sendable' protocol
79 | dep b: B,
80 | in block: @Sendable @escaping (A, B) async -> R
81 | ) -> @Sendable (A) async -> R {
82 | { a in
83 | await block(a, b)
| `- warning: capture of 'b' with non-sendable type 'B' in a `@Sendable` closure; this is an error in the Swift 6 language mode
84 | }
85 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:93:24: warning: capture of 'b' with non-sendable type 'B' in a `@Sendable` closure; this is an error in the Swift 6 language mode
85 | }
86 |
87 | public func inject<A, B, C, R>(
| `- note: consider making generic parameter 'B' conform to the 'Sendable' protocol
88 | deps b: B,
89 | _ c: C,
:
91 | ) -> @Sendable (A) async -> R {
92 | { a in
93 | await block(a, b, c)
| `- warning: capture of 'b' with non-sendable type 'B' in a `@Sendable` closure; this is an error in the Swift 6 language mode
94 | }
95 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:93:27: warning: capture of 'c' with non-sendable type 'C' in a `@Sendable` closure; this is an error in the Swift 6 language mode
85 | }
86 |
87 | public func inject<A, B, C, R>(
| `- note: consider making generic parameter 'C' conform to the 'Sendable' protocol
88 | deps b: B,
89 | _ c: C,
:
91 | ) -> @Sendable (A) async -> R {
92 | { a in
93 | await block(a, b, c)
| `- warning: capture of 'c' with non-sendable type 'C' in a `@Sendable` closure; this is an error in the Swift 6 language mode
94 | }
95 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:104:24: warning: capture of 'b' with non-sendable type 'B' in a `@Sendable` closure; this is an error in the Swift 6 language mode
95 | }
96 |
97 | public func inject<A, B, C, D, R>(
| `- note: consider making generic parameter 'B' conform to the 'Sendable' protocol
98 | deps b: B,
99 | _ c: C,
:
102 | ) -> @Sendable (A) async -> R {
103 | { a in
104 | await block(a, b, c, d)
| `- warning: capture of 'b' with non-sendable type 'B' in a `@Sendable` closure; this is an error in the Swift 6 language mode
105 | }
106 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:104:27: warning: capture of 'c' with non-sendable type 'C' in a `@Sendable` closure; this is an error in the Swift 6 language mode
95 | }
96 |
97 | public func inject<A, B, C, D, R>(
| `- note: consider making generic parameter 'C' conform to the 'Sendable' protocol
98 | deps b: B,
99 | _ c: C,
:
102 | ) -> @Sendable (A) async -> R {
103 | { a in
104 | await block(a, b, c, d)
| `- warning: capture of 'c' with non-sendable type 'C' in a `@Sendable` closure; this is an error in the Swift 6 language mode
105 | }
106 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:104:30: warning: capture of 'd' with non-sendable type 'D' in a `@Sendable` closure; this is an error in the Swift 6 language mode
95 | }
96 |
97 | public func inject<A, B, C, D, R>(
| `- note: consider making generic parameter 'D' conform to the 'Sendable' protocol
98 | deps b: B,
99 | _ c: C,
:
102 | ) -> @Sendable (A) async -> R {
103 | { a in
104 | await block(a, b, c, d)
| `- warning: capture of 'd' with non-sendable type 'D' in a `@Sendable` closure; this is an error in the Swift 6 language mode
105 | }
106 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:116:24: warning: capture of 'b' with non-sendable type 'B' in a `@Sendable` closure; this is an error in the Swift 6 language mode
106 | }
107 |
108 | public func inject<A, B, C, D, E, R>(
| `- note: consider making generic parameter 'B' conform to the 'Sendable' protocol
109 | deps b: B,
110 | _ c: C,
:
114 | ) -> @Sendable (A) async -> R {
115 | { a in
116 | await block(a, b, c, d, e)
| `- warning: capture of 'b' with non-sendable type 'B' in a `@Sendable` closure; this is an error in the Swift 6 language mode
117 | }
118 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:116:27: warning: capture of 'c' with non-sendable type 'C' in a `@Sendable` closure; this is an error in the Swift 6 language mode
106 | }
107 |
108 | public func inject<A, B, C, D, E, R>(
| `- note: consider making generic parameter 'C' conform to the 'Sendable' protocol
109 | deps b: B,
110 | _ c: C,
:
114 | ) -> @Sendable (A) async -> R {
115 | { a in
116 | await block(a, b, c, d, e)
| `- warning: capture of 'c' with non-sendable type 'C' in a `@Sendable` closure; this is an error in the Swift 6 language mode
117 | }
118 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:116:30: warning: capture of 'd' with non-sendable type 'D' in a `@Sendable` closure; this is an error in the Swift 6 language mode
106 | }
107 |
108 | public func inject<A, B, C, D, E, R>(
| `- note: consider making generic parameter 'D' conform to the 'Sendable' protocol
109 | deps b: B,
110 | _ c: C,
:
114 | ) -> @Sendable (A) async -> R {
115 | { a in
116 | await block(a, b, c, d, e)
| `- warning: capture of 'd' with non-sendable type 'D' in a `@Sendable` closure; this is an error in the Swift 6 language mode
117 | }
118 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:116:33: warning: capture of 'e' with non-sendable type 'E' in a `@Sendable` closure; this is an error in the Swift 6 language mode
106 | }
107 |
108 | public func inject<A, B, C, D, E, R>(
| `- note: consider making generic parameter 'E' conform to the 'Sendable' protocol
109 | deps b: B,
110 | _ c: C,
:
114 | ) -> @Sendable (A) async -> R {
115 | { a in
116 | await block(a, b, c, d, e)
| `- warning: capture of 'e' with non-sendable type 'E' in a `@Sendable` closure; this is an error in the Swift 6 language mode
117 | }
118 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:129:24: warning: capture of 'b' with non-sendable type 'B' in a `@Sendable` closure; this is an error in the Swift 6 language mode
118 | }
119 |
120 | public func inject<A, B, C, D, E, F, R>(
| `- note: consider making generic parameter 'B' conform to the 'Sendable' protocol
121 | deps b: B,
122 | _ c: C,
:
127 | ) -> @Sendable (A) async -> R {
128 | { a in
129 | await block(a, b, c, d, e, f)
| `- warning: capture of 'b' with non-sendable type 'B' in a `@Sendable` closure; this is an error in the Swift 6 language mode
130 | }
131 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:129:27: warning: capture of 'c' with non-sendable type 'C' in a `@Sendable` closure; this is an error in the Swift 6 language mode
118 | }
119 |
120 | public func inject<A, B, C, D, E, F, R>(
| `- note: consider making generic parameter 'C' conform to the 'Sendable' protocol
121 | deps b: B,
122 | _ c: C,
:
127 | ) -> @Sendable (A) async -> R {
128 | { a in
129 | await block(a, b, c, d, e, f)
| `- warning: capture of 'c' with non-sendable type 'C' in a `@Sendable` closure; this is an error in the Swift 6 language mode
130 | }
131 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:129:30: warning: capture of 'd' with non-sendable type 'D' in a `@Sendable` closure; this is an error in the Swift 6 language mode
118 | }
119 |
120 | public func inject<A, B, C, D, E, F, R>(
| `- note: consider making generic parameter 'D' conform to the 'Sendable' protocol
121 | deps b: B,
122 | _ c: C,
:
127 | ) -> @Sendable (A) async -> R {
128 | { a in
129 | await block(a, b, c, d, e, f)
| `- warning: capture of 'd' with non-sendable type 'D' in a `@Sendable` closure; this is an error in the Swift 6 language mode
130 | }
131 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:129:33: warning: capture of 'e' with non-sendable type 'E' in a `@Sendable` closure; this is an error in the Swift 6 language mode
118 | }
119 |
120 | public func inject<A, B, C, D, E, F, R>(
| `- note: consider making generic parameter 'E' conform to the 'Sendable' protocol
121 | deps b: B,
122 | _ c: C,
:
127 | ) -> @Sendable (A) async -> R {
128 | { a in
129 | await block(a, b, c, d, e, f)
| `- warning: capture of 'e' with non-sendable type 'E' in a `@Sendable` closure; this is an error in the Swift 6 language mode
130 | }
131 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:129:36: warning: capture of 'f' with non-sendable type 'F' in a `@Sendable` closure; this is an error in the Swift 6 language mode
118 | }
119 |
120 | public func inject<A, B, C, D, E, F, R>(
| `- note: consider making generic parameter 'F' conform to the 'Sendable' protocol
121 | deps b: B,
122 | _ c: C,
:
127 | ) -> @Sendable (A) async -> R {
128 | { a in
129 | await block(a, b, c, d, e, f)
| `- warning: capture of 'f' with non-sendable type 'F' in a `@Sendable` closure; this is an error in the Swift 6 language mode
130 | }
131 | }
[36/40] Compiling AsyncStateMachine Inject.swift
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:14:21: warning: capture of 'a' with non-sendable type 'A' in a `@Sendable` closure; this is an error in the Swift 6 language mode
7 |
8 | // swiftlint:disable identifier_name function_parameter_count
9 | public func inject<A, R>(
| `- note: consider making generic parameter 'A' conform to the 'Sendable' protocol
10 | dep a: A,
11 | in block: @Sendable @escaping (A) async -> R
12 | ) -> @Sendable () async -> R {
13 | {
14 | await block(a)
| `- warning: capture of 'a' with non-sendable type 'A' in a `@Sendable` closure; this is an error in the Swift 6 language mode
15 | }
16 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:24:21: warning: capture of 'a' with non-sendable type 'A' in a `@Sendable` closure; this is an error in the Swift 6 language mode
16 | }
17 |
18 | public func inject<A, B, R>(
| `- note: consider making generic parameter 'A' conform to the 'Sendable' protocol
19 | deps a: A,
20 | _ b: B,
:
22 | ) -> @Sendable () async -> R {
23 | {
24 | await block(a, b)
| `- warning: capture of 'a' with non-sendable type 'A' in a `@Sendable` closure; this is an error in the Swift 6 language mode
25 | }
26 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:24:24: warning: capture of 'b' with non-sendable type 'B' in a `@Sendable` closure; this is an error in the Swift 6 language mode
16 | }
17 |
18 | public func inject<A, B, R>(
| `- note: consider making generic parameter 'B' conform to the 'Sendable' protocol
19 | deps a: A,
20 | _ b: B,
:
22 | ) -> @Sendable () async -> R {
23 | {
24 | await block(a, b)
| `- warning: capture of 'b' with non-sendable type 'B' in a `@Sendable` closure; this is an error in the Swift 6 language mode
25 | }
26 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:35:21: warning: capture of 'a' with non-sendable type 'A' in a `@Sendable` closure; this is an error in the Swift 6 language mode
26 | }
27 |
28 | public func inject<A, B, C, R>(
| `- note: consider making generic parameter 'A' conform to the 'Sendable' protocol
29 | deps a: A,
30 | _ b: B,
:
33 | ) -> @Sendable () async -> R {
34 | {
35 | await block(a, b, c)
| `- warning: capture of 'a' with non-sendable type 'A' in a `@Sendable` closure; this is an error in the Swift 6 language mode
36 | }
37 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:35:24: warning: capture of 'b' with non-sendable type 'B' in a `@Sendable` closure; this is an error in the Swift 6 language mode
26 | }
27 |
28 | public func inject<A, B, C, R>(
| `- note: consider making generic parameter 'B' conform to the 'Sendable' protocol
29 | deps a: A,
30 | _ b: B,
:
33 | ) -> @Sendable () async -> R {
34 | {
35 | await block(a, b, c)
| `- warning: capture of 'b' with non-sendable type 'B' in a `@Sendable` closure; this is an error in the Swift 6 language mode
36 | }
37 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:35:27: warning: capture of 'c' with non-sendable type 'C' in a `@Sendable` closure; this is an error in the Swift 6 language mode
26 | }
27 |
28 | public func inject<A, B, C, R>(
| `- note: consider making generic parameter 'C' conform to the 'Sendable' protocol
29 | deps a: A,
30 | _ b: B,
:
33 | ) -> @Sendable () async -> R {
34 | {
35 | await block(a, b, c)
| `- warning: capture of 'c' with non-sendable type 'C' in a `@Sendable` closure; this is an error in the Swift 6 language mode
36 | }
37 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:47:21: warning: capture of 'a' with non-sendable type 'A' in a `@Sendable` closure; this is an error in the Swift 6 language mode
37 | }
38 |
39 | public func inject<A, B, C, D, R>(
| `- note: consider making generic parameter 'A' conform to the 'Sendable' protocol
40 | deps a: A,
41 | _ b: B,
:
45 | ) -> @Sendable () async -> R {
46 | {
47 | await block(a, b, c, d)
| `- warning: capture of 'a' with non-sendable type 'A' in a `@Sendable` closure; this is an error in the Swift 6 language mode
48 | }
49 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:47:24: warning: capture of 'b' with non-sendable type 'B' in a `@Sendable` closure; this is an error in the Swift 6 language mode
37 | }
38 |
39 | public func inject<A, B, C, D, R>(
| `- note: consider making generic parameter 'B' conform to the 'Sendable' protocol
40 | deps a: A,
41 | _ b: B,
:
45 | ) -> @Sendable () async -> R {
46 | {
47 | await block(a, b, c, d)
| `- warning: capture of 'b' with non-sendable type 'B' in a `@Sendable` closure; this is an error in the Swift 6 language mode
48 | }
49 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:47:27: warning: capture of 'c' with non-sendable type 'C' in a `@Sendable` closure; this is an error in the Swift 6 language mode
37 | }
38 |
39 | public func inject<A, B, C, D, R>(
| `- note: consider making generic parameter 'C' conform to the 'Sendable' protocol
40 | deps a: A,
41 | _ b: B,
:
45 | ) -> @Sendable () async -> R {
46 | {
47 | await block(a, b, c, d)
| `- warning: capture of 'c' with non-sendable type 'C' in a `@Sendable` closure; this is an error in the Swift 6 language mode
48 | }
49 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:47:30: warning: capture of 'd' with non-sendable type 'D' in a `@Sendable` closure; this is an error in the Swift 6 language mode
37 | }
38 |
39 | public func inject<A, B, C, D, R>(
| `- note: consider making generic parameter 'D' conform to the 'Sendable' protocol
40 | deps a: A,
41 | _ b: B,
:
45 | ) -> @Sendable () async -> R {
46 | {
47 | await block(a, b, c, d)
| `- warning: capture of 'd' with non-sendable type 'D' in a `@Sendable` closure; this is an error in the Swift 6 language mode
48 | }
49 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:60:21: warning: capture of 'a' with non-sendable type 'A' in a `@Sendable` closure; this is an error in the Swift 6 language mode
49 | }
50 |
51 | public func inject<A, B, C, D, E, R>(
| `- note: consider making generic parameter 'A' conform to the 'Sendable' protocol
52 | deps a: A,
53 | _ b: B,
:
58 | ) -> @Sendable () async -> R {
59 | {
60 | await block(a, b, c, d, e)
| `- warning: capture of 'a' with non-sendable type 'A' in a `@Sendable` closure; this is an error in the Swift 6 language mode
61 | }
62 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:60:24: warning: capture of 'b' with non-sendable type 'B' in a `@Sendable` closure; this is an error in the Swift 6 language mode
49 | }
50 |
51 | public func inject<A, B, C, D, E, R>(
| `- note: consider making generic parameter 'B' conform to the 'Sendable' protocol
52 | deps a: A,
53 | _ b: B,
:
58 | ) -> @Sendable () async -> R {
59 | {
60 | await block(a, b, c, d, e)
| `- warning: capture of 'b' with non-sendable type 'B' in a `@Sendable` closure; this is an error in the Swift 6 language mode
61 | }
62 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:60:27: warning: capture of 'c' with non-sendable type 'C' in a `@Sendable` closure; this is an error in the Swift 6 language mode
49 | }
50 |
51 | public func inject<A, B, C, D, E, R>(
| `- note: consider making generic parameter 'C' conform to the 'Sendable' protocol
52 | deps a: A,
53 | _ b: B,
:
58 | ) -> @Sendable () async -> R {
59 | {
60 | await block(a, b, c, d, e)
| `- warning: capture of 'c' with non-sendable type 'C' in a `@Sendable` closure; this is an error in the Swift 6 language mode
61 | }
62 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:60:30: warning: capture of 'd' with non-sendable type 'D' in a `@Sendable` closure; this is an error in the Swift 6 language mode
49 | }
50 |
51 | public func inject<A, B, C, D, E, R>(
| `- note: consider making generic parameter 'D' conform to the 'Sendable' protocol
52 | deps a: A,
53 | _ b: B,
:
58 | ) -> @Sendable () async -> R {
59 | {
60 | await block(a, b, c, d, e)
| `- warning: capture of 'd' with non-sendable type 'D' in a `@Sendable` closure; this is an error in the Swift 6 language mode
61 | }
62 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:60:33: warning: capture of 'e' with non-sendable type 'E' in a `@Sendable` closure; this is an error in the Swift 6 language mode
49 | }
50 |
51 | public func inject<A, B, C, D, E, R>(
| `- note: consider making generic parameter 'E' conform to the 'Sendable' protocol
52 | deps a: A,
53 | _ b: B,
:
58 | ) -> @Sendable () async -> R {
59 | {
60 | await block(a, b, c, d, e)
| `- warning: capture of 'e' with non-sendable type 'E' in a `@Sendable` closure; this is an error in the Swift 6 language mode
61 | }
62 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:74:21: warning: capture of 'a' with non-sendable type 'A' in a `@Sendable` closure; this is an error in the Swift 6 language mode
62 | }
63 |
64 | public func inject<A, B, C, D, E, F, R>(
| `- note: consider making generic parameter 'A' conform to the 'Sendable' protocol
65 | deps a: A,
66 | _ b: B,
:
72 | ) -> @Sendable () async -> R {
73 | {
74 | await block(a, b, c, d, e, f)
| `- warning: capture of 'a' with non-sendable type 'A' in a `@Sendable` closure; this is an error in the Swift 6 language mode
75 | }
76 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:74:24: warning: capture of 'b' with non-sendable type 'B' in a `@Sendable` closure; this is an error in the Swift 6 language mode
62 | }
63 |
64 | public func inject<A, B, C, D, E, F, R>(
| `- note: consider making generic parameter 'B' conform to the 'Sendable' protocol
65 | deps a: A,
66 | _ b: B,
:
72 | ) -> @Sendable () async -> R {
73 | {
74 | await block(a, b, c, d, e, f)
| `- warning: capture of 'b' with non-sendable type 'B' in a `@Sendable` closure; this is an error in the Swift 6 language mode
75 | }
76 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:74:27: warning: capture of 'c' with non-sendable type 'C' in a `@Sendable` closure; this is an error in the Swift 6 language mode
62 | }
63 |
64 | public func inject<A, B, C, D, E, F, R>(
| `- note: consider making generic parameter 'C' conform to the 'Sendable' protocol
65 | deps a: A,
66 | _ b: B,
:
72 | ) -> @Sendable () async -> R {
73 | {
74 | await block(a, b, c, d, e, f)
| `- warning: capture of 'c' with non-sendable type 'C' in a `@Sendable` closure; this is an error in the Swift 6 language mode
75 | }
76 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:74:30: warning: capture of 'd' with non-sendable type 'D' in a `@Sendable` closure; this is an error in the Swift 6 language mode
62 | }
63 |
64 | public func inject<A, B, C, D, E, F, R>(
| `- note: consider making generic parameter 'D' conform to the 'Sendable' protocol
65 | deps a: A,
66 | _ b: B,
:
72 | ) -> @Sendable () async -> R {
73 | {
74 | await block(a, b, c, d, e, f)
| `- warning: capture of 'd' with non-sendable type 'D' in a `@Sendable` closure; this is an error in the Swift 6 language mode
75 | }
76 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:74:33: warning: capture of 'e' with non-sendable type 'E' in a `@Sendable` closure; this is an error in the Swift 6 language mode
62 | }
63 |
64 | public func inject<A, B, C, D, E, F, R>(
| `- note: consider making generic parameter 'E' conform to the 'Sendable' protocol
65 | deps a: A,
66 | _ b: B,
:
72 | ) -> @Sendable () async -> R {
73 | {
74 | await block(a, b, c, d, e, f)
| `- warning: capture of 'e' with non-sendable type 'E' in a `@Sendable` closure; this is an error in the Swift 6 language mode
75 | }
76 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:74:36: warning: capture of 'f' with non-sendable type 'F' in a `@Sendable` closure; this is an error in the Swift 6 language mode
62 | }
63 |
64 | public func inject<A, B, C, D, E, F, R>(
| `- note: consider making generic parameter 'F' conform to the 'Sendable' protocol
65 | deps a: A,
66 | _ b: B,
:
72 | ) -> @Sendable () async -> R {
73 | {
74 | await block(a, b, c, d, e, f)
| `- warning: capture of 'f' with non-sendable type 'F' in a `@Sendable` closure; this is an error in the Swift 6 language mode
75 | }
76 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:83:24: warning: capture of 'b' with non-sendable type 'B' in a `@Sendable` closure; this is an error in the Swift 6 language mode
76 | }
77 |
78 | public func inject<A, B, R>(
| `- note: consider making generic parameter 'B' conform to the 'Sendable' protocol
79 | dep b: B,
80 | in block: @Sendable @escaping (A, B) async -> R
81 | ) -> @Sendable (A) async -> R {
82 | { a in
83 | await block(a, b)
| `- warning: capture of 'b' with non-sendable type 'B' in a `@Sendable` closure; this is an error in the Swift 6 language mode
84 | }
85 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:93:24: warning: capture of 'b' with non-sendable type 'B' in a `@Sendable` closure; this is an error in the Swift 6 language mode
85 | }
86 |
87 | public func inject<A, B, C, R>(
| `- note: consider making generic parameter 'B' conform to the 'Sendable' protocol
88 | deps b: B,
89 | _ c: C,
:
91 | ) -> @Sendable (A) async -> R {
92 | { a in
93 | await block(a, b, c)
| `- warning: capture of 'b' with non-sendable type 'B' in a `@Sendable` closure; this is an error in the Swift 6 language mode
94 | }
95 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:93:27: warning: capture of 'c' with non-sendable type 'C' in a `@Sendable` closure; this is an error in the Swift 6 language mode
85 | }
86 |
87 | public func inject<A, B, C, R>(
| `- note: consider making generic parameter 'C' conform to the 'Sendable' protocol
88 | deps b: B,
89 | _ c: C,
:
91 | ) -> @Sendable (A) async -> R {
92 | { a in
93 | await block(a, b, c)
| `- warning: capture of 'c' with non-sendable type 'C' in a `@Sendable` closure; this is an error in the Swift 6 language mode
94 | }
95 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:104:24: warning: capture of 'b' with non-sendable type 'B' in a `@Sendable` closure; this is an error in the Swift 6 language mode
95 | }
96 |
97 | public func inject<A, B, C, D, R>(
| `- note: consider making generic parameter 'B' conform to the 'Sendable' protocol
98 | deps b: B,
99 | _ c: C,
:
102 | ) -> @Sendable (A) async -> R {
103 | { a in
104 | await block(a, b, c, d)
| `- warning: capture of 'b' with non-sendable type 'B' in a `@Sendable` closure; this is an error in the Swift 6 language mode
105 | }
106 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:104:27: warning: capture of 'c' with non-sendable type 'C' in a `@Sendable` closure; this is an error in the Swift 6 language mode
95 | }
96 |
97 | public func inject<A, B, C, D, R>(
| `- note: consider making generic parameter 'C' conform to the 'Sendable' protocol
98 | deps b: B,
99 | _ c: C,
:
102 | ) -> @Sendable (A) async -> R {
103 | { a in
104 | await block(a, b, c, d)
| `- warning: capture of 'c' with non-sendable type 'C' in a `@Sendable` closure; this is an error in the Swift 6 language mode
105 | }
106 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:104:30: warning: capture of 'd' with non-sendable type 'D' in a `@Sendable` closure; this is an error in the Swift 6 language mode
95 | }
96 |
97 | public func inject<A, B, C, D, R>(
| `- note: consider making generic parameter 'D' conform to the 'Sendable' protocol
98 | deps b: B,
99 | _ c: C,
:
102 | ) -> @Sendable (A) async -> R {
103 | { a in
104 | await block(a, b, c, d)
| `- warning: capture of 'd' with non-sendable type 'D' in a `@Sendable` closure; this is an error in the Swift 6 language mode
105 | }
106 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:116:24: warning: capture of 'b' with non-sendable type 'B' in a `@Sendable` closure; this is an error in the Swift 6 language mode
106 | }
107 |
108 | public func inject<A, B, C, D, E, R>(
| `- note: consider making generic parameter 'B' conform to the 'Sendable' protocol
109 | deps b: B,
110 | _ c: C,
:
114 | ) -> @Sendable (A) async -> R {
115 | { a in
116 | await block(a, b, c, d, e)
| `- warning: capture of 'b' with non-sendable type 'B' in a `@Sendable` closure; this is an error in the Swift 6 language mode
117 | }
118 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:116:27: warning: capture of 'c' with non-sendable type 'C' in a `@Sendable` closure; this is an error in the Swift 6 language mode
106 | }
107 |
108 | public func inject<A, B, C, D, E, R>(
| `- note: consider making generic parameter 'C' conform to the 'Sendable' protocol
109 | deps b: B,
110 | _ c: C,
:
114 | ) -> @Sendable (A) async -> R {
115 | { a in
116 | await block(a, b, c, d, e)
| `- warning: capture of 'c' with non-sendable type 'C' in a `@Sendable` closure; this is an error in the Swift 6 language mode
117 | }
118 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:116:30: warning: capture of 'd' with non-sendable type 'D' in a `@Sendable` closure; this is an error in the Swift 6 language mode
106 | }
107 |
108 | public func inject<A, B, C, D, E, R>(
| `- note: consider making generic parameter 'D' conform to the 'Sendable' protocol
109 | deps b: B,
110 | _ c: C,
:
114 | ) -> @Sendable (A) async -> R {
115 | { a in
116 | await block(a, b, c, d, e)
| `- warning: capture of 'd' with non-sendable type 'D' in a `@Sendable` closure; this is an error in the Swift 6 language mode
117 | }
118 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:116:33: warning: capture of 'e' with non-sendable type 'E' in a `@Sendable` closure; this is an error in the Swift 6 language mode
106 | }
107 |
108 | public func inject<A, B, C, D, E, R>(
| `- note: consider making generic parameter 'E' conform to the 'Sendable' protocol
109 | deps b: B,
110 | _ c: C,
:
114 | ) -> @Sendable (A) async -> R {
115 | { a in
116 | await block(a, b, c, d, e)
| `- warning: capture of 'e' with non-sendable type 'E' in a `@Sendable` closure; this is an error in the Swift 6 language mode
117 | }
118 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:129:24: warning: capture of 'b' with non-sendable type 'B' in a `@Sendable` closure; this is an error in the Swift 6 language mode
118 | }
119 |
120 | public func inject<A, B, C, D, E, F, R>(
| `- note: consider making generic parameter 'B' conform to the 'Sendable' protocol
121 | deps b: B,
122 | _ c: C,
:
127 | ) -> @Sendable (A) async -> R {
128 | { a in
129 | await block(a, b, c, d, e, f)
| `- warning: capture of 'b' with non-sendable type 'B' in a `@Sendable` closure; this is an error in the Swift 6 language mode
130 | }
131 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:129:27: warning: capture of 'c' with non-sendable type 'C' in a `@Sendable` closure; this is an error in the Swift 6 language mode
118 | }
119 |
120 | public func inject<A, B, C, D, E, F, R>(
| `- note: consider making generic parameter 'C' conform to the 'Sendable' protocol
121 | deps b: B,
122 | _ c: C,
:
127 | ) -> @Sendable (A) async -> R {
128 | { a in
129 | await block(a, b, c, d, e, f)
| `- warning: capture of 'c' with non-sendable type 'C' in a `@Sendable` closure; this is an error in the Swift 6 language mode
130 | }
131 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:129:30: warning: capture of 'd' with non-sendable type 'D' in a `@Sendable` closure; this is an error in the Swift 6 language mode
118 | }
119 |
120 | public func inject<A, B, C, D, E, F, R>(
| `- note: consider making generic parameter 'D' conform to the 'Sendable' protocol
121 | deps b: B,
122 | _ c: C,
:
127 | ) -> @Sendable (A) async -> R {
128 | { a in
129 | await block(a, b, c, d, e, f)
| `- warning: capture of 'd' with non-sendable type 'D' in a `@Sendable` closure; this is an error in the Swift 6 language mode
130 | }
131 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:129:33: warning: capture of 'e' with non-sendable type 'E' in a `@Sendable` closure; this is an error in the Swift 6 language mode
118 | }
119 |
120 | public func inject<A, B, C, D, E, F, R>(
| `- note: consider making generic parameter 'E' conform to the 'Sendable' protocol
121 | deps b: B,
122 | _ c: C,
:
127 | ) -> @Sendable (A) async -> R {
128 | { a in
129 | await block(a, b, c, d, e, f)
| `- warning: capture of 'e' with non-sendable type 'E' in a `@Sendable` closure; this is an error in the Swift 6 language mode
130 | }
131 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:129:36: warning: capture of 'f' with non-sendable type 'F' in a `@Sendable` closure; this is an error in the Swift 6 language mode
118 | }
119 |
120 | public func inject<A, B, C, D, E, F, R>(
| `- note: consider making generic parameter 'F' conform to the 'Sendable' protocol
121 | deps b: B,
122 | _ c: C,
:
127 | ) -> @Sendable (A) async -> R {
128 | { a in
129 | await block(a, b, c, d, e, f)
| `- warning: capture of 'f' with non-sendable type 'F' in a `@Sendable` closure; this is an error in the Swift 6 language mode
130 | }
131 | }
[37/40] Compiling AsyncStateMachine ManagedCriticalState.swift
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:14:21: warning: capture of 'a' with non-sendable type 'A' in a `@Sendable` closure; this is an error in the Swift 6 language mode
7 |
8 | // swiftlint:disable identifier_name function_parameter_count
9 | public func inject<A, R>(
| `- note: consider making generic parameter 'A' conform to the 'Sendable' protocol
10 | dep a: A,
11 | in block: @Sendable @escaping (A) async -> R
12 | ) -> @Sendable () async -> R {
13 | {
14 | await block(a)
| `- warning: capture of 'a' with non-sendable type 'A' in a `@Sendable` closure; this is an error in the Swift 6 language mode
15 | }
16 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:24:21: warning: capture of 'a' with non-sendable type 'A' in a `@Sendable` closure; this is an error in the Swift 6 language mode
16 | }
17 |
18 | public func inject<A, B, R>(
| `- note: consider making generic parameter 'A' conform to the 'Sendable' protocol
19 | deps a: A,
20 | _ b: B,
:
22 | ) -> @Sendable () async -> R {
23 | {
24 | await block(a, b)
| `- warning: capture of 'a' with non-sendable type 'A' in a `@Sendable` closure; this is an error in the Swift 6 language mode
25 | }
26 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:24:24: warning: capture of 'b' with non-sendable type 'B' in a `@Sendable` closure; this is an error in the Swift 6 language mode
16 | }
17 |
18 | public func inject<A, B, R>(
| `- note: consider making generic parameter 'B' conform to the 'Sendable' protocol
19 | deps a: A,
20 | _ b: B,
:
22 | ) -> @Sendable () async -> R {
23 | {
24 | await block(a, b)
| `- warning: capture of 'b' with non-sendable type 'B' in a `@Sendable` closure; this is an error in the Swift 6 language mode
25 | }
26 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:35:21: warning: capture of 'a' with non-sendable type 'A' in a `@Sendable` closure; this is an error in the Swift 6 language mode
26 | }
27 |
28 | public func inject<A, B, C, R>(
| `- note: consider making generic parameter 'A' conform to the 'Sendable' protocol
29 | deps a: A,
30 | _ b: B,
:
33 | ) -> @Sendable () async -> R {
34 | {
35 | await block(a, b, c)
| `- warning: capture of 'a' with non-sendable type 'A' in a `@Sendable` closure; this is an error in the Swift 6 language mode
36 | }
37 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:35:24: warning: capture of 'b' with non-sendable type 'B' in a `@Sendable` closure; this is an error in the Swift 6 language mode
26 | }
27 |
28 | public func inject<A, B, C, R>(
| `- note: consider making generic parameter 'B' conform to the 'Sendable' protocol
29 | deps a: A,
30 | _ b: B,
:
33 | ) -> @Sendable () async -> R {
34 | {
35 | await block(a, b, c)
| `- warning: capture of 'b' with non-sendable type 'B' in a `@Sendable` closure; this is an error in the Swift 6 language mode
36 | }
37 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:35:27: warning: capture of 'c' with non-sendable type 'C' in a `@Sendable` closure; this is an error in the Swift 6 language mode
26 | }
27 |
28 | public func inject<A, B, C, R>(
| `- note: consider making generic parameter 'C' conform to the 'Sendable' protocol
29 | deps a: A,
30 | _ b: B,
:
33 | ) -> @Sendable () async -> R {
34 | {
35 | await block(a, b, c)
| `- warning: capture of 'c' with non-sendable type 'C' in a `@Sendable` closure; this is an error in the Swift 6 language mode
36 | }
37 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:47:21: warning: capture of 'a' with non-sendable type 'A' in a `@Sendable` closure; this is an error in the Swift 6 language mode
37 | }
38 |
39 | public func inject<A, B, C, D, R>(
| `- note: consider making generic parameter 'A' conform to the 'Sendable' protocol
40 | deps a: A,
41 | _ b: B,
:
45 | ) -> @Sendable () async -> R {
46 | {
47 | await block(a, b, c, d)
| `- warning: capture of 'a' with non-sendable type 'A' in a `@Sendable` closure; this is an error in the Swift 6 language mode
48 | }
49 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:47:24: warning: capture of 'b' with non-sendable type 'B' in a `@Sendable` closure; this is an error in the Swift 6 language mode
37 | }
38 |
39 | public func inject<A, B, C, D, R>(
| `- note: consider making generic parameter 'B' conform to the 'Sendable' protocol
40 | deps a: A,
41 | _ b: B,
:
45 | ) -> @Sendable () async -> R {
46 | {
47 | await block(a, b, c, d)
| `- warning: capture of 'b' with non-sendable type 'B' in a `@Sendable` closure; this is an error in the Swift 6 language mode
48 | }
49 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:47:27: warning: capture of 'c' with non-sendable type 'C' in a `@Sendable` closure; this is an error in the Swift 6 language mode
37 | }
38 |
39 | public func inject<A, B, C, D, R>(
| `- note: consider making generic parameter 'C' conform to the 'Sendable' protocol
40 | deps a: A,
41 | _ b: B,
:
45 | ) -> @Sendable () async -> R {
46 | {
47 | await block(a, b, c, d)
| `- warning: capture of 'c' with non-sendable type 'C' in a `@Sendable` closure; this is an error in the Swift 6 language mode
48 | }
49 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:47:30: warning: capture of 'd' with non-sendable type 'D' in a `@Sendable` closure; this is an error in the Swift 6 language mode
37 | }
38 |
39 | public func inject<A, B, C, D, R>(
| `- note: consider making generic parameter 'D' conform to the 'Sendable' protocol
40 | deps a: A,
41 | _ b: B,
:
45 | ) -> @Sendable () async -> R {
46 | {
47 | await block(a, b, c, d)
| `- warning: capture of 'd' with non-sendable type 'D' in a `@Sendable` closure; this is an error in the Swift 6 language mode
48 | }
49 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:60:21: warning: capture of 'a' with non-sendable type 'A' in a `@Sendable` closure; this is an error in the Swift 6 language mode
49 | }
50 |
51 | public func inject<A, B, C, D, E, R>(
| `- note: consider making generic parameter 'A' conform to the 'Sendable' protocol
52 | deps a: A,
53 | _ b: B,
:
58 | ) -> @Sendable () async -> R {
59 | {
60 | await block(a, b, c, d, e)
| `- warning: capture of 'a' with non-sendable type 'A' in a `@Sendable` closure; this is an error in the Swift 6 language mode
61 | }
62 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:60:24: warning: capture of 'b' with non-sendable type 'B' in a `@Sendable` closure; this is an error in the Swift 6 language mode
49 | }
50 |
51 | public func inject<A, B, C, D, E, R>(
| `- note: consider making generic parameter 'B' conform to the 'Sendable' protocol
52 | deps a: A,
53 | _ b: B,
:
58 | ) -> @Sendable () async -> R {
59 | {
60 | await block(a, b, c, d, e)
| `- warning: capture of 'b' with non-sendable type 'B' in a `@Sendable` closure; this is an error in the Swift 6 language mode
61 | }
62 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:60:27: warning: capture of 'c' with non-sendable type 'C' in a `@Sendable` closure; this is an error in the Swift 6 language mode
49 | }
50 |
51 | public func inject<A, B, C, D, E, R>(
| `- note: consider making generic parameter 'C' conform to the 'Sendable' protocol
52 | deps a: A,
53 | _ b: B,
:
58 | ) -> @Sendable () async -> R {
59 | {
60 | await block(a, b, c, d, e)
| `- warning: capture of 'c' with non-sendable type 'C' in a `@Sendable` closure; this is an error in the Swift 6 language mode
61 | }
62 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:60:30: warning: capture of 'd' with non-sendable type 'D' in a `@Sendable` closure; this is an error in the Swift 6 language mode
49 | }
50 |
51 | public func inject<A, B, C, D, E, R>(
| `- note: consider making generic parameter 'D' conform to the 'Sendable' protocol
52 | deps a: A,
53 | _ b: B,
:
58 | ) -> @Sendable () async -> R {
59 | {
60 | await block(a, b, c, d, e)
| `- warning: capture of 'd' with non-sendable type 'D' in a `@Sendable` closure; this is an error in the Swift 6 language mode
61 | }
62 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:60:33: warning: capture of 'e' with non-sendable type 'E' in a `@Sendable` closure; this is an error in the Swift 6 language mode
49 | }
50 |
51 | public func inject<A, B, C, D, E, R>(
| `- note: consider making generic parameter 'E' conform to the 'Sendable' protocol
52 | deps a: A,
53 | _ b: B,
:
58 | ) -> @Sendable () async -> R {
59 | {
60 | await block(a, b, c, d, e)
| `- warning: capture of 'e' with non-sendable type 'E' in a `@Sendable` closure; this is an error in the Swift 6 language mode
61 | }
62 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:74:21: warning: capture of 'a' with non-sendable type 'A' in a `@Sendable` closure; this is an error in the Swift 6 language mode
62 | }
63 |
64 | public func inject<A, B, C, D, E, F, R>(
| `- note: consider making generic parameter 'A' conform to the 'Sendable' protocol
65 | deps a: A,
66 | _ b: B,
:
72 | ) -> @Sendable () async -> R {
73 | {
74 | await block(a, b, c, d, e, f)
| `- warning: capture of 'a' with non-sendable type 'A' in a `@Sendable` closure; this is an error in the Swift 6 language mode
75 | }
76 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:74:24: warning: capture of 'b' with non-sendable type 'B' in a `@Sendable` closure; this is an error in the Swift 6 language mode
62 | }
63 |
64 | public func inject<A, B, C, D, E, F, R>(
| `- note: consider making generic parameter 'B' conform to the 'Sendable' protocol
65 | deps a: A,
66 | _ b: B,
:
72 | ) -> @Sendable () async -> R {
73 | {
74 | await block(a, b, c, d, e, f)
| `- warning: capture of 'b' with non-sendable type 'B' in a `@Sendable` closure; this is an error in the Swift 6 language mode
75 | }
76 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:74:27: warning: capture of 'c' with non-sendable type 'C' in a `@Sendable` closure; this is an error in the Swift 6 language mode
62 | }
63 |
64 | public func inject<A, B, C, D, E, F, R>(
| `- note: consider making generic parameter 'C' conform to the 'Sendable' protocol
65 | deps a: A,
66 | _ b: B,
:
72 | ) -> @Sendable () async -> R {
73 | {
74 | await block(a, b, c, d, e, f)
| `- warning: capture of 'c' with non-sendable type 'C' in a `@Sendable` closure; this is an error in the Swift 6 language mode
75 | }
76 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:74:30: warning: capture of 'd' with non-sendable type 'D' in a `@Sendable` closure; this is an error in the Swift 6 language mode
62 | }
63 |
64 | public func inject<A, B, C, D, E, F, R>(
| `- note: consider making generic parameter 'D' conform to the 'Sendable' protocol
65 | deps a: A,
66 | _ b: B,
:
72 | ) -> @Sendable () async -> R {
73 | {
74 | await block(a, b, c, d, e, f)
| `- warning: capture of 'd' with non-sendable type 'D' in a `@Sendable` closure; this is an error in the Swift 6 language mode
75 | }
76 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:74:33: warning: capture of 'e' with non-sendable type 'E' in a `@Sendable` closure; this is an error in the Swift 6 language mode
62 | }
63 |
64 | public func inject<A, B, C, D, E, F, R>(
| `- note: consider making generic parameter 'E' conform to the 'Sendable' protocol
65 | deps a: A,
66 | _ b: B,
:
72 | ) -> @Sendable () async -> R {
73 | {
74 | await block(a, b, c, d, e, f)
| `- warning: capture of 'e' with non-sendable type 'E' in a `@Sendable` closure; this is an error in the Swift 6 language mode
75 | }
76 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:74:36: warning: capture of 'f' with non-sendable type 'F' in a `@Sendable` closure; this is an error in the Swift 6 language mode
62 | }
63 |
64 | public func inject<A, B, C, D, E, F, R>(
| `- note: consider making generic parameter 'F' conform to the 'Sendable' protocol
65 | deps a: A,
66 | _ b: B,
:
72 | ) -> @Sendable () async -> R {
73 | {
74 | await block(a, b, c, d, e, f)
| `- warning: capture of 'f' with non-sendable type 'F' in a `@Sendable` closure; this is an error in the Swift 6 language mode
75 | }
76 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:83:24: warning: capture of 'b' with non-sendable type 'B' in a `@Sendable` closure; this is an error in the Swift 6 language mode
76 | }
77 |
78 | public func inject<A, B, R>(
| `- note: consider making generic parameter 'B' conform to the 'Sendable' protocol
79 | dep b: B,
80 | in block: @Sendable @escaping (A, B) async -> R
81 | ) -> @Sendable (A) async -> R {
82 | { a in
83 | await block(a, b)
| `- warning: capture of 'b' with non-sendable type 'B' in a `@Sendable` closure; this is an error in the Swift 6 language mode
84 | }
85 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:93:24: warning: capture of 'b' with non-sendable type 'B' in a `@Sendable` closure; this is an error in the Swift 6 language mode
85 | }
86 |
87 | public func inject<A, B, C, R>(
| `- note: consider making generic parameter 'B' conform to the 'Sendable' protocol
88 | deps b: B,
89 | _ c: C,
:
91 | ) -> @Sendable (A) async -> R {
92 | { a in
93 | await block(a, b, c)
| `- warning: capture of 'b' with non-sendable type 'B' in a `@Sendable` closure; this is an error in the Swift 6 language mode
94 | }
95 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:93:27: warning: capture of 'c' with non-sendable type 'C' in a `@Sendable` closure; this is an error in the Swift 6 language mode
85 | }
86 |
87 | public func inject<A, B, C, R>(
| `- note: consider making generic parameter 'C' conform to the 'Sendable' protocol
88 | deps b: B,
89 | _ c: C,
:
91 | ) -> @Sendable (A) async -> R {
92 | { a in
93 | await block(a, b, c)
| `- warning: capture of 'c' with non-sendable type 'C' in a `@Sendable` closure; this is an error in the Swift 6 language mode
94 | }
95 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:104:24: warning: capture of 'b' with non-sendable type 'B' in a `@Sendable` closure; this is an error in the Swift 6 language mode
95 | }
96 |
97 | public func inject<A, B, C, D, R>(
| `- note: consider making generic parameter 'B' conform to the 'Sendable' protocol
98 | deps b: B,
99 | _ c: C,
:
102 | ) -> @Sendable (A) async -> R {
103 | { a in
104 | await block(a, b, c, d)
| `- warning: capture of 'b' with non-sendable type 'B' in a `@Sendable` closure; this is an error in the Swift 6 language mode
105 | }
106 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:104:27: warning: capture of 'c' with non-sendable type 'C' in a `@Sendable` closure; this is an error in the Swift 6 language mode
95 | }
96 |
97 | public func inject<A, B, C, D, R>(
| `- note: consider making generic parameter 'C' conform to the 'Sendable' protocol
98 | deps b: B,
99 | _ c: C,
:
102 | ) -> @Sendable (A) async -> R {
103 | { a in
104 | await block(a, b, c, d)
| `- warning: capture of 'c' with non-sendable type 'C' in a `@Sendable` closure; this is an error in the Swift 6 language mode
105 | }
106 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:104:30: warning: capture of 'd' with non-sendable type 'D' in a `@Sendable` closure; this is an error in the Swift 6 language mode
95 | }
96 |
97 | public func inject<A, B, C, D, R>(
| `- note: consider making generic parameter 'D' conform to the 'Sendable' protocol
98 | deps b: B,
99 | _ c: C,
:
102 | ) -> @Sendable (A) async -> R {
103 | { a in
104 | await block(a, b, c, d)
| `- warning: capture of 'd' with non-sendable type 'D' in a `@Sendable` closure; this is an error in the Swift 6 language mode
105 | }
106 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:116:24: warning: capture of 'b' with non-sendable type 'B' in a `@Sendable` closure; this is an error in the Swift 6 language mode
106 | }
107 |
108 | public func inject<A, B, C, D, E, R>(
| `- note: consider making generic parameter 'B' conform to the 'Sendable' protocol
109 | deps b: B,
110 | _ c: C,
:
114 | ) -> @Sendable (A) async -> R {
115 | { a in
116 | await block(a, b, c, d, e)
| `- warning: capture of 'b' with non-sendable type 'B' in a `@Sendable` closure; this is an error in the Swift 6 language mode
117 | }
118 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:116:27: warning: capture of 'c' with non-sendable type 'C' in a `@Sendable` closure; this is an error in the Swift 6 language mode
106 | }
107 |
108 | public func inject<A, B, C, D, E, R>(
| `- note: consider making generic parameter 'C' conform to the 'Sendable' protocol
109 | deps b: B,
110 | _ c: C,
:
114 | ) -> @Sendable (A) async -> R {
115 | { a in
116 | await block(a, b, c, d, e)
| `- warning: capture of 'c' with non-sendable type 'C' in a `@Sendable` closure; this is an error in the Swift 6 language mode
117 | }
118 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:116:30: warning: capture of 'd' with non-sendable type 'D' in a `@Sendable` closure; this is an error in the Swift 6 language mode
106 | }
107 |
108 | public func inject<A, B, C, D, E, R>(
| `- note: consider making generic parameter 'D' conform to the 'Sendable' protocol
109 | deps b: B,
110 | _ c: C,
:
114 | ) -> @Sendable (A) async -> R {
115 | { a in
116 | await block(a, b, c, d, e)
| `- warning: capture of 'd' with non-sendable type 'D' in a `@Sendable` closure; this is an error in the Swift 6 language mode
117 | }
118 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:116:33: warning: capture of 'e' with non-sendable type 'E' in a `@Sendable` closure; this is an error in the Swift 6 language mode
106 | }
107 |
108 | public func inject<A, B, C, D, E, R>(
| `- note: consider making generic parameter 'E' conform to the 'Sendable' protocol
109 | deps b: B,
110 | _ c: C,
:
114 | ) -> @Sendable (A) async -> R {
115 | { a in
116 | await block(a, b, c, d, e)
| `- warning: capture of 'e' with non-sendable type 'E' in a `@Sendable` closure; this is an error in the Swift 6 language mode
117 | }
118 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:129:24: warning: capture of 'b' with non-sendable type 'B' in a `@Sendable` closure; this is an error in the Swift 6 language mode
118 | }
119 |
120 | public func inject<A, B, C, D, E, F, R>(
| `- note: consider making generic parameter 'B' conform to the 'Sendable' protocol
121 | deps b: B,
122 | _ c: C,
:
127 | ) -> @Sendable (A) async -> R {
128 | { a in
129 | await block(a, b, c, d, e, f)
| `- warning: capture of 'b' with non-sendable type 'B' in a `@Sendable` closure; this is an error in the Swift 6 language mode
130 | }
131 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:129:27: warning: capture of 'c' with non-sendable type 'C' in a `@Sendable` closure; this is an error in the Swift 6 language mode
118 | }
119 |
120 | public func inject<A, B, C, D, E, F, R>(
| `- note: consider making generic parameter 'C' conform to the 'Sendable' protocol
121 | deps b: B,
122 | _ c: C,
:
127 | ) -> @Sendable (A) async -> R {
128 | { a in
129 | await block(a, b, c, d, e, f)
| `- warning: capture of 'c' with non-sendable type 'C' in a `@Sendable` closure; this is an error in the Swift 6 language mode
130 | }
131 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:129:30: warning: capture of 'd' with non-sendable type 'D' in a `@Sendable` closure; this is an error in the Swift 6 language mode
118 | }
119 |
120 | public func inject<A, B, C, D, E, F, R>(
| `- note: consider making generic parameter 'D' conform to the 'Sendable' protocol
121 | deps b: B,
122 | _ c: C,
:
127 | ) -> @Sendable (A) async -> R {
128 | { a in
129 | await block(a, b, c, d, e, f)
| `- warning: capture of 'd' with non-sendable type 'D' in a `@Sendable` closure; this is an error in the Swift 6 language mode
130 | }
131 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:129:33: warning: capture of 'e' with non-sendable type 'E' in a `@Sendable` closure; this is an error in the Swift 6 language mode
118 | }
119 |
120 | public func inject<A, B, C, D, E, F, R>(
| `- note: consider making generic parameter 'E' conform to the 'Sendable' protocol
121 | deps b: B,
122 | _ c: C,
:
127 | ) -> @Sendable (A) async -> R {
128 | { a in
129 | await block(a, b, c, d, e, f)
| `- warning: capture of 'e' with non-sendable type 'E' in a `@Sendable` closure; this is an error in the Swift 6 language mode
130 | }
131 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/Inject.swift:129:36: warning: capture of 'f' with non-sendable type 'F' in a `@Sendable` closure; this is an error in the Swift 6 language mode
118 | }
119 |
120 | public func inject<A, B, C, D, E, F, R>(
| `- note: consider making generic parameter 'F' conform to the 'Sendable' protocol
121 | deps b: B,
122 | _ c: C,
:
127 | ) -> @Sendable (A) async -> R {
128 | { a in
129 | await block(a, b, c, d, e, f)
| `- warning: capture of 'f' with non-sendable type 'F' in a `@Sendable` closure; this is an error in the Swift 6 language mode
130 | }
131 | }
[38/40] Compiling AsyncStateMachine AsyncStateMachine.swift
/Users/admin/builder/spi-builder-workspace/Sources/AsyncStateMachine/AsyncStateMachine.swift:43:7: warning: capture of 'onDeinit' with non-sendable type '(() -> Void)?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
41 | channelReceiver.update(receiver: nil)
42 | }
43 | onDeinit?()
| |- warning: capture of 'onDeinit' with non-sendable type '(() -> Void)?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
44 | }
45 |
/Users/admin/builder/spi-builder-workspace/Sources/AsyncStateMachine/Engine.swift:141:34: warning: capture of 'value' with non-sendable type 'T' in a `@Sendable` closure; this is an error in the Swift 6 language mode
131 |
132 | @discardableResult
133 | func process<T>(
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
134 | middlewares: [Middleware<T>],
135 | using value: T
:
139 | for middleware in middlewares {
140 | let task: Task<Void, Never> = Task(priority: middleware.priority) {
141 | await middleware.execute(value)
| `- warning: capture of 'value' with non-sendable type 'T' in a `@Sendable` closure; this is an error in the Swift 6 language mode
142 | }
143 |
/Users/admin/builder/spi-builder-workspace/Sources/AsyncStateMachine/Engine.swift:165:32: warning: capture of 'events' with non-sendable type 'AnyAsyncSequence<E>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
163 | let task: Task<Void, Never> = Task(priority: sideEffect.priority) {
164 | do {
165 | for try await event in events {
| `- warning: capture of 'events' with non-sendable type 'AnyAsyncSequence<E>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
166 | sendBackEvent?(event)
167 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/AnyAsyncSequence.swift:17:15: note: consider making generic struct 'AnyAsyncSequence' conform to the 'Sendable' protocol
15 |
16 | /// Type erased version of an AsyncSequence.
17 | public struct AnyAsyncSequence<Element>: AsyncSequence {
| `- note: consider making generic struct 'AnyAsyncSequence' conform to the 'Sendable' protocol
18 | public typealias Element = Element
19 | public typealias AsyncIterator = Iterator
/Users/admin/builder/spi-builder-workspace/Sources/AsyncStateMachine/Engine.swift:181:10: warning: actor-isolated instance method 'cancelTasksInProgress()' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
88 | }
89 |
90 | func cancelTasksInProgress() {
| `- note: calls to instance method 'cancelTasksInProgress()' from outside of its actor context are implicitly asynchronous
91 | self
92 | .tasksInProgress
:
179 |
180 | deinit {
181 | self.cancelTasksInProgress()
| `- warning: actor-isolated instance method 'cancelTasksInProgress()' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
182 | self.onDeinit?()
183 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncStateMachine/ViewStateMachine.swift:19:7: warning: type 'S' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
9 | where S: Equatable & DSLCompatible, E: DSLCompatible, O: DSLCompatible
10 |
11 | public final class ViewStateMachine<VS, S, E, O>: ObservableObject, @unchecked Sendable
| `- note: consider making generic parameter 'S' conform to the 'Sendable' protocol
12 | where VS: Equatable & Sendable, S: DSLCompatible, E: DSLCompatible, O: DSLCompatible {
13 | struct SendSuspension {
:
17 |
18 | @Published public internal(set) var state: VS
19 | let asyncStateMachine: AsyncStateMachine<S, E, O>
| `- warning: type 'S' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
20 | let stateToViewState: @Sendable (S) -> VS
21 | let suspensions: ManagedCriticalState<[SendSuspension]>
/Users/admin/builder/spi-builder-workspace/Sources/AsyncStateMachine/ViewStateMachine.swift:19:7: warning: type 'E' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
9 | where S: Equatable & DSLCompatible, E: DSLCompatible, O: DSLCompatible
10 |
11 | public final class ViewStateMachine<VS, S, E, O>: ObservableObject, @unchecked Sendable
| `- note: consider making generic parameter 'E' conform to the 'Sendable' protocol
12 | where VS: Equatable & Sendable, S: DSLCompatible, E: DSLCompatible, O: DSLCompatible {
13 | struct SendSuspension {
:
17 |
18 | @Published public internal(set) var state: VS
19 | let asyncStateMachine: AsyncStateMachine<S, E, O>
| `- warning: type 'E' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
20 | let stateToViewState: @Sendable (S) -> VS
21 | let suspensions: ManagedCriticalState<[SendSuspension]>
/Users/admin/builder/spi-builder-workspace/Sources/AsyncStateMachine/ViewStateMachine.swift:45:58: warning: type 'S' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
9 | where S: Equatable & DSLCompatible, E: DSLCompatible, O: DSLCompatible
10 |
11 | public final class ViewStateMachine<VS, S, E, O>: ObservableObject, @unchecked Sendable
| `- note: consider making generic parameter 'S' conform to the 'Sendable' protocol
12 | where VS: Equatable & Sendable, S: DSLCompatible, E: DSLCompatible, O: DSLCompatible {
13 | struct SendSuspension {
:
43 | self.asyncStateMachine = asyncStateMachine
44 | self.stateToViewState = stateToViewState
45 | self.state = stateToViewState(self.asyncStateMachine.initialState)
| `- warning: type 'S' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
46 | self.suspensions = ManagedCriticalState([])
47 | self.running = ManagedCriticalState(false)
/Users/admin/builder/spi-builder-workspace/Sources/AsyncStateMachine/ViewStateMachine.swift:45:58: warning: type 'E' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
9 | where S: Equatable & DSLCompatible, E: DSLCompatible, O: DSLCompatible
10 |
11 | public final class ViewStateMachine<VS, S, E, O>: ObservableObject, @unchecked Sendable
| `- note: consider making generic parameter 'E' conform to the 'Sendable' protocol
12 | where VS: Equatable & Sendable, S: DSLCompatible, E: DSLCompatible, O: DSLCompatible {
13 | struct SendSuspension {
:
43 | self.asyncStateMachine = asyncStateMachine
44 | self.stateToViewState = stateToViewState
45 | self.state = stateToViewState(self.asyncStateMachine.initialState)
| `- warning: type 'E' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
46 | self.suspensions = ManagedCriticalState([])
47 | self.running = ManagedCriticalState(false)
/Users/admin/builder/spi-builder-workspace/Sources/AsyncStateMachine/ViewStateMachine.swift:52:28: warning: type 'S' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
9 | where S: Equatable & DSLCompatible, E: DSLCompatible, O: DSLCompatible
10 |
11 | public final class ViewStateMachine<VS, S, E, O>: ObservableObject, @unchecked Sendable
| `- note: consider making generic parameter 'S' conform to the 'Sendable' protocol
12 | where VS: Equatable & Sendable, S: DSLCompatible, E: DSLCompatible, O: DSLCompatible {
13 | struct SendSuspension {
:
50 |
51 | public func send(_ event: E) {
52 | self.asyncStateMachine.send(event)
| `- warning: type 'S' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
53 | }
54 |
/Users/admin/builder/spi-builder-workspace/Sources/AsyncStateMachine/ViewStateMachine.swift:52:28: warning: type 'E' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
9 | where S: Equatable & DSLCompatible, E: DSLCompatible, O: DSLCompatible
10 |
11 | public final class ViewStateMachine<VS, S, E, O>: ObservableObject, @unchecked Sendable
| `- note: consider making generic parameter 'E' conform to the 'Sendable' protocol
12 | where VS: Equatable & Sendable, S: DSLCompatible, E: DSLCompatible, O: DSLCompatible {
13 | struct SendSuspension {
:
50 |
51 | public func send(_ event: E) {
52 | self.asyncStateMachine.send(event)
| `- warning: type 'E' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
53 | }
54 |
/Users/admin/builder/spi-builder-workspace/Sources/AsyncStateMachine/ViewStateMachine.swift:64:25: warning: type 'S' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
9 | where S: Equatable & DSLCompatible, E: DSLCompatible, O: DSLCompatible
10 |
11 | public final class ViewStateMachine<VS, S, E, O>: ObservableObject, @unchecked Sendable
| `- note: consider making generic parameter 'S' conform to the 'Sendable' protocol
12 | where VS: Equatable & Sendable, S: DSLCompatible, E: DSLCompatible, O: DSLCompatible {
13 | struct SendSuspension {
:
62 | }
63 |
64 | asyncStateMachine.send(event)
| `- warning: type 'S' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
65 | }
66 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncStateMachine/ViewStateMachine.swift:64:25: warning: type 'E' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
9 | where S: Equatable & DSLCompatible, E: DSLCompatible, O: DSLCompatible
10 |
11 | public final class ViewStateMachine<VS, S, E, O>: ObservableObject, @unchecked Sendable
| `- note: consider making generic parameter 'E' conform to the 'Sendable' protocol
12 | where VS: Equatable & Sendable, S: DSLCompatible, E: DSLCompatible, O: DSLCompatible {
13 | struct SendSuspension {
:
62 | }
63 |
64 | asyncStateMachine.send(event)
| `- warning: type 'E' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
65 | }
66 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncStateMachine/ViewStateMachine.swift:149:25: warning: type 'S' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
9 | where S: Equatable & DSLCompatible, E: DSLCompatible, O: DSLCompatible
10 |
11 | public final class ViewStateMachine<VS, S, E, O>: ObservableObject, @unchecked Sendable
| `- note: consider making generic parameter 'S' conform to the 'Sendable' protocol
12 | where VS: Equatable & Sendable, S: DSLCompatible, E: DSLCompatible, O: DSLCompatible {
13 | struct SendSuspension {
:
147 | self.state
148 | } set: { [asyncStateMachine] value in
149 | asyncStateMachine.send(event(value))
| `- warning: type 'S' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
150 | }
151 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncStateMachine/ViewStateMachine.swift:149:25: warning: type 'E' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
9 | where S: Equatable & DSLCompatible, E: DSLCompatible, O: DSLCompatible
10 |
11 | public final class ViewStateMachine<VS, S, E, O>: ObservableObject, @unchecked Sendable
| `- note: consider making generic parameter 'E' conform to the 'Sendable' protocol
12 | where VS: Equatable & Sendable, S: DSLCompatible, E: DSLCompatible, O: DSLCompatible {
13 | struct SendSuspension {
:
147 | self.state
148 | } set: { [asyncStateMachine] value in
149 | asyncStateMachine.send(event(value))
| `- warning: type 'E' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
150 | }
151 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncStateMachine/ViewStateMachine.swift:161:25: warning: type 'S' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
9 | where S: Equatable & DSLCompatible, E: DSLCompatible, O: DSLCompatible
10 |
11 | public final class ViewStateMachine<VS, S, E, O>: ObservableObject, @unchecked Sendable
| `- note: consider making generic parameter 'S' conform to the 'Sendable' protocol
12 | where VS: Equatable & Sendable, S: DSLCompatible, E: DSLCompatible, O: DSLCompatible {
13 | struct SendSuspension {
:
159 | self.state[keyPath: keypath]
160 | } set: { [asyncStateMachine] value in
161 | asyncStateMachine.send(event(value))
| `- warning: type 'S' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
162 | }
163 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncStateMachine/ViewStateMachine.swift:161:25: warning: type 'E' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
9 | where S: Equatable & DSLCompatible, E: DSLCompatible, O: DSLCompatible
10 |
11 | public final class ViewStateMachine<VS, S, E, O>: ObservableObject, @unchecked Sendable
| `- note: consider making generic parameter 'E' conform to the 'Sendable' protocol
12 | where VS: Equatable & Sendable, S: DSLCompatible, E: DSLCompatible, O: DSLCompatible {
13 | struct SendSuspension {
:
159 | self.state[keyPath: keypath]
160 | } set: { [asyncStateMachine] value in
161 | asyncStateMachine.send(event(value))
| `- warning: type 'E' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
162 | }
163 | }
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/AsyncStateMachine/Engine.swift:182:10: warning: cannot access property 'onDeinit' with a non-sendable type '(() -> Void)?' from non-isolated deinit; this is an error in the Swift 6 language mode
180 | deinit {
181 | self.cancelTasksInProgress()
182 | self.onDeinit?()
| `- warning: cannot access property 'onDeinit' with a non-sendable type '(() -> Void)?' from non-isolated deinit; this is an error in the Swift 6 language mode
183 | }
184 | }
[39/40] Compiling AsyncStateMachine Engine.swift
/Users/admin/builder/spi-builder-workspace/Sources/AsyncStateMachine/AsyncStateMachine.swift:43:7: warning: capture of 'onDeinit' with non-sendable type '(() -> Void)?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
41 | channelReceiver.update(receiver: nil)
42 | }
43 | onDeinit?()
| |- warning: capture of 'onDeinit' with non-sendable type '(() -> Void)?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
44 | }
45 |
/Users/admin/builder/spi-builder-workspace/Sources/AsyncStateMachine/Engine.swift:141:34: warning: capture of 'value' with non-sendable type 'T' in a `@Sendable` closure; this is an error in the Swift 6 language mode
131 |
132 | @discardableResult
133 | func process<T>(
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
134 | middlewares: [Middleware<T>],
135 | using value: T
:
139 | for middleware in middlewares {
140 | let task: Task<Void, Never> = Task(priority: middleware.priority) {
141 | await middleware.execute(value)
| `- warning: capture of 'value' with non-sendable type 'T' in a `@Sendable` closure; this is an error in the Swift 6 language mode
142 | }
143 |
/Users/admin/builder/spi-builder-workspace/Sources/AsyncStateMachine/Engine.swift:165:32: warning: capture of 'events' with non-sendable type 'AnyAsyncSequence<E>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
163 | let task: Task<Void, Never> = Task(priority: sideEffect.priority) {
164 | do {
165 | for try await event in events {
| `- warning: capture of 'events' with non-sendable type 'AnyAsyncSequence<E>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
166 | sendBackEvent?(event)
167 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/AnyAsyncSequence.swift:17:15: note: consider making generic struct 'AnyAsyncSequence' conform to the 'Sendable' protocol
15 |
16 | /// Type erased version of an AsyncSequence.
17 | public struct AnyAsyncSequence<Element>: AsyncSequence {
| `- note: consider making generic struct 'AnyAsyncSequence' conform to the 'Sendable' protocol
18 | public typealias Element = Element
19 | public typealias AsyncIterator = Iterator
/Users/admin/builder/spi-builder-workspace/Sources/AsyncStateMachine/Engine.swift:181:10: warning: actor-isolated instance method 'cancelTasksInProgress()' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
88 | }
89 |
90 | func cancelTasksInProgress() {
| `- note: calls to instance method 'cancelTasksInProgress()' from outside of its actor context are implicitly asynchronous
91 | self
92 | .tasksInProgress
:
179 |
180 | deinit {
181 | self.cancelTasksInProgress()
| `- warning: actor-isolated instance method 'cancelTasksInProgress()' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
182 | self.onDeinit?()
183 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncStateMachine/ViewStateMachine.swift:19:7: warning: type 'S' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
9 | where S: Equatable & DSLCompatible, E: DSLCompatible, O: DSLCompatible
10 |
11 | public final class ViewStateMachine<VS, S, E, O>: ObservableObject, @unchecked Sendable
| `- note: consider making generic parameter 'S' conform to the 'Sendable' protocol
12 | where VS: Equatable & Sendable, S: DSLCompatible, E: DSLCompatible, O: DSLCompatible {
13 | struct SendSuspension {
:
17 |
18 | @Published public internal(set) var state: VS
19 | let asyncStateMachine: AsyncStateMachine<S, E, O>
| `- warning: type 'S' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
20 | let stateToViewState: @Sendable (S) -> VS
21 | let suspensions: ManagedCriticalState<[SendSuspension]>
/Users/admin/builder/spi-builder-workspace/Sources/AsyncStateMachine/ViewStateMachine.swift:19:7: warning: type 'E' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
9 | where S: Equatable & DSLCompatible, E: DSLCompatible, O: DSLCompatible
10 |
11 | public final class ViewStateMachine<VS, S, E, O>: ObservableObject, @unchecked Sendable
| `- note: consider making generic parameter 'E' conform to the 'Sendable' protocol
12 | where VS: Equatable & Sendable, S: DSLCompatible, E: DSLCompatible, O: DSLCompatible {
13 | struct SendSuspension {
:
17 |
18 | @Published public internal(set) var state: VS
19 | let asyncStateMachine: AsyncStateMachine<S, E, O>
| `- warning: type 'E' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
20 | let stateToViewState: @Sendable (S) -> VS
21 | let suspensions: ManagedCriticalState<[SendSuspension]>
/Users/admin/builder/spi-builder-workspace/Sources/AsyncStateMachine/ViewStateMachine.swift:45:58: warning: type 'S' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
9 | where S: Equatable & DSLCompatible, E: DSLCompatible, O: DSLCompatible
10 |
11 | public final class ViewStateMachine<VS, S, E, O>: ObservableObject, @unchecked Sendable
| `- note: consider making generic parameter 'S' conform to the 'Sendable' protocol
12 | where VS: Equatable & Sendable, S: DSLCompatible, E: DSLCompatible, O: DSLCompatible {
13 | struct SendSuspension {
:
43 | self.asyncStateMachine = asyncStateMachine
44 | self.stateToViewState = stateToViewState
45 | self.state = stateToViewState(self.asyncStateMachine.initialState)
| `- warning: type 'S' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
46 | self.suspensions = ManagedCriticalState([])
47 | self.running = ManagedCriticalState(false)
/Users/admin/builder/spi-builder-workspace/Sources/AsyncStateMachine/ViewStateMachine.swift:45:58: warning: type 'E' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
9 | where S: Equatable & DSLCompatible, E: DSLCompatible, O: DSLCompatible
10 |
11 | public final class ViewStateMachine<VS, S, E, O>: ObservableObject, @unchecked Sendable
| `- note: consider making generic parameter 'E' conform to the 'Sendable' protocol
12 | where VS: Equatable & Sendable, S: DSLCompatible, E: DSLCompatible, O: DSLCompatible {
13 | struct SendSuspension {
:
43 | self.asyncStateMachine = asyncStateMachine
44 | self.stateToViewState = stateToViewState
45 | self.state = stateToViewState(self.asyncStateMachine.initialState)
| `- warning: type 'E' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
46 | self.suspensions = ManagedCriticalState([])
47 | self.running = ManagedCriticalState(false)
/Users/admin/builder/spi-builder-workspace/Sources/AsyncStateMachine/ViewStateMachine.swift:52:28: warning: type 'S' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
9 | where S: Equatable & DSLCompatible, E: DSLCompatible, O: DSLCompatible
10 |
11 | public final class ViewStateMachine<VS, S, E, O>: ObservableObject, @unchecked Sendable
| `- note: consider making generic parameter 'S' conform to the 'Sendable' protocol
12 | where VS: Equatable & Sendable, S: DSLCompatible, E: DSLCompatible, O: DSLCompatible {
13 | struct SendSuspension {
:
50 |
51 | public func send(_ event: E) {
52 | self.asyncStateMachine.send(event)
| `- warning: type 'S' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
53 | }
54 |
/Users/admin/builder/spi-builder-workspace/Sources/AsyncStateMachine/ViewStateMachine.swift:52:28: warning: type 'E' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
9 | where S: Equatable & DSLCompatible, E: DSLCompatible, O: DSLCompatible
10 |
11 | public final class ViewStateMachine<VS, S, E, O>: ObservableObject, @unchecked Sendable
| `- note: consider making generic parameter 'E' conform to the 'Sendable' protocol
12 | where VS: Equatable & Sendable, S: DSLCompatible, E: DSLCompatible, O: DSLCompatible {
13 | struct SendSuspension {
:
50 |
51 | public func send(_ event: E) {
52 | self.asyncStateMachine.send(event)
| `- warning: type 'E' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
53 | }
54 |
/Users/admin/builder/spi-builder-workspace/Sources/AsyncStateMachine/ViewStateMachine.swift:64:25: warning: type 'S' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
9 | where S: Equatable & DSLCompatible, E: DSLCompatible, O: DSLCompatible
10 |
11 | public final class ViewStateMachine<VS, S, E, O>: ObservableObject, @unchecked Sendable
| `- note: consider making generic parameter 'S' conform to the 'Sendable' protocol
12 | where VS: Equatable & Sendable, S: DSLCompatible, E: DSLCompatible, O: DSLCompatible {
13 | struct SendSuspension {
:
62 | }
63 |
64 | asyncStateMachine.send(event)
| `- warning: type 'S' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
65 | }
66 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncStateMachine/ViewStateMachine.swift:64:25: warning: type 'E' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
9 | where S: Equatable & DSLCompatible, E: DSLCompatible, O: DSLCompatible
10 |
11 | public final class ViewStateMachine<VS, S, E, O>: ObservableObject, @unchecked Sendable
| `- note: consider making generic parameter 'E' conform to the 'Sendable' protocol
12 | where VS: Equatable & Sendable, S: DSLCompatible, E: DSLCompatible, O: DSLCompatible {
13 | struct SendSuspension {
:
62 | }
63 |
64 | asyncStateMachine.send(event)
| `- warning: type 'E' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
65 | }
66 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncStateMachine/ViewStateMachine.swift:149:25: warning: type 'S' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
9 | where S: Equatable & DSLCompatible, E: DSLCompatible, O: DSLCompatible
10 |
11 | public final class ViewStateMachine<VS, S, E, O>: ObservableObject, @unchecked Sendable
| `- note: consider making generic parameter 'S' conform to the 'Sendable' protocol
12 | where VS: Equatable & Sendable, S: DSLCompatible, E: DSLCompatible, O: DSLCompatible {
13 | struct SendSuspension {
:
147 | self.state
148 | } set: { [asyncStateMachine] value in
149 | asyncStateMachine.send(event(value))
| `- warning: type 'S' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
150 | }
151 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncStateMachine/ViewStateMachine.swift:149:25: warning: type 'E' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
9 | where S: Equatable & DSLCompatible, E: DSLCompatible, O: DSLCompatible
10 |
11 | public final class ViewStateMachine<VS, S, E, O>: ObservableObject, @unchecked Sendable
| `- note: consider making generic parameter 'E' conform to the 'Sendable' protocol
12 | where VS: Equatable & Sendable, S: DSLCompatible, E: DSLCompatible, O: DSLCompatible {
13 | struct SendSuspension {
:
147 | self.state
148 | } set: { [asyncStateMachine] value in
149 | asyncStateMachine.send(event(value))
| `- warning: type 'E' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
150 | }
151 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncStateMachine/ViewStateMachine.swift:161:25: warning: type 'S' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
9 | where S: Equatable & DSLCompatible, E: DSLCompatible, O: DSLCompatible
10 |
11 | public final class ViewStateMachine<VS, S, E, O>: ObservableObject, @unchecked Sendable
| `- note: consider making generic parameter 'S' conform to the 'Sendable' protocol
12 | where VS: Equatable & Sendable, S: DSLCompatible, E: DSLCompatible, O: DSLCompatible {
13 | struct SendSuspension {
:
159 | self.state[keyPath: keypath]
160 | } set: { [asyncStateMachine] value in
161 | asyncStateMachine.send(event(value))
| `- warning: type 'S' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
162 | }
163 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncStateMachine/ViewStateMachine.swift:161:25: warning: type 'E' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
9 | where S: Equatable & DSLCompatible, E: DSLCompatible, O: DSLCompatible
10 |
11 | public final class ViewStateMachine<VS, S, E, O>: ObservableObject, @unchecked Sendable
| `- note: consider making generic parameter 'E' conform to the 'Sendable' protocol
12 | where VS: Equatable & Sendable, S: DSLCompatible, E: DSLCompatible, O: DSLCompatible {
13 | struct SendSuspension {
:
159 | self.state[keyPath: keypath]
160 | } set: { [asyncStateMachine] value in
161 | asyncStateMachine.send(event(value))
| `- warning: type 'E' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
162 | }
163 | }
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/AsyncStateMachine/Engine.swift:182:10: warning: cannot access property 'onDeinit' with a non-sendable type '(() -> Void)?' from non-isolated deinit; this is an error in the Swift 6 language mode
180 | deinit {
181 | self.cancelTasksInProgress()
182 | self.onDeinit?()
| `- warning: cannot access property 'onDeinit' with a non-sendable type '(() -> Void)?' from non-isolated deinit; this is an error in the Swift 6 language mode
183 | }
184 | }
[40/40] Compiling AsyncStateMachine ViewStateMachine.swift
/Users/admin/builder/spi-builder-workspace/Sources/AsyncStateMachine/AsyncStateMachine.swift:43:7: warning: capture of 'onDeinit' with non-sendable type '(() -> Void)?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
41 | channelReceiver.update(receiver: nil)
42 | }
43 | onDeinit?()
| |- warning: capture of 'onDeinit' with non-sendable type '(() -> Void)?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
44 | }
45 |
/Users/admin/builder/spi-builder-workspace/Sources/AsyncStateMachine/Engine.swift:141:34: warning: capture of 'value' with non-sendable type 'T' in a `@Sendable` closure; this is an error in the Swift 6 language mode
131 |
132 | @discardableResult
133 | func process<T>(
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
134 | middlewares: [Middleware<T>],
135 | using value: T
:
139 | for middleware in middlewares {
140 | let task: Task<Void, Never> = Task(priority: middleware.priority) {
141 | await middleware.execute(value)
| `- warning: capture of 'value' with non-sendable type 'T' in a `@Sendable` closure; this is an error in the Swift 6 language mode
142 | }
143 |
/Users/admin/builder/spi-builder-workspace/Sources/AsyncStateMachine/Engine.swift:165:32: warning: capture of 'events' with non-sendable type 'AnyAsyncSequence<E>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
163 | let task: Task<Void, Never> = Task(priority: sideEffect.priority) {
164 | do {
165 | for try await event in events {
| `- warning: capture of 'events' with non-sendable type 'AnyAsyncSequence<E>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
166 | sendBackEvent?(event)
167 | }
/Users/admin/builder/spi-builder-workspace/Sources/Supporting/AnyAsyncSequence.swift:17:15: note: consider making generic struct 'AnyAsyncSequence' conform to the 'Sendable' protocol
15 |
16 | /// Type erased version of an AsyncSequence.
17 | public struct AnyAsyncSequence<Element>: AsyncSequence {
| `- note: consider making generic struct 'AnyAsyncSequence' conform to the 'Sendable' protocol
18 | public typealias Element = Element
19 | public typealias AsyncIterator = Iterator
/Users/admin/builder/spi-builder-workspace/Sources/AsyncStateMachine/Engine.swift:181:10: warning: actor-isolated instance method 'cancelTasksInProgress()' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
88 | }
89 |
90 | func cancelTasksInProgress() {
| `- note: calls to instance method 'cancelTasksInProgress()' from outside of its actor context are implicitly asynchronous
91 | self
92 | .tasksInProgress
:
179 |
180 | deinit {
181 | self.cancelTasksInProgress()
| `- warning: actor-isolated instance method 'cancelTasksInProgress()' can not be referenced from a non-isolated context; this is an error in the Swift 6 language mode
182 | self.onDeinit?()
183 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncStateMachine/ViewStateMachine.swift:19:7: warning: type 'S' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
9 | where S: Equatable & DSLCompatible, E: DSLCompatible, O: DSLCompatible
10 |
11 | public final class ViewStateMachine<VS, S, E, O>: ObservableObject, @unchecked Sendable
| `- note: consider making generic parameter 'S' conform to the 'Sendable' protocol
12 | where VS: Equatable & Sendable, S: DSLCompatible, E: DSLCompatible, O: DSLCompatible {
13 | struct SendSuspension {
:
17 |
18 | @Published public internal(set) var state: VS
19 | let asyncStateMachine: AsyncStateMachine<S, E, O>
| `- warning: type 'S' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
20 | let stateToViewState: @Sendable (S) -> VS
21 | let suspensions: ManagedCriticalState<[SendSuspension]>
/Users/admin/builder/spi-builder-workspace/Sources/AsyncStateMachine/ViewStateMachine.swift:19:7: warning: type 'E' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
9 | where S: Equatable & DSLCompatible, E: DSLCompatible, O: DSLCompatible
10 |
11 | public final class ViewStateMachine<VS, S, E, O>: ObservableObject, @unchecked Sendable
| `- note: consider making generic parameter 'E' conform to the 'Sendable' protocol
12 | where VS: Equatable & Sendable, S: DSLCompatible, E: DSLCompatible, O: DSLCompatible {
13 | struct SendSuspension {
:
17 |
18 | @Published public internal(set) var state: VS
19 | let asyncStateMachine: AsyncStateMachine<S, E, O>
| `- warning: type 'E' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
20 | let stateToViewState: @Sendable (S) -> VS
21 | let suspensions: ManagedCriticalState<[SendSuspension]>
/Users/admin/builder/spi-builder-workspace/Sources/AsyncStateMachine/ViewStateMachine.swift:45:58: warning: type 'S' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
9 | where S: Equatable & DSLCompatible, E: DSLCompatible, O: DSLCompatible
10 |
11 | public final class ViewStateMachine<VS, S, E, O>: ObservableObject, @unchecked Sendable
| `- note: consider making generic parameter 'S' conform to the 'Sendable' protocol
12 | where VS: Equatable & Sendable, S: DSLCompatible, E: DSLCompatible, O: DSLCompatible {
13 | struct SendSuspension {
:
43 | self.asyncStateMachine = asyncStateMachine
44 | self.stateToViewState = stateToViewState
45 | self.state = stateToViewState(self.asyncStateMachine.initialState)
| `- warning: type 'S' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
46 | self.suspensions = ManagedCriticalState([])
47 | self.running = ManagedCriticalState(false)
/Users/admin/builder/spi-builder-workspace/Sources/AsyncStateMachine/ViewStateMachine.swift:45:58: warning: type 'E' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
9 | where S: Equatable & DSLCompatible, E: DSLCompatible, O: DSLCompatible
10 |
11 | public final class ViewStateMachine<VS, S, E, O>: ObservableObject, @unchecked Sendable
| `- note: consider making generic parameter 'E' conform to the 'Sendable' protocol
12 | where VS: Equatable & Sendable, S: DSLCompatible, E: DSLCompatible, O: DSLCompatible {
13 | struct SendSuspension {
:
43 | self.asyncStateMachine = asyncStateMachine
44 | self.stateToViewState = stateToViewState
45 | self.state = stateToViewState(self.asyncStateMachine.initialState)
| `- warning: type 'E' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
46 | self.suspensions = ManagedCriticalState([])
47 | self.running = ManagedCriticalState(false)
/Users/admin/builder/spi-builder-workspace/Sources/AsyncStateMachine/ViewStateMachine.swift:52:28: warning: type 'S' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
9 | where S: Equatable & DSLCompatible, E: DSLCompatible, O: DSLCompatible
10 |
11 | public final class ViewStateMachine<VS, S, E, O>: ObservableObject, @unchecked Sendable
| `- note: consider making generic parameter 'S' conform to the 'Sendable' protocol
12 | where VS: Equatable & Sendable, S: DSLCompatible, E: DSLCompatible, O: DSLCompatible {
13 | struct SendSuspension {
:
50 |
51 | public func send(_ event: E) {
52 | self.asyncStateMachine.send(event)
| `- warning: type 'S' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
53 | }
54 |
/Users/admin/builder/spi-builder-workspace/Sources/AsyncStateMachine/ViewStateMachine.swift:52:28: warning: type 'E' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
9 | where S: Equatable & DSLCompatible, E: DSLCompatible, O: DSLCompatible
10 |
11 | public final class ViewStateMachine<VS, S, E, O>: ObservableObject, @unchecked Sendable
| `- note: consider making generic parameter 'E' conform to the 'Sendable' protocol
12 | where VS: Equatable & Sendable, S: DSLCompatible, E: DSLCompatible, O: DSLCompatible {
13 | struct SendSuspension {
:
50 |
51 | public func send(_ event: E) {
52 | self.asyncStateMachine.send(event)
| `- warning: type 'E' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
53 | }
54 |
/Users/admin/builder/spi-builder-workspace/Sources/AsyncStateMachine/ViewStateMachine.swift:64:25: warning: type 'S' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
9 | where S: Equatable & DSLCompatible, E: DSLCompatible, O: DSLCompatible
10 |
11 | public final class ViewStateMachine<VS, S, E, O>: ObservableObject, @unchecked Sendable
| `- note: consider making generic parameter 'S' conform to the 'Sendable' protocol
12 | where VS: Equatable & Sendable, S: DSLCompatible, E: DSLCompatible, O: DSLCompatible {
13 | struct SendSuspension {
:
62 | }
63 |
64 | asyncStateMachine.send(event)
| `- warning: type 'S' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
65 | }
66 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncStateMachine/ViewStateMachine.swift:64:25: warning: type 'E' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
9 | where S: Equatable & DSLCompatible, E: DSLCompatible, O: DSLCompatible
10 |
11 | public final class ViewStateMachine<VS, S, E, O>: ObservableObject, @unchecked Sendable
| `- note: consider making generic parameter 'E' conform to the 'Sendable' protocol
12 | where VS: Equatable & Sendable, S: DSLCompatible, E: DSLCompatible, O: DSLCompatible {
13 | struct SendSuspension {
:
62 | }
63 |
64 | asyncStateMachine.send(event)
| `- warning: type 'E' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
65 | }
66 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncStateMachine/ViewStateMachine.swift:149:25: warning: type 'S' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
9 | where S: Equatable & DSLCompatible, E: DSLCompatible, O: DSLCompatible
10 |
11 | public final class ViewStateMachine<VS, S, E, O>: ObservableObject, @unchecked Sendable
| `- note: consider making generic parameter 'S' conform to the 'Sendable' protocol
12 | where VS: Equatable & Sendable, S: DSLCompatible, E: DSLCompatible, O: DSLCompatible {
13 | struct SendSuspension {
:
147 | self.state
148 | } set: { [asyncStateMachine] value in
149 | asyncStateMachine.send(event(value))
| `- warning: type 'S' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
150 | }
151 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncStateMachine/ViewStateMachine.swift:149:25: warning: type 'E' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
9 | where S: Equatable & DSLCompatible, E: DSLCompatible, O: DSLCompatible
10 |
11 | public final class ViewStateMachine<VS, S, E, O>: ObservableObject, @unchecked Sendable
| `- note: consider making generic parameter 'E' conform to the 'Sendable' protocol
12 | where VS: Equatable & Sendable, S: DSLCompatible, E: DSLCompatible, O: DSLCompatible {
13 | struct SendSuspension {
:
147 | self.state
148 | } set: { [asyncStateMachine] value in
149 | asyncStateMachine.send(event(value))
| `- warning: type 'E' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
150 | }
151 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncStateMachine/ViewStateMachine.swift:161:25: warning: type 'S' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
9 | where S: Equatable & DSLCompatible, E: DSLCompatible, O: DSLCompatible
10 |
11 | public final class ViewStateMachine<VS, S, E, O>: ObservableObject, @unchecked Sendable
| `- note: consider making generic parameter 'S' conform to the 'Sendable' protocol
12 | where VS: Equatable & Sendable, S: DSLCompatible, E: DSLCompatible, O: DSLCompatible {
13 | struct SendSuspension {
:
159 | self.state[keyPath: keypath]
160 | } set: { [asyncStateMachine] value in
161 | asyncStateMachine.send(event(value))
| `- warning: type 'S' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
162 | }
163 | }
/Users/admin/builder/spi-builder-workspace/Sources/AsyncStateMachine/ViewStateMachine.swift:161:25: warning: type 'E' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
9 | where S: Equatable & DSLCompatible, E: DSLCompatible, O: DSLCompatible
10 |
11 | public final class ViewStateMachine<VS, S, E, O>: ObservableObject, @unchecked Sendable
| `- note: consider making generic parameter 'E' conform to the 'Sendable' protocol
12 | where VS: Equatable & Sendable, S: DSLCompatible, E: DSLCompatible, O: DSLCompatible {
13 | struct SendSuspension {
:
159 | self.state[keyPath: keypath]
160 | } set: { [asyncStateMachine] value in
161 | asyncStateMachine.send(event(value))
| `- warning: type 'E' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
162 | }
163 | }
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/Users/admin/builder/spi-builder-workspace/Sources/AsyncStateMachine/Engine.swift:182:10: warning: cannot access property 'onDeinit' with a non-sendable type '(() -> Void)?' from non-isolated deinit; this is an error in the Swift 6 language mode
180 | deinit {
181 | self.cancelTasksInProgress()
182 | self.onDeinit?()
| `- warning: cannot access property 'onDeinit' with a non-sendable type '(() -> Void)?' from non-isolated deinit; this is an error in the Swift 6 language mode
183 | }
184 | }
Build complete! (36.23s)
Fetching https://github.com/pointfreeco/xctest-dynamic-overlay.git
[1/2356] Fetching xctest-dynamic-overlay
Fetched https://github.com/pointfreeco/xctest-dynamic-overlay.git from cache (1.14s)
Computing version for https://github.com/pointfreeco/xctest-dynamic-overlay.git
Computed https://github.com/pointfreeco/xctest-dynamic-overlay.git at 0.4.0 (0.68s)
Creating working copy for https://github.com/pointfreeco/xctest-dynamic-overlay.git
Working copy of https://github.com/pointfreeco/xctest-dynamic-overlay.git resolved at 0.4.0
Build complete.
{
"dependencies" : [
{
"identity" : "xctest-dynamic-overlay",
"requirement" : {
"range" : [
{
"lower_bound" : "0.4.0",
"upper_bound" : "1.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/pointfreeco/xctest-dynamic-overlay.git"
}
],
"manifest_display_name" : "AsyncStateMachine",
"name" : "AsyncStateMachine",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "10.15"
},
{
"name" : "ios",
"version" : "13.0"
},
{
"name" : "tvos",
"version" : "13.0"
},
{
"name" : "watchos",
"version" : "6.0"
}
],
"products" : [
{
"name" : "AsyncStateMachine",
"targets" : [
"AsyncStateMachine"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "AsyncStateMachineTests",
"module_type" : "SwiftTarget",
"name" : "AsyncStateMachineTests",
"path" : "Tests",
"sources" : [
"AsyncStateMachine/AsyncStateMachineTests.swift",
"AsyncStateMachine/EngineTests.swift",
"AsyncStateMachine/ViewStateMachineTests.swift",
"Runtime/ChannelTests.swift",
"Runtime/ExecutionStrategyTests.swift",
"Runtime/RuntimeTests.swift",
"StateMachine/DSLCompatibleTests.swift",
"StateMachine/ExecuteTests.swift",
"StateMachine/GuardTests.swift",
"StateMachine/OnTests.swift",
"StateMachine/OneOfTests.swift",
"StateMachine/StateMachineTests.swift",
"StateMachine/TransitionTests.swift",
"StateMachine/WhenTests.swift",
"Supporting/AsyncBufferedChannelTests.swift",
"Supporting/AsyncCompactScanSequenceTests.swift",
"Supporting/AsyncJustSequenceTests.swift",
"Supporting/AsyncOnEachSequenceTests.swift",
"Supporting/AsyncSerialSequenceTests.swift",
"Supporting/Binding+DebounceTests.swift",
"Supporting/Binding+DistinctTests.swift",
"Supporting/InjectTests.swift",
"Supporting/OrderedStorageTests.swift",
"Supporting/ThrowingInjectTests.swift",
"Tools/AsyncLazySequence.swift",
"Tools/AsyncSequence+Collect.swift",
"Tools/AsyncSuspendableChannel.swift",
"Tools/AsyncThrowingSequence.swift",
"Tools/Task+ForEver.swift",
"XCTest/XCTStateMachineTests.swift"
],
"target_dependencies" : [
"AsyncStateMachine"
],
"type" : "test"
},
{
"c99name" : "AsyncStateMachine",
"module_type" : "SwiftTarget",
"name" : "AsyncStateMachine",
"path" : "Sources",
"product_dependencies" : [
"XCTestDynamicOverlay"
],
"product_memberships" : [
"AsyncStateMachine"
],
"sources" : [
"AsyncStateMachine/AsyncStateMachine.swift",
"AsyncStateMachine/Engine.swift",
"AsyncStateMachine/ViewStateMachine.swift",
"Runtime/Channel.swift",
"Runtime/ExecutionStrategy.swift",
"Runtime/Middleware.swift",
"Runtime/Runtime.swift",
"Runtime/SideEffect.swift",
"StateMachine/DSLCompatible.swift",
"StateMachine/Execute.swift",
"StateMachine/Guard.swift",
"StateMachine/Never+DSLCompatible.swift",
"StateMachine/On.swift",
"StateMachine/OneOf.swift",
"StateMachine/StateMachine.swift",
"StateMachine/Transition.swift",
"StateMachine/When.swift",
"Supporting/AnyAsyncSequence.swift",
"Supporting/AsyncBufferedChannel.swift",
"Supporting/AsyncCompactScanSequence.swift",
"Supporting/AsyncJustSequence.swift",
"Supporting/AsyncOnEachSequence.swift",
"Supporting/AsyncSerialSequence.swift",
"Supporting/Binding+Debounce.swift",
"Supporting/Binding+Distinct.swift",
"Supporting/Inject.swift",
"Supporting/ManagedCriticalState.swift",
"Supporting/OrderedStorage.swift",
"Supporting/ThrowingInject.swift",
"XCTest/XCTStateMachine.swift"
],
"type" : "library"
}
],
"tools_version" : "5.6"
}
Done.