Skip to content

[4.2] stdlib: Remove Collection.randomElement customization point. #17639

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

jckarter
Copy link
Contributor

@jckarter jckarter commented Jun 29, 2018

Explanation: Implements an accepted amendment to SE-202, removing a customization point from Collection that could cause forward compatibility issues with move-only types.

Scope: Small semantics break that would ideally be implemented before Swift 4.2 is finalized.

Issue: rdar://problem/41067949

Risk: Low, removes a protocol customization point with a default implementation

Testing: Swift CI, compatibility suite

Reviewed by: @airspeedswift

@jckarter jckarter requested a review from airspeedswift June 29, 2018 20:26
@jckarter
Copy link
Contributor Author

@swift-ci Please test

@jckarter
Copy link
Contributor Author

@swift-ci Please test source compatibility

As proposed and accepted in amendment swiftlang/swift-evolution#863. rdar://problem/41067949
@jckarter jckarter force-pushed the remove-randomelement-customization-point-4.2 branch from af415f5 to c833d85 Compare June 29, 2018 21:09
@jckarter
Copy link
Contributor Author

@swift-ci Please test

@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - af415f5dca4e855d287319daf630e7627c974de9

@swift-ci
Copy link
Contributor

Build failed
Swift Test Linux Platform
Git Sha - af415f5dca4e855d287319daf630e7627c974de9

@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - af415f5dca4e855d287319daf630e7627c974de9

@swift-ci
Copy link
Contributor

Build failed
Swift Test Linux Platform
Git Sha - af415f5dca4e855d287319daf630e7627c974de9

Copy link
Member

@airspeedswift airspeedswift left a comment

Choose a reason for hiding this comment

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

LGTM

@jckarter
Copy link
Contributor Author

@swift-ci Please nominate

@jckarter jckarter merged commit 947fd7d into swiftlang:swift-4.2-branch Jun 30, 2018
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