@@ -177,7 +177,7 @@ the testing library:
177
177
observing observedValues : [any PartialKeyPath<ExitTest.Result> & Sendable] = [],
178
178
_ comment : @autoclosure () -> Comment? = nil ,
179
179
sourceLocation : SourceLocation = #_sourceLocation ,
180
- performing expression : @convention (thin) () async throws -> Void
180
+ performing expression : @escaping @Sendable () async throws -> Void
181
181
) -> ExitTest.Result? = #externalMacro (module : " TestingMacros" , type : " ExitTestExpectMacro" )
182
182
183
183
/// Check that an expression causes the process to terminate in a given fashion
@@ -193,7 +193,7 @@ the testing library:
193
193
observing observedValues : [any PartialKeyPath<ExitTest.Result> & Sendable] = [],
194
194
_ comment : @autoclosure () -> Comment? = nil ,
195
195
sourceLocation : SourceLocation = #_sourceLocation ,
196
- performing expression : @convention (thin) () async throws -> Void
196
+ performing expression : @escaping @Sendable () async throws -> Void
197
197
) -> ExitTest.Result = #externalMacro (module : " TestingMacros" , type : " ExitTestRequireMacro" )
198
198
```
199
199
464
464
There are some constraints on valid exit tests:
465
465
466
466
1 . Because exit tests are run in child processes, they cannot capture any state
467
- from the calling context (hence their body closures are ` @convention(thin) `
468
- or ` @convention(c) ` .) See the ** Future directions ** for further discussion.
467
+ from the calling context. See the ** Future directions ** for further
468
+ discussion.
469
469
1 . Exit tests cannot recursively invoke other exit tests; this is a constraint
470
470
that could potentially be lifted in the future, but it would be technically
471
471
complex to do so.
@@ -840,7 +840,7 @@ protocol also requires some care to ensure that signal constants such as
840
840
observing observedValues : (repeat (KeyPath<ExitTest.Result, each T>)) = (),
841
841
_ comment : @autoclosure () -> Comment? = nil ,
842
842
sourceLocation : SourceLocation = #_sourceLocation ,
843
- performing expression : @escaping @Sendable @convention (thin) () async throws -> Void
843
+ performing expression : @escaping @Sendable () async throws -> Void
844
844
) -> (repeat each T)
845
845
```
846
846
0 commit comments