Skip to content

Commit 4b83b3f

Browse files
authored
Merge pull request #40628 from compnerd/require-building
AST: make `RequirementMachine/PropertyUnification.cpp` build on VS2022
2 parents 31a1c08 + d5174b2 commit 4b83b3f

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

lib/AST/RequirementMachine/PropertyUnification.cpp

+8-6
Original file line numberDiff line numberDiff line change
@@ -650,11 +650,13 @@ RewriteSystem::TypeWitness::TypeWitness(
650650
getConcreteConformance().getProtocol());
651651
}
652652

653-
bool swift::rewriting::operator==(
654-
const RewriteSystem::TypeWitness &lhs,
655-
const RewriteSystem::TypeWitness &rhs) {
656-
return (lhs.LHS == rhs.LHS &&
657-
lhs.RHS == rhs.RHS);
653+
namespace swift {
654+
namespace rewriting {
655+
bool operator==(const RewriteSystem::TypeWitness &lhs,
656+
const RewriteSystem::TypeWitness &rhs) {
657+
return lhs.LHS == rhs.LHS && lhs.RHS == rhs.RHS;
658+
}
659+
}
658660
}
659661

660662
void RewriteSystem::TypeWitness::dump(llvm::raw_ostream &out) const {
@@ -906,4 +908,4 @@ void PropertyMap::recordConcreteConformanceRule(
906908
path.invert();
907909

908910
inducedRules.emplace_back(std::move(lhs), std::move(rhs), std::move(path));
909-
}
911+
}

0 commit comments

Comments
 (0)