]> git.lizzy.rs Git - rust.git/blobdiff - library/core/src/ptr/non_null.rs
Rollup merge of #82829 - JohnTitor:handle-neg-val, r=estebank
[rust.git] / library / core / src / ptr / non_null.rs
index 709c247f2961466138e8e7bf2ef8dc9d595b38dc..8d533cd6be117cb53c65070f7851b5a05d5849f6 100644 (file)
@@ -425,7 +425,6 @@ pub const fn as_mut_ptr(self) -> *mut T {
     /// See also [`slice::from_raw_parts`].
     ///
     /// [valid]: crate::ptr#safety
-    /// [`pointer::offset`]: ../../std/primitive.pointer.html#method.offset
     #[inline]
     #[unstable(feature = "ptr_as_uninit", issue = "75402")]
     pub unsafe fn as_uninit_slice(&self) -> &[MaybeUninit<T>] {
@@ -470,7 +469,6 @@ pub unsafe fn as_uninit_slice(&self) -> &[MaybeUninit<T>] {
     /// See also [`slice::from_raw_parts_mut`].
     ///
     /// [valid]: crate::ptr#safety
-    /// [`pointer::offset`]: ../../std/primitive.pointer.html#method.offset
     ///
     /// # Examples
     ///