diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2015-06-10 18:52:57 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2015-06-17 09:07:16 -0700 |
| commit | 0d818b4ee4a978babc8781ece028a7d0e9ed2e36 (patch) | |
| tree | b200808e227204e66675a36d2c3de8c5756f99be /src/libstd | |
| parent | 2d389c125e2ba7fdb6762120e1fa4e783fa7adad (diff) | |
| download | rust-0d818b4ee4a978babc8781ece028a7d0e9ed2e36.tar.gz rust-0d818b4ee4a978babc8781ece028a7d0e9ed2e36.zip | |
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.
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/io/buffered.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libstd/io/buffered.rs b/src/libstd/io/buffered.rs index c355be9bc78..95363870cd0 100644 --- a/src/libstd/io/buffered.rs +++ b/src/libstd/io/buffered.rs @@ -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. |
