about summary refs log tree commit diff
path: root/src/libsyntax/parse/classify.rs
diff options
context:
space:
mode:
authorEduard Burtescu <edy.burt@gmail.com>2014-01-27 14:18:36 +0200
committerEduard Burtescu <edy.burt@gmail.com>2014-01-27 14:31:24 +0200
commit15ba0c310a2bfe2ab69670d0d87529a29d527973 (patch)
tree0335308a02e566557ba2200fd0b50e8d7b2d5ab5 /src/libsyntax/parse/classify.rs
parentb0280ac5385433bd663e825e24f6990a816a5f40 (diff)
downloadrust-15ba0c310a2bfe2ab69670d0d87529a29d527973.tar.gz
rust-15ba0c310a2bfe2ab69670d0d87529a29d527973.zip
Demote self to an (almost) regular argument and remove the env param.
Fixes #10667 and closes #10259.
Diffstat (limited to 'src/libsyntax/parse/classify.rs')
-rw-r--r--src/libsyntax/parse/classify.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsyntax/parse/classify.rs b/src/libsyntax/parse/classify.rs
index 1204cbc2eea..61c80919b6e 100644
--- a/src/libsyntax/parse/classify.rs
+++ b/src/libsyntax/parse/classify.rs
@@ -31,8 +31,8 @@ pub fn expr_requires_semi_to_be_stmt(e: @ast::Expr) -> bool {
       | ast::ExprForLoop(..)
       | ast::ExprCall(_, _, ast::DoSugar)
       | ast::ExprCall(_, _, ast::ForSugar)
-      | ast::ExprMethodCall(_, _, _, _, _, ast::DoSugar)
-      | ast::ExprMethodCall(_, _, _, _, _, ast::ForSugar) => false,
+      | ast::ExprMethodCall(_, _, _, _, ast::DoSugar)
+      | ast::ExprMethodCall(_, _, _, _, ast::ForSugar) => false,
       _ => true
     }
 }