refactor(3p/nix/libexpr): Use absl::btree_map for AttrSets
This is the first step towards replacing the implementation of attribute sets with an absl::btree_map. Currently many access are done using array offsets and pointer arithmetic, so this change is currently causing Nix to fail in various ways.
This commit is contained in:
parent
1bb9cd7749
commit
28e347effe
6 changed files with 95 additions and 78 deletions
2
third_party/nix/src/libexpr/nixexpr.cc
vendored
2
third_party/nix/src/libexpr/nixexpr.cc
vendored
|
|
@ -285,7 +285,7 @@ void ExprOpHasAttr::bindVars(const StaticEnv& env) {
|
|||
|
||||
void ExprAttrs::bindVars(const StaticEnv& env) {
|
||||
const StaticEnv* dynamicEnv = &env;
|
||||
StaticEnv newEnv(false, &env);
|
||||
StaticEnv newEnv(/* isWith = */ false, &env);
|
||||
|
||||
if (recursive) {
|
||||
dynamicEnv = &newEnv;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue