@@ -1960,9 +1960,8 @@ ERROR(override_argument_name_mismatch,none,
19601960 " of overridden %select{method|initializer}0 %2" ,
19611961 (bool , DeclName, DeclName))
19621962ERROR(override_ownership_mismatch,none,
1963- " cannot override %select{strong|weak|unowned|unowned(unsafe)}0 property "
1964- " with %select{strong|weak|unowned|unowned(unsafe)}1 property" ,
1965- (/* ReferenceOwnership*/ unsigned , /* ReferenceOwnership*/ unsigned ))
1963+ " cannot override %0 property with %1 property" ,
1964+ (ReferenceOwnership, ReferenceOwnership))
19661965ERROR(override_dynamic_self_mismatch,none,
19671966 " cannot override a Self return type with a non-Self return type" ,
19681967 ())
@@ -3078,10 +3077,9 @@ NOTE(add_explicit_type_annotation_to_silence,none,
30783077 " add an explicit type annotation to silence this warning" , ())
30793078
30803079WARNING(unowned_assignment_immediate_deallocation,none,
3081- " instance will be immediately deallocated as %0 is "
3082- " %select{a 'strong'|a 'weak'|an 'unowned'|an 'unowned'}1 "
3083- " %select{variable|property}2" ,
3084- (Identifier, /* Ownership*/ unsigned , /* Is Property*/ unsigned ))
3080+ " instance will be immediately deallocated because "
3081+ " %select{variable|property}2 %0 is %1" ,
3082+ (Identifier, ReferenceOwnership, /* Is Property*/ unsigned ))
30853083NOTE(unowned_assignment_requires_strong,none,
30863084 " a strong reference is required to prevent the instance from being "
30873085 " deallocated" , ())
@@ -3239,24 +3237,23 @@ ERROR(implicitly_unwrapped_optional_in_illegal_position,none,
32393237
32403238// Ownership
32413239ERROR(invalid_ownership_type,none,
3242- " '%select{strong|weak|unowned|unowned}0' may only be applied to "
3243- " class and class-bound protocol types, not %1" ,
3244- (/* ReferenceOwnership*/ unsigned , Type))
3240+ " %0 may only be applied to class and class-bound protocol types, not %1" ,
3241+ (ReferenceOwnership, Type))
32453242ERROR(invalid_ownership_protocol_type,none,
3246- " '%select{strong|weak|unowned|unowned}0' must not be applied to "
3247- " non-class-bound %1; consider adding a protocol conformance that has a class bound" ,
3248- (/* ReferenceOwnership*/ unsigned , Type))
3243+ " %0 must not be applied to non-class-bound %1; "
3244+ " consider adding a protocol conformance that has a class bound" ,
3245+ (ReferenceOwnership, Type))
32493246ERROR(invalid_weak_ownership_not_optional,none,
32503247 " 'weak' variable should have optional type %0" , (Type))
32513248ERROR(invalid_weak_let,none,
32523249 " 'weak' must be a mutable variable, because it may change at runtime" , ())
32533250ERROR(ownership_invalid_in_protocols,none,
3254- " '%select{strong|weak|unowned|unowned}0' cannot be applied to a property declaration in a protocol" ,
3255- (/* ReferenceOwnership*/ unsigned ))
3251+ " %0 cannot be applied to a property declaration in a protocol" ,
3252+ (ReferenceOwnership))
32563253WARNING(ownership_invalid_in_protocols_compat_warning,none,
3257- " '%select{strong|weak|unowned|unowned}0' should not be applied to a property declaration "
3254+ " %0 should not be applied to a property declaration "
32583255 " in a protocol and will be disallowed in future versions" ,
3259- (/* ReferenceOwnership*/ unsigned ))
3256+ (ReferenceOwnership))
32603257
32613258// required
32623259ERROR(required_initializer_nonclass,none,
0 commit comments