File tree Expand file tree Collapse file tree 2 files changed +2
-0
lines changed
library/std/src/os/windows/io Expand file tree Collapse file tree 2 files changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -188,6 +188,7 @@ impl OwnedHandle {
188188impl 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 }
Original file line number Diff line number Diff line change @@ -107,6 +107,7 @@ impl OwnedSocket {
107107impl 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 {
You can’t perform that action at this time.
0 commit comments