@@ -26,51 +26,6 @@ pub trait CoreFutureExt: Future {
26
26
27
27
impl < T : ?Sized > CoreFutureExt for T where T : Future { }
28
28
29
- // should be in std
30
- // impl<'a, F: ?Sized + Future + Unpin> Future for &'a mut F {
31
- // type Output = F::Output;
32
-
33
- // fn poll(mut self: PinMut<Self>, cx: &mut task::Context) -> Poll<Self::Output> {
34
- // F::poll(PinMut::new(&mut **self), cx)
35
- // }
36
- // }
37
-
38
- // impl<'a, F: ?Sized + Future> Future for PinMut<'a, F> {
39
- // type Output = F::Output;
40
-
41
- // fn poll(mut self: PinMut<Self>, cx: &mut task::Context) -> Poll<Self::Output> {
42
- // F::poll((*self).reborrow(), cx)
43
- // }
44
- // }
45
-
46
- // if_std! {
47
- // use std::boxed::{Box, PinBox};
48
-
49
- // impl<'a, F: ?Sized + Future + Unpin> Future for Box<F> {
50
- // type Output = F::Output;
51
-
52
- // fn poll(mut self: PinMut<Self>, cx: &mut task::Context) -> Poll<Self::Output> {
53
- // (**self).poll_unpin(cx)
54
- // }
55
- // }
56
-
57
- // impl<'a, F: ?Sized + Future> Future for PinBox<F> {
58
- // type Output = F::Output;
59
-
60
- // fn poll(mut self: PinMut<Self>, cx: &mut task::Context) -> Poll<Self::Output> {
61
- // self.as_pin_mut().poll(cx)
62
- // }
63
- // }
64
-
65
- // impl<'a, F: Future> Future for ::std::panic::AssertUnwindSafe<F> {
66
- // type Output = F::Output;
67
-
68
- // fn poll(mut self: PinMut<Self>, cx: &mut task::Context) -> Poll<Self::Output> {
69
- // unsafe { pinned_field!(self, 0).poll(cx) }
70
- // }
71
- // }
72
- // }
73
-
74
29
/// A convenience for futures that return `Result` values that includes
75
30
/// a variety of adapters tailored to such futures.
76
31
pub trait TryFuture {
0 commit comments