We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0f0dc94 commit 0668610Copy full SHA for 0668610
src/libsyntax/ext/expand.rs
@@ -478,6 +478,20 @@ pub fn core_macros() -> ~str {
478
mod $c {
479
fn key(_x: @::core::condition::Handler<$in,$out>) { }
480
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
495
pub static cond :
496
::core::condition::Condition<'static,$in,$out> =
497
::core::condition::Condition {
0 commit comments