Skip to content

Fix accidental ABI break with AsyncSequence.flatMap #71895

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions stdlib/public/Concurrency/AsyncFlatMapSequence.swift
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ extension AsyncSequence {
/// - Returns: A single, flattened asynchronous sequence that contains all
/// elements in all the asynchronous sequences produced by `transform`.
@usableFromInline
@preconcurrency
__consuming func flatMap<SegmentOfResult: AsyncSequence>(
_ transform: @Sendable @escaping (Element) async -> SegmentOfResult
) -> AsyncFlatMapSequence<Self, SegmentOfResult> {
Expand Down
1 change: 0 additions & 1 deletion test/api-digester/stability-concurrency-abi.test
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@
// UNSUPPORTED: swift_evolve

// *** DO NOT DISABLE OR XFAIL THIS TEST. *** (See comment above.)
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>'
Func MainActor.run(resultType:body:) has generic signature change from <T where T : Swift.Sendable> to <T>
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'
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 -> ()'
Expand Down