@@ -2722,23 +2722,8 @@ WARNING(add_predates_concurrency_import,none,
2722
2722
GROUPED_WARNING(remove_predates_concurrency_import,PreconcurrencyImport,
2723
2723
DefaultIgnore,
2724
2724
" '@preconcurrency' attribute on module %0 has no effect" , (Identifier))
2725
- NOTE(add_isolated_to_conformance,none,
2726
- " add 'isolated' to the %0 conformance to restrict it to %1 code" ,
2727
- (DeclName, ActorIsolation))
2728
2725
NOTE(add_preconcurrency_to_conformance,none,
2729
2726
" add '@preconcurrency' to the %0 conformance to defer isolation checking to run time" , (DeclName))
2730
- ERROR(isolated_conformance_not_global_actor_isolated,none,
2731
- " isolated conformance is only permitted on global-actor-isolated types" ,
2732
- ())
2733
- ERROR(isolated_conformance_experimental_feature,none,
2734
- " isolated conformances require experimental feature "
2735
- " 'IsolatedConformances'" , ())
2736
- ERROR(nonisolated_conformance_depends_on_isolated_conformance,none,
2737
- " conformance of %0 to %1 depends on %2 conformance of %3 to %4; mark it as 'isolated'" ,
2738
- (Type, DeclName, ActorIsolation, Type, DeclName))
2739
- ERROR(isolated_conformance_mismatch_with_associated_isolation,none,
2740
- " %0 conformance of %1 to %2 cannot depend on %3 conformance of %4 to %5" ,
2741
- (ActorIsolation, Type, DeclName, ActorIsolation, Type, DeclName))
2742
2727
WARNING(remove_public_import,none,
2743
2728
" public import of %0 was not used in public declarations or inlinable code" ,
2744
2729
(Identifier))
@@ -8309,6 +8294,33 @@ ERROR(attr_abi_incompatible_with_silgen_name,none,
8309
8294
" the same purpose" ,
8310
8295
(DescriptiveDeclKind))
8311
8296
8297
+ // ===----------------------------------------------------------------------===//
8298
+ // MARK: Isolated conformances
8299
+ // ===----------------------------------------------------------------------===//
8300
+ ERROR(isolated_conformance_not_global_actor_isolated,none,
8301
+ " isolated conformance is only permitted on global-actor-isolated types" ,
8302
+ ())
8303
+ ERROR(isolated_conformance_experimental_feature,none,
8304
+ " isolated conformances require experimental feature "
8305
+ " 'IsolatedConformances'" , ())
8306
+ ERROR(nonisolated_conformance_depends_on_isolated_conformance,none,
8307
+ " conformance of %0 to %1 depends on %2 conformance of %3 to %4; mark it as 'isolated'" ,
8308
+ (Type, DeclName, ActorIsolation, Type, DeclName))
8309
+ ERROR(isolated_conformance_mismatch_with_associated_isolation,none,
8310
+ " %0 conformance of %1 to %2 cannot depend on %3 conformance of %4 to %5" ,
8311
+ (ActorIsolation, Type, DeclName, ActorIsolation, Type, DeclName))
8312
+ NOTE(add_isolated_to_conformance,none,
8313
+ " add 'isolated' to the %0 conformance to restrict it to %1 code" ,
8314
+ (DeclName, ActorIsolation))
8315
+ ERROR(isolated_conformance_with_sendable,none,
8316
+ " isolated conformance of %0 to %1 cannot be used to satisfy conformance "
8317
+ " requirement for a %select{`Sendable`|`SendableMetatype`}2 type "
8318
+ " parameter %3" , (Type, DeclName, bool , Type))
8319
+ ERROR(isolated_conformance_with_sendable_simple,none,
8320
+ " isolated conformance of %0 to %1 cannot be used to satisfy conformance "
8321
+ " requirement for a `Sendable` type parameter " ,
8322
+ (Type, DeclName))
8323
+
8312
8324
// ===----------------------------------------------------------------------===//
8313
8325
// MARK: @execution Attribute
8314
8326
// ===----------------------------------------------------------------------===//
0 commit comments