1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-26 11:41:15 +02:00

forceAttrs: make pos mandatory

This commit is contained in:
Kevin Amado 2022-01-21 10:43:16 -05:00
parent 1472e045a7
commit c3896e19d0
No known key found for this signature in database
GPG key ID: FFF341057F503148
8 changed files with 13 additions and 12 deletions

View file

@ -1132,7 +1132,7 @@ void ExprAttrs::eval(EvalState & state, Env & env, Value & v)
Hence we need __overrides.) */
if (hasOverrides) {
Value * vOverrides = (*v.attrs)[overrides->second.displ].value;
state.forceAttrs(*vOverrides);
state.forceAttrs(*vOverrides, vOverrides->determinePos(noPos));
Bindings * newBnds = state.allocBindings(v.attrs->capacity() + vOverrides->attrs->size());
for (auto & i : *v.attrs)
newBnds->push_back(i);