link to items in pin module to std docs

This commit is contained in:
Niv Kaminer 2018-08-23 01:16:35 +03:00
parent 3683bf279d
commit b26cce5ec0
3 changed files with 7 additions and 7 deletions

View file

@ -35,8 +35,8 @@
//!
//! [`PinMut`]: struct.PinMut.html
//! [`PinBox`]: struct.PinBox.html
//! [`Unpin`]: ../../core/marker/trait.Unpin.html
//! [`swap`]: ../../core/mem/fn.swap.html
//! [`Unpin`]: trait.Unpin.html
//! [`swap`]: ../../std/mem/fn.swap.html
//! [`Box`]: ../boxed/struct.Box.html
//!
//! # Examples
@ -115,7 +115,7 @@ use boxed::Box;
/// See the [module documentation] for furthur explaination on pinning.
///
/// [`Box`]: ../boxed/struct.Box.html
/// [`Unpin`]: ../../core/marker/trait.Unpin.html
/// [`Unpin`]: ../../std/marker/trait.Unpin.html
/// [module documentation]: index.html
#[unstable(feature = "pin", issue = "49150")]
#[fundamental]

View file

@ -632,9 +632,9 @@ unsafe impl<'a, T: ?Sized> Freeze for &'a mut T {}
///
/// This trait is automatically implemented for almost every type.
///
/// [`replace`]: ../../core/mem/fn.replace.html
/// [`replace`]: ../../std/mem/fn.replace.html
/// [`PinMut`]: ../pin/struct.PinMut.html
/// [`pin module`]: ../../alloc/pin/index.html
/// [`pin module`]: ../../std/pin/index.html
#[unstable(feature = "pin", issue = "49150")]
pub auto trait Unpin {}

View file

@ -29,8 +29,8 @@ use ops::{Deref, DerefMut, CoerceUnsized};
///
/// See the [`pin` module] documentation for furthur explanation on pinning.
///
/// [`Unpin`]: ../../core/marker/trait.Unpin.html
/// [`pin` module]: ../../alloc/pin/index.html
/// [`Unpin`]: ../../std/marker/trait.Unpin.html
/// [`pin` module]: ../../std/pin/index.html
#[unstable(feature = "pin", issue = "49150")]
#[fundamental]
pub struct PinMut<'a, T: ?Sized + 'a> {