File tree Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -337,7 +337,8 @@ pub enum IoErrorKind {
337337// XXX: Can't put doc comments on macros
338338// Raised by `I/O` operations on error.
339339condition ! {
340- io_error: super :: IoError -> ( ) ;
340+ // FIXME (#6009): uncomment `pub` after expansion support lands.
341+ /*pub*/ io_error: super :: IoError -> ( ) ;
341342}
342343
343344pub trait Reader {
Original file line number Diff line number Diff line change @@ -485,8 +485,23 @@ pub fn core_macros() -> ~str {
485485
486486 macro_rules! condition (
487487
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+
488502 { $c: ident: $in: ty -> $out: ty; } => {
489503
504+ // FIXME (#6009): remove mod's `pub` below once variant above lands.
490505 pub mod $c {
491506 fn key( _x: @:: core:: condition:: Handler <$in, $out>) { }
492507
You can’t perform that action at this time.
0 commit comments