Skip to content

[NFC] Remove Unused Module Parameter to Conformance Lookup #38753

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

Merged
merged 1 commit into from
Aug 11, 2021

Conversation

CodaFi
Copy link
Contributor

@CodaFi CodaFi commented Aug 4, 2021

It's been quite a long time since this unused parameter was introduced.
The intent is to produce the module as a root for the search - that is,
computing the set of conformances visible from that module, not the set
of conformances inside of that module. Callers have since been providing
all manner of module-scoped contexts to it.

Let's just get rid of it. When we want to teach protocol conformance
lookup to do this, we can revert this commit as a starting point and try
again.

It's been quite a long time since this unused parameter was introduced.
The intent is to produce the module as a root for the search - that is,
computing the set of conformances visible from that module, not the set
of conformances inside of that module. Callers have since been providing
all manner of module-scoped contexts to it.

Let's just get rid of it. When we want to teach protocol conformance
lookup to do this, we can revert this commit as a starting point and try
again.
@CodaFi CodaFi requested a review from DougGregor August 4, 2021 21:46
@CodaFi
Copy link
Contributor Author

CodaFi commented Aug 4, 2021

@swift-ci smoke test

@slavapestov
Copy link
Contributor

The big one is that the version of lookupConformance() taking a Type is an instance method on ModuleDecl. It doesn't actually use this for anything though. Were you planning on cleaning that up as well?

@CodaFi CodaFi merged commit d75b34b into swiftlang:main Aug 11, 2021
@CodaFi CodaFi deleted the modulo-modules branch August 11, 2021 17:36
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.

2 participants