Skip to content

Commit d84a7b5

Browse files
committed
auto merge of rust-lang#8984 : chris-morgan/rust/auto-stream-impl, r=huonw
This is consistent with the existing documentation but was not the actual behaviour, which I've found to be rather a nuisance, actually.
2 parents 510c4d8 + da042ce commit d84a7b5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/libstd/rt/io/mod.rs

+2
Original file line numberDiff line numberDiff line change
@@ -451,6 +451,8 @@ pub trait Writer {
451451

452452
pub trait Stream: Reader + Writer { }
453453

454+
impl<T: Reader + Writer> Stream for T;
455+
454456
pub enum SeekStyle {
455457
/// Seek from the beginning of the stream
456458
SeekSet,

0 commit comments

Comments
 (0)