@@ -4457,14 +4457,11 @@ NOTE(note_add_nonisolated_to_decl,none,
4457
4457
(DeclName, DescriptiveDeclKind))
4458
4458
NOTE(note_add_async_and_throws_to_decl,none,
4459
4459
" 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 ))
4462
4462
NOTE(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" ,
4464
4464
(DeclName, DescriptiveDeclKind))
4465
- NOTE(note_distributed_requirement_defined_here,none,
4466
- " distributed instance method requirement %0 declared here" ,
4467
- (DeclName))
4468
4465
NOTE(note_add_globalactor_to_function,none,
4469
4466
" add '@%0' to make %1 %2 part of global actor %3" ,
4470
4467
(StringRef, DescriptiveDeclKind, DeclName, Type))
@@ -4541,13 +4538,16 @@ ERROR(override_implicit_unowned_executor,none,
4541
4538
" cannot override an actor's 'unownedExecutor' property that wasn't "
4542
4539
" explicitly defined" , ())
4543
4540
ERROR(actor_isolated_non_self_reference,none,
4544
- " actor-isolated %0 %1 can not be "
4541
+ " %5 %0 %1 can not be "
4545
4542
" %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|"
4547
4545
" from a Sendable function|from a Sendable closure|"
4548
4546
" 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))
4551
4551
ERROR(distributed_actor_isolated_non_self_reference,none,
4552
4552
" distributed actor-isolated %0 %1 can not be accessed from a "
4553
4553
" non-isolated context" ,
@@ -4562,18 +4562,6 @@ ERROR(actor_isolated_inout_state,none,
4562
4562
ERROR(actor_isolated_mutating_func,none,
4563
4563
" cannot call mutating async function %0 on actor-isolated %1 %2" ,
4564
4564
(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 ))
4577
4565
ERROR(actor_isolated_call,none,
4578
4566
" call to %0 function in a synchronous %1 context" ,
4579
4567
(ActorIsolation, ActorIsolation))
@@ -4667,19 +4655,9 @@ WARNING(shared_mutable_state_access,none,
4667
4655
" reference to %0 %1 is not concurrency-safe because it involves "
4668
4656
" shared mutable state" , (DescriptiveDeclKind, DeclName))
4669
4657
ERROR(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))
4683
4661
ERROR(actor_cannot_conform_to_global_actor_protocol,none,
4684
4662
" actor %0 cannot conform to global actor isolated protocol %1" ,
4685
4663
(Type, Type))
0 commit comments