diff options
| author | Taylor Cramer <cramertj@google.com> | 2018-12-17 17:19:32 -0800 |
|---|---|---|
| committer | Taylor Cramer <cramertj@google.com> | 2018-12-21 20:41:24 -0800 |
| commit | 20d694a95f0110fe253bfca7e9929bfdc6440c7e (patch) | |
| tree | 59c2a5427db23ce29134edfcc5228514340e3ac7 /src/libcore/future | |
| parent | abaa9344d4c10a45d7725534145007a8284dabe8 (diff) | |
| download | rust-20d694a95f0110fe253bfca7e9929bfdc6440c7e.tar.gz rust-20d694a95f0110fe253bfca7e9929bfdc6440c7e.zip | |
Update Pin API to match the one proposed for stabilization
Remove pin::Unpin reexport and add Unpin to the prelude. Change Pin associated functions to methods. Rename get_mut_unchecked_ to get_unchecked_mut Remove impl Unpin for Pin Mark Pin repr(transparent)
Diffstat (limited to 'src/libcore/future')
| -rw-r--r-- | src/libcore/future/future.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcore/future/future.rs b/src/libcore/future/future.rs index 5dee1d6dd3a..da3aa8449ba 100644 --- a/src/libcore/future/future.rs +++ b/src/libcore/future/future.rs @@ -120,7 +120,7 @@ impl<'a, F: ?Sized + Future + Unpin> Future for &'a mut F { impl<P> Future for Pin<P> where - P: ops::DerefMut, + P: Unpin + ops::DerefMut, P::Target: Future, { type Output = <<P as ops::Deref>::Target as Future>::Output; |
