about summary refs log tree commit diff
path: root/compiler/rustc_target/src/callconv/mod.rs
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2025-04-02 08:31:42 +0200
committerRalf Jung <post@ralfj.de>2025-04-07 23:30:55 +0200
commit2678d04dd97444cf444c31be92bfd281f9986a47 (patch)
treef11b92295a76bf8fd52819987ef033023a4a2ecf /compiler/rustc_target/src/callconv/mod.rs
parente643f59f6da3a84f43e75dea99afaa5b041ea6bf (diff)
downloadrust-2678d04dd97444cf444c31be92bfd281f9986a47.tar.gz
rust-2678d04dd97444cf444c31be92bfd281f9986a47.zip
mitigate MSVC unsoundness by not emitting alignment attributes on win32-msvc targets
also mention the MSVC alignment issue in platform-support.md
Diffstat (limited to 'compiler/rustc_target/src/callconv/mod.rs')
-rw-r--r--compiler/rustc_target/src/callconv/mod.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_target/src/callconv/mod.rs b/compiler/rustc_target/src/callconv/mod.rs
index 7ecc46cc69d..ae366e29e32 100644
--- a/compiler/rustc_target/src/callconv/mod.rs
+++ b/compiler/rustc_target/src/callconv/mod.rs
@@ -144,6 +144,7 @@ pub struct ArgAttributes {
     /// (corresponding to LLVM's dereferenceable_or_null attributes, i.e., it is okay for this to be
     /// set on a null pointer, but all non-null pointers must be dereferenceable).
     pub pointee_size: Size,
+    /// The minimum alignment of the pointee, if any.
     pub pointee_align: Option<Align>,
 }