diff options
| author | Tim Chevalier <chevalier@alum.wellesley.edu> | 2011-08-26 10:14:58 -0700 |
|---|---|---|
| committer | Tim Chevalier <chevalier@alum.wellesley.edu> | 2011-08-26 10:14:58 -0700 |
| commit | c02f346e2cdc80ef476ff625b59613acf62ccf87 (patch) | |
| tree | 0672f0abe828bcb550aeda77f626d0bf15ec9812 /src/comp/syntax | |
| parent | 5472d2238ad2339869255bc8905a82b01a2b3c27 (diff) | |
| download | rust-c02f346e2cdc80ef476ff625b59613acf62ccf87.tar.gz rust-c02f346e2cdc80ef476ff625b59613acf62ccf87.zip | |
Revert "Revert "Use typestate constraints for trans_be""
This reverts commit b0db13956f4f106c4bf5a9210c7df439b34506a4. (Should work now that we have a new snapshot)
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 { |
