-
Notifications
You must be signed in to change notification settings - Fork 27
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
Fix layout differences of Header<Atomic> v.s. Header<NonAtomic> #59
Conversation
r? @jdm |
CI is failing on nightly while testing the C API. Should we just rip it out? |
Yes. I thought we had already. |
|
Remove C API I think it may be necessary for #59. Note that because of `transmute` tricks `#[repr(C)]` has to stay to ensure stable representation.
This fixes #58, which shows UB when converting between non-atomic and atomic `Tendril`. This conversion is exposed without `unsafe` through `SendTendril` and implemented with `transmute`, so matching layout is essential.
Rebased on top of #61, and added |
@bors-servo r+ |
📌 Commit bdd07bf has been approved by |
☀️ Test successful - checks-github |
This fixes #58, which shows UB when converting between non-atomic and atomic
Tendril
. This conversion is exposed withoutunsafe
throughSendTendril
and implemented withtransmute
, so matching layout is essential.