Skip to content

Commit 66a8182

Browse files
committed
Do not say that libcore relies on usize>=16bit
1 parent 5fc5e71 commit 66a8182

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

reference/src/layout/scalars.md

+2-3
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,8 @@ They have the same layout as the [pointer types] for which the pointee is
4040
> **Note**: C99 [7.18.2.4](https://port70.net/~nsz/c/c99/n1256.html#7.18.2.4)
4141
> requires `uintptr_t` and `intptr_t` to be at least 16-bit wide. That is, on
4242
> all platforms that we currently support, which have a C platform,
43-
> `isize`/`usize` are at least 16-bit wide. `libcore` relies on this guarantee
44-
> to unconditionally provide impls of `From<i16>`/`From<u16>` for
45-
> `isize`/`usize`.
43+
> `isize`/`usize` are at least 16-bit wide. Currently, `libcore` unconditionally
44+
> provides impls of `From<i16>`/`From<u16>` for `isize`/`usize`.
4645
4746
> **Note**: Rust's `usize` and C's `unsigned` types are **not** equivalent. C's
4847
> `unsigned` is at least as large as a short, allowed to have padding bits, etc.

0 commit comments

Comments
 (0)