Skip to content

Conversation

grynspan
Copy link
Contributor

@grynspan grynspan commented Sep 25, 2025

This PR adds support for mapping @_unavailableInEmbedded to a condition trait like we do with @available() etc.

Example:

@_unavailableInEmbedded
@Test func `stuff that doesn't work in Embedded Swift`() {
  ...
}

Which expands to include a trait of the form .__unavailableInEmbedded(sourceLocation: ...) of type ConditionTrait.

Checklist:

  • Code and documentation should follow the style of the Style Guide.
  • If public symbols are renamed or modified, DocC references should be updated.

…ring macro expansion.

This PR adds support for mapping `@_unavailableInEmbedded` to a condition trait
like we do with `@available()` etc.
@grynspan grynspan added this to the Swift 6.x (main) milestone Sep 25, 2025
@grynspan grynspan self-assigned this Sep 25, 2025
@grynspan grynspan added enhancement New feature or request embedded-swift 📟 Embedded Swift issues traits Issues and PRs related to the trait subsystem or built-in traits labels Sep 25, 2025
@grynspan grynspan merged commit 0b47e51 into main Sep 30, 2025
24 checks passed
@grynspan grynspan deleted the jgrynspan/unavailableInEmbeddedTrait branch September 30, 2025 17:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
embedded-swift 📟 Embedded Swift issues enhancement New feature or request traits Issues and PRs related to the trait subsystem or built-in traits
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants