@@ -4505,25 +4505,34 @@ ERROR(distributed_actor_isolated_method,none,
4505
4505
" only 'distributed' instance methods can be called on a potentially remote distributed actor" ,
4506
4506
())
4507
4507
ERROR(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 ))
4510
4510
ERROR(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 ))
4513
4513
ERROR(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." ,
4515
4515
(Identifier, Identifier))
4516
4516
ERROR(nonisolated_distributed_actor_storage,none,
4517
4517
" 'nonisolated' can not be applied to distributed actor stored properties" ,
4518
4518
())
4519
4519
ERROR(distributed_actor_func_nonisolated, none,
4520
- " function %0 cannot be both 'nonisolated' and 'distributed'" ,
4520
+ " cannot declare method %0 as both 'nonisolated' and 'distributed'" ,
4521
4521
(DeclName))
4522
4522
ERROR(distributed_actor_func_private, none,
4523
4523
" %0 %1 cannot be 'private'" ,
4524
4524
(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))
4525
4534
ERROR(distributed_actor_remote_func_is_not_static,none,
4526
- " remote function %0 must be static. " ,
4535
+ " remote function %0 must be static" ,
4527
4536
(DeclName))
4528
4537
ERROR(distributed_actor_remote_func_is_not_async_throws,none,
4529
4538
" remote function %0 must be 'async throws'." ,
@@ -4654,7 +4663,7 @@ ERROR(distributed_actor_func_static,none,
4654
4663
" 'distributed' method cannot be 'static'" ,
4655
4664
())
4656
4665
ERROR(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'" ,
4658
4667
())
4659
4668
ERROR(distributed_actor_designated_ctor_must_have_one_transport_param,none,
4660
4669
" designated distributed actor initializer %0 must accept exactly one "
0 commit comments