File tree 2 files changed +17
-1
lines changed 2 files changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -337,7 +337,8 @@ pub enum IoErrorKind {
337
337
// XXX: Can't put doc comments on macros
338
338
// Raised by `I/O` operations on error.
339
339
condition ! {
340
- io_error: super :: IoError -> ( ) ;
340
+ // FIXME (#6009): uncomment `pub` after expansion support lands.
341
+ /*pub*/ io_error: super :: IoError -> ( ) ;
341
342
}
342
343
343
344
pub trait Reader {
Original file line number Diff line number Diff line change @@ -485,8 +485,23 @@ pub fn core_macros() -> ~str {
485
485
486
486
macro_rules! condition (
487
487
488
+ { pub $c: ident: $in: ty -> $out: ty; } => {
489
+
490
+ pub mod $c {
491
+ fn key( _x: @:: core:: condition:: Handler <$in, $out>) { }
492
+
493
+ pub static cond :
494
+ :: core:: condition:: Condition <' static , $in, $out> =
495
+ :: core:: condition:: Condition {
496
+ name: stringify!( $c) ,
497
+ key: key
498
+ } ;
499
+ }
500
+ } ;
501
+
488
502
{ $c: ident: $in: ty -> $out: ty; } => {
489
503
504
+ // FIXME (#6009): remove mod's `pub` below once variant above lands.
490
505
pub mod $c {
491
506
fn key( _x: @:: core:: condition:: Handler <$in, $out>) { }
492
507
You can’t perform that action at this time.
0 commit comments