Skip to content

stdlib: Avoid condfails resulting from typed throws adoption #71802

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 1 commit into from
Feb 22, 2024

Conversation

tshortli
Copy link
Contributor

@tshortli tshortli commented Feb 22, 2024

The standard library's swiftinterface must temporarily remain buildable when $TypedThrows evaluates to false since there are still supported Swift 5.11 compilers that did not have the feature enabled by default. Declarations using typed throws in their signatures are guarded in printed swiftinterface files with #if $TypedThrows and therefore @inlinable code that uses those declarations must also be conditionalized on $TypedThrows.

Addresses fallout from #69771 and #70971.

The standard library's swiftinterface must temporarily remain buildable when
`$TypedThrows` evaluates to false since there are still supported Swift 5.11
compilers that did not have the feature enabled by default. Declarations using
typed throws in their signatures are guarded in printed swiftinterface files
with `#if $TypedThrows` and therefore `@inlinable` code that uses those
declarations must also be conditionalized on `$TypedThrows`.
@tshortli tshortli requested a review from a team as a code owner February 22, 2024 04:40
@tshortli
Copy link
Contributor Author

@swift-ci please smoke test

Copy link
Contributor

@Azoy Azoy left a comment

Choose a reason for hiding this comment

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

LGTM

@tshortli tshortli merged commit 2a03207 into swiftlang:main Feb 22, 2024
@tshortli tshortli deleted the typed-throws-in-inlinable-code branch February 22, 2024 22:03
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