std: Deprecate the io::BufStream type

Questions about the utility of this type has caused it to move to crates.io in
the `bufstream` crate, so this type can be deprecated.
This commit is contained in:
Alex Crichton 2015-06-10 18:52:57 -07:00
parent 2d389c125e
commit 0d818b4ee4

View File

@ -454,6 +454,8 @@ impl<W: Read + Write> Read for InternalBufWriter<W> {
#[unstable(feature = "buf_stream",
reason = "unsure about semantics of buffering two directions, \
leading to issues like #17136")]
#[deprecated(since = "1.2.0",
reason = "use the crates.io `bufstream` crate instead")]
pub struct BufStream<S: Write> {
inner: BufReader<InternalBufWriter<S>>
}
@ -461,6 +463,8 @@ pub struct BufStream<S: Write> {
#[unstable(feature = "buf_stream",
reason = "unsure about semantics of buffering two directions, \
leading to issues like #17136")]
#[deprecated(since = "1.2.0",
reason = "use the crates.io `bufstream` crate instead")]
impl<S: Read + Write> BufStream<S> {
/// Creates a new buffered stream with explicitly listed capacities for the
/// reader/writer buffer.