X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2Flibcore%2Fpin.rs;h=676d2c784acee2143bf2b72efd441193fac2fffd;hb=94aa655a3c7a9dde612b5e65e5e8ec3c57d143a3;hp=6a0c5bbebc1c6cf1270be42fd7217858831a35bf;hpb=9af3eec9a6174d911d692bfe2faa1815fd6c3640;p=rust.git diff --git a/src/libcore/pin.rs b/src/libcore/pin.rs index 6a0c5bbebc1..676d2c784ac 100644 --- a/src/libcore/pin.rs +++ b/src/libcore/pin.rs @@ -672,6 +672,7 @@ impl<'a, T: ?Sized> Pin<&'a T> { #[stable(feature = "pin", since = "1.33.0")] pub unsafe fn map_unchecked(self, func: F) -> Pin<&'a U> where + U: ?Sized, F: FnOnce(&T) -> &U, { let pointer = &*self.pointer; @@ -763,6 +764,7 @@ pub unsafe fn get_unchecked_mut(self) -> &'a mut T { #[stable(feature = "pin", since = "1.33.0")] pub unsafe fn map_unchecked_mut(self, func: F) -> Pin<&'a mut U> where + U: ?Sized, F: FnOnce(&mut T) -> &mut U, { let pointer = Pin::get_unchecked_mut(self); @@ -786,7 +788,7 @@ fn deref_mut(&mut self) -> &mut P::Target { } } -#[unstable(feature = "receiver_trait", issue = "0")] +#[unstable(feature = "receiver_trait", issue = "none")] impl Receiver for Pin

{} #[stable(feature = "pin", since = "1.33.0")]