@@ -4351,8 +4351,8 @@ NOTE(objc_ambiguous_async_convention_candidate,none,
43514351ERROR(async_objc_dynamic_self,none,
43524352 " asynchronous method returning 'Self' cannot be '@objc'" , ())
43534353
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 " , ())
43564356
43574357ERROR(actor_isolated_non_self_reference,none,
43584358 " actor-isolated %0 %1 can only be %select{referenced|mutated|used 'inout'}3 "
@@ -4426,6 +4426,9 @@ NOTE(actor_isolated_sync_func,none,
44264426NOTE(actor_mutable_state,none,
44274427 " mutation of this %0 is only permitted within the actor" ,
44284428 (DescriptiveDeclKind))
4429+ NOTE(actor_isolated_let,none,
4430+ " use `nonisolated` to allow synchronous access to 'let' from outside "
4431+ " the actor" , ())
44294432WARNING(shared_mutable_state_access,none,
44304433 " reference to %0 %1 is not concurrency-safe because it involves "
44314434 " shared mutable state" , (DescriptiveDeclKind, DeclName))
@@ -4458,13 +4461,12 @@ WARNING(non_concurrent_property_type,none,
44584461WARNING(non_concurrent_keypath_capture,none,
44594462 " cannot form key path that captures non-sendable type %0" ,
44604463 (Type))
4461- WARNING(non_concurrent_keypath_access,none,
4462- " cannot form key path that accesses non-sendable type %0" ,
4463- (Type))
44644464ERROR(non_concurrent_type_member,none,
44654465 " %select{stored property %1|associated value %1}0 of "
44664466 " 'Sendable'-conforming %2 %3 has non-sendable type %4" ,
44674467 (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))
44684470ERROR(concurrent_value_class_mutable_property,none,
44694471 " stored property %0 of 'Sendable'-conforming %1 %2 is mutable" ,
44704472 (DeclName, DescriptiveDeclKind, DeclName))
@@ -4480,21 +4482,13 @@ ERROR(concurrent_value_inherit,none,
44804482 " %select{| other than 'NSObject'}0" ,
44814483 (bool , DeclName))
44824484
4483- ERROR(actorindependent_let,none,
4484- " '@actorIndependent' is meaningless on 'let' declarations because "
4485- " they are immutable" ,
4486- ())
44874485ERROR(actorindependent_mutable_storage,none,
44884486 " '@actorIndependent' can not be applied to stored properties" ,
44894487 ())
44904488ERROR(actorindependent_local_var,none,
44914489 " '@actorIndependent' can not be applied to local variables" ,
44924490 ())
44934491
4494- ERROR(nonisolated_let,none,
4495- " 'nonisolated' is meaningless on 'let' declarations because "
4496- " they are immutable" ,
4497- ())
44984492ERROR(nonisolated_mutable_storage,none,
44994493 " nonisolated' can not be applied to stored properties" ,
45004494 ())
@@ -5678,8 +5672,8 @@ ERROR(wrapped_value_mismatch, none,
56785672 " property type %0 does not match 'wrappedValue' type %1" ,
56795673 (Type, Type))
56805674ERROR(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))
56835677
56845678ERROR(property_wrapper_type_access,none,
56855679 " %select{%select{variable|constant}0|property}1 "
0 commit comments