mirror of
https://github.com/NixOS/nix
synced 2025-06-27 04:21:16 +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
|
@ -89,7 +89,7 @@ inline void ParserState::addAttr(ExprAttrs * attrs, AttrPath && attrPath, Expr *
|
|||
if (i->symbol) {
|
||||
ExprAttrs::AttrDefs::iterator j = attrs->attrs.find(i->symbol);
|
||||
if (j != attrs->attrs.end()) {
|
||||
if (!j->second.inherited()) {
|
||||
if (j->second.kind != ExprAttrs::AttrDef::Kind::Inherited) {
|
||||
ExprAttrs * attrs2 = dynamic_cast<ExprAttrs *>(j->second.e);
|
||||
if (!attrs2) dupAttr(attrPath, pos, j->second.pos);
|
||||
attrs = attrs2;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue