Skip to content

AST: Diagnose unrecognized platforms as errors with CustomAvailability enabled #82075

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

Conversation

tshortli
Copy link
Contributor

@tshortli tshortli commented Jun 7, 2025

When the CustomAvailability experimental feature is enabled, make it an error to specify an unrecognized availability domain name. Also, add these diagnostics to a diagnostic group so that developers can control their behavior when they are warnings.

Resolves rdar://152741624.

…y enabled.

When the CustomAvailability experimental feature is enabled, make it an error
to specify an unrecognized availability domain name. Also, add these
diagnostics to a diagnostic group so that developers can control their behavior
when they are warnings.

Resolves rdar://152741624.
@tshortli
Copy link
Contributor Author

tshortli commented Jun 7, 2025

@swift-ci please smoke test

@tshortli tshortli changed the title AST: Diagnose unrecognized platforms as errors with CustomAvailability enabled. AST: Diagnose unrecognized platforms as errors with CustomAvailability enabled Jun 9, 2025
@tshortli tshortli merged commit 26d589e into swiftlang:main Jun 10, 2025
3 checks passed
@tshortli tshortli deleted the diagnose-unrecognized-availability-domains-as-errors branch June 10, 2025 01:22
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