From ad3fdcf843aa321fdcbbe844bde4cc35b4c27750 Mon Sep 17 00:00:00 2001 From: Folkert Date: Fri, 29 Nov 2019 13:23:15 +0100 Subject: [PATCH] disable tai-call detection for now I think this needs some more structural work. This change keeps tests passing for now. --- src/can/mod.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/can/mod.rs b/src/can/mod.rs index ec91e7cf15..c14afe93a2 100644 --- a/src/can/mod.rs +++ b/src/can/mod.rs @@ -304,7 +304,8 @@ fn canonicalize_expr( output.references.calls.insert(sym.clone()); // we're tail-calling a symbol by name - output.tail_call = Some(sym.clone()); + // TODO re-enable tail-call detection + // output.tail_call = Some(sym.clone()); Call(Box::new(fn_expr.value), args, *application_style) }