1- #[ cfg( any(
2- doc,
3- target_os = "android" ,
4- target_os = "dragonfly" ,
5- target_os = "emscripten" ,
6- target_os = "freebsd" ,
7- target_os = "linux" ,
8- target_os = "netbsd" ,
9- target_os = "openbsd" ,
10- ) ) ]
1+ #[ cfg( any( doc, target_os = "android" , target_os = "linux" ) ) ]
112use super :: { recv_vectored_with_ancillary_from, send_vectored_with_ancillary_to, SocketAncillary } ;
123use super :: { sockaddr_un, SocketAddr } ;
13- #[ cfg( any(
14- target_os = "android" ,
15- target_os = "dragonfly" ,
16- target_os = "emscripten" ,
17- target_os = "freebsd" ,
18- target_os = "linux" ,
19- target_os = "netbsd" ,
20- target_os = "openbsd" ,
21- ) ) ]
4+ #[ cfg( any( doc, target_os = "android" , target_os = "linux" ) ) ]
225use crate :: io:: { IoSlice , IoSliceMut } ;
236use crate :: net:: Shutdown ;
247use crate :: os:: unix:: io:: { AsFd , AsRawFd , BorrowedFd , FromRawFd , IntoRawFd , OwnedFd , RawFd } ;
@@ -403,7 +386,8 @@ impl UnixDatagram {
403386 ///
404387 /// # Examples
405388 ///
406- /// ```no_run
389+ #[ cfg_attr( any( target_os = "android" , target_os = "linux" ) , doc = "```no_run" ) ]
390+ #[ cfg_attr( not( any( target_os = "android" , target_os = "linux" ) ) , doc = "```ignore" ) ]
407391 /// #![feature(unix_socket_ancillary_data)]
408392 /// use std::os::unix::net::{UnixDatagram, SocketAncillary, AncillaryData};
409393 /// use std::io::IoSliceMut;
@@ -433,15 +417,7 @@ impl UnixDatagram {
433417 /// Ok(())
434418 /// }
435419 /// ```
436- #[ cfg( any(
437- target_os = "android" ,
438- target_os = "dragonfly" ,
439- target_os = "emscripten" ,
440- target_os = "freebsd" ,
441- target_os = "linux" ,
442- target_os = "netbsd" ,
443- target_os = "openbsd" ,
444- ) ) ]
420+ #[ cfg( any( doc, target_os = "android" , target_os = "linux" ) ) ]
445421 #[ unstable( feature = "unix_socket_ancillary_data" , issue = "76915" ) ]
446422 pub fn recv_vectored_with_ancillary_from (
447423 & self ,
@@ -460,7 +436,8 @@ impl UnixDatagram {
460436 ///
461437 /// # Examples
462438 ///
463- /// ```no_run
439+ #[ cfg_attr( any( target_os = "android" , target_os = "linux" ) , doc = "```no_run" ) ]
440+ #[ cfg_attr( not( any( target_os = "android" , target_os = "linux" ) ) , doc = "```ignore" ) ]
464441 /// #![feature(unix_socket_ancillary_data)]
465442 /// use std::os::unix::net::{UnixDatagram, SocketAncillary, AncillaryData};
466443 /// use std::io::IoSliceMut;
@@ -490,15 +467,7 @@ impl UnixDatagram {
490467 /// Ok(())
491468 /// }
492469 /// ```
493- #[ cfg( any(
494- target_os = "android" ,
495- target_os = "dragonfly" ,
496- target_os = "emscripten" ,
497- target_os = "freebsd" ,
498- target_os = "linux" ,
499- target_os = "netbsd" ,
500- target_os = "openbsd" ,
501- ) ) ]
470+ #[ cfg( any( doc, target_os = "android" , target_os = "linux" ) ) ]
502471 #[ unstable( feature = "unix_socket_ancillary_data" , issue = "76915" ) ]
503472 pub fn recv_vectored_with_ancillary (
504473 & self ,
@@ -609,7 +578,8 @@ impl UnixDatagram {
609578 ///
610579 /// # Examples
611580 ///
612- /// ```no_run
581+ #[ cfg_attr( any( target_os = "android" , target_os = "linux" ) , doc = "```no_run" ) ]
582+ #[ cfg_attr( not( any( target_os = "android" , target_os = "linux" ) ) , doc = "```ignore" ) ]
613583 /// #![feature(unix_socket_ancillary_data)]
614584 /// use std::os::unix::net::{UnixDatagram, SocketAncillary};
615585 /// use std::io::IoSlice;
@@ -633,15 +603,7 @@ impl UnixDatagram {
633603 /// Ok(())
634604 /// }
635605 /// ```
636- #[ cfg( any(
637- target_os = "android" ,
638- target_os = "dragonfly" ,
639- target_os = "emscripten" ,
640- target_os = "freebsd" ,
641- target_os = "linux" ,
642- target_os = "netbsd" ,
643- target_os = "openbsd" ,
644- ) ) ]
606+ #[ cfg( any( doc, target_os = "android" , target_os = "linux" ) ) ]
645607 #[ unstable( feature = "unix_socket_ancillary_data" , issue = "76915" ) ]
646608 pub fn send_vectored_with_ancillary_to < P : AsRef < Path > > (
647609 & self ,
@@ -658,7 +620,8 @@ impl UnixDatagram {
658620 ///
659621 /// # Examples
660622 ///
661- /// ```no_run
623+ #[ cfg_attr( any( target_os = "android" , target_os = "linux" ) , doc = "```no_run" ) ]
624+ #[ cfg_attr( not( any( target_os = "android" , target_os = "linux" ) ) , doc = "```ignore" ) ]
662625 /// #![feature(unix_socket_ancillary_data)]
663626 /// use std::os::unix::net::{UnixDatagram, SocketAncillary};
664627 /// use std::io::IoSlice;
@@ -682,15 +645,7 @@ impl UnixDatagram {
682645 /// Ok(())
683646 /// }
684647 /// ```
685- #[ cfg( any(
686- target_os = "android" ,
687- target_os = "dragonfly" ,
688- target_os = "emscripten" ,
689- target_os = "freebsd" ,
690- target_os = "linux" ,
691- target_os = "netbsd" ,
692- target_os = "openbsd" ,
693- ) ) ]
648+ #[ cfg( any( doc, target_os = "android" , target_os = "linux" ) ) ]
694649 #[ unstable( feature = "unix_socket_ancillary_data" , issue = "76915" ) ]
695650 pub fn send_vectored_with_ancillary (
696651 & self ,
0 commit comments