Skip to content

Commit bc10f6f

Browse files
committed
Use weight instead of index, add 'impact' label
1 parent 408bf4a commit bc10f6f

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

include/swift/Sema/ConstraintSystem.h

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1197,11 +1197,10 @@ struct Score {
11971197
for (unsigned int i = 0; i < NumScoreKinds; ++i) {
11981198
if (Data[i] != 0) {
11991199
out << " [component: ";
1200-
out << "#";
1201-
out << std::to_string(i);
1202-
out << " ";
12031200
out << getNameFor(ScoreKind(i));
1204-
out << "(s), value: ";
1201+
out << "(s), impact: ";
1202+
out << std::to_string(NumScoreKinds - i);
1203+
out << ", value: ";
12051204
out << std::to_string(Data[i]);
12061205
out << "]";
12071206
hasNonDefault = true;

0 commit comments

Comments
 (0)