From 5f625620b5e4e29919400a0ee863942e5bf3d970 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Thu, 13 Aug 2015 10:12:38 -0700 Subject: std: Add issues to all unstable features --- src/libstd/io/mod.rs | 36 ++++++++++++++++++++++++------------ 1 file changed, 24 insertions(+), 12 deletions(-) (limited to 'src/libstd/io/mod.rs') diff --git a/src/libstd/io/mod.rs b/src/libstd/io/mod.rs index eda6e85ff7f..5ad5d0fa4d5 100644 --- a/src/libstd/io/mod.rs +++ b/src/libstd/io/mod.rs @@ -647,7 +647,8 @@ pub trait Read { /// ``` #[unstable(feature = "io", reason = "the semantics of a partial read/write \ of where errors happen is currently \ - unclear and may change")] + unclear and may change", + issue = "27802")] fn chars(self) -> Chars where Self: Sized { Chars { inner: self } } @@ -754,7 +755,8 @@ pub trait Read { /// ``` #[unstable(feature = "io", reason = "the semantics of a partial read/write \ of where errors happen is currently \ - unclear and may change")] + unclear and may change", + issue = "27802")] fn tee(self, out: W) -> Tee where Self: Sized { Tee { reader: self, writer: out } } @@ -1016,7 +1018,8 @@ pub trait Write { /// ``` #[unstable(feature = "io", reason = "the semantics of a partial read/write \ of where errors happen is currently \ - unclear and may change")] + unclear and may change", + issue = "27802")] fn broadcast(self, other: W) -> Broadcast where Self: Sized { @@ -1401,13 +1404,15 @@ pub trait BufRead: Read { /// writer. Please see the documentation of `broadcast()` for more details. /// /// [broadcast]: trait.Write.html#method.broadcast -#[unstable(feature = "io", reason = "awaiting stability of Write::broadcast")] +#[unstable(feature = "io", reason = "awaiting stability of Write::broadcast", + issue = "27802")] pub struct Broadcast { first: T, second: U, } -#[unstable(feature = "io", reason = "awaiting stability of Write::broadcast")] +#[unstable(feature = "io", reason = "awaiting stability of Write::broadcast", + issue = "27802")] impl Write for Broadcast { fn write(&mut self, data: &[u8]) -> Result { let n = try!(self.first.write(data)); @@ -1509,13 +1514,15 @@ impl BufRead for Take { /// Please see the documentation of `tee()` for more details. /// /// [tee]: trait.Read.html#method.tee -#[unstable(feature = "io", reason = "awaiting stability of Read::tee")] +#[unstable(feature = "io", reason = "awaiting stability of Read::tee", + issue = "27802")] pub struct Tee { reader: R, writer: W, } -#[unstable(feature = "io", reason = "awaiting stability of Read::tee")] +#[unstable(feature = "io", reason = "awaiting stability of Read::tee", + issue = "27802")] impl Read for Tee { fn read(&mut self, buf: &mut [u8]) -> Result { let n = try!(self.reader.read(buf)); @@ -1556,7 +1563,8 @@ impl Iterator for Bytes { /// Please see the documentation of `chars()` for more details. /// /// [chars]: trait.Read.html#method.chars -#[unstable(feature = "io", reason = "awaiting stability of Read::chars")] +#[unstable(feature = "io", reason = "awaiting stability of Read::chars", + issue = "27802")] pub struct Chars { inner: R, } @@ -1564,7 +1572,8 @@ pub struct Chars { /// An enumeration of possible errors that can be generated from the `Chars` /// adapter. #[derive(Debug)] -#[unstable(feature = "io", reason = "awaiting stability of Read::chars")] +#[unstable(feature = "io", reason = "awaiting stability of Read::chars", + issue = "27802")] pub enum CharsError { /// Variant representing that the underlying stream was read successfully /// but it did not contain valid utf8 data. @@ -1574,7 +1583,8 @@ pub enum CharsError { Other(Error), } -#[unstable(feature = "io", reason = "awaiting stability of Read::chars")] +#[unstable(feature = "io", reason = "awaiting stability of Read::chars", + issue = "27802")] impl Iterator for Chars { type Item = result::Result; @@ -1606,7 +1616,8 @@ impl Iterator for Chars { } } -#[unstable(feature = "io", reason = "awaiting stability of Read::chars")] +#[unstable(feature = "io", reason = "awaiting stability of Read::chars", + issue = "27802")] impl std_error::Error for CharsError { fn description(&self) -> &str { match *self { @@ -1622,7 +1633,8 @@ impl std_error::Error for CharsError { } } -#[unstable(feature = "io", reason = "awaiting stability of Read::chars")] +#[unstable(feature = "io", reason = "awaiting stability of Read::chars", + issue = "27802")] impl fmt::Display for CharsError { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { match *self { -- cgit 1.4.1-3-g733a5