@@ -4505,22 +4505,31 @@ 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))
4522+ ERROR(distributed_actor_func_inout, none,
4523+ " cannot declare 'inout' argument %0 in %1 %2" ,
4524+ (DeclName, DescriptiveDeclKind, DeclName))
4525+ ERROR(distributed_actor_func_closure, none,
4526+ " %0 %1 cannot declare closure arguments, as they cannot be serialized" ,
4527+ (DescriptiveDeclKind, DeclName))
4528+ ERROR(distributed_actor_func_variadic, none,
4529+ " cannot declare variadic argument %0 in %1 %2" ,
4530+ (DeclName, DescriptiveDeclKind, DeclName))
45224531ERROR(distributed_actor_remote_func_is_not_static,none,
4523- " remote function %0 must be static. " ,
4532+ " remote function %0 must be static" ,
45244533 (DeclName))
45254534ERROR(distributed_actor_remote_func_is_not_async_throws,none,
45264535 " remote function %0 must be 'async throws'." ,
@@ -4651,7 +4660,7 @@ ERROR(distributed_actor_func_static,none,
46514660 " 'distributed' method cannot be 'static'" ,
46524661 ())
46534662ERROR(distributed_actor_func_not_in_distributed_actor,none,
4654- " 'distributed' function can only be declared within 'distributed actor'" ,
4663+ " 'distributed' method can only be declared within 'distributed actor'" ,
46554664 ())
46564665ERROR(distributed_actor_designated_ctor_must_have_one_transport_param,none,
46574666 " designated distributed actor initializer %0 must accept exactly one "
0 commit comments