Skip to content

Commit 35b0346

Browse files
author
Amritpan Kaur
committed
[CSBindings] Reformat defaults, defaultable, and involves-type-vars to match changes.
1 parent e80ca43 commit 35b0346

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lib/Sema/CSBindings.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1641,16 +1641,16 @@ void BindingSet::dump(llvm::raw_ostream &out, unsigned indent) const {
16411641
out << "] ";
16421642
}
16431643
if (involvesTypeVariables()) {
1644-
out << "involves_type_vars=[";
1644+
out << "[involves_type_vars: ";
16451645
interleave(AdjacentVars,
16461646
[&](const auto *typeVar) { out << typeVar->getString(PO); },
1647-
[&out]() { out << " "; });
1647+
[&out]() { out << ", "; });
16481648
out << "] ";
16491649
}
16501650

16511651
auto numDefaultable = getNumViableDefaultableBindings();
16521652
if (numDefaultable > 0)
1653-
out << "#defaultable_bindings=" << numDefaultable << " ";
1653+
out << "#defaultable_bindings: " << numDefaultable << " ";
16541654

16551655
auto printBinding = [&](const PotentialBinding &binding) {
16561656
auto type = binding.BindingType;
@@ -1678,14 +1678,14 @@ void BindingSet::dump(llvm::raw_ostream &out, unsigned indent) const {
16781678
out << "]";
16791679

16801680
if (!Defaults.empty()) {
1681-
out << " defaults={";
1681+
out << "[defaults: ";
16821682
for (const auto &entry : Defaults) {
16831683
auto *constraint = entry.second;
16841684
PotentialBinding binding{constraint->getSecondType(),
16851685
AllowedBindingKind::Exact, constraint};
16861686
printBinding(binding);
16871687
}
1688-
out << "}";
1688+
out << "] ";
16891689
}
16901690
}
16911691

0 commit comments

Comments
 (0)