From c02f346e2cdc80ef476ff625b59613acf62ccf87 Mon Sep 17 00:00:00 2001 From: Tim Chevalier Date: Fri, 26 Aug 2011 10:14:58 -0700 Subject: Revert "Revert "Use typestate constraints for trans_be"" This reverts commit b0db13956f4f106c4bf5a9210c7df439b34506a4. (Should work now that we have a new snapshot) --- src/comp/syntax/ast_util.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/comp/syntax') diff --git a/src/comp/syntax/ast_util.rs b/src/comp/syntax/ast_util.rs index 517e252dd9c..15f41af5cac 100644 --- a/src/comp/syntax/ast_util.rs +++ b/src/comp/syntax/ast_util.rs @@ -167,8 +167,8 @@ fn is_exported(i: ident, m: _mod) -> bool { ret count == 0u && !nonlocal; } -fn is_call_expr(e: @expr) -> bool { - alt e.node { expr_call(_, _) { ret true; } _ { ret false; } } +pure fn is_call_expr(e: @expr) -> bool { + alt e.node { expr_call(_, _) { true } _ { false } } } fn is_constraint_arg(e: @expr) -> bool { -- cgit 1.4.1-3-g733a5