X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=library%2Fcore%2Fsrc%2Fptr%2Fnon_null.rs;fp=library%2Fcore%2Fsrc%2Fptr%2Fnon_null.rs;h=6f402924e75dfadec1cb0bb3acdf2ff0e8c40e6c;hb=637592d8c3d07aeb2a204402fe250c6a763aa452;hp=7516d4bba4cdfcd98a6d94c08eb65785879a571c;hpb=2ad4eb207b369017f5140918b5e4b0d3650b46b0;p=rust.git diff --git a/library/core/src/ptr/non_null.rs b/library/core/src/ptr/non_null.rs index 7516d4bba4c..6f402924e75 100644 --- a/library/core/src/ptr/non_null.rs +++ b/library/core/src/ptr/non_null.rs @@ -256,8 +256,10 @@ pub const fn to_raw_parts(self) -> (NonNull<()>, ::Metadata /// Gets the "address" portion of the pointer. /// + /// For more details see the equivalent method on a raw pointer, [`pointer::addr`]. + /// /// This API and its claimed semantics are part of the Strict Provenance experiment, - /// see the [module documentation][crate::ptr] for details. + /// see the [`ptr` module documentation][crate::ptr]. #[must_use] #[inline] #[unstable(feature = "strict_provenance", issue = "95228")] @@ -272,8 +274,10 @@ pub fn addr(self) -> NonZeroUsize /// Creates a new pointer with the given address. /// + /// For more details see the equivalent method on a raw pointer, [`pointer::with_addr`]. + /// /// This API and its claimed semantics are part of the Strict Provenance experiment, - /// see the [module documentation][crate::ptr] for details. + /// see the [`ptr` module documentation][crate::ptr]. #[must_use] #[inline] #[unstable(feature = "strict_provenance", issue = "95228")] @@ -287,10 +291,10 @@ pub fn with_addr(self, addr: NonZeroUsize) -> Self /// Creates a new pointer by mapping `self`'s address to a new one. /// - /// This is a convenience for [`with_addr`][Self::with_addr], see that method for details. + /// For more details see the equivalent method on a raw pointer, [`pointer::map_addr`]. /// /// This API and its claimed semantics are part of the Strict Provenance experiment, - /// see the [module documentation][crate::ptr] for details. + /// see the [`ptr` module documentation][crate::ptr]. #[must_use] #[inline] #[unstable(feature = "strict_provenance", issue = "95228")]