mirror of
https://github.com/NixOS/nix
synced 2025-06-25 06:31:14 +02:00
remove ExprAttrs::AttrDef::inherited
it's no longer widely used and has a rather confusing meaning now that inherit-from is handled very differently.
This commit is contained in:
parent
cefd0302b5
commit
1cd87b7042
3 changed files with 2 additions and 4 deletions
|
@ -1220,7 +1220,7 @@ void ExprAttrs::eval(EvalState & state, Env & env, Value & v)
|
|||
Displacement displ = 0;
|
||||
for (auto & i : attrs) {
|
||||
Value * vAttr;
|
||||
if (hasOverrides && !i.second.inherited()) {
|
||||
if (hasOverrides && i.second.kind != AttrDef::Kind::Inherited) {
|
||||
vAttr = state.allocValue();
|
||||
mkThunk(*vAttr, *i.second.chooseByKind(&env2, &env, inheritEnv), i.second.e);
|
||||
} else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue