Skip to content

[6.0] Remove an old, horrible compatibility hack in the _Concurrency module #73663

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

Conversation

DougGregor
Copy link
Member

@DougGregor DougGregor commented May 16, 2024

Explanation: Remove a Swift 5.6-era compatibility hack that disabled availability checking in the _Concurrency module, which can lead to back-deployment issues with some algorithms and the new AsyncIteratorProtocol.
Original PR: #73662
Radar/issue: rdar://127672617
Risk: Low. Makes the Swift interface for _Concurrency build the same way the original module does.

The concurrency module was getting an implicit
`-disable-availability-checking` as a workaround from the Swift 5.6
days. Remove it, because it causes problems with the new `Failure`
type in the async for..in loop.

Fixes a back-deployment issue with async algorithms in the
_Concurrency library that use the async for..in loop.
@DougGregor DougGregor requested a review from a team as a code owner May 16, 2024 04:36
@DougGregor
Copy link
Member Author

@swift-ci please test

Copy link
Contributor

@ktoso ktoso left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lol, that overstayed it's welcome 😅 lgtm

@DougGregor DougGregor merged commit 0625b28 into swiftlang:release/6.0 May 16, 2024
5 checks passed
@DougGregor DougGregor deleted the concurrency-now-with-availability-6.0 branch May 16, 2024 13:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants