Allow macro_rules! macros to expand to expressions or items.
This commit is contained in:
committed by
Graydon Hoare
parent
c946c87b6f
commit
9845a4be5a
@@ -44,6 +44,7 @@ type syntax_expander_tt_item_
|
||||
enum mac_result {
|
||||
mr_expr(@ast::expr),
|
||||
mr_item(@ast::item),
|
||||
mr_expr_or_item(fn@()-> @ast::expr, fn@()-> Option<@ast::item>),
|
||||
mr_def(macro_def)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user