about summary refs log tree commit diff
path: root/src/libstd/sys
diff options
context:
space:
mode:
authorDror Levin <spatz@psybear.com>2019-01-15 10:33:39 +0200
committerGitHub <noreply@github.com>2019-01-15 10:33:39 +0200
commit33ac583fea9dc0353e5487a22811453e84dc1cf2 (patch)
treec3653ebc57dcf11debeb47210ed27ea6176e09e8 /src/libstd/sys
parent33e6df4b62237af312bf6e3f40a97f5bdc94949a (diff)
downloadrust-33ac583fea9dc0353e5487a22811453e84dc1cf2.tar.gz
rust-33ac583fea9dc0353e5487a22811453e84dc1cf2.zip
Stabilize FileExt::read_exact_at/write_all_at
Closes #51984.
Diffstat (limited to 'src/libstd/sys')
-rw-r--r--src/libstd/sys/unix/ext/fs.rs6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/libstd/sys/unix/ext/fs.rs b/src/libstd/sys/unix/ext/fs.rs
index 7930dd04051..e962d09e274 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) {