@@ -8550,7 +8550,7 @@ GROUPED_ERROR(isolated_conformance_wrong_domain,IsolatedConformances,none,
85508550 (ActorIsolation, Type, DeclName, ActorIsolation))
85518551
85528552//===----------------------------------------------------------------------===//
8553- // MARK: @execution Attribute
8553+ // MARK: @execution, @concurrent and nonisolated(nonsending) attributes
85548554//===----------------------------------------------------------------------===//
85558555
85568556ERROR(execution_behavior_only_on_async,none,
@@ -8570,6 +8570,18 @@ ERROR(execution_behavior_type_attr_only_on_async,none,
85708570 " cannot use ' @%0' on non-async function type" ,
85718571 (StringRef))
85728572
8573+ ERROR(nonisolated_nonsending_only_on_function_types, none,
8574+ " %0 may only be used on function types" ,
8575+ (TypeRepr *))
8576+
8577+ ERROR(nonisolated_nonsending_only_on_async,none,
8578+ " cannot use %0 on non-async function type" ,
8579+ (TypeRepr *))
8580+
8581+ ERROR(cannot_use_nonisolated_nonsending_together_with_concurrent,none,
8582+ " cannot use %0 together with ' @concurrent' " ,
8583+ (TypeRepr *))
8584+
85738585ERROR(execution_behavior_incompatible_isolated_parameter,none,
85748586 " cannot use %0 on %kind1 because it has "
85758587 " an isolated parameter: %2 " ,
@@ -8592,14 +8604,26 @@ ERROR(execution_behavior_type_attr_incompatible_with_global_isolation,none,
85928604 " cannot use ' @%0' because function type is isolated to a global actor %1 " ,
85938605 (StringRef, Type))
85948606
8607+ ERROR(nonisolated_nonsending_incompatible_with_global_isolation,none,
8608+ " cannot use %0 because function type is isolated to a global actor %1 " ,
8609+ (TypeRepr *, Type))
8610+
85958611ERROR(execution_behavior_type_attr_incompatible_with_isolated_param,none,
85968612 " cannot use ' @%0' together with an isolated parameter" ,
85978613 (StringRef))
85988614
8615+ ERROR(nonisolated_nonsending_incompatible_with_isolated_param,none,
8616+ " cannot use %0 together with an isolated parameter" ,
8617+ (TypeRepr *))
8618+
85998619ERROR(execution_behavior_type_attr_incompatible_with_isolated_any,none,
86008620 " cannot use ' @%0' together with @isolated(any)",
86018621 (StringRef))
86028622
8623+ ERROR(nonisolated_nonsending_incompatible_with_isolated_any,none,
8624+ " cannot use %0 together with @isolated(any)" ,
8625+ (TypeRepr *))
8626+
86038627ERROR(invalid_function_conversion_with_non_sendable,none,
86048628 " cannot convert %0 to %1 because crossing of an isolation boundary "
86058629 " requires parameter and result types to conform to 'Sendable' protocol" ,
0 commit comments