mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-19 10:24:16 +00:00
Fix doc build on unsupported oses
This commit is contained in:
parent
10f5a19a4d
commit
f6efb0b74f
@ -840,7 +840,14 @@ impl UnixDatagram {
|
||||
|
||||
/// Set the id of the socket for network filtering purpose
|
||||
///
|
||||
/// ```no_run
|
||||
#[cfg_attr(
|
||||
any(target_os = "linux", target_os = "freebsd", target_os = "openbsd"),
|
||||
doc = "```no_run"
|
||||
)]
|
||||
#[cfg_attr(
|
||||
not(any(target_os = "linux", target_os = "freebsd", target_os = "openbsd")),
|
||||
doc = "```ignore"
|
||||
)]
|
||||
/// #![feature(unix_set_mark)]
|
||||
/// use std::os::unix::net::UnixDatagram;
|
||||
///
|
||||
|
@ -426,7 +426,14 @@ impl UnixStream {
|
||||
|
||||
/// Set the id of the socket for network filtering purpose
|
||||
///
|
||||
/// ```no_run
|
||||
#[cfg_attr(
|
||||
any(target_os = "linux", target_os = "freebsd", target_os = "openbsd"),
|
||||
doc = "```no_run"
|
||||
)]
|
||||
#[cfg_attr(
|
||||
not(any(target_os = "linux", target_os = "freebsd", target_os = "openbsd")),
|
||||
doc = "```ignore"
|
||||
)]
|
||||
/// #![feature(unix_set_mark)]
|
||||
/// use std::os::unix::net::UnixStream;
|
||||
///
|
||||
|
Loading…
Reference in New Issue
Block a user