Skip to content

Commit

Permalink
remove no-stmt check
Browse files Browse the repository at this point in the history
nothing wrong with a statement expanding into 0 stmts, that I can see.
  • Loading branch information
jbclements committed Jul 13, 2014
1 parent c4cc3ba commit 6ee2155
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/libsyntax/ext/expand.rs
Expand Up @@ -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() })
Expand Down

0 comments on commit 6ee2155

Please sign in to comment.