Skip to content
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

Rollup of 5 pull requests #97859

Closed
wants to merge 10 commits into from
Prev Previous commit
Next Next commit
Use repr(C) when depending on struct layout in ptr tests
  • Loading branch information
saethlin committed Jun 7, 2022
commit 5dd5244423d36972ee95a236eea650ba3d74843a
1 change: 1 addition & 0 deletions library/core/tests/ptr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ fn test_const_from_raw_parts() {
#[test]
fn test() {
unsafe {
#[repr(C)]
struct Pair {
fst: isize,
snd: isize,
Expand Down