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

Skip to content

Navigation Menu

Sign in

Appearance settings

Provide feedback

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

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Commit e419147

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

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

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)