We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d39c969 commit 577b024Copy full SHA for 577b024
[refs]
@@ -1,2 +1,2 @@
1
---
2
-refs/heads/master: 3b5b93221e1bf35b48dc5fd040f0086892704ca5
+refs/heads/master: b0a72ee06a5ac28e18b8a549132eda23e32856c9
trunk/src/comp/syntax/parse/parser.rs
@@ -1585,7 +1585,8 @@ fn parse_source_stmt(p: parser) -> @ast::stmt {
1585
// Remainder are line-expr stmts.
1586
let e = parse_expr(p);
1587
// See if it is a block call
1588
- if p.peek() == token::LBRACE && is_bar(p.look_ahead(1u)) {
+ if expr_has_value(e) && p.peek() == token::LBRACE &&
1589
+ is_bar(p.look_ahead(1u)) {
1590
p.bump();
1591
let blk = parse_fn_block_expr(p);
1592
alt e.node {
0 commit comments