@@ -8,7 +8,7 @@ use ffi::{self, gboolean, gpointer};
88#[ cfg( all( not( unix) , docsrs) ) ]
99use libc:: c_int as RawFd ;
1010
11- #[ cfg( any ( unix, docsrs ) ) ]
11+ #[ cfg( unix) ]
1212use crate :: IOCondition ;
1313use crate :: { thread_guard:: ThreadGuard , translate:: * , ControlFlow , MainContext , Source } ;
1414
@@ -151,7 +151,7 @@ fn into_raw_child_watch_local<F: FnMut(Pid, i32) + 'static>(func: F) -> gpointer
151151 Box :: into_raw ( func) as gpointer
152152}
153153
154- #[ cfg( any ( unix, docsrs ) ) ]
154+ #[ cfg( unix) ]
155155#[ cfg_attr( docsrs, doc( cfg( unix) ) ) ]
156156unsafe extern "C" fn trampoline_unix_fd <
157157 F : FnMut ( RawFd , IOCondition ) -> ControlFlow + Send + ' static ,
@@ -164,7 +164,7 @@ unsafe extern "C" fn trampoline_unix_fd<
164164 ( * func. borrow_mut ( ) ) ( fd, from_glib ( condition) ) . into_glib ( )
165165}
166166
167- #[ cfg( any ( unix, docsrs ) ) ]
167+ #[ cfg( unix) ]
168168#[ cfg_attr( docsrs, doc( cfg( unix) ) ) ]
169169unsafe extern "C" fn trampoline_unix_fd_local <
170170 F : FnMut ( RawFd , IOCondition ) -> ControlFlow + ' static ,
@@ -177,7 +177,7 @@ unsafe extern "C" fn trampoline_unix_fd_local<
177177 ( * func. get_ref ( ) . borrow_mut ( ) ) ( fd, from_glib ( condition) ) . into_glib ( )
178178}
179179
180- #[ cfg( any ( unix, docsrs ) ) ]
180+ #[ cfg( unix) ]
181181#[ cfg_attr( docsrs, doc( cfg( unix) ) ) ]
182182unsafe extern "C" fn destroy_closure_unix_fd <
183183 F : FnMut ( RawFd , IOCondition ) -> ControlFlow + Send + ' static ,
@@ -187,7 +187,7 @@ unsafe extern "C" fn destroy_closure_unix_fd<
187187 let _ = Box :: < RefCell < F > > :: from_raw ( ptr as * mut _ ) ;
188188}
189189
190- #[ cfg( any ( unix, docsrs ) ) ]
190+ #[ cfg( unix) ]
191191#[ cfg_attr( docsrs, doc( cfg( unix) ) ) ]
192192unsafe extern "C" fn destroy_closure_unix_fd_local <
193193 F : FnMut ( RawFd , IOCondition ) -> ControlFlow + ' static ,
@@ -197,7 +197,7 @@ unsafe extern "C" fn destroy_closure_unix_fd_local<
197197 let _ = Box :: < ThreadGuard < RefCell < F > > > :: from_raw ( ptr as * mut _ ) ;
198198}
199199
200- #[ cfg( any ( unix, docsrs ) ) ]
200+ #[ cfg( unix) ]
201201#[ cfg_attr( docsrs, doc( cfg( unix) ) ) ]
202202fn into_raw_unix_fd < F : FnMut ( RawFd , IOCondition ) -> ControlFlow + Send + ' static > (
203203 func : F ,
@@ -206,7 +206,7 @@ fn into_raw_unix_fd<F: FnMut(RawFd, IOCondition) -> ControlFlow + Send + 'static
206206 Box :: into_raw ( func) as gpointer
207207}
208208
209- #[ cfg( any ( unix, docsrs ) ) ]
209+ #[ cfg( unix) ]
210210#[ cfg_attr( docsrs, doc( cfg( unix) ) ) ]
211211fn into_raw_unix_fd_local < F : FnMut ( RawFd , IOCondition ) -> ControlFlow + ' static > (
212212 func : F ,
@@ -630,7 +630,7 @@ where
630630 }
631631}
632632
633- #[ cfg( any ( unix, docsrs ) ) ]
633+ #[ cfg( unix) ]
634634#[ cfg_attr( docsrs, doc( cfg( unix) ) ) ]
635635// rustdoc-stripper-ignore-next
636636/// Adds a closure to be called by the default main loop whenever a UNIX signal is raised.
@@ -656,7 +656,7 @@ where
656656 }
657657}
658658
659- #[ cfg( any ( unix, docsrs ) ) ]
659+ #[ cfg( unix) ]
660660#[ cfg_attr( docsrs, doc( cfg( unix) ) ) ]
661661// rustdoc-stripper-ignore-next
662662/// Adds a closure to be called by the default main loop whenever a UNIX signal is raised.
@@ -677,7 +677,7 @@ where
677677 unix_signal_add ( signum, fnmut_callback_wrapper ( func) )
678678}
679679
680- #[ cfg( any ( unix, docsrs ) ) ]
680+ #[ cfg( unix) ]
681681#[ cfg_attr( docsrs, doc( cfg( unix) ) ) ]
682682// rustdoc-stripper-ignore-next
683683/// Adds a closure to be called by the default main loop whenever a UNIX signal is raised.
@@ -713,7 +713,7 @@ where
713713 }
714714}
715715
716- #[ cfg( any ( unix, docsrs ) ) ]
716+ #[ cfg( unix) ]
717717#[ cfg_attr( docsrs, doc( cfg( unix) ) ) ]
718718// rustdoc-stripper-ignore-next
719719/// Adds a closure to be called by the default main loop whenever a UNIX signal is raised.
@@ -740,7 +740,7 @@ where
740740 unix_signal_add_local ( signum, fnmut_callback_wrapper_local ( func) )
741741}
742742
743- #[ cfg( any ( unix, docsrs ) ) ]
743+ #[ cfg( unix) ]
744744#[ cfg_attr( docsrs, doc( cfg( unix) ) ) ]
745745// rustdoc-stripper-ignore-next
746746/// Adds a closure to be called by the main loop the returned `Source` is attached to whenever a
@@ -768,7 +768,7 @@ where
768768 }
769769}
770770
771- #[ cfg( any ( unix, docsrs ) ) ]
771+ #[ cfg( unix) ]
772772#[ cfg_attr( docsrs, doc( cfg( unix) ) ) ]
773773// rustdoc-stripper-ignore-next
774774/// Adds a closure to be called by the main loop the returned `Source` is attached to whenever a
@@ -988,7 +988,7 @@ where
988988 }
989989}
990990
991- #[ cfg( any ( unix, docsrs ) ) ]
991+ #[ cfg( unix) ]
992992#[ cfg_attr( docsrs, doc( cfg( unix) ) ) ]
993993// rustdoc-stripper-ignore-next
994994/// Adds a closure to be called by the main loop the returned `Source` is attached to whenever a
@@ -1024,7 +1024,7 @@ where
10241024 }
10251025}
10261026
1027- #[ cfg( any ( unix, docsrs ) ) ]
1027+ #[ cfg( unix) ]
10281028#[ cfg_attr( docsrs, doc( cfg( unix) ) ) ]
10291029// rustdoc-stripper-ignore-next
10301030/// Adds a closure to be called by the main loop the returned `Source` is attached to whenever a
0 commit comments