[NFC] Remove Unused Module Parameter to Conformance Lookup

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.
This commit is contained in:
Robert Widmann
2021-08-04 14:43:27 -07:00
parent 0580357a05
commit 808220510e
20 changed files with 20 additions and 37 deletions

View File

@@ -3129,7 +3129,7 @@ bool ValueDecl::canInferObjCFromRequirement(ValueDecl *requirement) {
// If the nominal type doesn't conform to the protocol at all, we
// cannot infer @objc no matter what we do.
SmallVector<ProtocolConformance *, 1> conformances;
if (!nominal->lookupConformance(getModuleContext(), proto, conformances))
if (!nominal->lookupConformance(proto, conformances))
return false;
// If any of the conformances is attributed to the context in which