NCGenerics: force module mismatches

This commit is contained in:
Kavon Farvardin
2024-01-31 12:50:07 -08:00
parent a74eb6b3ae
commit 5f977ca763
32 changed files with 34 additions and 37 deletions

View File

@@ -425,12 +425,6 @@ static ValidationInfo validateControlBlock(
break;
}
case control_block::HAS_NONCOPYABLE_GENERICS: {
// FIXME: temporary hack until the stdlib is actually building.
// This skips over the module mismatch error if the stdlib wasn't built
// with noncopyable generics, so that tests may still run in CI.
if (!SWIFT_ENABLE_EXPERIMENTAL_NONCOPYABLE_GENERICS)
break;
auto hasNoncopyableGenerics = scratch[0];
if (requiresNoncopyableGenerics && !hasNoncopyableGenerics)
result.status = Status::NotUsingNoncopyableGenerics;
@@ -1829,4 +1823,3 @@ ModuleFileSharedCore::getTransitiveLoadingBehavior(
// By default, imports are required dependencies.
return ModuleLoadingBehavior::Required;
}