From b26cce5ec045391d5d38e46c32aae30439b4560f Mon Sep 17 00:00:00 2001 From: Niv Kaminer Date: Thu, 23 Aug 2018 01:16:35 +0300 Subject: [PATCH] link to items in pin module to std docs --- src/liballoc/pin.rs | 6 +++--- src/libcore/marker.rs | 4 ++-- src/libcore/pin.rs | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/liballoc/pin.rs b/src/liballoc/pin.rs index a5bc4c75bd55..625c42a64907 100644 --- a/src/liballoc/pin.rs +++ b/src/liballoc/pin.rs @@ -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] diff --git a/src/libcore/marker.rs b/src/libcore/marker.rs index 191634a9930b..dd57d2dd0091 100644 --- a/src/libcore/marker.rs +++ b/src/libcore/marker.rs @@ -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 {} diff --git a/src/libcore/pin.rs b/src/libcore/pin.rs index 380330d2eb1b..65057dfdacee 100644 --- a/src/libcore/pin.rs +++ b/src/libcore/pin.rs @@ -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> {