diff options
author | Vincent Ambo <mail@tazj.in> | 2022-08-29T19·27+0300 |
---|---|---|
committer | tazjin <tazjin@tvl.su> | 2022-09-07T15·25+0000 |
commit | 17dfb92a9fb41fb785e9a53d19171200fd707081 (patch) | |
tree | cfe51afa150d23c118c064b31439ab28f5c1bcf8 | |
parent | 9420a3b53d47b0a71d837e312c49fb1d94af1592 (diff) |
chore(tvix/eval): implement Debug for compiler::scope::Scope r/4695
Change-Id: I112b0119bd0511f26bb72f7e73d867d1b7144a36 Reviewed-on: https://cl.tvl.fyi/c/depot/+/6359 Tested-by: BuildkiteCI Reviewed-by: sterni <sternenseemann@systemli.org>
-rw-r--r-- | tvix/eval/src/compiler/scope.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tvix/eval/src/compiler/scope.rs b/tvix/eval/src/compiler/scope.rs index e6f74c7d2f66..b0fca3d35ea4 100644 --- a/tvix/eval/src/compiler/scope.rs +++ b/tvix/eval/src/compiler/scope.rs @@ -20,6 +20,7 @@ use smol_str::SmolStr; use crate::opcode::{StackIdx, UpvalueIdx}; /// Represents a single local already known to the compiler. +#[derive(Debug)] pub struct Local { // Definition name, which can be different kinds of tokens (plain // string or identifier). Nix does not allow dynamic names inside @@ -103,7 +104,7 @@ pub struct LocalIdx(usize); /// TODO(tazjin): `with`-stack /// TODO(tazjin): flag "specials" (e.g. note depth if builtins are /// overridden) -#[derive(Default)] +#[derive(Debug, Default)] pub struct Scope { pub locals: Vec<Local>, pub upvalues: Vec<Upvalue>, |