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:
parent
2d389c125e
commit
0d818b4ee4
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user