From 0d818b4ee4a978babc8781ece028a7d0e9ed2e36 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Wed, 10 Jun 2015 18:52:57 -0700 Subject: [PATCH] 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. --- src/libstd/io/buffered.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/libstd/io/buffered.rs b/src/libstd/io/buffered.rs index c355be9bc78d..95363870cd08 100644 --- a/src/libstd/io/buffered.rs +++ b/src/libstd/io/buffered.rs @@ -454,6 +454,8 @@ impl Read for InternalBufWriter { #[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 { inner: BufReader> } @@ -461,6 +463,8 @@ pub struct BufStream { #[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 BufStream { /// Creates a new buffered stream with explicitly listed capacities for the /// reader/writer buffer.