Skip to content

Commit ed47f98

Browse files
authored
Rollup merge of rust-lang#127572 - tbu-:pr_debug_event_nonpacked, r=jhpratt
Don't mark `DEBUG_EVENT` struct as `repr(packed)` That would give it alignment of 1 which is ABI-incompatible with its C definition.
2 parents e5c8b85 + e419147 commit ed47f98

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)