@@ -142,7 +142,7 @@ ERROR(could_not_use_instance_member_on_type,none,
142142 " %select{| instance of nested}3 type %0" ,
143143 (Type, DeclNameRef, Type, bool ))
144144ERROR(could_not_use_member_on_existential,none,
145- " member %1 cannot be used on value of protocol type %0; consider using a"
145+ " member %1 cannot be used on value of type %0; consider using a"
146146 " generic constraint instead" ,
147147 (Type, DeclNameRef))
148148FIXIT(replace_with_type," %0" ,(Type))
@@ -1945,9 +1945,8 @@ ERROR(type_cannot_conform_to_nsobject,none,
19451945ERROR(use_of_equal_instead_of_equality,none,
19461946 " use of '=' in a boolean context, did you mean '=='?" , ())
19471947ERROR(type_cannot_conform, none,
1948- " %select{type %1|protocol %1 as a type}0 cannot conform to "
1949- " %select{%3|the protocol itself}2" ,
1950- (bool , Type, bool , Type))
1948+ " type %0 cannot conform to %1" ,
1949+ (Type, Type))
19511950NOTE(only_concrete_types_conform_to_protocols,none,
19521951 " only concrete types such as structs, enums and classes can conform to protocols" ,
19531952 ())
@@ -2455,8 +2454,8 @@ ERROR(protocol_composition_one_class,none,
24552454 " contains class %1" , (Type, Type))
24562455
24572456ERROR(requires_conformance_nonprotocol,none,
2458- " type %0 constrained to non-protocol, non-class type '%1' " ,
2459- (Type, StringRef ))
2457+ " type %0 constrained to non-protocol, non-class type %1 " ,
2458+ (Type, Type ))
24602459NOTE(requires_conformance_nonprotocol_fixit,none,
24612460 " use '%0 == %1' to require '%0' to be '%1'" ,
24622461 (StringRef, StringRef))
@@ -2777,9 +2776,9 @@ WARNING(anyobject_class_inheritance_deprecated,Deprecation,
27772776ERROR(multiple_inheritance,none,
27782777 " multiple inheritance from classes %0 and %1" , (Type, Type))
27792778ERROR(inheritance_from_non_protocol_or_class,none,
2780- " inheritance from non-protocol, non-class type '%0' " , (StringRef ))
2779+ " inheritance from non-protocol, non-class type %0 " , (Type ))
27812780ERROR(inheritance_from_non_protocol,none,
2782- " inheritance from non-protocol type '%0' " , (StringRef ))
2781+ " inheritance from non-protocol type %0 " , (Type ))
27832782ERROR(inheritance_from_anyobject,none,
27842783 " only protocols can inherit from 'AnyObject'" , ())
27852784ERROR(inheritance_from_parameterized_protocol,none,
@@ -3589,7 +3588,7 @@ ERROR(construct_protocol_value,none,
35893588 " value of type %0 is a protocol; it cannot be instantiated" ,
35903589 (Type))
35913590ERROR(construct_protocol_by_name,none,
3592- " protocol type %0 cannot be instantiated" ,
3591+ " type %0 cannot be instantiated" ,
35933592 (Type))
35943593
35953594// Operators
0 commit comments