@@ -92,25 +92,29 @@ pub(crate) fn dummy_waker() -> Waker {
9292 unsafe { Waker :: from_raw ( RawWaker :: new ( core:: ptr:: null ( ) , & DUMMY_WAKER_VTABLE ) ) }
9393}
9494
95- /// A type alias for a future that returns a result of type T.
9695#[ cfg( feature = "std" ) ]
96+ /// A type alias for a future that returns a result of type T.
9797pub type AsyncResult < ' a , T > = Pin < Box < dyn Future < Output = Result < T , ( ) > > + ' a + Send > > ;
9898#[ cfg( not( feature = "std" ) ) ]
99+ /// A type alias for a future that returns a result of type T.
99100pub type AsyncResult < ' a , T > = Pin < Box < dyn Future < Output = Result < T , ( ) > > + ' a > > ;
100101
101- // Marker trait to optionally implement `Sync` under std.
102+ /// Marker trait to optionally implement `Sync` under std.
102103#[ cfg( feature = "std" ) ]
103104pub use core:: marker:: Sync as MaybeSync ;
104105
105106#[ cfg( not( feature = "std" ) ) ]
107+ /// Marker trait to optionally implement `Sync` under std.
106108pub trait MaybeSync { }
107109#[ cfg( not( feature = "std" ) ) ]
108110impl < T > MaybeSync for T where T : ?Sized { }
109111
110- // Marker trait to optionally implement `Send` under std.
112+ /// Marker trait to optionally implement `Send` under std.
111113#[ cfg( feature = "std" ) ]
112114pub use core:: marker:: Send as MaybeSend ;
115+
113116#[ cfg( not( feature = "std" ) ) ]
117+ /// Marker trait to optionally implement `Send` under std.
114118pub trait MaybeSend { }
115119#[ cfg( not( feature = "std" ) ) ]
116120impl < T > MaybeSend for T where T : ?Sized { }
0 commit comments