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
Bitfield enum mode uses a struct on the Rust side, but C++ treats this as a primitive type. Since the Linux 32-bit ABI treats structs vs. primitives in return position differently, this leads to nonsense behavior.
I encountered this in several places while working on Stylo. As a workaround, we lied to bindgen about the return type and replaced it with the primitive value:
Input C/C++ Header
Bindgen Invocation
Actual Results
Expected Results
Bitfield enum mode uses a struct on the Rust side, but C++ treats this as a primitive type. Since the Linux 32-bit ABI treats structs vs. primitives in return position differently, this leads to nonsense behavior.
I encountered this in several places while working on Stylo. As a workaround, we lied to
bindgen
about the return type and replaced it with the primitive value:http://searchfox.org/mozilla-central/search?q=bitfield+enums&case=true®exp=false&path=
The text was updated successfully, but these errors were encountered: