@@ -4351,8 +4351,8 @@ NOTE(objc_ambiguous_async_convention_candidate,none,
4351
4351
ERROR(async_objc_dynamic_self,none,
4352
4352
" asynchronous method returning 'Self' cannot be '@objc'" , ())
4353
4353
4354
- ERROR(actor_with_nonactor_superclass ,none,
4355
- " actor cannot inherit from non-actor class %0 " , (DeclName ))
4354
+ ERROR(actor_inheritance ,none,
4355
+ " actor types do not support inheritance " , ())
4356
4356
4357
4357
ERROR(actor_isolated_non_self_reference,none,
4358
4358
" actor-isolated %0 %1 can only be %select{referenced|mutated|used 'inout'}3 "
@@ -4426,6 +4426,9 @@ NOTE(actor_isolated_sync_func,none,
4426
4426
NOTE(actor_mutable_state,none,
4427
4427
" mutation of this %0 is only permitted within the actor" ,
4428
4428
(DescriptiveDeclKind))
4429
+ NOTE(actor_isolated_let,none,
4430
+ " use `nonisolated` to allow synchronous access to 'let' from outside "
4431
+ " the actor" , ())
4429
4432
WARNING(shared_mutable_state_access,none,
4430
4433
" reference to %0 %1 is not concurrency-safe because it involves "
4431
4434
" shared mutable state" , (DescriptiveDeclKind, DeclName))
@@ -4458,13 +4461,12 @@ WARNING(non_concurrent_property_type,none,
4458
4461
WARNING(non_concurrent_keypath_capture,none,
4459
4462
" cannot form key path that captures non-sendable type %0" ,
4460
4463
(Type))
4461
- WARNING(non_concurrent_keypath_access,none,
4462
- " cannot form key path that accesses non-sendable type %0" ,
4463
- (Type))
4464
4464
ERROR(non_concurrent_type_member,none,
4465
4465
" %select{stored property %1|associated value %1}0 of "
4466
4466
" 'Sendable'-conforming %2 %3 has non-sendable type %4" ,
4467
4467
(bool , DeclName, DescriptiveDeclKind, DeclName, Type))
4468
+ ERROR(non_sendable_nonisolated_let,none,
4469
+ " non-isolated let property %0 has non-Sendable type %1" , (DeclName, Type))
4468
4470
ERROR(concurrent_value_class_mutable_property,none,
4469
4471
" stored property %0 of 'Sendable'-conforming %1 %2 is mutable" ,
4470
4472
(DeclName, DescriptiveDeclKind, DeclName))
@@ -4480,21 +4482,13 @@ ERROR(concurrent_value_inherit,none,
4480
4482
" %select{| other than 'NSObject'}0" ,
4481
4483
(bool , DeclName))
4482
4484
4483
- ERROR(actorindependent_let,none,
4484
- " '@actorIndependent' is meaningless on 'let' declarations because "
4485
- " they are immutable" ,
4486
- ())
4487
4485
ERROR(actorindependent_mutable_storage,none,
4488
4486
" '@actorIndependent' can not be applied to stored properties" ,
4489
4487
())
4490
4488
ERROR(actorindependent_local_var,none,
4491
4489
" '@actorIndependent' can not be applied to local variables" ,
4492
4490
())
4493
4491
4494
- ERROR(nonisolated_let,none,
4495
- " 'nonisolated' is meaningless on 'let' declarations because "
4496
- " they are immutable" ,
4497
- ())
4498
4492
ERROR(nonisolated_mutable_storage,none,
4499
4493
" nonisolated' can not be applied to stored properties" ,
4500
4494
())
@@ -5678,8 +5672,8 @@ ERROR(wrapped_value_mismatch, none,
5678
5672
" property type %0 does not match 'wrappedValue' type %1" ,
5679
5673
(Type, Type))
5680
5674
ERROR(composed_property_wrapper_mismatch, none,
5681
- " composed wrapper type %0 does not match former ' wrappedValue' type %1 " ,
5682
- (Type, Type))
5675
+ " composed wrapper type %0 does not match type of '%1. wrappedValue', which is %2 " ,
5676
+ (Type, StringRef, Type))
5683
5677
5684
5678
ERROR(property_wrapper_type_access,none,
5685
5679
" %select{%select{variable|constant}0|property}1 "
0 commit comments