Skip to content

Commit

Permalink
Rollup merge of rust-lang#127572 - tbu-:pr_debug_event_nonpacked, r=j…
Browse files Browse the repository at this point in the history
…hpratt

Don't mark `DEBUG_EVENT` struct as `repr(packed)`

That would give it alignment of 1 which is ABI-incompatible with its C definition.
  • Loading branch information
matthiaskrgr authored Jul 11, 2024
2 parents e5c8b85 + e419147 commit ed47f98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion std/src/process/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ fn test_interior_nul_in_env_value_is_error() {
fn test_creation_flags() {
use crate::os::windows::process::CommandExt;
use crate::sys::c::{BOOL, DWORD, INFINITE};
#[repr(C, packed)]
#[repr(C)]
struct DEBUG_EVENT {
pub event_code: DWORD,
pub process_id: DWORD,
Expand Down

0 comments on commit ed47f98

Please sign in to comment.