chore(tvix/eval): implement improved Display for internal values

Having these visible more explicitly is useful while debugging.

Change-Id: I86b497883063d32792b635eb4514b7aeae484af4
Reviewed-on: https://cl.tvl.fyi/c/depot/+/6164
Tested-by: BuildkiteCI
Reviewed-by: sterni <sternenseemann@systemli.org>
Reviewed-by: grfn <grfn@gws.fyi>
This commit is contained in:
Vincent Ambo 2022-08-11 18:34:15 +03:00 committed by tazjin
parent dd8f5f1dc8
commit f331874aeb

View file

@ -116,7 +116,8 @@ impl Display for Value {
)),
// internal types
Value::AttrPath(_) | Value::Blackhole => f.write_str("internal"),
Value::AttrPath(_) => f.write_str("internal<attrpath>"),
Value::Blackhole => f.write_str("internal<blackhole>"),
}
}
}