about summary refs log tree commit diff
path: root/tvix/eval/src/errors.rs
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2022-08-10T12·39+0300
committertazjin <tazjin@tvl.su>2022-08-14T00·23+0000
commit295d6e1d597c491f4bab3cf13c398814588eef49 (patch)
treec8f049fe686b8309726f6d959257b2cd7648eaea /tvix/eval/src/errors.rs
parent8c2bc683cd28f095ce7942fa2402b48e7e6139be (diff)
feat(tvix/vm): implement first nested attribute set construction r/4442
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 <grfn@gws.fyi>
Diffstat (limited to 'tvix/eval/src/errors.rs')
-rw-r--r--tvix/eval/src/errors.rs4
1 files changed, 4 insertions, 0 deletions
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,