Skip to content

Commit ee49d65

Browse files
committed
Add the new stability attributes, for Windows.
1 parent 007cbfd commit ee49d65

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

library/std/src/os/windows/io/handle.rs

+1
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,7 @@ impl OwnedHandle {
188188
impl BorrowedHandle<'_> {
189189
/// Creates a new `OwnedHandle` instance that shares the same underlying
190190
/// object as the existing `BorrowedHandle` instance.
191+
#[stable(feature = "io_safety", since = "1.63.0")]
191192
pub fn try_clone_to_owned(&self) -> crate::io::Result<OwnedHandle> {
192193
self.duplicate(0, false, c::DUPLICATE_SAME_ACCESS)
193194
}

library/std/src/os/windows/io/socket.rs

+1
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ impl OwnedSocket {
107107
impl BorrowedSocket<'_> {
108108
/// Creates a new `OwnedSocket` instance that shares the same underlying
109109
/// object as the existing `BorrowedSocket` instance.
110+
#[stable(feature = "io_safety", since = "1.63.0")]
110111
pub fn try_clone_to_owned(&self) -> io::Result<OwnedSocket> {
111112
let mut info = unsafe { mem::zeroed::<c::WSAPROTOCOL_INFO>() };
112113
let result = unsafe {

0 commit comments

Comments
 (0)