Skip to content

Commit 8c452b5

Browse files
committed
Fix accidental ABI break with AsyncSequence.flatMap
At the type that I introduced type throws into AsyncSequence and its algorithms, I accidentally dropped a `@preconcurrency` on the ABI entrypoint, leading to a mangled name change. Fixes rdar://123639030.
1 parent 7b5502b commit 8c452b5

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

stdlib/public/Concurrency/AsyncFlatMapSequence.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ extension AsyncSequence {
4040
/// - Returns: A single, flattened asynchronous sequence that contains all
4141
/// elements in all the asynchronous sequences produced by `transform`.
4242
@usableFromInline
43+
@preconcurrency
4344
__consuming func flatMap<SegmentOfResult: AsyncSequence>(
4445
_ transform: @Sendable @escaping (Element) async -> SegmentOfResult
4546
) -> AsyncFlatMapSequence<Self, SegmentOfResult> {

test/api-digester/stability-concurrency-abi.test

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@
5252
// UNSUPPORTED: swift_evolve
5353

5454
// *** DO NOT DISABLE OR XFAIL THIS TEST. *** (See comment above.)
55-
Func AsyncSequence.flatMap(_:) has mangled name changing from '(extension in _Concurrency):Swift.AsyncSequence.flatMap<A where A1: Swift.AsyncSequence>((A.Element) async -> A1) -> _Concurrency.AsyncFlatMapSequence<A, A1>' to '(extension in _Concurrency):Swift.AsyncSequence.flatMap<A where A1: Swift.AsyncSequence>(@Sendable (A.Element) async -> A1) -> _Concurrency.AsyncFlatMapSequence<A, A1>'
5655
Func MainActor.run(resultType:body:) has generic signature change from <T where T : Swift.Sendable> to <T>
5756
Func MainActor.run(resultType:body:) has mangled name changing from 'static Swift.MainActor.run<A where A: Swift.Sendable>(resultType: A.Type, body: @Swift.MainActor @Sendable () throws -> A) async throws -> A' to 'static Swift.MainActor.run<A>(resultType: A.Type, body: @Swift.MainActor @Sendable () throws -> A) async throws -> A'
5857
Func _asyncLet_get(_:_:) has mangled name changing from '_Concurrency._asyncLet_get(Builtin.RawPointer, Builtin.RawPointer) async -> Builtin.RawPointer' to '_Concurrency._asyncLet_get(Builtin.RawPointer, Builtin.RawPointer) async -> ()'

0 commit comments

Comments
 (0)