diff options
| author | Dan Gohman <dev@sunfishcode.online> | 2022-03-08 15:38:08 -0800 |
|---|---|---|
| committer | Dan Gohman <dev@sunfishcode.online> | 2022-06-14 14:46:22 -0700 |
| commit | 67ed99e6d2f377fffabedc2cd15fab484095fbea (patch) | |
| tree | 6962a249b5d99d681948464a1d02ac1a6a008dbe /library/std/src/sys/unix/stdio.rs | |
| parent | 1f34da9ec8a85b6f86c5fa1c121ab6f88f2f4966 (diff) | |
| download | rust-67ed99e6d2f377fffabedc2cd15fab484095fbea.tar.gz rust-67ed99e6d2f377fffabedc2cd15fab484095fbea.zip | |
Implement stabilization of `#[feature(io_safety)]`.
Implement stabilization of [I/O safety], aka `#[feature(io_safety)]`. Fixes #87074. [I/O safety]: https://github.com/rust-lang/rfcs/blob/master/text/3128-io-safety.md
Diffstat (limited to 'library/std/src/sys/unix/stdio.rs')
| -rw-r--r-- | library/std/src/sys/unix/stdio.rs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/library/std/src/sys/unix/stdio.rs b/library/std/src/sys/unix/stdio.rs index e4d83ba0ffd..329f9433dba 100644 --- a/library/std/src/sys/unix/stdio.rs +++ b/library/std/src/sys/unix/stdio.rs @@ -92,7 +92,7 @@ pub fn panic_output() -> Option<impl io::Write> { Some(Stderr::new()) } -#[unstable(feature = "io_safety", issue = "87074")] +#[stable(feature = "io_safety", since = "1.63.0")] impl AsFd for io::Stdin { #[inline] fn as_fd(&self) -> BorrowedFd<'_> { @@ -100,7 +100,7 @@ impl AsFd for io::Stdin { } } -#[unstable(feature = "io_safety", issue = "87074")] +#[stable(feature = "io_safety", since = "1.63.0")] impl<'a> AsFd for io::StdinLock<'a> { #[inline] fn as_fd(&self) -> BorrowedFd<'_> { @@ -108,7 +108,7 @@ impl<'a> AsFd for io::StdinLock<'a> { } } -#[unstable(feature = "io_safety", issue = "87074")] +#[stable(feature = "io_safety", since = "1.63.0")] impl AsFd for io::Stdout { #[inline] fn as_fd(&self) -> BorrowedFd<'_> { @@ -116,7 +116,7 @@ impl AsFd for io::Stdout { } } -#[unstable(feature = "io_safety", issue = "87074")] +#[stable(feature = "io_safety", since = "1.63.0")] impl<'a> AsFd for io::StdoutLock<'a> { #[inline] fn as_fd(&self) -> BorrowedFd<'_> { @@ -124,7 +124,7 @@ impl<'a> AsFd for io::StdoutLock<'a> { } } -#[unstable(feature = "io_safety", issue = "87074")] +#[stable(feature = "io_safety", since = "1.63.0")] impl AsFd for io::Stderr { #[inline] fn as_fd(&self) -> BorrowedFd<'_> { @@ -132,7 +132,7 @@ impl AsFd for io::Stderr { } } -#[unstable(feature = "io_safety", issue = "87074")] +#[stable(feature = "io_safety", since = "1.63.0")] impl<'a> AsFd for io::StderrLock<'a> { #[inline] fn as_fd(&self) -> BorrowedFd<'_> { |
