Skip to content

Embedded: Distinguish @_unavailableInEmbedded from @availble(*, unavailable) #77307

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 3 commits into from
Oct 31, 2024

Conversation

tshortli
Copy link
Contributor

In order to solve an ambiguity issue (#77258) we need to distinguish @_unavailableInEmbedded attributes from @availble(*, unavailable). Eventually, this will be done by creating a dedicated availability condition for Embedded, but for now we can just store an extra bit on AvailableAttr.

Reduces the layout requirements for `AvailableAttr` by one byte.
This bit is true for attributes written as `@_unavailableInEmbedded` in source.
@tshortli
Copy link
Contributor Author

@swift-ci please smoke test

@kubamracek
Copy link
Contributor

LGTM and thanks!

@tshortli tshortli enabled auto-merge October 31, 2024 02:43
@tshortli tshortli merged commit 2e02ef2 into swiftlang:main Oct 31, 2024
3 checks passed
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