diff options
author | Vincent Ambo <mail@tazj.in> | 2023-03-17T21·08+0300 |
---|---|---|
committer | clbot <clbot@tvl.fyi> | 2023-03-22T13·44+0000 |
commit | a5f28eea94d74f98e37487ed04a024b83b8a94ff (patch) | |
tree | 1c839cef675c524d8ca4ad4253aa56bb3854738c /tvix | |
parent | a2c7f7eea1af67f50bbf27c4aa0f9a0e78618ca6 (diff) |
fix(tvix/eval): print unevaluated thunks like Nix does r/6036
Change-Id: Ie4c563e933f571f45cb4f4efe650d1b65f119e8d Reviewed-on: https://cl.tvl.fyi/c/depot/+/8324 Tested-by: BuildkiteCI Reviewed-by: sterni <sternenseemann@systemli.org> Autosubmit: tazjin <tazjin@tvl.su>
Diffstat (limited to '')
-rw-r--r-- | tvix/eval/src/value/thunk.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tvix/eval/src/value/thunk.rs b/tvix/eval/src/value/thunk.rs index 7cdf3054f7..1acb50a94b 100644 --- a/tvix/eval/src/value/thunk.rs +++ b/tvix/eval/src/value/thunk.rs @@ -299,6 +299,7 @@ impl TotalDisplay for Thunk { match &*self.0.borrow() { ThunkRepr::Evaluated(v) => v.total_fmt(f, set), + ThunkRepr::Suspended { .. } | ThunkRepr::Native(_) => f.write_str("<CODE>"), other => write!(f, "internal[{}]", other.debug_repr()), } } |