Skip to content

Conversation

@airspeedswift
Copy link
Member

@airspeedswift airspeedswift commented Dec 1, 2025

Builds on #85746 which covers Equatable.

Copy link
Member

@DougGregor DougGregor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Comment on lines +2406 to +2448
auto subMap = SubstitutionMap::get(convertFn->getGenericSignature(), type,
[&](InFlightSubstitution &ifs,
Type ty,
ProtocolDecl *proto) -> ProtocolConformanceRef {
switch (*proto->getKnownProtocolKind()) {
case KnownProtocolKind::Hashable:
return conformance;
case KnownProtocolKind::Copyable:
case KnownProtocolKind::Escapable:
return lookupConformance(type, proto);
default:
llvm_unreachable("no other conformances should be involved");
}
});
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm surprised we needed this, but... okay.

@airspeedswift
Copy link
Member Author

@swift-ci please test source compatibility

@airspeedswift
Copy link
Member Author

@swift-ci please test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants