@@ -8211,5 +8211,32 @@ ERROR(attr_abi_incompatible_with_silgen_name,none,
8211
8211
" the same purpose" ,
8212
8212
(DescriptiveDeclKind))
8213
8213
8214
+ // ===----------------------------------------------------------------------===//
8215
+ // MARK: @execution Attribute
8216
+ // ===----------------------------------------------------------------------===//
8217
+ ERROR(attr_execution_concurrent_only_on_async,none,
8218
+ " cannot use '@execution(concurrent)' on non-async %kind0" ,
8219
+ (ValueDecl *))
8220
+
8221
+ ERROR(attr_execution_concurrent_incompatible_with_global_actor,none,
8222
+ " cannot use '@execution(concurrent)' on %kind0 isolated to global actor %1" ,
8223
+ (ValueDecl *, Type))
8224
+
8225
+ ERROR(attr_execution_concurrent_incompatible_isolated_parameter,none,
8226
+ " cannot use '@execution(concurrent)' on %kind0 because it has "
8227
+ " an isolated parameter: %1" ,
8228
+ (ValueDecl *, ValueDecl *))
8229
+
8230
+ ERROR(attr_execution_concurrent_incompatible_dynamically_isolated_parameter,none,
8231
+ " cannot use '@execution(concurrent)' on %kind0 because it has "
8232
+ " a dynamically isolated parameter: %1" ,
8233
+ (ValueDecl *, ValueDecl *))
8234
+
8235
+ ERROR(attr_execution_concurrent_incompatible_with_nonisolated,none,
8236
+ " cannot use '@execution(concurrent)' and 'nonisolated' on the same %0 "
8237
+ " because they serve the same purpose" ,
8238
+ (ValueDecl *))
8239
+
8240
+
8214
8241
#define UNDEFINE_DIAGNOSTIC_MACROS
8215
8242
#include " DefineDiagnosticMacros.h"
0 commit comments