reexport Unpin into pin module

This commit is contained in:
Niv Kaminer 2018-08-21 15:24:14 +03:00
parent 871e89b351
commit bfed149020
2 changed files with 3 additions and 2 deletions

View File

@ -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};

View File

@ -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 {}