diff --git a/library/std/src/sys/unix/ext/net/ancillary.rs b/library/std/src/sys/unix/ext/net/ancillary.rs index 1da3370b07d..eba884ad8b4 100644 --- a/library/std/src/sys/unix/ext/net/ancillary.rs +++ b/library/std/src/sys/unix/ext/net/ancillary.rs @@ -159,6 +159,7 @@ impl<'a, T> Iterator for AncillaryDataIter<'a, T> { } #[cfg(any( + doc, target_os = "android", target_os = "dragonfly", target_os = "emscripten", @@ -176,6 +177,7 @@ impl<'a, T> Iterator for AncillaryDataIter<'a, T> { pub struct UCred(libc::ucred); #[cfg(any( + doc, target_os = "android", target_os = "dragonfly", target_os = "emscripten", @@ -238,6 +240,7 @@ impl<'a> Iterator for ScmRights<'a> { } #[cfg(any( + doc, target_os = "android", target_os = "dragonfly", target_os = "emscripten", @@ -254,6 +257,7 @@ impl<'a> Iterator for ScmRights<'a> { pub struct ScmCredentials<'a>(AncillaryDataIter<'a, libc::ucred>); #[cfg(any( + doc, target_os = "android", target_os = "dragonfly", target_os = "emscripten", @@ -286,6 +290,7 @@ pub enum AncillaryError { pub enum AncillaryData<'a> { ScmRights(ScmRights<'a>), #[cfg(any( + doc, target_os = "android", target_os = "dragonfly", target_os = "emscripten", @@ -309,6 +314,7 @@ impl<'a> AncillaryData<'a> { } #[cfg(any( + doc, target_os = "android", target_os = "dragonfly", target_os = "emscripten", @@ -549,6 +555,7 @@ impl<'a> SocketAncillary<'a> { /// and type `SCM_CREDENTIALS`. /// #[cfg(any( + doc, target_os = "android", target_os = "dragonfly", target_os = "emscripten", diff --git a/library/std/src/sys/unix/ext/net/mod.rs b/library/std/src/sys/unix/ext/net/mod.rs index 125432b2b71..d1c943b4f2f 100644 --- a/library/std/src/sys/unix/ext/net/mod.rs +++ b/library/std/src/sys/unix/ext/net/mod.rs @@ -3,7 +3,24 @@ #![stable(feature = "unix_socket", since = "1.10.0")] mod addr; +#[doc(cfg(any( + target_os = "android", + target_os = "dragonfly", + target_os = "emscripten", + target_os = "freebsd", + target_os = "fuchsia", + target_os = "haiku", + target_os = "illumos", + target_os = "ios", + target_os = "linux", + target_os = "macos", + target_os = "netbsd", + target_os = "openbsd", + target_os = "solaris", + target_env = "uclibc", +)))] #[cfg(any( + doc, target_os = "android", target_os = "dragonfly", target_os = "emscripten",