From 9a783e50a490a873f157ec298165b3f38973e4b5 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Mon, 29 Aug 2022 18:33:02 +0300 Subject: feat(tvix/eval): implement OpForce in VM This operation forces the evaluation of a thunk. There is some potential here for making an implementation that avoids some copies, but the thunk machinery is tricky to get right so the first priority is to make sure it is correct by keeping the implementation simple. Change-Id: Ib381455b02f42ded717faff63f55afed4c8fb7e3 Reviewed-on: https://cl.tvl.fyi/c/depot/+/6352 Tested-by: BuildkiteCI Reviewed-by: sterni --- tvix/eval/src/errors.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tvix/eval/src/errors.rs') diff --git a/tvix/eval/src/errors.rs b/tvix/eval/src/errors.rs index 49a051c16e..32d37d7815 100644 --- a/tvix/eval/src/errors.rs +++ b/tvix/eval/src/errors.rs @@ -38,6 +38,9 @@ pub enum ErrorKind { // Attempt to call something that is not callable. NotCallable, + // Infinite recursion encountered while forcing thunks. + InfiniteRecursion, + ParseErrors(Vec), AssertionFailed, -- cgit 1.4.1