Uh oh!
There was an error while loading. Please reload this page.
Use repr(C) when depending on struct layout in ptr tests - #97851
Conversation
rust-highfive
commented
Jun 7, 2022
Hey! It looks like you've submitted a new PR for the library teams! If this PR contains changes to any Examples of
|
rust-highfive
commented
Jun 7, 2022
r? @thomcc (rust-highfive has picked a reviewer for you, use r? to override) |
thomcc
commented
Jun 8, 2022
Nice catch. @bors r+ |
bors
commented
Jun 8, 2022
📌 Commit 5dd5244 has been approved by |
Use repr(C) when depending on struct layout in ptr tests The test depends on the layout of this struct `Pair`, so it should use `repr(C)` instead of the default `repr(Rust)`.
Rollup of 5 pull requests Successful merges: - rust-lang#97595 (Remove unwrap from get_vtable) - rust-lang#97597 (Preserve unused pointer to address casts) - rust-lang#97819 (Recover `import` instead of `use` in item) - rust-lang#97823 (Recover missing comma after match arm) - rust-lang#97851 (Use repr(C) when depending on struct layout in ptr tests) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
The test depends on the layout of this struct
Pair, so it should userepr(C)instead of the defaultrepr(Rust).