snix/tvix/eval/src
Vincent Ambo 0a13d267f0 fix(tvix/eval): thread thunk forcing errors through correctly
With this, if an error occurs while forcing a thunk (which is very
likely) it is threaded through to the top by wrapping it in the
ErrorKind::ThunkForce variant.

We could use this to generate "stacktrace-like" error output if we
wanted, or simply jump through and discard everything except the
innermost error.

Change-Id: I3c1c8708c2f73ae062815adf490ce935b1979da8
Reviewed-on: https://cl.tvl.fyi/c/depot/+/6409
Reviewed-by: sterni <sternenseemann@systemli.org>
Tested-by: BuildkiteCI
2022-09-08 07:59:15 +00:00
..
builtins feat(tvix/eval): ensure all errors always carry a span 2022-09-08 07:59:15 +00:00
compiler feat(tvix/eval): ensure all errors always carry a span 2022-09-08 07:59:15 +00:00
tests feat(tvix/eval): Support builtins.length 2022-09-07 20:56:02 +00:00
value fix(tvix/eval): thread thunk forcing errors through correctly 2022-09-08 07:59:15 +00:00
chunk.rs feat(tvix/eval): track source spans for builtin access 2022-09-07 20:04:17 +00:00
disassembler.rs fix(tvix/eval): avoid recomputing width in disassemble_op constantly 2022-09-07 15:25:59 +00:00
errors.rs fix(tvix/eval): thread thunk forcing errors through correctly 2022-09-08 07:59:15 +00:00
eval.rs feat(tvix/eval): ensure all errors always carry a span 2022-09-08 07:59:15 +00:00
lib.rs refactor(tvix/eval): introduce UpvalueCarrier trait 2022-09-06 14:58:52 +00:00
main.rs refactor(tvix/eval): explicitly discard uninteresting results 2022-09-03 13:19:48 +00:00
opcode.rs fix(tvix/eval): address current clippy lints 2022-09-07 19:08:56 +00:00
upvalues.rs refactor(tvix/eval): introduce UpvalueCarrier trait 2022-09-06 14:58:52 +00:00
vm.rs feat(tvix/eval): ensure all errors always carry a span 2022-09-08 07:59:15 +00:00
warnings.rs refactor(tvix/eval): store spans instead of nodes in Warning/Error 2022-09-07 20:04:26 +00:00