Skip to content

Commit 8c90df4

Browse files
committed
---
yaml --- r: 124236 b: refs/heads/try c: 6ee2155 h: refs/heads/master v: v3
1 parent 4578c62 commit 8c90df4

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
refs/heads/master: 6c35d513cea468b30759b4f78becf28f11a123c0
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: afbcbbc77ffc6b10053bc543daf7d2e05d68cc01
5-
refs/heads/try: c4cc3ba13019daf0cc947727b276941dcde9b623
5+
refs/heads/try: 6ee2155fe02cf5c7d8717358e2e10aff9a659b5f
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c

branches/try/src/libsyntax/ext/expand.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -612,10 +612,6 @@ fn expand_stmt(s: &Stmt, fld: &mut MacroExpander) -> SmallVector<Gc<Stmt>> {
612612

613613
// Keep going, outside-in.
614614
let fully_expanded = fld.fold_stmt(&*marked_after);
615-
if fully_expanded.is_empty() {
616-
fld.cx.span_err(pth.span, "macro didn't expand to a statement");
617-
return SmallVector::zero();
618-
}
619615
fld.cx.bt_pop();
620616
let fully_expanded: SmallVector<Gc<Stmt>> = fully_expanded.move_iter()
621617
.map(|s| box(GC) Spanned { span: s.span, node: s.node.clone() })

0 commit comments

Comments
 (0)