Skip to content

Commit 45ad522

Browse files
committed
Don't mark DEBUG_EVENT struct as repr(packed)
That would give it alignment of 1 which is ABI-incompatible with its C definition.
1 parent d819876 commit 45ad522

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎library/std/src/process/tests.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ fn test_interior_nul_in_env_value_is_error() {
386386
fntest_creation_flags(){
387387
usecrate::os::windows::process::CommandExt;
388388
usecrate::sys::c::{BOOL,DWORD,INFINITE};
389-
#[repr(C, packed)]
389+
#[repr(C)]
390390
structDEBUG_EVENT{
391391
pubevent_code:DWORD,
392392
pubprocess_id:DWORD,

0 commit comments

Comments
 (0)