Skip to content

Commit cd250df

Browse files
committed
Concurrency: Make _Concurrency module interface parsable by older compilers.
Revert a few unnecessary changes have been made to the _Concurrency module recently that make its swiftinterface un-parseable by older compilers that we need to support. - The `consume` keyword is not understood by older compilers, so including it in inlinable code is a problem. It has no actual effect on lifetimes where it was used, so just omit it. Resolves rdar://108793606
1 parent 2cd1952 commit cd250df

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

stdlib/public/BackDeployConcurrency/TaskLocal.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ public final class TaskLocal<Value: Sendable>: Sendable, CustomStringConvertible
172172
// check if we're not trying to bind a value from an illegal context; this may crash
173173
_checkIllegalTaskLocalBindingWithinWithTaskGroup(file: file, line: line)
174174

175-
_taskLocalValuePush(key: key, value: consume valueDuringOperation)
175+
_taskLocalValuePush(key: key, value: valueDuringOperation)
176176
do {
177177
let result = try await operation()
178178
_taskLocalValuePop()

stdlib/public/Concurrency/TaskLocal.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ public final class TaskLocal<Value: Sendable>: Sendable, CustomStringConvertible
172172
// check if we're not trying to bind a value from an illegal context; this may crash
173173
_checkIllegalTaskLocalBindingWithinWithTaskGroup(file: file, line: line)
174174

175-
_taskLocalValuePush(key: key, value: consume valueDuringOperation)
175+
_taskLocalValuePush(key: key, value: valueDuringOperation)
176176
do {
177177
let result = try await operation()
178178
_taskLocalValuePop()

0 commit comments

Comments
 (0)