rust/library/core/src/ptr
Jonas Schievink 7635462fe8
Rollup merge of #79841 - fintelia:patch-6, r=kennytm
More clear documentation for NonNull<T>

Rephrase and hopefully clarify the discussion of covariance in `NonNull<T>` documentation.

I'm very much not an expert so someone should definitely double check the correctness of what I'm saying. At the same time, the new language makes more sense to me, so hopefully it also is more logical to others whose knowledge of covariance basically begins and ends with the [Rustonomicon chapter](https://doc.rust-lang.org/nomicon/subtyping.html).

Related to #48929.
2021-01-23 20:15:54 +01:00
..
const_ptr.rs Fixes #81109 - Typo in pointer::wrapping_sub 2021-01-18 20:31:47 +05:30
mod.rs remove some outdated comments regarding debug assertions 2021-01-18 13:06:01 +01:00
mut_ptr.rs Fixes #81109 - Typo in pointer::wrapping_sub 2021-01-18 20:31:47 +05:30
non_null.rs More clear documentation for NonNull<T> 2021-01-22 14:46:11 -05:00
unique.rs Remove a stray ignore-tidy-undocumented-unsafe 2020-09-08 15:00:47 -05:00