Rollup merge of #120338 - steffahn:provenance_links, r=Nilstrieb
Fix links to [strict|exposed] provenance sections of `[std|core]::ptr`
This commit is contained in:
commit
ea27a57de9
@ -220,7 +220,7 @@ impl<T: ?Sized> *const T {
|
|||||||
/// provenance. (Reconstructing address space information, if required, is your responsibility.)
|
/// provenance. (Reconstructing address space information, if required, is your responsibility.)
|
||||||
///
|
///
|
||||||
/// Using this method means that code is *not* following [Strict
|
/// Using this method means that code is *not* following [Strict
|
||||||
/// Provenance][../index.html#strict-provenance] rules. Supporting
|
/// Provenance][super#strict-provenance] rules. Supporting
|
||||||
/// [`from_exposed_addr`][] complicates specification and reasoning and may not be supported by
|
/// [`from_exposed_addr`][] complicates specification and reasoning and may not be supported by
|
||||||
/// tools that help you to stay conformant with the Rust memory model, so it is recommended to
|
/// tools that help you to stay conformant with the Rust memory model, so it is recommended to
|
||||||
/// use [`addr`][pointer::addr] wherever possible.
|
/// use [`addr`][pointer::addr] wherever possible.
|
||||||
@ -232,7 +232,7 @@ impl<T: ?Sized> *const T {
|
|||||||
/// available.
|
/// available.
|
||||||
///
|
///
|
||||||
/// It is unclear whether this method can be given a satisfying unambiguous specification. This
|
/// It is unclear whether this method can be given a satisfying unambiguous specification. This
|
||||||
/// API and its claimed semantics are part of [Exposed Provenance][../index.html#exposed-provenance].
|
/// API and its claimed semantics are part of [Exposed Provenance][super#exposed-provenance].
|
||||||
///
|
///
|
||||||
/// [`from_exposed_addr`]: from_exposed_addr
|
/// [`from_exposed_addr`]: from_exposed_addr
|
||||||
#[must_use]
|
#[must_use]
|
||||||
|
@ -649,7 +649,7 @@ pub const fn invalid_mut<T>(addr: usize) -> *mut T {
|
|||||||
/// address makes sense in the address space that this pointer will be used with.
|
/// address makes sense in the address space that this pointer will be used with.
|
||||||
///
|
///
|
||||||
/// Using this function means that code is *not* following [Strict
|
/// Using this function means that code is *not* following [Strict
|
||||||
/// Provenance][../index.html#strict-provenance] rules. "Guessing" a
|
/// Provenance][self#strict-provenance] rules. "Guessing" a
|
||||||
/// suitable provenance complicates specification and reasoning and may not be supported by
|
/// suitable provenance complicates specification and reasoning and may not be supported by
|
||||||
/// tools that help you to stay conformant with the Rust memory model, so it is recommended to
|
/// tools that help you to stay conformant with the Rust memory model, so it is recommended to
|
||||||
/// use [`with_addr`][pointer::with_addr] wherever possible.
|
/// use [`with_addr`][pointer::with_addr] wherever possible.
|
||||||
@ -660,7 +660,7 @@ pub const fn invalid_mut<T>(addr: usize) -> *mut T {
|
|||||||
/// pointer has to pick up.
|
/// pointer has to pick up.
|
||||||
///
|
///
|
||||||
/// It is unclear whether this function can be given a satisfying unambiguous specification. This
|
/// It is unclear whether this function can be given a satisfying unambiguous specification. This
|
||||||
/// API and its claimed semantics are part of [Exposed Provenance][../index.html#exposed-provenance].
|
/// API and its claimed semantics are part of [Exposed Provenance][self#exposed-provenance].
|
||||||
#[must_use]
|
#[must_use]
|
||||||
#[inline(always)]
|
#[inline(always)]
|
||||||
#[unstable(feature = "exposed_provenance", issue = "95228")]
|
#[unstable(feature = "exposed_provenance", issue = "95228")]
|
||||||
@ -689,7 +689,7 @@ where
|
|||||||
/// address makes sense in the address space that this pointer will be used with.
|
/// address makes sense in the address space that this pointer will be used with.
|
||||||
///
|
///
|
||||||
/// Using this function means that code is *not* following [Strict
|
/// Using this function means that code is *not* following [Strict
|
||||||
/// Provenance][../index.html#strict-provenance] rules. "Guessing" a
|
/// Provenance][self#strict-provenance] rules. "Guessing" a
|
||||||
/// suitable provenance complicates specification and reasoning and may not be supported by
|
/// suitable provenance complicates specification and reasoning and may not be supported by
|
||||||
/// tools that help you to stay conformant with the Rust memory model, so it is recommended to
|
/// tools that help you to stay conformant with the Rust memory model, so it is recommended to
|
||||||
/// use [`with_addr`][pointer::with_addr] wherever possible.
|
/// use [`with_addr`][pointer::with_addr] wherever possible.
|
||||||
@ -700,7 +700,7 @@ where
|
|||||||
/// pointer has to pick up.
|
/// pointer has to pick up.
|
||||||
///
|
///
|
||||||
/// It is unclear whether this function can be given a satisfying unambiguous specification. This
|
/// It is unclear whether this function can be given a satisfying unambiguous specification. This
|
||||||
/// API and its claimed semantics are part of [Exposed Provenance][../index.html#exposed-provenance].
|
/// API and its claimed semantics are part of [Exposed Provenance][self#exposed-provenance].
|
||||||
#[must_use]
|
#[must_use]
|
||||||
#[inline(always)]
|
#[inline(always)]
|
||||||
#[unstable(feature = "exposed_provenance", issue = "95228")]
|
#[unstable(feature = "exposed_provenance", issue = "95228")]
|
||||||
|
@ -227,7 +227,7 @@ impl<T: ?Sized> *mut T {
|
|||||||
/// provenance. (Reconstructing address space information, if required, is your responsibility.)
|
/// provenance. (Reconstructing address space information, if required, is your responsibility.)
|
||||||
///
|
///
|
||||||
/// Using this method means that code is *not* following [Strict
|
/// Using this method means that code is *not* following [Strict
|
||||||
/// Provenance][../index.html#strict-provenance] rules. Supporting
|
/// Provenance][super#strict-provenance] rules. Supporting
|
||||||
/// [`from_exposed_addr_mut`][] complicates specification and reasoning and may not be supported
|
/// [`from_exposed_addr_mut`][] complicates specification and reasoning and may not be supported
|
||||||
/// by tools that help you to stay conformant with the Rust memory model, so it is recommended
|
/// by tools that help you to stay conformant with the Rust memory model, so it is recommended
|
||||||
/// to use [`addr`][pointer::addr] wherever possible.
|
/// to use [`addr`][pointer::addr] wherever possible.
|
||||||
@ -239,7 +239,7 @@ impl<T: ?Sized> *mut T {
|
|||||||
/// available.
|
/// available.
|
||||||
///
|
///
|
||||||
/// It is unclear whether this method can be given a satisfying unambiguous specification. This
|
/// It is unclear whether this method can be given a satisfying unambiguous specification. This
|
||||||
/// API and its claimed semantics are part of [Exposed Provenance][../index.html#exposed-provenance].
|
/// API and its claimed semantics are part of [Exposed Provenance][super#exposed-provenance].
|
||||||
///
|
///
|
||||||
/// [`from_exposed_addr_mut`]: from_exposed_addr_mut
|
/// [`from_exposed_addr_mut`]: from_exposed_addr_mut
|
||||||
#[must_use]
|
#[must_use]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user