We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 32b22e8 commit 1d56bd3Copy full SHA for 1d56bd3
src/type-layout.md
@@ -573,8 +573,9 @@ guarantees.
573
r[layout.repr.alignment.constraint-alignment]
574
The alignment is specified as an integer parameter in the form of
575
`#[repr(align(x))]` or `#[repr(packed(x))]`. The alignment value must be a
576
-power of two from 1 up to 2<sup>29</sup>. For `packed`, if no value is given,
577
-as in `#[repr(packed)]`, then the value is 1.
+power of two from 1 up to 2<sup>29</sup> or a target-specific limit. For COFF
+targets the limit is 8192. For `packed`, if no value is given, as in
578
+`#[repr(packed)]`, then the value is 1.
579
580
r[layout.repr.alignment.align]
581
For `align`, if the specified alignment is less than the alignment of the type
0 commit comments