@@ -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
///
@@ -47,6 +46,7 @@ pub trait FromRawHandle {
47
46
/// descriptor they are wrapping. Usage of this function could
48
47
/// accidentally allow violating this contract which can cause memory
49
48
/// unsafety in code that relies on it being true.
49
+ #[ stable( feature = "from_raw_os" , since = "1.1.0" ) ]
50
50
unsafe fn from_raw_handle ( handle : RawHandle ) -> Self ;
51
51
}
52
52
@@ -57,7 +57,7 @@ impl AsRawHandle for fs::File {
57
57
}
58
58
}
59
59
60
- #[ unstable ( feature = "from_raw_os" , reason = "trait is unstable " ) ]
60
+ #[ stable ( feature = "from_raw_os" , since = "1.1.0 " ) ]
61
61
impl FromRawHandle for fs:: File {
62
62
unsafe fn from_raw_handle ( handle : RawHandle ) -> fs:: File {
63
63
let handle = handle as :: libc:: HANDLE ;
@@ -74,7 +74,7 @@ pub trait AsRawSocket {
74
74
}
75
75
76
76
/// 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 " ) ]
78
78
pub trait FromRawSocket {
79
79
/// Creates a new I/O object from the given raw socket.
80
80
///
@@ -86,6 +86,7 @@ pub trait FromRawSocket {
86
86
/// descriptor they are wrapping. Usage of this function could
87
87
/// accidentally allow violating this contract which can cause memory
88
88
/// unsafety in code that relies on it being true.
89
+ #[ stable( feature = "from_raw_os" , since = "1.1.0" ) ]
89
90
unsafe fn from_raw_socket ( sock : RawSocket ) -> Self ;
90
91
}
91
92
@@ -108,21 +109,21 @@ impl AsRawSocket for net::UdpSocket {
108
109
}
109
110
}
110
111
111
- #[ unstable ( feature = "from_raw_os" , reason = "trait is unstable " ) ]
112
+ #[ stable ( feature = "from_raw_os" , since = "1.1.0 " ) ]
112
113
impl FromRawSocket for net:: TcpStream {
113
114
unsafe fn from_raw_socket ( sock : RawSocket ) -> net:: TcpStream {
114
115
let sock = sys:: net:: Socket :: from_inner ( sock) ;
115
116
net:: TcpStream :: from_inner ( net2:: TcpStream :: from_inner ( sock) )
116
117
}
117
118
}
118
- #[ unstable ( feature = "from_raw_os" , reason = "trait is unstable " ) ]
119
+ #[ stable ( feature = "from_raw_os" , since = "1.1.0 " ) ]
119
120
impl FromRawSocket for net:: TcpListener {
120
121
unsafe fn from_raw_socket ( sock : RawSocket ) -> net:: TcpListener {
121
122
let sock = sys:: net:: Socket :: from_inner ( sock) ;
122
123
net:: TcpListener :: from_inner ( net2:: TcpListener :: from_inner ( sock) )
123
124
}
124
125
}
125
- #[ unstable ( feature = "from_raw_os" , reason = "trait is unstable " ) ]
126
+ #[ stable ( feature = "from_raw_os" , since = "1.1.0 " ) ]
126
127
impl FromRawSocket for net:: UdpSocket {
127
128
unsafe fn from_raw_socket ( sock : RawSocket ) -> net:: UdpSocket {
128
129
let sock = sys:: net:: Socket :: from_inner ( sock) ;
0 commit comments