Skip to content

Commit 6e26e27

Browse files
committed
Stabilize io_slice_advance
1 parent 0476fc4 commit 6e26e27

File tree

1 file changed

+4
-12
lines changed

1 file changed

+4
-12
lines changed

std/src/io/mod.rs

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1256,8 +1256,6 @@ impl<'a> IoSliceMut<'a> {
12561256
/// # Examples
12571257
///
12581258
/// ```
1259-
/// #![feature(io_slice_advance)]
1260-
///
12611259
/// use std::io::IoSliceMut;
12621260
/// use std::ops::Deref;
12631261
///
@@ -1268,7 +1266,7 @@ impl<'a> IoSliceMut<'a> {
12681266
/// buf.advance(3);
12691267
/// assert_eq!(buf.deref(), [1; 5].as_ref());
12701268
/// ```
1271-
#[unstable(feature = "io_slice_advance", issue = "62726")]
1269+
#[stable(feature = "io_slice_advance", since = "CURRENT_RUSTC_VERSION")]
12721270
#[inline]
12731271
pub fn advance(&mut self, n: usize) {
12741272
self.0.advance(n)
@@ -1290,8 +1288,6 @@ impl<'a> IoSliceMut<'a> {
12901288
/// # Examples
12911289
///
12921290
/// ```
1293-
/// #![feature(io_slice_advance)]
1294-
///
12951291
/// use std::io::IoSliceMut;
12961292
/// use std::ops::Deref;
12971293
///
@@ -1309,7 +1305,7 @@ impl<'a> IoSliceMut<'a> {
13091305
/// assert_eq!(bufs[0].deref(), [2; 14].as_ref());
13101306
/// assert_eq!(bufs[1].deref(), [3; 8].as_ref());
13111307
/// ```
1312-
#[unstable(feature = "io_slice_advance", issue = "62726")]
1308+
#[stable(feature = "io_slice_advance", since = "CURRENT_RUSTC_VERSION")]
13131309
#[inline]
13141310
pub fn advance_slices(bufs: &mut &mut [IoSliceMut<'a>], n: usize) {
13151311
// Number of buffers to remove.
@@ -1400,8 +1396,6 @@ impl<'a> IoSlice<'a> {
14001396
/// # Examples
14011397
///
14021398
/// ```
1403-
/// #![feature(io_slice_advance)]
1404-
///
14051399
/// use std::io::IoSlice;
14061400
/// use std::ops::Deref;
14071401
///
@@ -1412,7 +1406,7 @@ impl<'a> IoSlice<'a> {
14121406
/// buf.advance(3);
14131407
/// assert_eq!(buf.deref(), [1; 5].as_ref());
14141408
/// ```
1415-
#[unstable(feature = "io_slice_advance", issue = "62726")]
1409+
#[stable(feature = "io_slice_advance", since = "CURRENT_RUSTC_VERSION")]
14161410
#[inline]
14171411
pub fn advance(&mut self, n: usize) {
14181412
self.0.advance(n)
@@ -1434,8 +1428,6 @@ impl<'a> IoSlice<'a> {
14341428
/// # Examples
14351429
///
14361430
/// ```
1437-
/// #![feature(io_slice_advance)]
1438-
///
14391431
/// use std::io::IoSlice;
14401432
/// use std::ops::Deref;
14411433
///
@@ -1452,7 +1444,7 @@ impl<'a> IoSlice<'a> {
14521444
/// IoSlice::advance_slices(&mut bufs, 10);
14531445
/// assert_eq!(bufs[0].deref(), [2; 14].as_ref());
14541446
/// assert_eq!(bufs[1].deref(), [3; 8].as_ref());
1455-
#[unstable(feature = "io_slice_advance", issue = "62726")]
1447+
#[stable(feature = "io_slice_advance", since = "CURRENT_RUSTC_VERSION")]
14561448
#[inline]
14571449
pub fn advance_slices(bufs: &mut &mut [IoSlice<'a>], n: usize) {
14581450
// Number of buffers to remove.

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy