Skip to content

Commit dc2906c

Browse files
committed
Add a dedicated rule name for the new usize/isize requirement
This felt like a sufficiently separate claim that it warrants having its own rule label. This also renames the other one since it was somewhat ambiguous now.
1 parent 76b8056 commit dc2906c

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/type-layout.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,10 @@ The size of most primitives is given in this table.
4242
| `f64` | 8 |
4343
| `char` | 4 |
4444

45-
r[layout.primitive.size-int]
45+
r[layout.primitive.size-minimum]
4646
`usize` and `isize` have a size big enough to contain every address on the target platform. For example, on a 32 bit target, this is 4 bytes, and on a 64 bit target, this is 8 bytes.
47+
48+
r[layout.primitive.size-align]
4749
`usize` and `isize` have the same size and alignment.
4850

4951
r[layout.primitive.align]

0 commit comments

Comments
 (0)