diff options
author | eldritch horrors <pennae@lix.systems> | 2024-03-18 15:20:21 -0600 |
---|---|---|
committer | Gerrit Code Review <gerrit@lix> | 2024-03-18 15:20:21 -0600 |
commit | 0f518f44e289114eb4828c8232bc0b79c7a85ac7 (patch) | |
tree | 2793f29fc3272f8e40d0ae5ad1a7f5a8a1372676 /src/libexpr | |
parent | 37c4b10c440a6a430df8b6dcec456fc69154e834 (diff) | |
parent | afb839a0c9888bc8b98c0dd4abd28c79d754c250 (diff) |
Merge "libexpr: associate let exprs with the correct StaticEnv" into main
Diffstat (limited to 'src/libexpr')
-rw-r--r-- | src/libexpr/nixexpr.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libexpr/nixexpr.cc b/src/libexpr/nixexpr.cc index a9989b59e..e0f4def4c 100644 --- a/src/libexpr/nixexpr.cc +++ b/src/libexpr/nixexpr.cc @@ -483,7 +483,7 @@ void ExprLet::bindVars(EvalState & es, const std::shared_ptr<const StaticEnv> & i.second.e->bindVars(es, i.second.chooseByKind(newEnv, env, inheritFromEnv)); if (es.debugRepl) - es.exprEnvs.insert(std::make_pair(this, newEnv)); + es.exprEnvs.insert(std::make_pair(this, env)); body->bindVars(es, newEnv); } |