From 295d6e1d597c491f4bab3cf13c398814588eef49 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Wed, 10 Aug 2022 15:39:26 +0300 Subject: feat(tvix/vm): implement first nested attribute set construction This can construct non-overlapping nested attribute sets (i.e. `{ a.b = 1; b.c = 2; }`, but not `{ a.b = 1; a.c = 2; }`). In order to do the latter, it's necessary to gain the ability to manipulate the in-progress attribute set construction. There's multiple different options for this ... Change-Id: If1a762a720b175e8eb4216cbf96a7434d22640fb Reviewed-on: https://cl.tvl.fyi/c/depot/+/6106 Tested-by: BuildkiteCI Reviewed-by: grfn --- tvix/eval/src/errors.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tvix/eval/src/errors.rs') diff --git a/tvix/eval/src/errors.rs b/tvix/eval/src/errors.rs index 8a85972923..fb9f3b6ec5 100644 --- a/tvix/eval/src/errors.rs +++ b/tvix/eval/src/errors.rs @@ -6,6 +6,10 @@ pub enum Error { key: String, }, + InvalidKeyType { + given: &'static str, + }, + TypeError { expected: &'static str, actual: &'static str, -- cgit 1.4.1