Skip to content

Commit 9201924

Browse files
committed
Auto merge of #57625 - drrlvn:patch-1, r=Centril
Stabilize FileExt::read_exact_at/write_all_at r? alexcrichton Closes #51984.
2 parents 33e6df4 + 33ac583 commit 9201924

File tree

1 file changed

+2
-4
lines changed
  • src/libstd/sys/unix/ext

1 file changed

+2
-4
lines changed

src/libstd/sys/unix/ext/fs.rs

+2-4
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@ pub trait FileExt {
8484
/// # Examples
8585
///
8686
/// ```no_run
87-
/// #![feature(rw_exact_all_at)]
8887
/// use std::io;
8988
/// use std::fs::File;
9089
/// use std::os::unix::prelude::FileExt;
@@ -99,7 +98,7 @@ pub trait FileExt {
9998
/// Ok(())
10099
/// }
101100
/// ```
102-
#[unstable(feature = "rw_exact_all_at", issue = "51984")]
101+
#[stable(feature = "rw_exact_all_at", since = "1.33.0")]
103102
fn read_exact_at(&self, mut buf: &mut [u8], mut offset: u64) -> io::Result<()> {
104103
while !buf.is_empty() {
105104
match self.read_at(buf, offset) {
@@ -181,7 +180,6 @@ pub trait FileExt {
181180
/// # Examples
182181
///
183182
/// ```no_run
184-
/// #![feature(rw_exact_all_at)]
185183
/// use std::fs::File;
186184
/// use std::io;
187185
/// use std::os::unix::prelude::FileExt;
@@ -194,7 +192,7 @@ pub trait FileExt {
194192
/// Ok(())
195193
/// }
196194
/// ```
197-
#[unstable(feature = "rw_exact_all_at", issue = "51984")]
195+
#[stable(feature = "rw_exact_all_at", since = "1.33.0")]
198196
fn write_all_at(&self, mut buf: &[u8], mut offset: u64) -> io::Result<()> {
199197
while !buf.is_empty() {
200198
match self.write_at(buf, offset) {

0 commit comments

Comments
 (0)