about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAdam Joseph <adam@westernsemico.com>2022-11-28T09·23-0800
committerclbot <clbot@tvl.fyi>2022-12-01T10·30+0000
commita87abd5eedf76669163760e03ed2ce69d7b12721 (patch)
tree8cb15027bf52f0b4cae67914513b36c255e0c2e5
parentf32abc57cf32fa2400f94a087462abe55e6c790a (diff)
feat(tvix/eval): placeholder for builtins.placeholder r/5356
Change-Id: I8d11f2db4489a7d82910256069d10f8bed3bdf9a
Reviewed-on: https://cl.tvl.fyi/c/depot/+/7451
Reviewed-by: tazjin <tazjin@tvl.su>
Autosubmit: Adam Joseph <adam@westernsemico.com>
Tested-by: BuildkiteCI
-rw-r--r--tvix/eval/src/builtins/mod.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/tvix/eval/src/builtins/mod.rs b/tvix/eval/src/builtins/mod.rs
index 0003bddbf224..21509cb10d8f 100644
--- a/tvix/eval/src/builtins/mod.rs
+++ b/tvix/eval/src/builtins/mod.rs
@@ -899,6 +899,13 @@ mod pure_builtins {
             .map(Value::String)
     }
 
+    #[builtin("placeholder")]
+    fn builtin_placeholder(vm: &mut VM, #[lazy] _: Value) -> Result<Value, ErrorKind> {
+        // TODO(amjoseph)
+        vm.emit_warning(WarningKind::NotImplemented("builtins.placeholder"));
+        Ok("<builtins.placeholder-is-not-implemented-in-tvix-yet>".into())
+    }
+
     #[builtin("trace")]
     fn builtin_trace(_: &mut VM, message: Value, value: Value) -> Result<Value, ErrorKind> {
         // TODO(grfn): `trace` should be pluggable and capturable, probably via a method on