Skip to content

Commit f10ed4b

Browse files
committed
move libstd concerns out of the rustc note
1 parent ccf3d7a commit f10ed4b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/behavior-considered-undefined.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,10 @@ code.
5353
(i.e., it must not be read from uninitialized memory).
5454
* Non-UTF-8 byte sequences in a `str`.
5555
* Invalid values for a type with a custom definition of invalid values.
56+
In the standard library, this affects [`NonNull<T>`] and [`NonZero*`].
5657

57-
> **Note**: For `rustc`, those types are [`NonNull<T>`] and [`NonZero*`].
58-
> Requesting custom invalid values requires the unstable `rustc_layout_scalar_valid_range_*` attributes.
58+
> **Note**: For `rustc`, requesting custom invalid values requires the
59+
> unstable `rustc_layout_scalar_valid_range_*` attributes.
5960
6061
A reference/pointer is "dangling" if it is null or not all of the bytes it
6162
points to are part of the same allocation (so in particular they all have to be

0 commit comments

Comments
 (0)