You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Looks like our bitfield unit allocation is off. This probably should be two units: one u16 and one u8. And then they should be packed to alignment of 1 (which I don't understand why from the definition...).
I guess anonymous bitfields only contribute to size, not alignment? Intuitively, that makes sense because they can never be read, so unaligned reads are a non-issue.
At this point, I think we really need to go through the ABI's text and carefully translate the algorithms described therein...
fitzgen
added a commit
to fitzgen/rust-bindgen
that referenced
this issue
Oct 25, 2017
Input C/C++ Header
Bindgen Invocation
Predicate invocation:
(bindgen args)
Actual Results
Layout test panic:
Generated bindings:
Expected Results
No layout test failures.
The text was updated successfully, but these errors were encountered: