Skip to content

Commit 6a81ec3

Browse files
committed
Fix links to [strict|exposed] provenance sections of [std|core]::ptr
1 parent d93fecc commit 6a81ec3

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

library/core/src/ptr/const_ptr.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ impl<T: ?Sized> *const T {
220220
/// provenance. (Reconstructing address space information, if required, is your responsibility.)
221221
///
222222
/// Using this method means that code is *not* following [Strict
223-
/// Provenance][../index.html#strict-provenance] rules. Supporting
223+
/// Provenance][super#strict-provenance] rules. Supporting
224224
/// [`from_exposed_addr`][] complicates specification and reasoning and may not be supported by
225225
/// tools that help you to stay conformant with the Rust memory model, so it is recommended to
226226
/// use [`addr`][pointer::addr] wherever possible.
@@ -232,7 +232,7 @@ impl<T: ?Sized> *const T {
232232
/// available.
233233
///
234234
/// It is unclear whether this method can be given a satisfying unambiguous specification. This
235-
/// API and its claimed semantics are part of [Exposed Provenance][../index.html#exposed-provenance].
235+
/// API and its claimed semantics are part of [Exposed Provenance][super#exposed-provenance].
236236
///
237237
/// [`from_exposed_addr`]: from_exposed_addr
238238
#[must_use]

library/core/src/ptr/mod.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -649,7 +649,7 @@ pub const fn invalid_mut<T>(addr: usize) -> *mut T {
649649
/// address makes sense in the address space that this pointer will be used with.
650650
///
651651
/// Using this function means that code is *not* following [Strict
652-
/// Provenance][../index.html#strict-provenance] rules. "Guessing" a
652+
/// Provenance][self#strict-provenance] rules. "Guessing" a
653653
/// suitable provenance complicates specification and reasoning and may not be supported by
654654
/// tools that help you to stay conformant with the Rust memory model, so it is recommended to
655655
/// use [`with_addr`][pointer::with_addr] wherever possible.
@@ -660,7 +660,7 @@ pub const fn invalid_mut<T>(addr: usize) -> *mut T {
660660
/// pointer has to pick up.
661661
///
662662
/// It is unclear whether this function can be given a satisfying unambiguous specification. This
663-
/// API and its claimed semantics are part of [Exposed Provenance][../index.html#exposed-provenance].
663+
/// API and its claimed semantics are part of [Exposed Provenance][self#exposed-provenance].
664664
#[must_use]
665665
#[inline(always)]
666666
#[unstable(feature = "exposed_provenance", issue = "95228")]
@@ -689,7 +689,7 @@ where
689689
/// address makes sense in the address space that this pointer will be used with.
690690
///
691691
/// Using this function means that code is *not* following [Strict
692-
/// Provenance][../index.html#strict-provenance] rules. "Guessing" a
692+
/// Provenance][self#strict-provenance] rules. "Guessing" a
693693
/// suitable provenance complicates specification and reasoning and may not be supported by
694694
/// tools that help you to stay conformant with the Rust memory model, so it is recommended to
695695
/// use [`with_addr`][pointer::with_addr] wherever possible.
@@ -700,7 +700,7 @@ where
700700
/// pointer has to pick up.
701701
///
702702
/// It is unclear whether this function can be given a satisfying unambiguous specification. This
703-
/// API and its claimed semantics are part of [Exposed Provenance][../index.html#exposed-provenance].
703+
/// API and its claimed semantics are part of [Exposed Provenance][self#exposed-provenance].
704704
#[must_use]
705705
#[inline(always)]
706706
#[unstable(feature = "exposed_provenance", issue = "95228")]

library/core/src/ptr/mut_ptr.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ impl<T: ?Sized> *mut T {
227227
/// provenance. (Reconstructing address space information, if required, is your responsibility.)
228228
///
229229
/// Using this method means that code is *not* following [Strict
230-
/// Provenance][../index.html#strict-provenance] rules. Supporting
230+
/// Provenance][super#strict-provenance] rules. Supporting
231231
/// [`from_exposed_addr_mut`][] complicates specification and reasoning and may not be supported
232232
/// by tools that help you to stay conformant with the Rust memory model, so it is recommended
233233
/// to use [`addr`][pointer::addr] wherever possible.
@@ -239,7 +239,7 @@ impl<T: ?Sized> *mut T {
239239
/// available.
240240
///
241241
/// It is unclear whether this method can be given a satisfying unambiguous specification. This
242-
/// API and its claimed semantics are part of [Exposed Provenance][../index.html#exposed-provenance].
242+
/// API and its claimed semantics are part of [Exposed Provenance][super#exposed-provenance].
243243
///
244244
/// [`from_exposed_addr_mut`]: from_exposed_addr_mut
245245
#[must_use]

0 commit comments

Comments
 (0)