about summary refs log tree commit diff
path: root/src/comp/syntax/parse
diff options
context:
space:
mode:
authorStefan Plantikow <stefan.plantikow@googlemail.com>2011-11-30 19:55:41 +0100
committerGraydon Hoare <graydon@mozilla.com>2011-12-02 11:38:24 -0800
commit4ba3158e4f6f0ea1c046bcf817dcb09782c4994b (patch)
treea6d78f6b20d58c6efec397b9d4ab2d9e9d1e88a7 /src/comp/syntax/parse
parent29f7cdffa4688aa539be4f0f6d2eab7f5af8a2d6 (diff)
downloadrust-4ba3158e4f6f0ea1c046bcf817dcb09782c4994b.tar.gz
rust-4ba3158e4f6f0ea1c046bcf817dcb09782c4994b.zip
parse: typeck: enabling trivial casts of tail-call return values
introduces ctypes::m_* machine type aliases for int, uint, float
depending on cfg(target_arch) that are used in tests
Diffstat (limited to 'src/comp/syntax/parse')
-rw-r--r--src/comp/syntax/parse/parser.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/comp/syntax/parse/parser.rs b/src/comp/syntax/parse/parser.rs
index 27dab755e06..7523ec26238 100644
--- a/src/comp/syntax/parse/parser.rs
+++ b/src/comp/syntax/parse/parser.rs
@@ -962,7 +962,7 @@ fn parse_bottom_expr(p: parser) -> @ast::expr {
         let e = parse_expr(p);
 
         // FIXME: Is this the right place for this check?
-        if /*check*/ast_util::is_call_expr(e) {
+        if /*check*/ ast_util::is_tail_call_expr(e) {
             hi = e.span.hi;
             ex = ast::expr_be(e);
         } else { p.fatal("Non-call expression in tail call"); }