Allow for macros to occur in statement position.
This commit is contained in:
committed by
Graydon Hoare
parent
fca52554e7
commit
ee076f63f9
@@ -39,7 +39,8 @@ pure fn stmt_id(s: stmt) -> node_id {
|
||||
match s.node {
|
||||
stmt_decl(_, id) => id,
|
||||
stmt_expr(_, id) => id,
|
||||
stmt_semi(_, id) => id
|
||||
stmt_semi(_, id) => id,
|
||||
stmt_mac(_) => fail ~"attempted to analyze unexpanded stmt",
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user