mirror of
https://github.com/NixOS/nix
synced 2025-06-25 10:41:16 +02:00
Key repeated values on attribute binding pointers, not value pointers
Closes #8672
This commit is contained in:
parent
49cf090cb2
commit
770d2bc779
2 changed files with 4 additions and 4 deletions
|
@ -152,7 +152,7 @@ struct ImportantFirstAttrNameCmp
|
|||
}
|
||||
};
|
||||
|
||||
typedef std::set<Value *> ValuesSeen;
|
||||
typedef std::set<const void *> ValuesSeen;
|
||||
|
||||
class Printer
|
||||
{
|
||||
|
@ -262,7 +262,7 @@ private:
|
|||
|
||||
void printAttrs(Value & v, size_t depth)
|
||||
{
|
||||
if (seen && !seen->insert(&v).second) {
|
||||
if (seen && !seen->insert(v.attrs).second) {
|
||||
printRepeated();
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue