File tree 2 files changed +3
-24
lines changed
2 files changed +3
-24
lines changed Original file line number Diff line number Diff line change @@ -932,27 +932,6 @@ impl<'a, F: ?Sized + Future> Future for PinBox<F> {
932
932
}
933
933
}
934
934
935
- #[ unstable( feature = "futures_api" , issue = "50547" ) ]
936
- unsafe impl < F : Future < Output = ( ) > + Send + ' static > UnsafePoll for Box < F > {
937
- fn into_raw ( self ) -> * mut ( ) {
938
- unsafe {
939
- mem:: transmute ( self )
940
- }
941
- }
942
-
943
- unsafe fn poll ( task : * mut ( ) , cx : & mut Context ) -> Poll < ( ) > {
944
- let ptr: * mut F = mem:: transmute ( task) ;
945
- let pin: PinMut < F > = PinMut :: new_unchecked ( & mut * ptr) ;
946
- pin. poll ( cx)
947
- }
948
-
949
- unsafe fn drop ( task : * mut ( ) ) {
950
- let ptr: * mut F = mem:: transmute ( task) ;
951
- let boxed = Box :: from_raw ( ptr) ;
952
- drop ( boxed)
953
- }
954
- }
955
-
956
935
#[ unstable( feature = "futures_api" , issue = "50547" ) ]
957
936
unsafe impl < F : Future < Output = ( ) > + Send + ' static > UnsafePoll for PinBox < F > {
958
937
fn into_raw ( self ) -> * mut ( ) {
Original file line number Diff line number Diff line change @@ -326,9 +326,9 @@ impl<'a, F: Future> Future for AssertUnwindSafe<F> {
326
326
unsafe {
327
327
let pinned_field = PinMut :: new_unchecked (
328
328
& mut PinMut :: get_mut ( self . reborrow ( ) ) . 0
329
- ) ;
330
-
331
- pinned_field. poll ( cx)
329
+ ) ;
330
+
331
+ pinned_field. poll ( cx)
332
332
}
333
333
}
334
334
}
You can’t perform that action at this time.
0 commit comments