about summary refs log tree commit diff
path: root/src/libsyntax/parse/classify.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2013-06-01 17:13:39 -0700
committerbors <bors@rust-lang.org>2013-06-01 17:13:39 -0700
commit63417daea4058646ef07a880edc79653ddc16bbf (patch)
tree5d6e75e2ee5567640812d8f4132122d69fc25da1 /src/libsyntax/parse/classify.rs
parent24e85ac82d000a71276eb4cf2090bd176a3638bf (diff)
parent23808efd11be2a9f964373bd8d684d98565e58d0 (diff)
downloadrust-63417daea4058646ef07a880edc79653ddc16bbf.tar.gz
rust-63417daea4058646ef07a880edc79653ddc16bbf.zip
auto merge of #6885 : erickt/rust/move-callee_id, r=catamorphism
The `callee_id` in `ast::expr` in only used in a couple expression variants. This moves the `callee_id` into those branches to make it more clear when its should be used.

Also, it fixes a bug in a std::run test when there is a symlink in the path rust where was checked out.
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 e04914c0f1e..62b36b12f26 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::expr_loop(*)
       | ast::expr_call(_, _, ast::DoSugar)
       | ast::expr_call(_, _, ast::ForSugar)
-      | ast::expr_method_call(_, _, _, _, ast::DoSugar)
-      | ast::expr_method_call(_, _, _, _, ast::ForSugar) => false,
+      | ast::expr_method_call(_, _, _, _, _, ast::DoSugar)
+      | ast::expr_method_call(_, _, _, _, _, ast::ForSugar) => false,
       _ => true
     }
 }