File tree 1 file changed +5
-4
lines changed
1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -321,10 +321,11 @@ as a niche.
321
321
322
322
[`NonZeroU8`]: https://doc.rust-lang.org/std/num/struct.NonZeroU8.html
323
323
324
- The niche values of a type are parts of its validity invariant which, as of this
325
- writing, is the current active discussion topic in the unsafe code guidelines
326
- process. [rust-lang/rust#60300] specifies that the following types have at least
327
- one niche (the all-zeros bit-pattern):
324
+ The niche values must be disjoint from the values allowed by the validity
325
+ invariant. The validity invariant is, as of this writing, is the current active
326
+ discussion topic in the unsafe code guidelines process. [rust-lang/rust#60300]
327
+ specifies that the following types have at least one niche (the all-zeros
328
+ bit-pattern):
328
329
329
330
* `&T`
330
331
* `&mut T`
You can’t perform that action at this time.
0 commit comments