mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-03 02:23:20 +00:00
Add doc(cfg(...))
This commit is contained in:
parent
1869141e54
commit
46764d48bb
@ -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",
|
||||
|
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user