about summary refs log tree commit diff
path: root/src/libstd/io
diff options
context:
space:
mode:
authorHuon Wilson <dbau.pp+github@gmail.com>2014-09-07 20:42:14 +1000
committerHuon Wilson <dbau.pp+github@gmail.com>2014-09-07 20:42:14 +1000
commit524e1b20af044d830c4ebc67612a7e43c58201db (patch)
tree787903969b8c6d4d93d1740910a3a663f27c5ce4 /src/libstd/io
parentc964cb229bd342bdeb0b4506c3a6d32b03e575f6 (diff)
downloadrust-524e1b20af044d830c4ebc67612a7e43c58201db.tar.gz
rust-524e1b20af044d830c4ebc67612a7e43c58201db.zip
Register snapshots.
Closes #16880.
Diffstat (limited to 'src/libstd/io')
-rw-r--r--src/libstd/io/mod.rs16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/libstd/io/mod.rs b/src/libstd/io/mod.rs
index bd4ec797159..0d0c9e933b0 100644
--- a/src/libstd/io/mod.rs
+++ b/src/libstd/io/mod.rs
@@ -945,12 +945,6 @@ pub trait Reader {
     }
 }
 
-#[cfg(stage0)]
-impl Reader for Box<Reader+'static> {
-    fn read(&mut self, buf: &mut [u8]) -> IoResult<uint> { self.read(buf) }
-}
-
-#[cfg(not(stage0))]
 impl<'a> Reader for Box<Reader+'a> {
     fn read(&mut self, buf: &mut [u8]) -> IoResult<uint> { self.read(buf) }
 }
@@ -1285,16 +1279,6 @@ pub trait Writer {
     }
 }
 
-#[cfg(stage0)]
-impl Writer for Box<Writer+'static> {
-    #[inline]
-    fn write(&mut self, buf: &[u8]) -> IoResult<()> { self.write(buf) }
-
-    #[inline]
-    fn flush(&mut self) -> IoResult<()> { self.flush() }
-}
-
-#[cfg(not(stage0))]
 impl<'a> Writer for Box<Writer+'a> {
     #[inline]
     fn write(&mut self, buf: &[u8]) -> IoResult<()> { self.write(buf) }