Skip to content

Commit a922121

Browse files
committed
Make Unsafe*Continuation @Frozen, so we can assume they're trivial
1 parent 7ab9e87 commit a922121

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

stdlib/public/Concurrency/PartialAsyncTask.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,14 @@ public struct PartialAsyncTask {
1919
public func run() { }
2020
}
2121

22-
22+
@frozen
2323
public struct UnsafeContinuation<T> {
2424
private var context: UnsafeRawPointer
2525

2626
public func resume(_: T) { }
2727
}
2828

29+
@frozen
2930
public struct UnsafeThrowingContinuation<T> {
3031
private var context: UnsafeRawPointer
3132

0 commit comments

Comments
 (0)