We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2541604 commit 4299ea5Copy full SHA for 4299ea5
reference/src/layout/scalars.md
@@ -48,8 +48,11 @@ They have the same layout as the [pointer types] for which the pointee is
48
> `getelementptr` instruction uses signed-integer field offsets. Rust calls
49
> `getelementptr` with the `inbounds` flag which assumes that field offsets do
50
> not overflow,
51
+>
52
> * the maximum number of elements in an array is `usize::max_value()` (`[T; N:
-> usize]`),
53
+> usize]`. Only ZST arrays can probably be this large in practice, non-ZST
54
+> arrays are bound by the maximum size of Rust values,
55
56
> * the maximum value by which a pointer can be offseted using `ptr.add(count:
57
> usize)` is `usize::max_value()`.
58
>
0 commit comments