@@ -14,6 +14,7 @@ use crate::os::wasi::io::OwnedFd;
1414use crate :: sys_common:: { AsInner , IntoInner } ;
1515
1616/// Raw file descriptors.
17+ #[ cfg_attr( not( bootstrap) , rustc_allowed_through_unstable_modules) ]
1718#[ stable( feature = "rust1" , since = "1.0.0" ) ]
1819pub type RawFd = raw:: c_int ;
1920
@@ -22,6 +23,7 @@ pub type RawFd = raw::c_int;
2223/// This is only available on unix and WASI platforms and must be imported in
2324/// order to call the method. Windows platforms have a corresponding
2425/// `AsRawHandle` and `AsRawSocket` set of traits.
26+ #[ cfg_attr( not( bootstrap) , rustc_allowed_through_unstable_modules) ]
2527#[ stable( feature = "rust1" , since = "1.0.0" ) ]
2628pub trait AsRawFd {
2729 /// Extracts the raw file descriptor.
@@ -57,6 +59,7 @@ pub trait AsRawFd {
5759
5860/// A trait to express the ability to construct an object from a raw file
5961/// descriptor.
62+ #[ cfg_attr( not( bootstrap) , rustc_allowed_through_unstable_modules) ]
6063#[ stable( feature = "from_raw_os" , since = "1.1.0" ) ]
6164pub trait FromRawFd {
6265 /// Constructs a new instance of `Self` from the given raw file
@@ -100,6 +103,7 @@ pub trait FromRawFd {
100103
101104/// A trait to express the ability to consume an object and acquire ownership of
102105/// its raw file descriptor.
106+ #[ cfg_attr( not( bootstrap) , rustc_allowed_through_unstable_modules) ]
103107#[ stable( feature = "into_raw_os" , since = "1.4.0" ) ]
104108pub trait IntoRawFd {
105109 /// Consumes this object, returning the raw underlying file descriptor.
0 commit comments