@@ -33,8 +33,7 @@ pub trait AsRawHandle {
3333}
3434
3535/// Construct I/O objects from raw handles.
36- #[ unstable( feature = "from_raw_os" ,
37- reason = "recent addition to the std::os::windows::io module" ) ]
36+ #[ stable( feature = "from_raw_os" , since = "1.1.0" ) ]
3837pub trait FromRawHandle {
3938 /// Constructs a new I/O object from the specified raw handle.
4039 ///
@@ -47,6 +46,7 @@ pub trait FromRawHandle {
4746 /// descriptor they are wrapping. Usage of this function could
4847 /// accidentally allow violating this contract which can cause memory
4948 /// unsafety in code that relies on it being true.
49+ #[ stable( feature = "from_raw_os" , since = "1.1.0" ) ]
5050 unsafe fn from_raw_handle ( handle : RawHandle ) -> Self ;
5151}
5252
@@ -57,7 +57,7 @@ impl AsRawHandle for fs::File {
5757 }
5858}
5959
60- #[ unstable ( feature = "from_raw_os" , reason = "trait is unstable " ) ]
60+ #[ stable ( feature = "from_raw_os" , since = "1.1.0 " ) ]
6161impl FromRawHandle for fs:: File {
6262 unsafe fn from_raw_handle ( handle : RawHandle ) -> fs:: File {
6363 let handle = handle as :: libc:: HANDLE ;
@@ -74,7 +74,7 @@ pub trait AsRawSocket {
7474}
7575
7676/// Create I/O objects from raw sockets.
77- #[ unstable ( feature = "from_raw_os" , reason = "recent addition to module " ) ]
77+ #[ stable ( feature = "from_raw_os" , since = "1.1.0 " ) ]
7878pub trait FromRawSocket {
7979 /// Creates a new I/O object from the given raw socket.
8080 ///
@@ -86,6 +86,7 @@ pub trait FromRawSocket {
8686 /// descriptor they are wrapping. Usage of this function could
8787 /// accidentally allow violating this contract which can cause memory
8888 /// unsafety in code that relies on it being true.
89+ #[ stable( feature = "from_raw_os" , since = "1.1.0" ) ]
8990 unsafe fn from_raw_socket ( sock : RawSocket ) -> Self ;
9091}
9192
@@ -108,21 +109,21 @@ impl AsRawSocket for net::UdpSocket {
108109 }
109110}
110111
111- #[ unstable ( feature = "from_raw_os" , reason = "trait is unstable " ) ]
112+ #[ stable ( feature = "from_raw_os" , since = "1.1.0 " ) ]
112113impl FromRawSocket for net:: TcpStream {
113114 unsafe fn from_raw_socket ( sock : RawSocket ) -> net:: TcpStream {
114115 let sock = sys:: net:: Socket :: from_inner ( sock) ;
115116 net:: TcpStream :: from_inner ( net2:: TcpStream :: from_inner ( sock) )
116117 }
117118}
118- #[ unstable ( feature = "from_raw_os" , reason = "trait is unstable " ) ]
119+ #[ stable ( feature = "from_raw_os" , since = "1.1.0 " ) ]
119120impl FromRawSocket for net:: TcpListener {
120121 unsafe fn from_raw_socket ( sock : RawSocket ) -> net:: TcpListener {
121122 let sock = sys:: net:: Socket :: from_inner ( sock) ;
122123 net:: TcpListener :: from_inner ( net2:: TcpListener :: from_inner ( sock) )
123124 }
124125}
125- #[ unstable ( feature = "from_raw_os" , reason = "trait is unstable " ) ]
126+ #[ stable ( feature = "from_raw_os" , since = "1.1.0 " ) ]
126127impl FromRawSocket for net:: UdpSocket {
127128 unsafe fn from_raw_socket ( sock : RawSocket ) -> net:: UdpSocket {
128129 let sock = sys:: net:: Socket :: from_inner ( sock) ;
0 commit comments