@@ -882,48 +882,40 @@ impl<O: IsA<Socket>> SocketExtManual for O {
882
882
}
883
883
}
884
884
885
- #[ cfg( not( unix) ) ]
886
- #[ cfg_attr( docsrs, doc( cfg( not( unix) ) ) ) ]
885
+ #[ cfg( all( docsrs, not( unix) ) ) ]
887
886
pub trait IntoRawFd {
888
887
fn into_raw_fd ( self ) -> c_int ;
889
888
}
890
889
891
- #[ cfg( not( unix) ) ]
892
- #[ cfg_attr( docsrs, doc( cfg( not( unix) ) ) ) ]
890
+ #[ cfg( all( docsrs, not( unix) ) ) ]
893
891
pub trait FromRawFd {
894
892
unsafe fn from_raw_fd ( fd : c_int ) -> Self ;
895
893
}
896
894
897
- #[ cfg( not( unix) ) ]
898
- #[ cfg_attr( docsrs, doc( cfg( not( unix) ) ) ) ]
895
+ #[ cfg( all( docsrs, not( unix) ) ) ]
899
896
pub trait AsRawFd {
900
897
fn as_raw_fd ( & self ) -> RawFd ;
901
898
}
902
899
903
- #[ cfg( not( unix) ) ]
904
- #[ cfg_attr( docsrs, doc( cfg( not( unix) ) ) ) ]
900
+ #[ cfg( all( docsrs, not( unix) ) ) ]
905
901
pub type RawFd = c_int ;
906
902
907
- #[ cfg( not( windows) ) ]
908
- #[ cfg_attr( docsrs, doc( cfg( not( windows) ) ) ) ]
903
+ #[ cfg( all( docsrs, not( windows) ) ) ]
909
904
pub trait IntoRawSocket {
910
905
fn into_raw_socket ( self ) -> u64 ;
911
906
}
912
907
913
- #[ cfg( not( windows) ) ]
914
- #[ cfg_attr( docsrs, doc( cfg( not( windows) ) ) ) ]
908
+ #[ cfg( all( docsrs, not( windows) ) ) ]
915
909
pub trait FromRawSocket {
916
910
unsafe fn from_raw_socket ( sock : u64 ) -> Self ;
917
911
}
918
912
919
- #[ cfg( not( windows) ) ]
920
- #[ cfg_attr( docsrs, doc( cfg( not( windows) ) ) ) ]
913
+ #[ cfg( all( docsrs, not( windows) ) ) ]
921
914
pub trait AsRawSocket {
922
915
fn as_raw_socket ( & self ) -> RawSocket ;
923
916
}
924
917
925
- #[ cfg( not( windows) ) ]
926
- #[ cfg_attr( docsrs, doc( cfg( not( windows) ) ) ) ]
918
+ #[ cfg( all( docsrs, not( windows) ) ) ]
927
919
pub type RawSocket = * mut c_void ;
928
920
929
921
#[ cfg( test) ]
0 commit comments