diff options
| author | Matthew McPherrin <matthew@mcpherrin.ca> | 2013-02-08 15:21:46 -0500 |
|---|---|---|
| committer | Matthew McPherrin <matthew@mcpherrin.ca> | 2013-02-08 15:21:46 -0500 |
| commit | 46df7985a5f3e1e1a50d0f5f81f32bb1e4be8967 (patch) | |
| tree | 4780d31268ce0e252a6ca47765bd6e8430e370da /src/libsyntax/parse/classify.rs | |
| parent | 64fedfbc4ef37b56f7bb12e2864f4011e4031ac5 (diff) | |
| parent | 3764cfbf57646becdeefa2996f812cbe40b016e7 (diff) | |
| download | rust-46df7985a5f3e1e1a50d0f5f81f32bb1e4be8967.tar.gz rust-46df7985a5f3e1e1a50d0f5f81f32bb1e4be8967.zip | |
Merge branch 'master' of https://github.com/mozilla/rust
Diffstat (limited to 'src/libsyntax/parse/classify.rs')
| -rw-r--r-- | src/libsyntax/parse/classify.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/libsyntax/parse/classify.rs b/src/libsyntax/parse/classify.rs index 4ceb04c55d0..64c4cb3c508 100644 --- a/src/libsyntax/parse/classify.rs +++ b/src/libsyntax/parse/classify.rs @@ -23,8 +23,10 @@ pub fn expr_requires_semi_to_be_stmt(e: @ast::expr) -> bool { | ast::expr_block(_) | ast::expr_while(*) | ast::expr_loop(*) - | ast::expr_call(_, _, true) - | ast::expr_method_call(_, _, _, _, true) => false, + | ast::expr_call(_, _, ast::DoSugar) + | ast::expr_call(_, _, ast::ForSugar) + | ast::expr_method_call(_, _, _, _, ast::DoSugar) + | ast::expr_method_call(_, _, _, _, ast::ForSugar) => false, _ => true } } |
