about summary refs log tree commit diff
path: root/library/std/src
diff options
context:
space:
mode:
authorDan Gohman <dev@sunfishcode.online>2022-06-15 09:46:56 -0700
committerDan Gohman <dev@sunfishcode.online>2022-06-15 09:46:56 -0700
commitee49d65fc35d968e328ab63cc8330c1a43088bd2 (patch)
treeb144240788529961a6c53a8ae4bd09bfd67ed641 /library/std/src
parent007cbfd1db63400ad9bebb443080a999562af15e (diff)
downloadrust-ee49d65fc35d968e328ab63cc8330c1a43088bd2.tar.gz
rust-ee49d65fc35d968e328ab63cc8330c1a43088bd2.zip
Add the new stability attributes, for Windows.
Diffstat (limited to 'library/std/src')
-rw-r--r--library/std/src/os/windows/io/handle.rs1
-rw-r--r--library/std/src/os/windows/io/socket.rs1
2 files changed, 2 insertions, 0 deletions
diff --git a/library/std/src/os/windows/io/handle.rs b/library/std/src/os/windows/io/handle.rs
index 9ca5f3cc168..16cc8fa2783 100644
--- a/library/std/src/os/windows/io/handle.rs
+++ b/library/std/src/os/windows/io/handle.rs
@@ -188,6 +188,7 @@ impl OwnedHandle {
 impl BorrowedHandle<'_> {
     /// Creates a new `OwnedHandle` instance that shares the same underlying
     /// object as the existing `BorrowedHandle` instance.
+    #[stable(feature = "io_safety", since = "1.63.0")]
     pub fn try_clone_to_owned(&self) -> crate::io::Result<OwnedHandle> {
         self.duplicate(0, false, c::DUPLICATE_SAME_ACCESS)
     }
diff --git a/library/std/src/os/windows/io/socket.rs b/library/std/src/os/windows/io/socket.rs
index 3eafb138265..72cb3406dca 100644
--- a/library/std/src/os/windows/io/socket.rs
+++ b/library/std/src/os/windows/io/socket.rs
@@ -107,6 +107,7 @@ impl OwnedSocket {
 impl BorrowedSocket<'_> {
     /// Creates a new `OwnedSocket` instance that shares the same underlying
     /// object as the existing `BorrowedSocket` instance.
+    #[stable(feature = "io_safety", since = "1.63.0")]
     pub fn try_clone_to_owned(&self) -> io::Result<OwnedSocket> {
         let mut info = unsafe { mem::zeroed::<c::WSAPROTOCOL_INFO>() };
         let result = unsafe {