Skip to content

Commit

Permalink
Unrolled build for rust-lang#127572
Browse files Browse the repository at this point in the history
Rollup merge of rust-lang#127572 - tbu-:pr_debug_event_nonpacked, r=jhpratt

Don't mark `DEBUG_EVENT` struct as `repr(packed)`

That would give it alignment of 1 which is ABI-incompatible with its C definition.
  • Loading branch information
rust-timer authored Jul 12, 2024
2 parents 5315cbe + 45ad522 commit 3ef1ae3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/std/src/process/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ fn test_interior_nul_in_env_value_is_error() {
fn test_creation_flags() {
use crate::os::windows::process::CommandExt;
use crate::sys::c::{BOOL, DWORD, INFINITE};
#[repr(C, packed)]
#[repr(C)]
struct DEBUG_EVENT {
pub event_code: DWORD,
pub process_id: DWORD,
Expand Down

0 comments on commit 3ef1ae3

Please sign in to comment.