Skip to content

Conversation

tshortli
Copy link
Contributor

A "permanently enabled" availability domain is one that has been declared always available and is also simultaneously has either an attribute that makes it deprecated or universally unavailable.

Emit fix-its that remove (or update) @available attributes that restrict availability in a permanently enabled domain. Also, emit warnings about if #available queries that always return true because they check a permanently enabled domain.

Resolves rdar://157601761.

@tshortli
Copy link
Contributor Author

@swift-ci please smoke test

…ains

A "permanently enabled" availability domain is one that has been declared
always available and is also simultaneously has either an attribute that
makes it deprecated or universally unavailable.

Emit fix-its that remove (or update) `@available` attributes that restrict
availability in a permanently enabled domain. Also, emit warnings about
`if #available` queries that always return true because they check a
permanently enabled domain.

Resolves rdar://157601761.
@tshortli tshortli force-pushed the deprecated-custom-availability-domain-fix-its branch from 5d38e89 to 8a1338d Compare September 23, 2025 00:49
@tshortli
Copy link
Contributor Author

@swift-ci please smoke test

@tshortli tshortli merged commit d505527 into swiftlang:main Sep 23, 2025
3 checks passed
@tshortli tshortli deleted the deprecated-custom-availability-domain-fix-its branch September 23, 2025 14:44
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