From e2e077c831b5ef43780d18631170807ba0623270 Mon Sep 17 00:00:00 2001 From: Marijn Haverbeke Date: Thu, 22 Dec 2011 13:47:30 +0100 Subject: Remove trivial cast checker I consider the added complexity not justified at this point, and it interacts badly with the patches for issue #828. Feel free to discuss. --- 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 d12943202c7..cf02c4ea31e 100644 --- a/src/comp/syntax/parse/parser.rs +++ b/src/comp/syntax/parse/parser.rs @@ -958,7 +958,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_tail_call_expr(e) { + if /*check*/ast_util::is_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