Used intra-doc links for ptr#safety
occurrences
This commit is contained in:
parent
a04e12002a
commit
6aae4a2fe6
@ -6427,7 +6427,7 @@ unsafe impl<'a, T> TrustedRandomAccess for RChunksExactMut<'a, T> {
|
||||
/// }
|
||||
/// ```
|
||||
///
|
||||
/// [valid]: ../../std/ptr/index.html#safety
|
||||
/// [valid]: crate::ptr#safety
|
||||
/// [`NonNull::dangling()`]: crate::ptr::NonNull::dangling
|
||||
/// [`pointer::offset`]: ../../std/primitive.pointer.html#method.offset
|
||||
#[inline]
|
||||
@ -6467,7 +6467,7 @@ pub unsafe fn from_raw_parts<'a, T>(data: *const T, len: usize) -> &'a [T] {
|
||||
/// * The total size `len * mem::size_of::<T>()` of the slice must be no larger than `isize::MAX`.
|
||||
/// See the safety documentation of [`pointer::offset`].
|
||||
///
|
||||
/// [valid]: ../../std/ptr/index.html#safety
|
||||
/// [valid]: crate::ptr#safety
|
||||
/// [`NonNull::dangling()`]: crate::ptr::NonNull::dangling
|
||||
/// [`pointer::offset`]: ../../std/primitive.pointer.html#method.offset
|
||||
#[inline]
|
||||
|
Loading…
x
Reference in New Issue
Block a user