@@ -4417,6 +4417,8 @@ ERROR(actor_protocol_illegal_inheritance,none,
4417
4417
ERROR(distributed_actor_protocol_illegal_inheritance,none,
4418
4418
" non-distributed actor type %0 cannot conform to the 'DistributedActor' protocol" ,
4419
4419
(DeclName))
4420
+ ERROR(broken_distributed_actor_requirement,none,
4421
+ " DistributedActor protocol is broken: unexpected requirement" , ())
4420
4422
4421
4423
ERROR(unowned_executor_outside_actor,none,
4422
4424
" 'unownedExecutor' can only be implemented within the main "
@@ -4488,6 +4490,10 @@ NOTE(actor_isolated_sync_func,none,
4488
4490
" calls to %0 %1 from outside of its actor context are "
4489
4491
" implicitly asynchronous" ,
4490
4492
(DescriptiveDeclKind, DeclName))
4493
+ NOTE(actor_isolated_sync_func_value,none,
4494
+ " calls function of type %0 from outside of its actor context are "
4495
+ " implicitly asynchronous" ,
4496
+ (Type))
4491
4497
NOTE(note_distributed_actor_isolated_method,none,
4492
4498
" distributed actor-isolated %0 %1 declared here" ,
4493
4499
(DescriptiveDeclKind, DeclName))
@@ -4605,6 +4611,12 @@ ERROR(nonisolated_mutable_storage,none,
4605
4611
ERROR(nonisolated_local_var,none,
4606
4612
" 'nonisolated' can not be applied to local variables" ,
4607
4613
())
4614
+ ERROR(nonisolated_actor_sync_init,none,
4615
+ " 'nonisolated' on an actor's synchronous initializer is invalid" ,
4616
+ ())
4617
+ ERROR(nonisolated_actor_convenience_init,none,
4618
+ " 'nonisolated' on an actor's convenience initializer is redundant" ,
4619
+ ())
4608
4620
4609
4621
ERROR(actor_instance_property_wrapper,none,
4610
4622
" %0 property in property wrapper type %1 cannot be isolated to "
@@ -5950,6 +5962,13 @@ ERROR(cannot_declare_computed_var_in_result_builder,none,
5950
5962
" expression shuffles the elements of this tuple; "
5951
5963
" this behavior is deprecated" , ())
5952
5964
5965
+ // ------------------------------------------------------------------------------
5966
+ // MARK: Implicit conversion diagnostics
5967
+ // ------------------------------------------------------------------------------
5968
+ ERROR(cannot_implicitly_convert_in_optional_context,none,
5969
+ " cannot implicitly convert value of type %0 to expected type %1" ,
5970
+ (Type, Type))
5971
+
5953
5972
// ------------------------------------------------------------------------------
5954
5973
// MARK: marker protocol diagnostics
5955
5974
// ------------------------------------------------------------------------------
@@ -6052,5 +6071,13 @@ ERROR(noimplicitcopy_attr_valid_only_on_local_let_params,
6052
6071
ERROR(noimplicitcopy_attr_invalid_in_generic_context,
6053
6072
none, " '@_noImplicitCopy' attribute cannot be applied to entities in generic contexts" , ())
6054
6073
6074
+ // ------------------------------------------------------------------------------
6075
+ // MARK: variadics
6076
+ // ------------------------------------------------------------------------------
6077
+
6078
+ ERROR(type_sequence_on_non_generic_param, none,
6079
+ " '@_typeSequence' must appear on a generic parameter" ,
6080
+ ())
6081
+
6055
6082
#define UNDEFINE_DIAGNOSTIC_MACROS
6056
6083
#include " DefineDiagnosticMacros.h"
0 commit comments