[NCGenerics] require associated type inference when rebuilding module

This commit is contained in:
Kavon Farvardin
2024-01-16 14:03:42 -08:00
parent ac91b7a512
commit 931f47d02c

View File

@@ -1641,9 +1641,12 @@ void InterfaceSubContextDelegateImpl::inheritOptionsForBuildingInterface(
GenericArgs.push_back("-disable-availability-checking");
}
if (bool(requireNCGenerics))
if (bool(requireNCGenerics)) {
genericSubInvocation.getLangOptions()
.enableFeature(Feature::NoncopyableGenerics);
genericSubInvocation.getLangOptions()
.EnableExperimentalAssociatedTypeInference = true;
}
// Pass-down the obfuscators so we can get the serialized search paths properly.
genericSubInvocation.setSerializedPathObfuscator(