-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[Observation] Switch to peer instead of arbitrary macros #67289
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
[Observation] Switch to peer instead of arbitrary macros #67289
Conversation
This adopts `@attached(peer)` for generating an observable type's underscored storage when expanding the `@ObservationTracked` macro, instead of using `arbitrary` with the member macro on the observable type.
Tests are currently crashing with this error, even if only instantiating an
|
@swift-ci Please test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Provided we can alleviate the compiler crash, this seems correct to me
@swift-ci please test |
@swift-ci Please test |
@swift-ci Please test and merge |
8e9cca1
to
e68395c
Compare
@swift-ci Please test and merge |
…_macros [Observation] Switch to peer instead of arbitrary macros
…67484) [Observation] Switch to peer instead of arbitrary macros Co-authored-by: swift-ci <[email protected]>
This adopts
@attached(peer)
for generating an observable type's underscored storage when expanding the@ObservationTracked
macro, instead of usingarbitrary
with the member macro on the observable type.rdar://110327683