Skip to content

Commit

Permalink
Auto merge of #43002 - SergioBenitez:more-io-inner-stable, r=BurntSushi
Browse files Browse the repository at this point in the history
Stabilize 'more_io_inner_methods' feature.

As in the title. Closes #41519.
  • Loading branch information
bors committed Jul 1, 2017
2 parents 05b5797 + d280b40 commit a19693a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 26 deletions.

This file was deleted.

20 changes: 5 additions & 15 deletions src/libstd/io/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1589,8 +1589,6 @@ impl<T, U> Chain<T, U> {
/// # Examples
///
/// ```
/// #![feature(more_io_inner_methods)]
///
/// # use std::io;
/// use std::io::prelude::*;
/// use std::fs::File;
Expand All @@ -1604,7 +1602,7 @@ impl<T, U> Chain<T, U> {
/// # Ok(())
/// # }
/// ```
#[unstable(feature = "more_io_inner_methods", issue="41519")]
#[stable(feature = "more_io_inner_methods", since = "1.20.0")]
pub fn into_inner(self) -> (T, U) {
(self.first, self.second)
}
Expand All @@ -1614,8 +1612,6 @@ impl<T, U> Chain<T, U> {
/// # Examples
///
/// ```
/// #![feature(more_io_inner_methods)]
///
/// # use std::io;
/// use std::io::prelude::*;
/// use std::fs::File;
Expand All @@ -1629,7 +1625,7 @@ impl<T, U> Chain<T, U> {
/// # Ok(())
/// # }
/// ```
#[unstable(feature = "more_io_inner_methods", issue="41519")]
#[stable(feature = "more_io_inner_methods", since = "1.20.0")]
pub fn get_ref(&self) -> (&T, &U) {
(&self.first, &self.second)
}
Expand All @@ -1643,8 +1639,6 @@ impl<T, U> Chain<T, U> {
/// # Examples
///
/// ```
/// #![feature(more_io_inner_methods)]
///
/// # use std::io;
/// use std::io::prelude::*;
/// use std::fs::File;
Expand All @@ -1658,7 +1652,7 @@ impl<T, U> Chain<T, U> {
/// # Ok(())
/// # }
/// ```
#[unstable(feature = "more_io_inner_methods", issue="41519")]
#[stable(feature = "more_io_inner_methods", since = "1.20.0")]
pub fn get_mut(&mut self) -> (&mut T, &mut U) {
(&mut self.first, &mut self.second)
}
Expand Down Expand Up @@ -1791,8 +1785,6 @@ impl<T> Take<T> {
/// # Examples
///
/// ```
/// #![feature(more_io_inner_methods)]
///
/// use std::io;
/// use std::io::prelude::*;
/// use std::fs::File;
Expand All @@ -1808,7 +1800,7 @@ impl<T> Take<T> {
/// # Ok(())
/// # }
/// ```
#[unstable(feature = "more_io_inner_methods", issue="41519")]
#[stable(feature = "more_io_inner_methods", since = "1.20.0")]
pub fn get_ref(&self) -> &T {
&self.inner
}
Expand All @@ -1822,8 +1814,6 @@ impl<T> Take<T> {
/// # Examples
///
/// ```
/// #![feature(more_io_inner_methods)]
///
/// use std::io;
/// use std::io::prelude::*;
/// use std::fs::File;
Expand All @@ -1839,7 +1829,7 @@ impl<T> Take<T> {
/// # Ok(())
/// # }
/// ```
#[unstable(feature = "more_io_inner_methods", issue="41519")]
#[stable(feature = "more_io_inner_methods", since = "1.20.0")]
pub fn get_mut(&mut self) -> &mut T {
&mut self.inner
}
Expand Down

0 comments on commit a19693a

Please sign in to comment.