-
Notifications
You must be signed in to change notification settings - Fork 707
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
bindgen produces an E0588 error when dealing with a packed struct with union. #1498
Comments
I'm not sure how to really deal with this if rustc doesn't :( Do you know if the C compiler ignores the aligned attribute or something? |
Ah, this is slightly different, we shouldn't need |
This makes us not unnecessarily add repr(align) to unions. Closes rust-lang#1498.
emilio@23d9229 has a fix. |
Ah, excellent. Thank you 👍 |
Hey, i run into a similar issue, what is the fix, should i go about replacing .cargo\registry\src\index.crates.io-6f17d22bba15001f\bindgen-0.66.1\codegen\mod.rs ? as given above @emilio |
Input C/C++ Header
Bindgen Invocation
Actual Results
Expected Results
No Rust error.
The text was updated successfully, but these errors were encountered: