Skip to content

[Sema] Diagnose @_staticExclusiveOnly in clients without the feature flag #71420

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
Feb 7, 2024

Conversation

Azoy
Copy link
Contributor

@Azoy Azoy commented Feb 6, 2024

We were incorrectly guarding this condition on the fact that the client has the feature flag. The intent is that you cannot use @_staticExclusiveOnly in a module unless this flag is present. Modules who don't have the flag should still diagnose incorrect attempts to use types who were compiled with this attribute.

@Azoy
Copy link
Contributor Author

Azoy commented Feb 6, 2024

@swift-ci please smoke test

@Azoy Azoy changed the title [Sema] Diagnose static exclusive only in clients without the feature flag [Sema] Diagnose @_staticExclusiveOnly in clients without the feature flag Feb 6, 2024
@Azoy Azoy requested a review from a team as a code owner February 6, 2024 22:54
@Azoy
Copy link
Contributor Author

Azoy commented Feb 6, 2024

@swift-ci please smoke test

@Azoy Azoy merged commit cbb1ddc into swiftlang:main Feb 7, 2024
@Azoy Azoy deleted the fix-seo-atomic branch February 7, 2024 03:07
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.

1 participant