Skip to content

[5.7][SE-0358][stdlib] Adopt primary associated types #59694

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

Conversation

lorentey
Copy link
Member

@lorentey lorentey commented Jun 24, 2022

Cherry picked from #41843, this implements SE-0358.

Explanation: This implements SE-0358 as of the proposal's third review. While the proposal is still in review, I'm reasonably confident this set of definitions will remain in the final version, and landing this now unblocks some regular expressions work.
Scope: Standard Library protocol definitions.
Risk: Low. The primary risk is that older compilers won't be able to parse the new protocol declaration syntax; however, the associated compiler improvements have landed long ago in the 5.7 release cycle.
Testing: Existing automated regression tests.
Reviewer: @slavapestov
Issue: rdar://89108942

lorentey and others added 9 commits June 24, 2022 10:34
Co-authored-by: Ben Rimmington <[email protected]>
(cherry picked from commit 9f177d1)
…zyCollectionProtocol for now

(cherry picked from commit 063c845)
…buted actor protocols"

This reverts commit eed5bd1.

(cherry picked from commit 1df918e)
`Element` is expected to always be `Self`. `RawValue` would be a better choice for the primary type ("option set of UInt32"), but to avoid confusion, it seems better to just omit the declaration, at least for now.

(cherry picked from commit 2759a71)
@lorentey lorentey added r5.7 standard library Area: Standard library umbrella labels Jun 24, 2022
@lorentey lorentey requested a review from a team as a code owner June 24, 2022 17:45
@lorentey
Copy link
Member Author

@swift-ci test

@lorentey lorentey requested a review from stephentyrone June 24, 2022 17:49
@lorentey lorentey added the swift evolution approved Flag → feature: A feature that was approved through the Swift evolution process label Jun 29, 2022
@lorentey lorentey merged commit 66a2a6e into swiftlang:release/5.7 Jun 29, 2022
@lorentey lorentey deleted the adopt-primary-associated-types-5.7 branch June 29, 2022 22:00
lorentey added a commit to swiftlang/swift-evolution that referenced this pull request Jun 29, 2022
@AnthonyLatsis AnthonyLatsis added 🍒 release cherry pick Flag: Release branch cherry picks swift 5.7 labels Jan 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🍒 release cherry pick Flag: Release branch cherry picks standard library Area: Standard library umbrella swift evolution approved Flag → feature: A feature that was approved through the Swift evolution process swift 5.7
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants