@@ -4106,9 +4106,6 @@ NOTE(protocol_witness_async_conflict,none,
41064106ERROR(async_autoclosure_nonasync_function,none,
41074107 " 'async' autoclosure parameter in a non-'async' function" , ())
41084108
4109- ERROR(asynchandler_attr_requires_concurrency,none,
4110- " '@asyncHandler' is only valid when experimental concurrency is enabled" ,
4111- ())
41124109ERROR(asynchandler_non_func,none,
41134110 " '@asyncHandler' can only be applied to functions" ,
41144111 ())
@@ -4141,15 +4138,17 @@ ERROR(satisfy_async_objc,none,
41414138ERROR(async_objc_dynamic_self,none,
41424139 " asynchronous method returning 'Self' cannot be '@objc'" , ())
41434140
4144- ERROR(actor_without_concurrency,none,
4145- " 'actor' classes require experimental concurrency support" , ())
41464141ERROR(actor_with_nonactor_superclass,none,
41474142 " actor class cannot inherit from non-actor class %0" , (DeclName))
41484143
41494144ERROR(actor_isolated_non_self_reference,none,
41504145 " actor-isolated %0 %1 can only be referenced "
41514146 " %select{inside the actor|on 'self'}2" ,
41524147 (DescriptiveDeclKind, DeclName, bool ))
4148+ ERROR(actor_isolated_self_independent_context,none,
4149+ " actor-isolated %0 %1 can not be referenced from an "
4150+ " '@actorIndependent' context" ,
4151+ (DescriptiveDeclKind, DeclName))
41534152WARNING(concurrent_access_local,none,
41544153 " local %0 %1 is unsafe to reference in code that may execute "
41554154 " concurrently" ,
@@ -4174,6 +4173,24 @@ NOTE(actor_isolated_witness_could_be_async_handler,none,
41744173 " did you mean to make it an asychronous handler?" ,
41754174 (DescriptiveDeclKind, DeclName))
41764175
4176+ ERROR(actorisolated_let,none,
4177+ " '@actorIsolated' is meaningless on 'let' declarations because "
4178+ " they are immutable" ,
4179+ ())
4180+ ERROR(actorisolated_mutable_storage,none,
4181+ " '@actorIsolated' can not be applied to stored properties" ,
4182+ ())
4183+ ERROR(actorisolated_local_var,none,
4184+ " '@actorIsolated' can not be applied to local variables" ,
4185+ ())
4186+ ERROR(actorisolated_not_actor_member,none,
4187+ " '@actorIsolated' can only be applied to actor members and "
4188+ " global/static variables" ,
4189+ ())
4190+ ERROR(actorisolated_not_actor_instance_member,none,
4191+ " '@actorIsolated' can only be applied to instance members of actors" ,
4192+ ())
4193+
41774194// ------------------------------------------------------------------------------
41784195// MARK: Type Check Types
41794196// ------------------------------------------------------------------------------
0 commit comments