remove no-stmt check

nothing wrong with a statement expanding into 0 stmts, that I can see.
This commit is contained in:
John Clements 2014-07-12 18:25:39 -07:00
parent c4cc3ba130
commit 6ee2155fe0

View File

@ -612,10 +612,6 @@ fn expand_stmt(s: &Stmt, fld: &mut MacroExpander) -> SmallVector<Gc<Stmt>> {
// Keep going, outside-in.
let fully_expanded = fld.fold_stmt(&*marked_after);
if fully_expanded.is_empty() {
fld.cx.span_err(pth.span, "macro didn't expand to a statement");
return SmallVector::zero();
}
fld.cx.bt_pop();
let fully_expanded: SmallVector<Gc<Stmt>> = fully_expanded.move_iter()
.map(|s| box(GC) Spanned { span: s.span, node: s.node.clone() })