@@ -147,7 +147,7 @@ impl Socket {
147
147
/// This function sets the same flags as in done for [`Socket::new`],
148
148
/// [`Socket::pair_raw`] can be used if you don't want to set those flags.
149
149
#[ doc = man_links ! ( unix: socketpair( 2 ) ) ]
150
- #[ cfg( any ( doc , all( feature = "all" , unix) ) ) ]
150
+ #[ cfg( all( feature = "all" , unix) ) ]
151
151
#[ cfg_attr( docsrs, doc( cfg( all( feature = "all" , unix) ) ) ) ]
152
152
pub fn pair (
153
153
domain : Domain ,
@@ -164,7 +164,7 @@ impl Socket {
164
164
/// Creates a pair of sockets which are connected to each other.
165
165
///
166
166
/// This function corresponds to `socketpair(2)`.
167
- #[ cfg( any ( doc , all( feature = "all" , unix) ) ) ]
167
+ #[ cfg( all( feature = "all" , unix) ) ]
168
168
#[ cfg_attr( docsrs, doc( cfg( all( feature = "all" , unix) ) ) ) ]
169
169
pub fn pair_raw (
170
170
domain : Domain ,
@@ -1091,7 +1091,7 @@ impl Socket {
1091
1091
/// For more information about this option, see [`set_ip_transparent`].
1092
1092
///
1093
1093
/// [`set_ip_transparent`]: Socket::set_ip_transparent
1094
- #[ cfg( any ( doc , all( feature = "all" , target_os = "linux" ) ) ) ]
1094
+ #[ cfg( all( feature = "all" , target_os = "linux" ) ) ]
1095
1095
#[ cfg_attr( docsrs, doc( cfg( all( feature = "all" , target_os = "linux" ) ) ) ) ]
1096
1096
pub fn ip_transparent ( & self ) -> io:: Result < bool > {
1097
1097
unsafe {
@@ -1115,7 +1115,7 @@ impl Socket {
1115
1115
///
1116
1116
/// TProxy redirection with the iptables TPROXY target also
1117
1117
/// requires that this option be set on the redirected socket.
1118
- #[ cfg( any ( doc , all( feature = "all" , target_os = "linux" ) ) ) ]
1118
+ #[ cfg( all( feature = "all" , target_os = "linux" ) ) ]
1119
1119
#[ cfg_attr( docsrs, doc( cfg( all( feature = "all" , target_os = "linux" ) ) ) ) ]
1120
1120
pub fn set_ip_transparent ( & self , transparent : bool ) -> io:: Result < ( ) > {
1121
1121
unsafe {
@@ -1737,12 +1737,9 @@ impl Socket {
1737
1737
///
1738
1738
/// This returns the value of `TCP_KEEPALIVE` on macOS and iOS and `TCP_KEEPIDLE` on all other
1739
1739
/// supported Unix operating systems.
1740
- #[ cfg( any(
1741
- doc,
1742
- all(
1743
- feature = "all" ,
1744
- not( any( windows, target_os = "haiku" , target_os = "openbsd" ) )
1745
- )
1740
+ #[ cfg( all(
1741
+ feature = "all" ,
1742
+ not( any( windows, target_os = "haiku" , target_os = "openbsd" ) )
1746
1743
) ) ]
1747
1744
#[ cfg_attr(
1748
1745
docsrs,
@@ -1763,7 +1760,6 @@ impl Socket {
1763
1760
#[ cfg( all(
1764
1761
feature = "all" ,
1765
1762
any(
1766
- doc,
1767
1763
target_os = "android" ,
1768
1764
target_os = "dragonfly" ,
1769
1765
target_os = "freebsd" ,
@@ -1805,7 +1801,6 @@ impl Socket {
1805
1801
#[ cfg( all(
1806
1802
feature = "all" ,
1807
1803
any(
1808
- doc,
1809
1804
target_os = "android" ,
1810
1805
target_os = "dragonfly" ,
1811
1806
target_os = "freebsd" ,
0 commit comments