-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
[stdlib] Enforce that atomic representations are BitwiseCopyable #73734
Conversation
@swift-ci please test |
FYI |
@nate-chandler was the implementation just missed then? |
No, conformance is inferred. |
Well without the explicit conformance, the compiler complains it does not conform to
|
Thanks for bringing that to my attention. I see that error too now, but only when building for embedded. In the I filed rdar://128358780 . In the meantime, explicitly stating the conformance of |
The issue with inference in the embedded stdlib is fixed by #73756 , so stating |
[stdlib] Enforce that atomic representations are BitwiseCopyable
Now that
BitwiseCopyable
is a thing, let's enforce that atomic representations must always be bitwise copyable. This avoids a bunch of subtle issues that can occur with @_rawLayout now like not supporting non-bitwise movable values.Resolves rdar://128296144