about summary refs log tree commit diff
path: root/tvix/eval/src/errors.rs
diff options
context:
space:
mode:
authorWilliam Carroll <wpcarro@gmail.com>2022-09-06T18·58-0700
committerclbot <clbot@tvl.fyi>2022-09-17T12·54+0000
commit3a67a140093335e93cee560c1d2f9873035ffa95 (patch)
treeb8f8bf10d78aaf6fd1c45a0c2b368c6d87c75290 /tvix/eval/src/errors.rs
parent53fbc75df9ee4aa06eccc9f12bfe9cab8eab5755 (diff)
feat(tvix/eval): Support builtins.elemAt r/4882
(Attempt to) index into a list.

Change-Id: I3592e60a79e64d265e34100d4062041b0b410e00
Reviewed-on: https://cl.tvl.fyi/c/depot/+/6551
Reviewed-by: wpcarro <wpcarro@gmail.com>
Reviewed-by: tazjin <tazjin@tvl.su>
Autosubmit: wpcarro <wpcarro@gmail.com>
Tested-by: BuildkiteCI
Diffstat (limited to 'tvix/eval/src/errors.rs')
-rw-r--r--tvix/eval/src/errors.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/tvix/eval/src/errors.rs b/tvix/eval/src/errors.rs
index 23ac6abbf4..d3d41cbbcd 100644
--- a/tvix/eval/src/errors.rs
+++ b/tvix/eval/src/errors.rs
@@ -26,9 +26,9 @@ pub enum ErrorKind {
         name: String,
     },
 
-    // Attempted to index into a list beyond its boundaries.
+    /// Attempted to index into a list beyond its boundaries.
     IndexOutOfBounds {
-        index: usize,
+        index: i64,
     },
 
     TypeError {