mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[Sema] WitnessMatching: Anchor ProtocolRequirement on the requrement declaration
Locators used to support only expressions which is no longer the case.
This commit is contained in:
@@ -304,9 +304,7 @@ void LocatorPathElt::dump(raw_ostream &out) const {
|
||||
break;
|
||||
}
|
||||
case ConstraintLocator::ProtocolRequirement: {
|
||||
auto reqElt = elt.castTo<LocatorPathElt::ProtocolRequirement>();
|
||||
out << "protocol requirement ";
|
||||
reqElt.getDecl()->dumpRef(out);
|
||||
out << "protocol requirement";
|
||||
break;
|
||||
}
|
||||
case ConstraintLocator::Witness: {
|
||||
|
||||
Reference in New Issue
Block a user