@@ -33,8 +33,7 @@ pub trait AsRawHandle {
33
33
}
34
34
35
35
/// 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" ) ]
38
37
pub trait FromRawHandle {
39
38
/// Constructs a new I/O object from the specified raw handle.
40
39
///
@@ -57,7 +56,7 @@ impl AsRawHandle for fs::File {
57
56
}
58
57
}
59
58
60
- #[ unstable ( feature = "from_raw_os" , reason = "trait is unstable " ) ]
59
+ #[ stable ( feature = "from_raw_os" , since = "1.1.0 " ) ]
61
60
impl FromRawHandle for fs:: File {
62
61
unsafe fn from_raw_handle ( handle : RawHandle ) -> fs:: File {
63
62
let handle = handle as :: libc:: HANDLE ;
@@ -74,7 +73,7 @@ pub trait AsRawSocket {
74
73
}
75
74
76
75
/// Create I/O objects from raw sockets.
77
- #[ unstable ( feature = "from_raw_os" , reason = "recent addition to module " ) ]
76
+ #[ stable ( feature = "from_raw_os" , since = "1.1.0 " ) ]
78
77
pub trait FromRawSocket {
79
78
/// Creates a new I/O object from the given raw socket.
80
79
///
@@ -108,21 +107,21 @@ impl AsRawSocket for net::UdpSocket {
108
107
}
109
108
}
110
109
111
- #[ unstable ( feature = "from_raw_os" , reason = "trait is unstable " ) ]
110
+ #[ stable ( feature = "from_raw_os" , since = "1.1.0 " ) ]
112
111
impl FromRawSocket for net:: TcpStream {
113
112
unsafe fn from_raw_socket ( sock : RawSocket ) -> net:: TcpStream {
114
113
let sock = sys:: net:: Socket :: from_inner ( sock) ;
115
114
net:: TcpStream :: from_inner ( net2:: TcpStream :: from_inner ( sock) )
116
115
}
117
116
}
118
- #[ unstable ( feature = "from_raw_os" , reason = "trait is unstable " ) ]
117
+ #[ stable ( feature = "from_raw_os" , since = "1.1.0 " ) ]
119
118
impl FromRawSocket for net:: TcpListener {
120
119
unsafe fn from_raw_socket ( sock : RawSocket ) -> net:: TcpListener {
121
120
let sock = sys:: net:: Socket :: from_inner ( sock) ;
122
121
net:: TcpListener :: from_inner ( net2:: TcpListener :: from_inner ( sock) )
123
122
}
124
123
}
125
- #[ unstable ( feature = "from_raw_os" , reason = "trait is unstable " ) ]
124
+ #[ stable ( feature = "from_raw_os" , since = "1.1.0 " ) ]
126
125
impl FromRawSocket for net:: UdpSocket {
127
126
unsafe fn from_raw_socket ( sock : RawSocket ) -> net:: UdpSocket {
128
127
let sock = sys:: net:: Socket :: from_inner ( sock) ;
0 commit comments