diff options
| author | Niv Kaminer <nivkner@zoho.com> | 2018-08-21 15:24:14 +0300 |
|---|---|---|
| committer | Niv Kaminer <nivkner@zoho.com> | 2018-08-23 02:13:01 +0300 |
| commit | bfed149020cc48260056c8621d93a7931fba6bde (patch) | |
| tree | 6921929318385b870c268b9f483ccba134290447 | |
| parent | 871e89b3519ae794cc3e7bd9429e1d867eb541fb (diff) | |
| download | rust-bfed149020cc48260056c8621d93a7931fba6bde.tar.gz rust-bfed149020cc48260056c8621d93a7931fba6bde.zip | |
reexport Unpin into pin module
| -rw-r--r-- | src/liballoc/pin.rs | 3 | ||||
| -rw-r--r-- | src/libcore/marker.rs | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/liballoc/pin.rs b/src/liballoc/pin.rs index a1abaf74b26..a5bc4c75bd5 100644 --- a/src/liballoc/pin.rs +++ b/src/liballoc/pin.rs @@ -96,11 +96,12 @@ #![unstable(feature = "pin", issue = "49150")] pub use core::pin::*; +pub use core::marker::Unpin; use core::convert::From; use core::fmt; use core::future::{Future, FutureObj, LocalFutureObj, UnsafeFutureObj}; -use core::marker::{Unpin, Unsize}; +use core::marker::Unsize; use core::ops::{CoerceUnsized, Deref, DerefMut}; use core::task::{Context, Poll}; diff --git a/src/libcore/marker.rs b/src/libcore/marker.rs index 8e674c0bb7f..11f4821a925 100644 --- a/src/libcore/marker.rs +++ b/src/libcore/marker.rs @@ -630,7 +630,7 @@ unsafe impl<'a, T: ?Sized> Freeze for &'a mut T {} /// /// This trait is automatically implemented for almost every type. /// -/// [`replace`]: ../mem/fn.replace.html +/// [`replace`]: ../../core/mem/fn.replace.html /// [`PinMut`]: ../pin/struct.PinMut.html #[unstable(feature = "pin", issue = "49150")] pub auto trait Unpin {} |
