snix/tvix/eval/src/value
Griffin Smith 06ec4bebe7 fix(tvix/eval): Actually trace spans for thunks
Currently, the span on *all* thunk force errors is the span at which the
thunk is forced, which for recursive thunk forcing ends up just being
the same span over and over again. This changes the span on thunk force
errors to be the span at which point the thunk is *created*, which is a
bit more helpful (though the printing atm is a little... crowded). To
make this work, we have to thread through the span at which a thunk is
created into a field on the thunk itself.

Change-Id: I81474810a763046e2eb3a8f07acf7d8ec708824a
Reviewed-on: https://cl.tvl.fyi/c/depot/+/6932
Autosubmit: grfn <grfn@gws.fyi>
Reviewed-by: Adam Joseph <adam@westernsemico.com>
Reviewed-by: tazjin <tazjin@tvl.su>
Tested-by: BuildkiteCI
2022-10-10 23:51:09 +00:00
..
attrs feat(tvix/eval): Initial resolution of <...> paths 2022-10-10 20:23:41 +00:00
arbitrary.rs refactor(tvix/eval): Encapsulate Value::Attrs construction 2022-10-08 19:02:25 +00:00
attrs.rs chore(tvix/eval): remove existing nested key implementation 2022-09-29 11:47:47 +00:00
builtin.rs refactor(tvix/eval): builtins now contain closures 2022-10-06 15:22:32 +00:00
function.rs refactor(tvix/eval): Don't (ab)use PartialEq for Nix equality 2022-09-18 22:03:41 +00:00
list.rs refactor(tvix/eval): implement IntoIterator for NixList 2022-10-03 07:53:21 +00:00
mod.rs refactor(tvix/eval): after calling, the caller has to pop 2022-10-10 23:36:49 +00:00
string.rs feat(tvix/eval): Implement builtins.readFile 2022-10-10 23:38:25 +00:00
thunk.rs fix(tvix/eval): Actually trace spans for thunks 2022-10-10 23:51:09 +00:00