Unpin: Fix references to Pin type
This commit is contained in:
parent
8619e19dc4
commit
939c25a522
@ -595,15 +595,15 @@ unsafe impl<T: ?Sized> Freeze for *mut T {}
|
||||
unsafe impl<'a, T: ?Sized> Freeze for &'a T {}
|
||||
unsafe impl<'a, T: ?Sized> Freeze for &'a mut T {}
|
||||
|
||||
/// Types which can be moved out of a `Pin`.
|
||||
/// Types which can be moved out of a `PinMut`.
|
||||
///
|
||||
/// The `Unpin` trait is used to control the behavior of the [`Pin`] type. If a
|
||||
/// The `Unpin` trait is used to control the behavior of the [`PinMut`] type. If a
|
||||
/// type implements `Unpin`, it is safe to move a value of that type out of the
|
||||
/// `Pin` pointer.
|
||||
/// `PinMut` pointer.
|
||||
///
|
||||
/// This trait is automatically implemented for almost every type.
|
||||
///
|
||||
/// [`Pin`]: ../mem/struct.Pin.html
|
||||
/// [`PinMut`]: ../mem/struct.PinMut.html
|
||||
#[unstable(feature = "pin", issue = "49150")]
|
||||
pub unsafe auto trait Unpin {}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user