Use intra-doc-links in core::{raw, ffi, pin}
This commit is contained in:
parent
5528caf914
commit
c8a372ecff
3 changed files with 15 additions and 34 deletions
|
@ -281,8 +281,6 @@ impl<'a, 'f: 'a> DerefMut for VaList<'a, 'f> {
|
||||||
// improving this.
|
// improving this.
|
||||||
mod sealed_trait {
|
mod sealed_trait {
|
||||||
/// Trait which permits the allowed types to be used with [VaList::arg].
|
/// Trait which permits the allowed types to be used with [VaList::arg].
|
||||||
///
|
|
||||||
/// [VaList::arg]: ../struct.VaList.html#method.arg
|
|
||||||
#[unstable(
|
#[unstable(
|
||||||
feature = "c_variadic",
|
feature = "c_variadic",
|
||||||
reason = "the `c_variadic` feature has not been properly tested on \
|
reason = "the `c_variadic` feature has not been properly tested on \
|
||||||
|
|
|
@ -349,37 +349,28 @@
|
||||||
//! mutable reference even when you just have [`Pin`]`<&mut Self>` (such as in your own
|
//! mutable reference even when you just have [`Pin`]`<&mut Self>` (such as in your own
|
||||||
//! [`poll`] implementation).
|
//! [`poll`] implementation).
|
||||||
//!
|
//!
|
||||||
//! [`Pin<P>`]: struct.Pin.html
|
//! [`Pin<P>`]: Pin
|
||||||
//! [`Unpin`]: ../marker/trait.Unpin.html
|
//! [`Deref`]: crate::ops::Deref
|
||||||
//! [`Deref`]: ../ops/trait.Deref.html
|
//! [`DerefMut`]: crate::ops::DerefMut
|
||||||
//! [`DerefMut`]: ../ops/trait.DerefMut.html
|
//! [`mem::swap`]: crate::mem::swap
|
||||||
//! [`mem::swap`]: ../mem/fn.swap.html
|
//! [`mem::forget`]: crate::mem::forget
|
||||||
//! [`mem::forget`]: ../mem/fn.forget.html
|
|
||||||
//! [`Box<T>`]: ../../std/boxed/struct.Box.html
|
//! [`Box<T>`]: ../../std/boxed/struct.Box.html
|
||||||
//! [`Vec<T>`]: ../../std/vec/struct.Vec.html
|
//! [`Vec<T>`]: ../../std/vec/struct.Vec.html
|
||||||
//! [`Vec::set_len`]: ../../std/vec/struct.Vec.html#method.set_len
|
//! [`Vec::set_len`]: ../../std/vec/struct.Vec.html#method.set_len
|
||||||
//! [`Pin`]: struct.Pin.html
|
|
||||||
//! [`Box`]: ../../std/boxed/struct.Box.html
|
//! [`Box`]: ../../std/boxed/struct.Box.html
|
||||||
//! [Vec::pop]: ../../std/vec/struct.Vec.html#method.pop
|
//! [Vec::pop]: ../../std/vec/struct.Vec.html#method.pop
|
||||||
//! [Vec::push]: ../../std/vec/struct.Vec.html#method.push
|
//! [Vec::push]: ../../std/vec/struct.Vec.html#method.push
|
||||||
//! [`Rc`]: ../../std/rc/struct.Rc.html
|
//! [`Rc`]: ../../std/rc/struct.Rc.html
|
||||||
//! [`RefCell<T>`]: ../../std/cell/struct.RefCell.html
|
//! [`RefCell<T>`]: crate::cell::RefCell
|
||||||
//! [`Drop`]: ../../std/ops/trait.Drop.html
|
//! [`drop`]: Drop::drop
|
||||||
//! [`drop`]: ../../std/ops/trait.Drop.html#tymethod.drop
|
|
||||||
//! [`VecDeque<T>`]: ../../std/collections/struct.VecDeque.html
|
//! [`VecDeque<T>`]: ../../std/collections/struct.VecDeque.html
|
||||||
//! [`Option<T>`]: ../../std/option/enum.Option.html
|
//! [`Option<T>`]: Option
|
||||||
//! [`VecDeque<T>`]: ../../std/collections/struct.VecDeque.html
|
//! [`Some(v)`]: Some
|
||||||
//! [`RefCell<T>`]: ../cell/struct.RefCell.html
|
//! [`ptr::write`]: crate::ptr::write
|
||||||
//! [`None`]: ../option/enum.Option.html#variant.None
|
//! [`Future`]: crate::future::Future
|
||||||
//! [`Some(v)`]: ../option/enum.Option.html#variant.Some
|
|
||||||
//! [`ptr::write`]: ../ptr/fn.write.html
|
|
||||||
//! [`Future`]: ../future/trait.Future.html
|
|
||||||
//! [drop-impl]: #drop-implementation
|
//! [drop-impl]: #drop-implementation
|
||||||
//! [drop-guarantee]: #drop-guarantee
|
//! [drop-guarantee]: #drop-guarantee
|
||||||
//! [`poll`]: ../../std/future/trait.Future.html#tymethod.poll
|
//! [`poll`]: crate::future::Future::poll
|
||||||
//! [`Pin::get_unchecked_mut`]: struct.Pin.html#method.get_unchecked_mut
|
|
||||||
//! [`bool`]: ../../std/primitive.bool.html
|
|
||||||
//! [`i32`]: ../../std/primitive.i32.html
|
|
||||||
|
|
||||||
#![stable(feature = "pin", since = "1.33.0")]
|
#![stable(feature = "pin", since = "1.33.0")]
|
||||||
|
|
||||||
|
@ -397,8 +388,7 @@ use crate::ops::{CoerceUnsized, Deref, DerefMut, DispatchFromDyn, Receiver};
|
||||||
///
|
///
|
||||||
/// *See the [`pin` module] documentation for an explanation of pinning.*
|
/// *See the [`pin` module] documentation for an explanation of pinning.*
|
||||||
///
|
///
|
||||||
/// [`Unpin`]: ../../std/marker/trait.Unpin.html
|
/// [`pin` module]: self
|
||||||
/// [`pin` module]: ../../std/pin/index.html
|
|
||||||
//
|
//
|
||||||
// Note: the `Clone` derive below causes unsoundness as it's possible to implement
|
// Note: the `Clone` derive below causes unsoundness as it's possible to implement
|
||||||
// `Clone` for mutable references.
|
// `Clone` for mutable references.
|
||||||
|
@ -481,8 +471,6 @@ impl<P: Deref<Target: Unpin>> Pin<P> {
|
||||||
///
|
///
|
||||||
/// Unlike `Pin::new_unchecked`, this method is safe because the pointer
|
/// Unlike `Pin::new_unchecked`, this method is safe because the pointer
|
||||||
/// `P` dereferences to an [`Unpin`] type, which cancels the pinning guarantees.
|
/// `P` dereferences to an [`Unpin`] type, which cancels the pinning guarantees.
|
||||||
///
|
|
||||||
/// [`Unpin`]: ../../std/marker/trait.Unpin.html
|
|
||||||
#[stable(feature = "pin", since = "1.33.0")]
|
#[stable(feature = "pin", since = "1.33.0")]
|
||||||
#[inline(always)]
|
#[inline(always)]
|
||||||
pub fn new(pointer: P) -> Pin<P> {
|
pub fn new(pointer: P) -> Pin<P> {
|
||||||
|
@ -495,8 +483,6 @@ impl<P: Deref<Target: Unpin>> Pin<P> {
|
||||||
///
|
///
|
||||||
/// This requires that the data inside this `Pin` is [`Unpin`] so that we
|
/// This requires that the data inside this `Pin` is [`Unpin`] so that we
|
||||||
/// can ignore the pinning invariants when unwrapping it.
|
/// can ignore the pinning invariants when unwrapping it.
|
||||||
///
|
|
||||||
/// [`Unpin`]: ../../std/marker/trait.Unpin.html
|
|
||||||
#[stable(feature = "pin_into_inner", since = "1.39.0")]
|
#[stable(feature = "pin_into_inner", since = "1.39.0")]
|
||||||
#[inline(always)]
|
#[inline(always)]
|
||||||
pub fn into_inner(pin: Pin<P>) -> P {
|
pub fn into_inner(pin: Pin<P>) -> P {
|
||||||
|
@ -568,7 +554,7 @@ impl<P: Deref> Pin<P> {
|
||||||
/// }
|
/// }
|
||||||
/// ```
|
/// ```
|
||||||
///
|
///
|
||||||
/// [`mem::swap`]: ../../std/mem/fn.swap.html
|
/// [`mem::swap`]: crate::mem::swap
|
||||||
#[cfg_attr(not(bootstrap), lang = "new_unchecked")]
|
#[cfg_attr(not(bootstrap), lang = "new_unchecked")]
|
||||||
#[stable(feature = "pin", since = "1.33.0")]
|
#[stable(feature = "pin", since = "1.33.0")]
|
||||||
#[inline(always)]
|
#[inline(always)]
|
||||||
|
@ -603,9 +589,6 @@ impl<P: Deref> Pin<P> {
|
||||||
///
|
///
|
||||||
/// If the underlying data is [`Unpin`], [`Pin::into_inner`] should be used
|
/// If the underlying data is [`Unpin`], [`Pin::into_inner`] should be used
|
||||||
/// instead.
|
/// instead.
|
||||||
///
|
|
||||||
/// [`Unpin`]: ../../std/marker/trait.Unpin.html
|
|
||||||
/// [`Pin::into_inner`]: #method.into_inner
|
|
||||||
#[stable(feature = "pin_into_inner", since = "1.39.0")]
|
#[stable(feature = "pin_into_inner", since = "1.39.0")]
|
||||||
#[inline(always)]
|
#[inline(always)]
|
||||||
pub unsafe fn into_inner_unchecked(pin: Pin<P>) -> P {
|
pub unsafe fn into_inner_unchecked(pin: Pin<P>) -> P {
|
||||||
|
|
|
@ -26,7 +26,7 @@
|
||||||
/// [`std::mem::transmute`][transmute]. Similarly, the only way to create a true
|
/// [`std::mem::transmute`][transmute]. Similarly, the only way to create a true
|
||||||
/// trait object from a `TraitObject` value is with `transmute`.
|
/// trait object from a `TraitObject` value is with `transmute`.
|
||||||
///
|
///
|
||||||
/// [transmute]: ../intrinsics/fn.transmute.html
|
/// [transmute]: crate::intrinsics::transmute
|
||||||
///
|
///
|
||||||
/// Synthesizing a trait object with mismatched types—one where the
|
/// Synthesizing a trait object with mismatched types—one where the
|
||||||
/// vtable does not correspond to the type of the value to which the
|
/// vtable does not correspond to the type of the value to which the
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue