@@ -4349,31 +4349,27 @@ ERROR(override_implicit_unowned_executor,none,
43494349 " explicitly defined" , ())
43504350
43514351ERROR(actor_isolated_non_self_reference,none,
4352- " actor-isolated %0 %1 can only be %select{referenced|mutated|used 'inout'}3 "
4353- " %select{from inside the actor|on 'self'}2" ,
4354- (DescriptiveDeclKind, DeclName, bool , unsigned ))
4352+ " actor-isolated %0 %1 can not be "
4353+ " %select{referenced|mutated|used 'inout'}2 "
4354+ " %select{on a non-isolated actor instance|"
4355+ " from a Sendable function|from a Sendable closure|"
4356+ " from an 'async let' initializer|from global actor %4|"
4357+ " from the main actor|from a non-isolated context}3" ,
4358+ (DescriptiveDeclKind, DeclName, unsigned , unsigned , Type))
43554359ERROR(distributed_actor_isolated_non_self_reference,none,
43564360 " distributed actor-isolated %0 %1 can only be referenced "
43574361 " inside the distributed actor" ,
43584362 (DescriptiveDeclKind, DeclName))
43594363ERROR(distributed_actor_needs_explicit_distributed_import,none,
43604364 " '_Distributed' module not imported, required for 'distributed actor'" ,
43614365 ())
4362- ERROR(actor_isolated_self_independent_context,none,
4363- " actor-isolated %0 %1 can not be %select{referenced|mutated|used 'inout'}2 from a "
4364- " non-isolated context" ,
4365- (DescriptiveDeclKind, DeclName, unsigned ))
43664366ERROR(actor_isolated_inout_state,none,
43674367 " actor-isolated %0 %1 cannot be passed 'inout' to"
43684368 " %select{| implicitly}2 'async' function call" ,
43694369 (DescriptiveDeclKind, DeclName, bool ))
43704370ERROR(actor_isolated_mutating_func,none,
43714371 " cannot call mutating async function %0 on actor-isolated %1 %2" ,
43724372 (DeclName, DescriptiveDeclKind, DeclName))
4373- ERROR(actor_isolated_global_actor_context,none,
4374- " actor-isolated %0 %1 can not be %select{referenced|mutated|used 'inout'}3 "
4375- " from%select{| synchronous}4 context of global actor %2" ,
4376- (DescriptiveDeclKind, DeclName, Type, unsigned , bool ))
43774373ERROR(global_actor_from_instance_actor_context,none,
43784374 " %0 %1 isolated to global actor %2 can not be %select{referenced|mutated|used 'inout'}4"
43794375 " from actor %3 %select{|in a synchronous context}5" ,
@@ -4398,15 +4394,6 @@ ERROR(actor_isolated_partial_apply,none,
43984394ERROR(concurrent_access_local,none,
43994395 " use of local %0 %1 in concurrently-executing code" ,
44004396 (DescriptiveDeclKind, DeclName))
4401- ERROR(actor_isolated_from_concurrent_closure,none,
4402- " actor-isolated %0 %1 cannot be %select{referenced|mutated|used 'inout'}2 from a concurrent closure" ,
4403- (DescriptiveDeclKind, DeclName, unsigned ))
4404- ERROR(actor_isolated_from_concurrent_function,none,
4405- " actor-isolated %0 %1 cannot be %select{referenced|mutated|used 'inout'}2 from a concurrent function" ,
4406- (DescriptiveDeclKind, DeclName, unsigned ))
4407- ERROR(actor_isolated_from_async_let,none,
4408- " actor-isolated %0 %1 cannot be %select{referenced|mutated|used 'inout'}2 from 'async let' initializer" ,
4409- (DescriptiveDeclKind, DeclName, unsigned ))
44104397ERROR(actor_isolated_keypath_component,none,
44114398 " cannot form key path to%select{| distributed}0 actor-isolated %1 %2" ,
44124399 (bool , DescriptiveDeclKind, DeclName))
@@ -4475,6 +4462,9 @@ ERROR(actor_cannot_conform_to_global_actor_protocol,none,
44754462NOTE(protocol_isolated_to_global_actor_here,none,
44764463 " %0 is isolated to global actor %1 here" , (Type, Type))
44774464
4465+ ERROR(isolated_parameter_not_actor,none,
4466+ " 'isolated' parameter has non-actor type %0" , (Type))
4467+
44784468WARNING(non_concurrent_param_type,none,
44794469 " cannot pass argument of non-sendable type %0 across actors" ,
44804470 (Type))
0 commit comments