about summary refs log tree commit diff
path: root/library/std
diff options
context:
space:
mode:
authorDan Gohman <dev@sunfishcode.online>2022-06-14 14:46:10 -0700
committerDan Gohman <dev@sunfishcode.online>2022-06-14 14:46:22 -0700
commit1237232aba9d765a469ac5a28fefd2ebfb158e9a (patch)
treec1ed4a0aa2bb0796947294e3af155a5d1a9670a1 /library/std
parent67ed99e6d2f377fffabedc2cd15fab484095fbea (diff)
downloadrust-1237232aba9d765a469ac5a28fefd2ebfb158e9a.tar.gz
rust-1237232aba9d765a469ac5a28fefd2ebfb158e9a.zip
Add a stability attribute to WASI's `try_clone()`.
Diffstat (limited to 'library/std')
-rw-r--r--library/std/src/os/fd/owned.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/library/std/src/os/fd/owned.rs b/library/std/src/os/fd/owned.rs
index 1d947cc853e..45b792039ef 100644
--- a/library/std/src/os/fd/owned.rs
+++ b/library/std/src/os/fd/owned.rs
@@ -100,6 +100,7 @@ impl OwnedFd {
     }
 
     #[cfg(target_arch = "wasm32")]
+    #[stable(feature = "io_safety", since = "1.63.0")]
     pub fn try_clone(&self) -> crate::io::Result<Self> {
         Err(crate::io::const_io_error!(
             crate::io::ErrorKind::Unsupported,