Skip to content

Commit 0d818b4

Browse files
committed
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.
1 parent 2d389c1 commit 0d818b4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/libstd/io/buffered.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -454,13 +454,17 @@ impl<W: Read + Write> Read for InternalBufWriter<W> {
454454
#[unstable(feature = "buf_stream",
455455
reason = "unsure about semantics of buffering two directions, \
456456
leading to issues like #17136")]
457+
#[deprecated(since = "1.2.0",
458+
reason = "use the crates.io `bufstream` crate instead")]
457459
pub struct BufStream<S: Write> {
458460
inner: BufReader<InternalBufWriter<S>>
459461
}
460462

461463
#[unstable(feature = "buf_stream",
462464
reason = "unsure about semantics of buffering two directions, \
463465
leading to issues like #17136")]
466+
#[deprecated(since = "1.2.0",
467+
reason = "use the crates.io `bufstream` crate instead")]
464468
impl<S: Read + Write> BufStream<S> {
465469
/// Creates a new buffered stream with explicitly listed capacities for the
466470
/// reader/writer buffer.

0 commit comments

Comments
 (0)