Skip to content

Commit bfbc0de

Browse files
authored
[NFC] stdlib: fix use of __owned in deprecation messages (#69995)
`consuming` is the actual parameter ownership modifier used in the non-deprecated declaration.
1 parent bf62e44 commit bfbc0de

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

stdlib/public/Concurrency/Executor.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public protocol Executor: AnyObject, Sendable {
2727
// since it lacks move-only type support.
2828
#if !SWIFT_STDLIB_TASK_TO_THREAD_MODEL_CONCURRENCY
2929
@available(SwiftStdlib 5.9, *)
30-
@available(*, deprecated, message: "Implement 'enqueue(_: __owned ExecutorJob)' instead")
30+
@available(*, deprecated, message: "Implement 'enqueue(_: consuming ExecutorJob)' instead")
3131
func enqueue(_ job: consuming Job)
3232
#endif // !SWIFT_STDLIB_TASK_TO_THREAD_MODEL_CONCURRENCY
3333

@@ -47,7 +47,7 @@ public protocol SerialExecutor: Executor {
4747
@_nonoverride
4848
#if !SWIFT_STDLIB_TASK_TO_THREAD_MODEL_CONCURRENCY
4949
@available(SwiftStdlib 5.1, *)
50-
@available(*, deprecated, message: "Implement 'enqueue(_: __owned ExecutorJob)' instead")
50+
@available(*, deprecated, message: "Implement 'enqueue(_: consuming ExecutorJob)' instead")
5151
#endif // !SWIFT_STDLIB_TASK_TO_THREAD_MODEL_CONCURRENCY
5252
func enqueue(_ job: UnownedJob)
5353

@@ -58,7 +58,7 @@ public protocol SerialExecutor: Executor {
5858
// work-scheduling operation.
5959
@_nonoverride
6060
@available(SwiftStdlib 5.9, *)
61-
@available(*, deprecated, message: "Implement 'enqueue(_: __owned ExecutorJob)' instead")
61+
@available(*, deprecated, message: "Implement 'enqueue(_: consuming ExecutorJob)' instead")
6262
func enqueue(_ job: consuming Job)
6363
#endif // !SWIFT_STDLIB_TASK_TO_THREAD_MODEL_CONCURRENCY
6464

0 commit comments

Comments
 (0)