From a87abd5eedf76669163760e03ed2ce69d7b12721 Mon Sep 17 00:00:00 2001 From: Adam Joseph Date: Mon, 28 Nov 2022 01:23:54 -0800 Subject: feat(tvix/eval): placeholder for builtins.placeholder Change-Id: I8d11f2db4489a7d82910256069d10f8bed3bdf9a Reviewed-on: https://cl.tvl.fyi/c/depot/+/7451 Reviewed-by: tazjin Autosubmit: Adam Joseph Tested-by: BuildkiteCI --- tvix/eval/src/builtins/mod.rs | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'tvix/eval/src/builtins') 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 { + // TODO(amjoseph) + vm.emit_warning(WarningKind::NotImplemented("builtins.placeholder")); + Ok("".into()) + } + #[builtin("trace")] fn builtin_trace(_: &mut VM, message: Value, value: Value) -> Result { // TODO(grfn): `trace` should be pluggable and capturable, probably via a method on -- cgit 1.4.1