@@ -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 ())
@@ -3069,10 +3068,9 @@ NOTE(add_explicit_type_annotation_to_silence,none,
30693068 " add an explicit type annotation to silence this warning" , ())
30703069
30713070WARNING(unowned_assignment_immediate_deallocation,none,
3072- " instance will be immediately deallocated as %0 is "
3073- " %select{a 'strong'|a 'weak'|an 'unowned'|an 'unowned'}1 "
3074- " %select{variable|property}2" ,
3075- (Identifier, /* Ownership*/ unsigned , /* Is Property*/ unsigned ))
3071+ " instance will be immediately deallocated because "
3072+ " %select{variable|property}2 %0 is %1" ,
3073+ (Identifier, ReferenceOwnership, /* Is Property*/ unsigned ))
30763074NOTE(unowned_assignment_requires_strong,none,
30773075 " a strong reference is required to prevent the instance from being "
30783076 " deallocated" , ())
@@ -3230,24 +3228,23 @@ ERROR(implicitly_unwrapped_optional_in_illegal_position,none,
32303228
32313229// Ownership
32323230ERROR(invalid_ownership_type,none,
3233- " '%select{strong|weak|unowned|unowned}0' may only be applied to "
3234- " class and class-bound protocol types, not %1" ,
3235- (/* ReferenceOwnership*/ unsigned , Type))
3231+ " %0 may only be applied to class and class-bound protocol types, not %1" ,
3232+ (ReferenceOwnership, Type))
32363233ERROR(invalid_ownership_protocol_type,none,
3237- " '%select{strong|weak|unowned|unowned}0' must not be applied to "
3238- " non-class-bound %1; consider adding a protocol conformance that has a class bound" ,
3239- (/* ReferenceOwnership*/ unsigned , Type))
3234+ " %0 must not be applied to non-class-bound %1; "
3235+ " consider adding a protocol conformance that has a class bound" ,
3236+ (ReferenceOwnership, Type))
32403237ERROR(invalid_weak_ownership_not_optional,none,
32413238 " 'weak' variable should have optional type %0" , (Type))
32423239ERROR(invalid_weak_let,none,
32433240 " 'weak' must be a mutable variable, because it may change at runtime" , ())
32443241ERROR(ownership_invalid_in_protocols,none,
3245- " '%select{strong|weak|unowned|unowned}0' cannot be applied to a property declaration in a protocol" ,
3246- (/* ReferenceOwnership*/ unsigned ))
3242+ " %0 cannot be applied to a property declaration in a protocol" ,
3243+ (ReferenceOwnership))
32473244WARNING(ownership_invalid_in_protocols_compat_warning,none,
3248- " '%select{strong|weak|unowned|unowned}0' should not be applied to a property declaration "
3245+ " %0 should not be applied to a property declaration "
32493246 " in a protocol and will be disallowed in future versions" ,
3250- (/* ReferenceOwnership*/ unsigned ))
3247+ (ReferenceOwnership))
32513248
32523249// required
32533250ERROR(required_initializer_nonclass,none,
0 commit comments