Skip to content

Commit e419147

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 4552576 commit e419147

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

std/src/process/tests.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ fn test_interior_nul_in_env_value_is_error() {
386386
fn test_creation_flags() {
387387
use crate::os::windows::process::CommandExt;
388388
use crate::sys::c::{BOOL, DWORD, INFINITE};
389-
#[repr(C, packed)]
389+
#[repr(C)]
390390
struct DEBUG_EVENT {
391391
pub event_code: DWORD,
392392
pub process_id: DWORD,

0 commit comments

Comments
 (0)