printValue(): <REPEAT> -> «repeated»

This ensures that it doesn't get parsed as a valid Nix expression.

(cherry picked from commit 732296ddc0)
This commit is contained in:
Eelco Dolstra authored and github-actions[bot] committed 2022-03-22 13:09:47 +00:00
1 parent ffe155abd3
commit fc553fb632
1 file changed
+2 -2
+2 -2
View File
@@ -126,7 +126,7 @@ void printValue(std::ostream & str, std::set<const void *> & seen, const Value &
break;
case tAttrs: {
if (!v.attrs->empty() && !seen.insert(v.attrs).second)
str << "<REPEAT>";
str << "«repeated»";
else {
str << "{ ";
for (auto & i : v.attrs->lexicographicOrder()) {
@@ -142,7 +142,7 @@ void printValue(std::ostream & str, std::set<const void *> & seen, const Value &
case tList2:
case tListN:
if (v.listSize() && !seen.insert(v.listElems()).second)
str << "<REPEAT>";
str << "«repeated»";
else {
str << "[ ";
for (auto v2 : v.listItems()) {