@@ -4362,13 +4362,6 @@ ERROR(actor_isolated_non_self_reference,none,
43624362 " actor-isolated %0 %1 can only be %select{referenced|mutated|used 'inout'}3 "
43634363 " %select{from inside the actor|on 'self'}2" ,
43644364 (DescriptiveDeclKind, DeclName, bool , unsigned ))
4365- ERROR(distributed_actor_isolated_non_self_reference,none,
4366- " distributed actor-isolated %0 %1 can only be referenced "
4367- " inside the distributed actor" ,
4368- (DescriptiveDeclKind, DeclName))
4369- ERROR(distributed_actor_needs_explicit_distributed_import,none,
4370- " '_Distributed' module not imported, required for 'distributed actor'" ,
4371- ())
43724365ERROR(actor_isolated_self_independent_context,none,
43734366 " actor-isolated %0 %1 can not be %select{referenced|mutated|used 'inout'}2 from a "
43744367 " non-isolated context" ,
@@ -4418,8 +4411,8 @@ ERROR(actor_isolated_from_async_let,none,
44184411 " actor-isolated %0 %1 cannot be %select{referenced|mutated|used 'inout'}2 from 'async let' initializer" ,
44194412 (DescriptiveDeclKind, DeclName, unsigned ))
44204413ERROR(actor_isolated_keypath_component,none,
4421- " cannot form key path to%select{| distributed}0 actor-isolated %1 %2 " ,
4422- (bool , DescriptiveDeclKind, DeclName))
4414+ " cannot form key path to actor-isolated %0 %1 " ,
4415+ (DescriptiveDeclKind, DeclName))
44234416ERROR(effectful_keypath_component,none,
44244417 " cannot form key path to %0 with 'throws' or 'async'" ,
44254418 (DescriptiveDeclKind))
@@ -4434,32 +4427,6 @@ NOTE(actor_isolated_sync_func,none,
44344427 " calls to %0 %1 from outside of its actor context are "
44354428 " implicitly asynchronous" ,
44364429 (DescriptiveDeclKind, DeclName))
4437- NOTE(distributed_actor_isolated_method_note,none,
4438- " only 'distributed' functions can be called from outside the distributed actor" ,
4439- ())
4440- ERROR(distributed_actor_isolated_method,none,
4441- " only 'distributed' functions can be called from outside the distributed actor" , // TODO: more like 'non-distributed' ... defined here
4442- ())
4443- ERROR(distributed_actor_func_param_not_codable,none,
4444- " distributed function parameter '%0' of type %1 does not conform to 'Codable'" ,
4445- (StringRef, Type))
4446- ERROR(distributed_actor_func_result_not_codable,none,
4447- " distributed function result type %0 does not conform to 'Codable'" ,
4448- (Type))
4449- ERROR(distributed_actor_func_missing_remote_func,none,
4450- " distributed function is missing its remote static func implementation (%0). "
4451- " You may want to use a distributed actor SwiftPM plugin to generate those, "
4452- " or implement it manually." ,
4453- (Identifier))
4454- ERROR(distributed_actor_remote_func_is_not_static,none,
4455- " remote function %0 must be static." ,
4456- (DeclName))
4457- ERROR(distributed_actor_remote_func_is_not_async_throws,none,
4458- " remote function %0 must be 'async throws'." ,
4459- (DeclName))
4460- ERROR(distributed_actor_remote_func_must_not_be_distributed,none,
4461- " remote function %0 must be 'async throws'." ,
4462- (DeclName))
44634430NOTE(actor_mutable_state,none,
44644431 " mutation of this %0 is only permitted within the actor" ,
44654432 (DescriptiveDeclKind))
@@ -4538,60 +4505,6 @@ ERROR(actor_instance_property_wrapper,none,
45384505 " the actor instance; consider 'nonisolated'" ,
45394506 (Identifier, Identifier))
45404507
4541- ERROR(distributed_actor_func_defined_outside_of_distributed_actor,none,
4542- " distributed function %0 is declared outside of an distributed actor" ,
4543- (DeclName))
4544- ERROR(distributed_actor_local_init_explicitly_defined,none,
4545- " 'distributed actor' local-initializer 'init(transport:)' "
4546- " cannot be implemented explicitly." ,
4547- ())
4548- ERROR(distributed_actor_init_resolve_must_not_be_user_defined,none,
4549- " 'distributed actor' resolve-initializer 'init(resolve:using:)' "
4550- " cannot be implemented explicitly." ,
4551- ())
4552- ERROR(distributed_actor_init_user_defined_must_be_convenience,none,
4553- " 'distributed actor' initializer %0 must be 'convenience' initializer. "
4554- " Distributed actors have an implicitly synthesized designated "
4555- " 'init(transport:)' local-initializer, which other initializers must delegate to" ,
4556- (DeclName))
4557- ERROR(distributed_actor_init_must_delegate_to_local_init,none,
4558- " 'distributed actor' initializer %0 must (directly or indirectly) delegate "
4559- " to 'init(transport:)'" ,
4560- (DeclName))
4561- ERROR(distributed_actor_init_must_not_delegate_to_resolve_init,none,
4562- " 'distributed actor' initializer %0 cannot delegate to resolve-initializer "
4563- " 'init(resolve:using:)', as it may result resolving a storageless proxy instance" ,
4564- (DeclName))
4565- ERROR(distributed_actor_local_var,none,
4566- " 'distributed' can not be applied to local variables" ,
4567- ())
4568- ERROR(distributed_actor_property,none,
4569- " 'distributed' can not be applied to local properties" ,
4570- ())
4571- ERROR(distributed_actor_storage,none,
4572- " 'distributed' can not be applied to actor properties; "
4573- " Only functions can be 'distributed'" ,
4574- ())
4575- ERROR(distributed_actor_not_actor,none,
4576- " 'distributed' can only be applied to 'actor' definitions, "
4577- " and distributed actor-isolated async functions" ,
4578- ())
4579- ERROR(distributed_actor_not_actor_func,none,
4580- " 'distributed' can only be applied to distributed actor async functions" ,
4581- ())
4582- ERROR(distributed_actor_func_static,none,
4583- " 'distributed' functions cannot be 'static'" ,
4584- ())
4585- ERROR(distributed_actor_func_not_in_distributed_actor,none,
4586- " 'distributed' function can only be declared within 'distributed actor'" ,
4587- ())
4588- ERROR(distributed_actor_independent_property_must_be_let,none,
4589- " _distributedActorIndependent can be applied to properties, however they must be 'let'" ,
4590- ())
4591- NOTE(distributed_actor_isolated_property,none,
4592- " distributed actor state is only available within the actor instance" ,
4593- ())
4594-
45954508ERROR(concurrency_lib_missing,none,
45964509 " missing '%0' declaration, probably because the '_Concurrency' "
45974510 " module was not imported" , (StringRef))
0 commit comments