mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
NCGenerics: force module mismatches
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user