refactor(tvix/eval): drop placeholder impls of builtins in glue
The builtins `placeholder` and `filterSource` are now implemented in tvix-glue and so we no longer need their placeholder "implementations" in tvix-eval. Change-Id: Ibf161ccf1ad40103e9fbb688e9f6be58e7772af1 Reviewed-on: https://cl.tvl.fyi/c/depot/+/11867 Tested-by: BuildkiteCI Reviewed-by: flokli <flokli@flokli.de> Autosubmit: Ilan Joselevich <personal@ilanjoselevich.com>
This commit is contained in:
parent
bf541acf29
commit
04f04cfc27
1 changed files with 0 additions and 16 deletions
|
@ -465,15 +465,6 @@ mod pure_builtins {
|
|||
toml::from_str(toml_str.to_str()?).map_err(|err| err.into())
|
||||
}
|
||||
|
||||
#[builtin("filterSource")]
|
||||
#[allow(non_snake_case)]
|
||||
async fn builtin_filterSource(_co: GenCo, #[lazy] _e: Value) -> Result<Value, ErrorKind> {
|
||||
// TODO: implement for nixpkgs compatibility
|
||||
Ok(Value::from(CatchableErrorKind::UnimplementedFeature(
|
||||
"filterSource".into(),
|
||||
)))
|
||||
}
|
||||
|
||||
#[builtin("genericClosure")]
|
||||
async fn builtin_generic_closure(co: GenCo, input: Value) -> Result<Value, ErrorKind> {
|
||||
let attrs = input.to_attrs()?;
|
||||
|
@ -1517,13 +1508,6 @@ mod pure_builtins {
|
|||
.into())
|
||||
}
|
||||
|
||||
#[builtin("placeholder")]
|
||||
async fn builtin_placeholder(co: GenCo, #[lazy] _x: Value) -> Result<Value, ErrorKind> {
|
||||
generators::emit_warning_kind(&co, WarningKind::NotImplemented("builtins.placeholder"))
|
||||
.await;
|
||||
Ok("<builtins.placeholder-is-not-implemented-in-tvix-yet>".into())
|
||||
}
|
||||
|
||||
#[builtin("trace")]
|
||||
async fn builtin_trace(co: GenCo, message: Value, value: Value) -> Result<Value, ErrorKind> {
|
||||
// TODO(grfn): `trace` should be pluggable and capturable, probably via a method on
|
||||
|
|
Loading…
Reference in a new issue