diff options
| author | Eduard Burtescu <edy.burt@gmail.com> | 2014-02-14 10:28:32 +0200 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2014-02-14 07:48:13 -0800 |
| commit | 6e840235962ca579cb5aa5d90d82165890c79f4c (patch) | |
| tree | bf38cb0a7dae7e8d7e274128f3276bce3c039d77 /src/libsyntax/parse/classify.rs | |
| parent | 07ea23e15dab673a3016d21b601234b296e59e57 (diff) | |
| download | rust-6e840235962ca579cb5aa5d90d82165890c79f4c.tar.gz rust-6e840235962ca579cb5aa5d90d82165890c79f4c.zip | |
Removed the obsolete ast::CallSugar (previously used by `do`).
Diffstat (limited to 'src/libsyntax/parse/classify.rs')
| -rw-r--r-- | src/libsyntax/parse/classify.rs | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/src/libsyntax/parse/classify.rs b/src/libsyntax/parse/classify.rs index accf5e73540..d6dcb956f25 100644 --- a/src/libsyntax/parse/classify.rs +++ b/src/libsyntax/parse/classify.rs @@ -23,15 +23,13 @@ use ast; // isn't parsed as (if true {...} else {...} | x) | 5 pub fn expr_requires_semi_to_be_stmt(e: @ast::Expr) -> bool { match e.node { - ast::ExprIf(..) - | ast::ExprMatch(..) - | ast::ExprBlock(_) - | ast::ExprWhile(..) - | ast::ExprLoop(..) - | ast::ExprForLoop(..) - | ast::ExprCall(_, _, ast::ForSugar) - | ast::ExprMethodCall(_, _, _, _, ast::ForSugar) => false, - _ => true + ast::ExprIf(..) + | ast::ExprMatch(..) + | ast::ExprBlock(_) + | ast::ExprWhile(..) + | ast::ExprLoop(..) + | ast::ExprForLoop(..) => false, + _ => true } } |
