Skip to content

stdlib: Make typed throws ABI placeholders properly @usableFromInline #72612

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 2 commits into from
Mar 28, 2024

Conversation

tshortli
Copy link
Contributor

Functions that are used in public @inlinable function bodies can't be marked @_spi nor can they be made obsolete. Also, they must retain rethrows so that use of these entry points from other rethrows functions is accepted.

Builds on #72365. Once we no longer have to support pre-$TypedThrows compilers, all of this can be reverted.

Part of rdar://125138945

@tshortli tshortli requested a review from a team as a code owner March 27, 2024 05:53
@tshortli tshortli force-pushed the typed-throws-condfails branch from 92fc905 to 4f4714e Compare March 27, 2024 17:25
@tshortli
Copy link
Contributor Author

@swift-ci please smoke test

Functions that are used in public `@inlinable` function bodies can't be marked
`@_spi` nor can they be made obsolete. Also, they must retain `rethrows` so
that use of these entry points from other `rethrows` functions is accepted.

Builds on swiftlang#72365. Once we no longer have to
support pre-`$TypedThrows` compilers, all of this can be reverted.

Part of rdar://125138945
@tshortli tshortli force-pushed the typed-throws-condfails branch from 4f4714e to a1dacc1 Compare March 27, 2024 21:58
@tshortli
Copy link
Contributor Author

@swift-ci please smoke test

@tshortli tshortli enabled auto-merge March 28, 2024 00:40
@tshortli tshortli merged commit 418dd95 into swiftlang:main Mar 28, 2024
@tshortli tshortli deleted the typed-throws-condfails branch March 28, 2024 01:56
tshortli added a commit to tshortli/swift that referenced this pull request Jul 8, 2024
swiftlang#72612 can be reverted because it is no
longer necessary for the interface of the stdlib to be compatible with
compilers without `$TypedThrows` support.
tshortli added a commit to tshortli/swift that referenced this pull request Jul 8, 2024
swiftlang#72612 can be reverted because it is no
longer necessary for the interface of the stdlib to be compatible with
compilers without `$TypedThrows` support.
tshortli added a commit to tshortli/swift that referenced this pull request Jul 8, 2024
swiftlang#72612 can be reverted because it is no
longer necessary for the interface of the stdlib to be compatible with
compilers without `$TypedThrows` support.
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.

2 participants