Skip to content

Conversation

grynspan
Copy link
Contributor

@grynspan grynspan commented Dec 20, 2024

This PR replaces our use of @_semantics with a custom attribute macro. @_semantics is reserved for use by the standard library and runtime and, while useful, can be emulated on our side of the module barrier without much difficulty.

Checklist:

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

@grynspan grynspan added the bug 🪲 Something isn't working label Dec 20, 2024
@grynspan grynspan self-assigned this Dec 20, 2024
@grynspan
Copy link
Contributor Author

@swift-ci test

@grynspan grynspan force-pushed the jgrynspan/dont-use-@_semantics branch from 486b79b to 53893cd Compare December 20, 2024 17:19
@grynspan
Copy link
Contributor Author

@swift-ci test

This PR replaces our use of `@_semantics` with a custom attribute macro. `@_semantics` is
reserved for use by the standard library and runtime and, while useful, can be emulated on
our side of the module barrier without much difficulty.

Note there are no unit tests for this macro: it doesn't actually _do_ anything on its own!
@grynspan grynspan force-pushed the jgrynspan/dont-use-@_semantics branch from 0cc9224 to e24030d Compare December 20, 2024 18:16
@grynspan
Copy link
Contributor Author

@swift-ci test

@grynspan
Copy link
Contributor Author

@swift-ci test

Co-authored-by: Stuart Montgomery <smontgomery@apple.com>
@grynspan
Copy link
Contributor Author

@swift-ci test

@grynspan grynspan merged commit 5b4d6d6 into main Dec 21, 2024
3 checks passed
@grynspan grynspan deleted the jgrynspan/dont-use-@_semantics branch December 21, 2024 01:01
@grynspan grynspan added this to the Swift 6.x milestone Dec 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🪲 Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants