about summary refs log tree commit diff
path: root/tvix/eval
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2022-09-13T13·06+0300
committertazjin <tazjin@tvl.su>2022-09-13T14·41+0000
commit30de72fefb58a1fc67e3508442af75d46cae4760 (patch)
treea5d713b91e988a907ec1c40170515ca96b774917 /tvix/eval
parentc28ecbee970c0a16b7f93241a5a2ef2df49406c6 (diff)
chore(tvix/eval): do not inherit scope depth in new scopes r/4841
This is no longer required, resolution is now more sane. Pointed out
by sterni in cl/6422.

Change-Id: Icc8983c648f864e66813948df6e2d4bad6a7f312
Reviewed-on: https://cl.tvl.fyi/c/depot/+/6565
Reviewed-by: sterni <sternenseemann@systemli.org>
Tested-by: BuildkiteCI
Diffstat (limited to 'tvix/eval')
-rw-r--r--tvix/eval/src/compiler/scope.rs1
1 files changed, 0 insertions, 1 deletions
diff --git a/tvix/eval/src/compiler/scope.rs b/tvix/eval/src/compiler/scope.rs
index 29947ea4a208..8a90a3d9dc2a 100644
--- a/tvix/eval/src/compiler/scope.rs
+++ b/tvix/eval/src/compiler/scope.rs
@@ -165,7 +165,6 @@ impl Scope {
     pub fn inherit(&self) -> Self {
         Self {
             poisoned_tokens: self.poisoned_tokens.clone(),
-            scope_depth: self.scope_depth,
             ..Default::default()
         }
     }