File tree 1 file changed +16
-0
lines changed
1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -945,10 +945,16 @@ pub trait Reader {
945
945
}
946
946
}
947
947
948
+ #[ cfg( stage0) ]
948
949
impl Reader for Box < Reader +' static > {
949
950
fn read ( & mut self , buf : & mut [ u8 ] ) -> IoResult < uint > { self . read ( buf) }
950
951
}
951
952
953
+ #[ cfg( not( stage0) ) ]
954
+ impl < ' a > Reader for Box < Reader +' a > {
955
+ fn read ( & mut self , buf : & mut [ u8 ] ) -> IoResult < uint > { self . read ( buf) }
956
+ }
957
+
952
958
impl < ' a > Reader for & ' a mut Reader +' a {
953
959
fn read ( & mut self , buf : & mut [ u8 ] ) -> IoResult < uint > { self . read ( buf) }
954
960
}
@@ -1295,6 +1301,7 @@ pub trait Writer {
1295
1301
}
1296
1302
}
1297
1303
1304
+ #[ cfg( stage0) ]
1298
1305
impl Writer for Box < Writer +' static > {
1299
1306
#[ inline]
1300
1307
fn write ( & mut self , buf : & [ u8 ] ) -> IoResult < ( ) > { self . write ( buf) }
@@ -1303,6 +1310,15 @@ impl Writer for Box<Writer+'static> {
1303
1310
fn flush ( & mut self ) -> IoResult < ( ) > { self . flush ( ) }
1304
1311
}
1305
1312
1313
+ #[ cfg( not( stage0) ) ]
1314
+ impl < ' a > Writer for Box < Writer +' a > {
1315
+ #[ inline]
1316
+ fn write ( & mut self , buf : & [ u8 ] ) -> IoResult < ( ) > { self . write ( buf) }
1317
+
1318
+ #[ inline]
1319
+ fn flush ( & mut self ) -> IoResult < ( ) > { self . flush ( ) }
1320
+ }
1321
+
1306
1322
impl < ' a > Writer for & ' a mut Writer +' a {
1307
1323
#[ inline]
1308
1324
fn write ( & mut self , buf : & [ u8 ] ) -> IoResult < ( ) > { self . write ( buf) }
You can’t perform that action at this time.
0 commit comments