Skip to content

Commit 0668610

Browse files
committed
Heres the hack. Its related to Issue rust-lang#6009.
1 parent 0f0dc94 commit 0668610

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/libsyntax/ext/expand.rs

+14
Original file line numberDiff line numberDiff line change
@@ -478,6 +478,20 @@ pub fn core_macros() -> ~str {
478478
mod $c {
479479
fn key(_x: @::core::condition::Handler<$in,$out>) { }
480480

481+
pub static cond :
482+
::core::condition::Condition<'static,$in,$out> =
483+
::core::condition::Condition {
484+
name: stringify!($c),
485+
key: key
486+
};
487+
}
488+
};
489+
490+
{ pub $c:ident: $in:ty -> $out:ty; } => {
491+
492+
pub mod $c {
493+
fn key(_x: @::core::condition::Handler<$in,$out>) { }
494+
481495
pub static cond :
482496
::core::condition::Condition<'static,$in,$out> =
483497
::core::condition::Condition {

0 commit comments

Comments
 (0)