From 4ba3158e4f6f0ea1c046bcf817dcb09782c4994b Mon Sep 17 00:00:00 2001 From: Stefan Plantikow Date: Wed, 30 Nov 2011 19:55:41 +0100 Subject: 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 --- src/comp/syntax/parse/parser.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/comp/syntax/parse') 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"); } -- cgit 1.4.1-3-g733a5