@@ -167,12 +167,10 @@ static bool isExtensionAppliedInternal(const DeclContext *DC, Type BaseTy,
167167 if (isExtensionWithSelfBound (ED, BaseTypeProtocolDecl)) {
168168 return true ;
169169 }
170- auto *module = DC->getParentModule ();
171170 GenericSignature genericSig = ED->getGenericSignature ();
172171 SubstitutionMap substMap = BaseTy->getContextSubstitutionMap (
173172 ED->getExtendedNominal ());
174- return checkRequirements (module ,
175- genericSig.getRequirements (),
173+ return checkRequirements (genericSig.getRequirements (),
176174 QuerySubstitutionMap{substMap}) ==
177175 CheckRequirementsResult::Success;
178176}
@@ -210,7 +208,6 @@ static bool isMemberDeclAppliedInternal(const DeclContext *DC, Type BaseTy,
210208
211209 // The context substitution map for the base type fixes the declaration's
212210 // outer generic parameters.
213- auto *module = DC->getParentModule ();
214211 auto substMap = BaseTy->getContextSubstitutionMap (
215212 VD->getDeclContext (), genericDecl->getGenericEnvironment ());
216213
@@ -221,8 +218,7 @@ static bool isMemberDeclAppliedInternal(const DeclContext *DC, Type BaseTy,
221218
222219 // We treat substitution failure as success, to ignore requirements
223220 // that involve innermost generic parameters.
224- return checkRequirements (module ,
225- genericSig.getRequirements (),
221+ return checkRequirements (genericSig.getRequirements (),
226222 [&](SubstitutableType *type) -> Type {
227223 auto *paramTy = cast<GenericTypeParamType>(type);
228224 if (paramTy->getDepth () == innerDepth)
0 commit comments