about summary refs log tree commit diff
path: root/library/std/src
diff options
context:
space:
mode:
authorTobias Bucher <tobiasbucher5991@gmail.com>2024-07-10 15:47:24 +0200
committerTobias Bucher <tobiasbucher5991@gmail.com>2024-07-10 15:47:24 +0200
commit45ad522e8745b9d2da00c56e93cca4d2f8c8fe7c (patch)
treec483abf8787ca1856bb13beb22e91adf6dc3247f /library/std/src
parentd81987661a06ae8d49a5f014f81824c655e87768 (diff)
downloadrust-45ad522e8745b9d2da00c56e93cca4d2f8c8fe7c.tar.gz
rust-45ad522e8745b9d2da00c56e93cca4d2f8c8fe7c.zip
Don't mark `DEBUG_EVENT` struct as `repr(packed)`
That would give it alignment of 1 which is ABI-incompatible with its C
definition.
Diffstat (limited to 'library/std/src')
-rw-r--r--library/std/src/process/tests.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/std/src/process/tests.rs b/library/std/src/process/tests.rs
index 63455a274fa..b4f6bb71c79 100644
--- a/library/std/src/process/tests.rs
+++ b/library/std/src/process/tests.rs
@@ -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,