mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-14 02:49:40 +00:00
reexport Unpin into pin module
This commit is contained in:
parent
871e89b351
commit
bfed149020
@ -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};
|
||||
|
||||
|
@ -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 {}
|
||||
|
Loading…
Reference in New Issue
Block a user