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
}
@@ -1279,6 +1285,7 @@ pub trait Writer {
1279
1285
}
1280
1286
}
1281
1287
1288
+ #[ cfg( stage0) ]
1282
1289
impl Writer for Box < Writer +' static > {
1283
1290
#[ inline]
1284
1291
fn write ( & mut self , buf : & [ u8 ] ) -> IoResult < ( ) > { self . write ( buf) }
@@ -1287,6 +1294,15 @@ impl Writer for Box<Writer+'static> {
1287
1294
fn flush ( & mut self ) -> IoResult < ( ) > { self . flush ( ) }
1288
1295
}
1289
1296
1297
+ #[ cfg( not( stage0) ) ]
1298
+ impl < ' a > Writer for Box < Writer +' a > {
1299
+ #[ inline]
1300
+ fn write ( & mut self , buf : & [ u8 ] ) -> IoResult < ( ) > { self . write ( buf) }
1301
+
1302
+ #[ inline]
1303
+ fn flush ( & mut self ) -> IoResult < ( ) > { self . flush ( ) }
1304
+ }
1305
+
1290
1306
impl < ' a > Writer for & ' a mut Writer +' a {
1291
1307
#[ inline]
1292
1308
fn write ( & mut self , buf : & [ u8 ] ) -> IoResult < ( ) > { self . write ( buf) }
You can’t perform that action at this time.
0 commit comments