@@ -14,6 +14,7 @@ use crate::os::wasi::io::OwnedFd;
14
14
use crate :: sys_common:: { AsInner , IntoInner } ;
15
15
16
16
/// Raw file descriptors.
17
+ #[ cfg_attr( not( bootstrap) , rustc_allowed_through_unstable_modules) ]
17
18
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
18
19
pub type RawFd = raw:: c_int ;
19
20
@@ -22,6 +23,7 @@ pub type RawFd = raw::c_int;
22
23
/// This is only available on unix and WASI platforms and must be imported in
23
24
/// order to call the method. Windows platforms have a corresponding
24
25
/// `AsRawHandle` and `AsRawSocket` set of traits.
26
+ #[ cfg_attr( not( bootstrap) , rustc_allowed_through_unstable_modules) ]
25
27
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
26
28
pub trait AsRawFd {
27
29
/// Extracts the raw file descriptor.
@@ -57,6 +59,7 @@ pub trait AsRawFd {
57
59
58
60
/// A trait to express the ability to construct an object from a raw file
59
61
/// descriptor.
62
+ #[ cfg_attr( not( bootstrap) , rustc_allowed_through_unstable_modules) ]
60
63
#[ stable( feature = "from_raw_os" , since = "1.1.0" ) ]
61
64
pub trait FromRawFd {
62
65
/// Constructs a new instance of `Self` from the given raw file
@@ -100,6 +103,7 @@ pub trait FromRawFd {
100
103
101
104
/// A trait to express the ability to consume an object and acquire ownership of
102
105
/// its raw file descriptor.
106
+ #[ cfg_attr( not( bootstrap) , rustc_allowed_through_unstable_modules) ]
103
107
#[ stable( feature = "into_raw_os" , since = "1.4.0" ) ]
104
108
pub trait IntoRawFd {
105
109
/// Consumes this object, returning the raw underlying file descriptor.
0 commit comments