-
Notifications
You must be signed in to change notification settings - Fork 711
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
Detect #pragma pack(...)
and make pack(n)
where n > 1
opaque
#1136
Conversation
☔ The latest upstream changes (presumably #1137) made this pull request unmergeable. Please resolve the merge conflicts. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks sensible. r=me
This is a bandaid for rust-lang#537. It does *not* fix the underlying issue, which requires `#[repr(packed = "N")]` support in Rust. However, it does make sure that we don't generate type definitions with the wrong layout, or fail our generated layout tests.
11b3429
to
79dbe8b
Compare
@bors-servo r=emilio Thanks @emilio :) |
📌 Commit 79dbe8b has been approved by |
Detect `#pragma pack(...)` and make `pack(n)` where `n > 1` opaque This is a bandaid for #537. It does *not* fix the underlying issue, which requires `#[repr(packed = "N")]` support in Rust. However, it does make sure that we don't generate type definitions with the wrong layout, or fail our generated layout tests. r? @emilio or @pepyakin
💔 Test failed - status-travis |
☀️ Test successful - status-travis |
This is a bandaid for #537. It does not fix the underlying issue, which requires
#[repr(packed = "N")]
support in Rust. However, it does make sure that we don't generate type definitions with the wrong layout, or fail our generated layout tests.r? @emilio or @pepyakin