Don't mark DEBUG_EVENT struct as repr(packed) · rust-lang/rust@45ad522 (original) (raw)

Skip to content

Sign in

Appearance settings

View all features

View all solutions

Provide feedback

We read every piece of feedback, and take your input very seriously.

Include my email address so I can be contacted

Saved searches

Use saved searches to filter your results more quickly

Sign in

Sign up

Appearance settings

rust-lang / rust Public

Additional navigation options

Commit 45ad522

Browse files

tbu-tbu-

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

File tree

1 file changed

1

-

1

lines changed

1 file changed

1

-

1

lines changed

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

Lines changed: 1 addition & 1 deletion

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,

0 commit comments

Comments

(0)