From e04b1697e4f4e8236418571c1f5938f0a9717bb7 Mon Sep 17 00:00:00 2001 From: Adam Joseph Date: Sun, 27 Nov 2022 00:54:39 -0800 Subject: feat(tvix/eval): wrap Closure in Rc<> to match cppnix semantics Change-Id: I595087eff943d38a9fc78a83d37e207bb2ab79bc Reviewed-on: https://cl.tvl.fyi/c/depot/+/7443 Reviewed-by: grfn Tested-by: BuildkiteCI --- tvix/eval/src/compiler/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tvix/eval/src/compiler/mod.rs') diff --git a/tvix/eval/src/compiler/mod.rs b/tvix/eval/src/compiler/mod.rs index 5be582fb28..87383c0ca9 100644 --- a/tvix/eval/src/compiler/mod.rs +++ b/tvix/eval/src/compiler/mod.rs @@ -948,7 +948,7 @@ impl Compiler<'_> { if is_suspended_thunk { Value::Thunk(Thunk::new_suspended(lambda, span)) } else { - Value::Closure(Closure::new(lambda)) + Value::Closure(Rc::new(Closure::new(lambda))) }, node, ); -- cgit 1.4.1