Skip to content

Commit

Permalink
Add a stability attribute to WASI's try_clone().
Browse files Browse the repository at this point in the history
  • Loading branch information
sunfishcode committed Jun 14, 2022
1 parent 67ed99e commit 1237232
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions library/std/src/os/fd/owned.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 1237232

Please sign in to comment.