]> git.lizzy.rs Git - rust.git/blobdiff - library/std/src/os/windows/io/handle.rs
Add the new stability attributes, for Windows.
[rust.git] / library / std / src / os / windows / io / handle.rs
index 9ca5f3cc16838d03bf974392a90b68c275d835b8..16cc8fa2783eea6c13492710ccebfbe977e1b9ff 100644 (file)
@@ -188,6 +188,7 @@ pub fn try_clone(&self) -> crate::io::Result<Self> {
 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)
     }