about summary refs log tree commit diff
path: root/tvix/eval/src/value
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2023-03-17T21·08+0300
committerclbot <clbot@tvl.fyi>2023-03-22T13·44+0000
commita5f28eea94d74f98e37487ed04a024b83b8a94ff (patch)
tree1c839cef675c524d8ca4ad4253aa56bb3854738c /tvix/eval/src/value
parenta2c7f7eea1af67f50bbf27c4aa0f9a0e78618ca6 (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 'tvix/eval/src/value')
-rw-r--r--tvix/eval/src/value/thunk.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/tvix/eval/src/value/thunk.rs b/tvix/eval/src/value/thunk.rs
index 7cdf3054f750..1acb50a94b21 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()),
         }
     }