Skip to content

Commit 94058e5

Browse files
committed
[Concurrency] Fix availability problem with UnownedTaskExecutor.
a550080 added a call to the new initializer, but that call came from a function annotated with `StdlibDeploymentTarget 6.2`, rather than `SwiftStdlib 6.2`, while the initializer was set to `SwiftStdlib 6.2`. This will fail in some build configurations (specifically where the target being built for is older than that implied by `SwiftStdlib 6.2`). rdar://157217460
1 parent e963206 commit 94058e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/public/Concurrency/Executor.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -820,7 +820,7 @@ public struct UnownedTaskExecutor: Sendable {
820820
unsafe self.executor = Builtin.buildOrdinaryTaskExecutorRef(executor)
821821
}
822822

823-
@available(SwiftStdlib 6.2, *)
823+
@available(StdlibDeploymentTarget 6.2, *)
824824
@inlinable
825825
public init<E: TaskExecutor>(_ executor: __shared E) {
826826
unsafe self.executor = Builtin.buildOrdinaryTaskExecutorRef(executor)

0 commit comments

Comments
 (0)