File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 53
53
(i.e., it must not be read from uninitialized memory).
54
54
* Non-UTF-8 byte sequences in a ` str ` .
55
55
* Invalid values for a type with a custom definition of invalid values.
56
+ In the standard library, this affects [ ` NonNull<T> ` ] and [ ` NonZero* ` ] .
56
57
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.
59
60
60
61
A reference/pointer is "dangling" if it is null or not all of the bytes it
61
62
points to are part of the same allocation (so in particular they all have to be
You can’t perform that action at this time.
0 commit comments