Don't mark DEBUG_EVENT struct as repr(packed) · model-checking/verify-rust-std@e419147 (original) (raw)

Skip to content

Provide feedback

Saved searches

Use saved searches to filter your results more quickly

Sign up

Commit e419147

Don't mark DEBUG_EVENT struct as repr(packed)

That would give it alignment of 1 which is ABI-incompatible with its C definition.

File tree

1 file changed

lines changed

1 file changed

lines changed

Original file line number Diff line number Diff line change
@@ -386,7 +386,7 @@ fn test_interior_nul_in_env_value_is_error() {
386 386 fn test_creation_flags() {
387 387 use crate::os::windows::process::CommandExt;
388 388 use crate::sys::c::{BOOL, DWORD, INFINITE};
389 -#[repr(C, packed)]
389 +#[repr(C)]
390 390 struct DEBUG_EVENT {
391 391 pub event_code: DWORD,
392 392 pub process_id: DWORD,