-
Notifications
You must be signed in to change notification settings - Fork 701
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 generates unnecessary padding inside nsIDocument on Windows #520
Comments
That is fixed in #512, and in servo/servo#15216. That was why the bindgenup has been blocked for so long. Sorry about that. |
This was not windows specific, it was a regression from #468, that isn't yet in the rest of platforms (I believe you updated your bindgen checkout in msvc, right?). |
Oh, the same issue? Great... so probably I'm seeing this because I'm using a more recent version of bindgen for the crash. |
Let me try the latest master with your patch in #512. |
This should be fixed on master now, feel free to reopen if the problem persists (though I hope not! :P). |
On my machine, the generated
nsIDocument
is like this:I see no reason why there needs to be a 80byte padding.
This causes a mismatch between offset from C++ and from Rust (
mReferrer
's offset is 248 in C++ but 328 in Rust), which leads to servo/servo#15483 on Windows.It seems that this doesn't happen on Mac or Linux, so
--target=x86_64-pc-win32
is probably a necessary condition.The text was updated successfully, but these errors were encountered: