diff options
Diffstat (limited to 'src/comp/syntax')
| -rw-r--r-- | src/comp/syntax/ast_util.rs | 4 |
1 files changed, 2 insertions, 2 deletions
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 { |
