@@ -4505,25 +4505,34 @@ ERROR(distributed_actor_isolated_method,none,
45054505 " only 'distributed' instance methods can be called on a potentially remote distributed actor" ,
45064506 ())
45074507ERROR(distributed_actor_func_param_not_codable,none,
4508- " distributed instance method parameter '%0' of type %1 does not conform to 'Codable '" ,
4509- (StringRef, Type))
4508+ " parameter '%0' of type %1 in %2 does not conform to '%3 '" ,
4509+ (StringRef, Type, DescriptiveDeclKind, StringRef ))
45104510ERROR(distributed_actor_func_result_not_codable,none,
4511- " distributed instance method result type %0 does not conform to 'Codable '" ,
4512- (Type))
4511+ " result type %0 of %1 does not conform to '%2 '" ,
4512+ (Type, DescriptiveDeclKind, StringRef ))
45134513ERROR(distributed_actor_remote_func_implemented_manually,none,
4514- " distributed function 's %0 remote counterpart %1 cannot not be implemented manually." ,
4514+ " distributed instance method 's %0 remote counterpart %1 cannot not be implemented manually." ,
45154515 (Identifier, Identifier))
45164516ERROR(nonisolated_distributed_actor_storage,none,
45174517 " 'nonisolated' can not be applied to distributed actor stored properties" ,
45184518 ())
45194519ERROR(distributed_actor_func_nonisolated, none,
4520- " function %0 cannot be both 'nonisolated' and 'distributed'" ,
4520+ " cannot declare method %0 as both 'nonisolated' and 'distributed'" ,
45214521 (DeclName))
45224522ERROR(distributed_actor_func_private, none,
45234523 " %0 %1 cannot be 'private'" ,
45244524 (DescriptiveDeclKind, DeclName))
4525+ ERROR(distributed_actor_func_inout, none,
4526+ " cannot declare 'inout' argument %0 in %1 %2" ,
4527+ (DeclName, DescriptiveDeclKind, DeclName))
4528+ ERROR(distributed_actor_func_closure, none,
4529+ " %0 %1 cannot declare closure arguments, as they cannot be serialized" ,
4530+ (DescriptiveDeclKind, DeclName))
4531+ ERROR(distributed_actor_func_variadic, none,
4532+ " cannot declare variadic argument %0 in %1 %2" ,
4533+ (DeclName, DescriptiveDeclKind, DeclName))
45254534ERROR(distributed_actor_remote_func_is_not_static,none,
4526- " remote function %0 must be static. " ,
4535+ " remote function %0 must be static" ,
45274536 (DeclName))
45284537ERROR(distributed_actor_remote_func_is_not_async_throws,none,
45294538 " remote function %0 must be 'async throws'." ,
@@ -4654,7 +4663,7 @@ ERROR(distributed_actor_func_static,none,
46544663 " 'distributed' method cannot be 'static'" ,
46554664 ())
46564665ERROR(distributed_actor_func_not_in_distributed_actor,none,
4657- " 'distributed' function can only be declared within 'distributed actor'" ,
4666+ " 'distributed' method can only be declared within 'distributed actor'" ,
46584667 ())
46594668ERROR(distributed_actor_designated_ctor_must_have_one_transport_param,none,
46604669 " designated distributed actor initializer %0 must accept exactly one "
0 commit comments