@@ -4457,14 +4457,11 @@ NOTE(note_add_nonisolated_to_decl,none,
44574457 (DeclName, DescriptiveDeclKind))
44584458NOTE(note_add_async_and_throws_to_decl,none,
44594459 " mark the protocol requirement %0 '%select{|async|throws|async throws}1' "
4460- " in order witness it with 'distributed' function declared in distributed actor %2 " ,
4461- (DeclName, unsigned , DeclName ))
4460+ " to allow actor-isolated conformances " ,
4461+ (DeclName, unsigned ))
44624462NOTE(note_add_distributed_to_decl,none,
4463- " add 'distributed' to %0 to make this %1 witness the protocol requirement" ,
4463+ " add 'distributed' to %0 to make this %1 satisfy the protocol requirement" ,
44644464 (DeclName, DescriptiveDeclKind))
4465- NOTE(note_distributed_requirement_defined_here,none,
4466- " distributed instance method requirement %0 declared here" ,
4467- (DeclName))
44684465NOTE(note_add_globalactor_to_function,none,
44694466 " add '@%0' to make %1 %2 part of global actor %3" ,
44704467 (StringRef, DescriptiveDeclKind, DeclName, Type))
@@ -4541,13 +4538,16 @@ ERROR(override_implicit_unowned_executor,none,
45414538 " cannot override an actor's 'unownedExecutor' property that wasn't "
45424539 " explicitly defined" , ())
45434540ERROR(actor_isolated_non_self_reference,none,
4544- " actor-isolated %0 %1 can not be "
4541+ " %5 %0 %1 can not be "
45454542 " %select{referenced|mutated|used 'inout'}2 "
4546- " %select{on a non-isolated actor instance|"
4543+ " %select{from outside the actor|on a different actor instance|"
4544+ " on a non-isolated actor instance|"
45474545 " from a Sendable function|from a Sendable closure|"
45484546 " from an 'async let' initializer|from global actor %4|"
4549- " from the main actor|from a non-isolated context|from a non-isolated autoclosure}3" ,
4550- (DescriptiveDeclKind, DeclName, unsigned , unsigned , Type))
4547+ " from the main actor|from a non-isolated context|"
4548+ " from a non-isolated autoclosure}3" ,
4549+ (DescriptiveDeclKind, DeclName, unsigned , unsigned , Type,
4550+ ActorIsolation))
45514551ERROR(distributed_actor_isolated_non_self_reference,none,
45524552 " distributed actor-isolated %0 %1 can not be accessed from a "
45534553 " non-isolated context" ,
@@ -4562,18 +4562,6 @@ ERROR(actor_isolated_inout_state,none,
45624562ERROR(actor_isolated_mutating_func,none,
45634563 " cannot call mutating async function %0 on actor-isolated %1 %2" ,
45644564 (DeclName, DescriptiveDeclKind, DeclName))
4565- ERROR(global_actor_from_instance_actor_context,none,
4566- " %0 %1 isolated to global actor %2 can not be %select{referenced|mutated|used 'inout'}4"
4567- " from actor %3 %select{|in a synchronous context}5" ,
4568- (DescriptiveDeclKind, DeclName, Type, DeclName, unsigned , bool ))
4569- ERROR(global_actor_from_other_global_actor_context,none,
4570- " %0 %1 isolated to global actor %2 can not be %select{referenced|mutated|used 'inout'}4"
4571- " from different global actor %3 %select{|in a synchronous context}5" ,
4572- (DescriptiveDeclKind, DeclName, Type, Type, unsigned , bool ))
4573- ERROR(global_actor_from_nonactor_context,none,
4574- " %0 %1 isolated to global actor %2 can not be %select{referenced|mutated|used 'inout'}4"
4575- " from %select{this|a non-isolated}3%select{| synchronous}5 context" ,
4576- (DescriptiveDeclKind, DeclName, Type, bool , unsigned , bool ))
45774565ERROR(actor_isolated_call,none,
45784566 " call to %0 function in a synchronous %1 context" ,
45794567 (ActorIsolation, ActorIsolation))
@@ -4667,19 +4655,9 @@ WARNING(shared_mutable_state_access,none,
46674655 " reference to %0 %1 is not concurrency-safe because it involves "
46684656 " shared mutable state" , (DescriptiveDeclKind, DeclName))
46694657ERROR(actor_isolated_witness,none,
4670- " actor-isolated %0 %1 cannot be used to satisfy a protocol requirement" ,
4671- (DescriptiveDeclKind, DeclName))
4672- ERROR(distributed_actor_isolated_witness,none,
4673- " distributed actor-isolated %0 %1 cannot be used to satisfy a protocol requirement" ,
4674- (DescriptiveDeclKind, DeclName))
4675- ERROR(global_actor_isolated_witness,none,
4676- " %0 %1 isolated to global actor %2 can not satisfy corresponding "
4677- " requirement from protocol %3" ,
4678- (DescriptiveDeclKind, DeclName, Type, Identifier))
4679- ERROR(global_actor_isolated_requirement_witness_conflict,none,
4680- " %0 %1 isolated to global actor %2 can not satisfy corresponding "
4681- " requirement from protocol %3 isolated to global actor %4" ,
4682- (DescriptiveDeclKind, DeclName, Type, Identifier, Type))
4658+ " %select{|distributed }0%1 %2 %3 cannot be used to satisfy %4 protocol "
4659+ " requirement" ,
4660+ (bool , ActorIsolation, DescriptiveDeclKind, DeclName, ActorIsolation))
46834661ERROR(actor_cannot_conform_to_global_actor_protocol,none,
46844662 " actor %0 cannot conform to global actor isolated protocol %1" ,
46854663 (Type, Type))
0 commit comments