Skip to content

Commit

Permalink
Rollup merge of #127572 - tbu-:pr_debug_event_nonpacked, r=jhpratt
Browse files Browse the repository at this point in the history
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
matthiaskrgr authored Jul 11, 2024
2 parents 8de487f + 45ad522 commit 6fd9555
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 6fd9555

Please sign in to comment.