From 3a67a140093335e93cee560c1d2f9873035ffa95 Mon Sep 17 00:00:00 2001 From: William Carroll Date: Tue, 6 Sep 2022 11:58:28 -0700 Subject: feat(tvix/eval): Support builtins.elemAt (Attempt to) index into a list. Change-Id: I3592e60a79e64d265e34100d4062041b0b410e00 Reviewed-on: https://cl.tvl.fyi/c/depot/+/6551 Reviewed-by: wpcarro Reviewed-by: tazjin Autosubmit: wpcarro Tested-by: BuildkiteCI --- tvix/eval/src/errors.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tvix/eval/src/errors.rs') 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 { -- cgit 1.4.1