Skip to content

[IDE] Use LookUpConformanceInModule for synthesized extension requirement substitution #83565

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

hamishknight
Copy link
Contributor

The extension may have requirements stating new conformance requirements that aren't present in the underlying substitution map for the conforming type.

rdar://152164768

…rement substitution

The extension may have requirements stating new conformance requirements
that aren't present in the underlying substitution map for the
conforming type.

rdar://152164768
An extension decl is its own inner DeclContext.
And check `is-><ProtocolType>` instead of `isExistentialType`. Should
be NFC.
This is unnecessary since the local conformances for a protocol
can only contain self-conformances, which we don't want to visit
anyway. This can just be a straightforward loop over the local
conformances.
We only care about the case where we're substituting into a protocol
extension, otherwise the substitution map is an identity map.
Get the substitution map from the conformance rather than building it
from the base type.
@hamishknight
Copy link
Contributor 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.

1 participant