-
Notifications
You must be signed in to change notification settings - Fork 10.4k
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
[stdlib] Make unsafe array initializer public #23134
[stdlib] Make unsafe array initializer public #23134
Conversation
@swift-ci Please smoke test |
@airspeedswift I was expecting this to fail the stable ABI test, since it’s adding new API — does that only track changes and deletions? |
@swift-ci Please smoke test Linux platform |
@swift-ci Please smoke test Linux platform |
The corresponding evolution proposal has been accepted. |
@swift-ci clean test |
The original underscored version of this initializer remains, with a deprecation notice. Also add the initializer to ContiguousArray.
This strategy lets us avoid availability constraints on the new public methods, since the original underscored version is part of the permanent ABI.
4f1aa93
to
e37f7d5
Compare
@swift-ci Please test |
@swift-ci Please test |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good to me!
@swift-ci Please smoke test |
[stdlib] Make unsafe array initializer public This implements SE-0245. The public versions of this initializer call into the existing, underscored version, which avoids the need for availability constraints.
This is an implementation for the re-pitch of SE-0223.
The original underscored version of this initializer remains, with a deprecation notice. Also adds the initializer to
ContiguousArray
. Still to do:ContiguousArray
and the non-underscoredArray
versionResolves #45677.