about summary refs log tree commit diff
path: root/tvix/eval/src/builtins
diff options
context:
space:
mode:
authorsterni <sternenseemann@systemli.org>2022-09-19T09·17+0200
committersterni <sternenseemann@systemli.org>2022-09-20T09·42+0000
commita01524823aef834389b8eab50d6bf8f6c7d23bbf (patch)
tree538195848266cbbdb548d4028f6a4130f8ba3972 /tvix/eval/src/builtins
parent6576c2f15fc98f9432b0a0ce6b4f23a8528f30d9 (diff)
refactor(tvix/eval): don't unnecessarily force in toString r/4931
Change-Id: I2bcc720ce7b6aa67ea5f145b1f2381a3ae833ac5
Reviewed-on: https://cl.tvl.fyi/c/depot/+/6691
Autosubmit: sterni <sternenseemann@systemli.org>
Reviewed-by: tazjin <tazjin@tvl.su>
Tested-by: BuildkiteCI
Diffstat (limited to 'tvix/eval/src/builtins')
-rw-r--r--tvix/eval/src/builtins/mod.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/tvix/eval/src/builtins/mod.rs b/tvix/eval/src/builtins/mod.rs
index 9714c96d05d8..0268f4f6453c 100644
--- a/tvix/eval/src/builtins/mod.rs
+++ b/tvix/eval/src/builtins/mod.rs
@@ -238,7 +238,8 @@ fn pure_builtins() -> Vec<Builtin> {
                 args.pop().unwrap().to_str()?.as_str().to_owned(),
             ));
         }),
-        Builtin::new("toString", &[true], |args, vm| {
+        // coerce_to_string forces for us
+        Builtin::new("toString", &[false], |args, vm| {
             args[0]
                 .coerce_to_string(CoercionKind::Strong, vm)
                 .map(Value::String)