about summary refs log tree commit diff
diff options
context:
space:
mode:
authorNiv Kaminer <nivkner@zoho.com>2018-08-23 01:16:35 +0300
committerNiv Kaminer <nivkner@zoho.com>2018-08-23 10:16:58 +0300
commitb26cce5ec045391d5d38e46c32aae30439b4560f (patch)
tree3c8a47fbab363c58a5d9cfa6e1b9718072bf8162
parent3683bf279d5f27ff1bdeb6e0359f9140679526ba (diff)
downloadrust-b26cce5ec045391d5d38e46c32aae30439b4560f.tar.gz
rust-b26cce5ec045391d5d38e46c32aae30439b4560f.zip
link to items in pin module to std docs
-rw-r--r--src/liballoc/pin.rs6
-rw-r--r--src/libcore/marker.rs4
-rw-r--r--src/libcore/pin.rs4
3 files changed, 7 insertions, 7 deletions
diff --git a/src/liballoc/pin.rs b/src/liballoc/pin.rs
index a5bc4c75bd5..625c42a6490 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 191634a9930..dd57d2dd009 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 380330d2eb1..65057dfdace 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> {