@@ -92,25 +92,29 @@ pub(crate) fn dummy_waker() -> Waker {
92
92
unsafe { Waker :: from_raw ( RawWaker :: new ( core:: ptr:: null ( ) , & DUMMY_WAKER_VTABLE ) ) }
93
93
}
94
94
95
- /// A type alias for a future that returns a result of type T.
96
95
#[ cfg( feature = "std" ) ]
96
+ /// A type alias for a future that returns a result of type T.
97
97
pub type AsyncResult < ' a , T > = Pin < Box < dyn Future < Output = Result < T , ( ) > > + ' a + Send > > ;
98
98
#[ cfg( not( feature = "std" ) ) ]
99
+ /// A type alias for a future that returns a result of type T.
99
100
pub type AsyncResult < ' a , T > = Pin < Box < dyn Future < Output = Result < T , ( ) > > + ' a > > ;
100
101
101
- // Marker trait to optionally implement `Sync` under std.
102
+ /// Marker trait to optionally implement `Sync` under std.
102
103
#[ cfg( feature = "std" ) ]
103
104
pub use core:: marker:: Sync as MaybeSync ;
104
105
105
106
#[ cfg( not( feature = "std" ) ) ]
107
+ /// Marker trait to optionally implement `Sync` under std.
106
108
pub trait MaybeSync { }
107
109
#[ cfg( not( feature = "std" ) ) ]
108
110
impl < T > MaybeSync for T where T : ?Sized { }
109
111
110
- // Marker trait to optionally implement `Send` under std.
112
+ /// Marker trait to optionally implement `Send` under std.
111
113
#[ cfg( feature = "std" ) ]
112
114
pub use core:: marker:: Send as MaybeSend ;
115
+
113
116
#[ cfg( not( feature = "std" ) ) ]
117
+ /// Marker trait to optionally implement `Send` under std.
114
118
pub trait MaybeSend { }
115
119
#[ cfg( not( feature = "std" ) ) ]
116
120
impl < T > MaybeSend for T where T : ?Sized { }
0 commit comments