Skip to content

Commit

Permalink
link to items in pin module to std docs
Browse files Browse the repository at this point in the history
  • Loading branch information
nivkner committed Aug 23, 2018
1 parent 3683bf2 commit b26cce5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions src/liballoc/pin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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]
Expand Down
4 changes: 2 additions & 2 deletions src/libcore/marker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {}

Expand Down
4 changes: 2 additions & 2 deletions src/libcore/pin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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> {
Expand Down

0 comments on commit b26cce5

Please sign in to comment.