From 33ac583fea9dc0353e5487a22811453e84dc1cf2 Mon Sep 17 00:00:00 2001 From: Dror Levin Date: Tue, 15 Jan 2019 10:33:39 +0200 Subject: [PATCH] Stabilize FileExt::read_exact_at/write_all_at Closes #51984. --- src/libstd/sys/unix/ext/fs.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/libstd/sys/unix/ext/fs.rs b/src/libstd/sys/unix/ext/fs.rs index 7930dd04051eb..e962d09e274e1 100644 --- a/src/libstd/sys/unix/ext/fs.rs +++ b/src/libstd/sys/unix/ext/fs.rs @@ -84,7 +84,6 @@ pub trait FileExt { /// # Examples /// /// ```no_run - /// #![feature(rw_exact_all_at)] /// use std::io; /// use std::fs::File; /// use std::os::unix::prelude::FileExt; @@ -99,7 +98,7 @@ pub trait FileExt { /// Ok(()) /// } /// ``` - #[unstable(feature = "rw_exact_all_at", issue = "51984")] + #[stable(feature = "rw_exact_all_at", since = "1.33.0")] fn read_exact_at(&self, mut buf: &mut [u8], mut offset: u64) -> io::Result<()> { while !buf.is_empty() { match self.read_at(buf, offset) { @@ -181,7 +180,6 @@ pub trait FileExt { /// # Examples /// /// ```no_run - /// #![feature(rw_exact_all_at)] /// use std::fs::File; /// use std::io; /// use std::os::unix::prelude::FileExt; @@ -194,7 +192,7 @@ pub trait FileExt { /// Ok(()) /// } /// ``` - #[unstable(feature = "rw_exact_all_at", issue = "51984")] + #[stable(feature = "rw_exact_all_at", since = "1.33.0")] fn write_all_at(&self, mut buf: &[u8], mut offset: u64) -> io::Result<()> { while !buf.is_empty() { match self.write_at(buf, offset) {