about summary refs log tree commit diff
path: root/src/libstd/rt
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2013-09-05 12:10:46 -0700
committerbors <bors@rust-lang.org>2013-09-05 12:10:46 -0700
commitd84a7b5ae3b3a820fb0a26292632856ceb959b3e (patch)
tree888ea4b41a41ebc14a02f8c5b34a123ed54b6316 /src/libstd/rt
parent510c4d8dcf7fd265efb8cced2a03fd06063b0f6b (diff)
parentda042ce46a022d699dae792164dd180f6dd61894 (diff)
downloadrust-d84a7b5ae3b3a820fb0a26292632856ceb959b3e.tar.gz
rust-d84a7b5ae3b3a820fb0a26292632856ceb959b3e.zip
auto merge of #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.
Diffstat (limited to 'src/libstd/rt')
-rw-r--r--src/libstd/rt/io/mod.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libstd/rt/io/mod.rs b/src/libstd/rt/io/mod.rs
index 3b979cc2266..d1919905236 100644
--- a/src/libstd/rt/io/mod.rs
+++ b/src/libstd/rt/io/mod.rs
@@ -451,6 +451,8 @@ pub trait Writer {
 
 pub trait Stream: Reader + Writer { }
 
+impl<T: Reader + Writer> Stream for T;
+
 pub enum SeekStyle {
     /// Seek from the beginning of the stream
     SeekSet,