@@ -123,8 +123,6 @@ ERROR(expected_result_in_contextual_member,none,
123
123
124
124
ERROR(unexpected_arguments_in_enum_case,none,
125
125
" enum case %0 has no associated values" , (DeclName))
126
- ERROR(unexpected_arguments_in_contextual_member,none,
127
- " %0 %1 is not a function" , (DescriptiveDeclKind, DeclName))
128
126
129
127
ERROR(could_not_use_value_member,none,
130
128
" member %1 cannot be used on value of type %0" , (Type, DeclName))
@@ -261,9 +259,6 @@ ERROR(cannot_pass_rvalue_inout,none,
261
259
ERROR(cannot_provide_default_value_inout,none,
262
260
" cannot provide default value to inout parameter %0" , (Identifier))
263
261
264
- ERROR(cannot_assign_to_literal,none,
265
- " cannot assign to a literal value" , ())
266
-
267
262
ERROR(cannot_call_with_no_params,none,
268
263
" cannot invoke %select{|initializer for type }1'%0' with no arguments" ,
269
264
(StringRef, bool ))
@@ -440,8 +435,6 @@ NOTE(candidate_performs_illegal_ephemeral_conv,none,
440
435
441
436
ERROR(cannot_convert_argument_value_protocol,none,
442
437
" argument type %0 does not conform to expected type %1" , (Type, Type))
443
- ERROR(cannot_convert_partial_argument_value_protocol,none,
444
- " in argument type %0, %1 does not conform to expected type %2" , (Type, Type, Type))
445
438
446
439
ERROR(cannot_convert_argument_value_nil,none,
447
440
" 'nil' is not compatible with expected argument type %0" , (Type))
@@ -566,9 +559,6 @@ ERROR(cannot_convert_sequence_element_protocol,none,
566
559
ERROR(throws_functiontype_mismatch,none,
567
560
" invalid conversion from throwing function of type %0 to "
568
561
" non-throwing function type %1" , (Type, Type))
569
- ERROR(noescape_functiontype_mismatch,none,
570
- " invalid conversion from non-escaping function of type %0 to "
571
- " potentially escaping function type %1" , (Type, Type))
572
562
573
563
// Key-path expressions.
574
564
ERROR(expr_keypath_no_objc_runtime,none,
@@ -1162,9 +1152,6 @@ ERROR(instance_member_in_initializer,none,
1162
1152
ERROR(instance_member_in_default_parameter,none,
1163
1153
" cannot use instance member %0 as a default parameter" , (DeclName))
1164
1154
1165
- ERROR(invalid_initialization_parameter_same_type,none,
1166
- " invalid initializer call with same type %0 as parameter" , (Type))
1167
-
1168
1155
ERROR(missing_argument_named,none,
1169
1156
" missing argument for parameter %0 in call" , (Identifier))
1170
1157
ERROR(missing_argument_positional,none,
@@ -1397,8 +1384,6 @@ ERROR(access_control_open_bad_decl,none,
1397
1384
" only classes and overridable class members can be declared 'open';"
1398
1385
" use 'public'" , ())
1399
1386
1400
- ERROR(invalid_decl_attribute_simple,none,
1401
- " attribute cannot be applied to declaration" , ())
1402
1387
ERROR(invalid_decl_attribute,none,
1403
1388
" '%0' attribute cannot be applied to this declaration" , (DeclAttribute))
1404
1389
ERROR(invalid_decl_modifier,none,
@@ -2230,9 +2215,6 @@ ERROR(recursive_same_type_constraint,none,
2230
2215
" same-type constraint %0 == %1 is recursive" , (Type, Type))
2231
2216
ERROR(recursive_superclass_constraint,none,
2232
2217
" superclass constraint %0 : %1 is recursive" , (Type, Type))
2233
- ERROR(requires_same_type_conflict,none,
2234
- " %select{associated type|generic parameter}0 %1 cannot be equal to "
2235
- " both %2 and %3" , (bool , Type, Type, Type))
2236
2218
ERROR(requires_generic_param_same_type_does_not_conform,none,
2237
2219
" same-type constraint type %0 does not conform to required protocol %1" ,
2238
2220
(Type, Identifier))
@@ -2907,9 +2889,6 @@ NOTE(found_candidate_type,none,
2907
2889
2908
2890
ERROR(no_MaxBuiltinFloatType_found,none,
2909
2891
" standard library error: _MaxBuiltinFloatType is not properly defined" , ())
2910
- ERROR(integer_literal_overflows_maxwidth, none,
2911
- " integer literal needs %1 bits, exceeding limit of %0 bits" ,
2912
- (unsigned , unsigned ))
2913
2892
2914
2893
ERROR(no_member_of_module,none,
2915
2894
" module %0 has no member named %1" , (Identifier, DeclName))
@@ -3080,8 +3059,6 @@ ERROR(missing_protocol,none,
3080
3059
" missing protocol %0" , (Identifier))
3081
3060
ERROR(nil_literal_broken_proto,none,
3082
3061
" protocol 'ExpressibleByNilLiteral' is broken" , ())
3083
- ERROR(array_protocol_broken,none,
3084
- " protocol 'ExpressibleByArrayLiteral' is broken" , ())
3085
3062
ERROR(builtin_integer_literal_broken_proto,none,
3086
3063
" protocol '_ExpressibleByBuiltinIntegerLiteral' is broken" , ())
3087
3064
ERROR(integer_literal_broken_proto,none,
@@ -3122,8 +3099,6 @@ ERROR(should_use_empty_dictionary_literal,none,
3122
3099
" use [:] to get an empty dictionary literal" , ())
3123
3100
3124
3101
// Dictionary literals
3125
- ERROR(dictionary_protocol_broken,none,
3126
- " ExpressibleByDictionaryLiteral protocol definition is broken" , ())
3127
3102
ERROR(type_is_not_dictionary,none,
3128
3103
" contextual type %0 cannot be used with dictionary literal" , (Type))
3129
3104
@@ -3434,12 +3409,6 @@ ERROR(assignment_let_property_delegating_init,none,
3434
3409
" 'let' property %0 may not be initialized directly; use "
3435
3410
" \" self.init(...)\" or \" self = ...\" instead" , (DeclName))
3436
3411
3437
- // ForEach Stmt
3438
- ERROR(sequence_protocol_broken,none,
3439
- " SequenceType protocol definition is broken" , ())
3440
- ERROR(iterator_protocol_broken,none,
3441
- " IteratorProtocol protocol definition is broken" , ())
3442
-
3443
3412
ERROR(label_shadowed, none,
3444
3413
" label %0 cannot be reused on an inner statement" , (Identifier))
3445
3414
ERROR(break_outside_loop,none,
@@ -3573,9 +3542,6 @@ ERROR(closure_tuple_parameter_destructuring,none,
3573
3542
ERROR(closure_tuple_parameter_destructuring_implicit,none,
3574
3543
" closure tuple parameter %0 does not support destructuring "
3575
3544
" with implicit parameters" , (Type))
3576
- ERROR(nested_tuple_parameter_destructuring,none,
3577
- " nested tuple parameter %0 of function %1 "
3578
- " does not support destructuring" , (Type, Type))
3579
3545
ERROR(single_tuple_parameter_mismatch_special,none,
3580
3546
" %0 expects a single parameter of type %1%2" ,
3581
3547
(DescriptiveDeclKind, Type, StringRef))
@@ -4123,14 +4089,9 @@ ERROR(nonlocal_bridged_to_objc,none,
4123
4089
" conformance of %0 to %1 can only be written in module %2" ,
4124
4090
(Identifier, Identifier, Identifier))
4125
4091
4126
- ERROR(broken_bridged_to_objc_protocol,none,
4127
- " _BridgedToObjectiveC protocol is broken" , ())
4128
-
4129
4092
ERROR(missing_bridging_function,Fatal,
4130
4093
" missing '%select{_forceBridgeFromObjectiveC|"
4131
4094
" _conditionallyBridgeFromObjectiveC}0'" , (bool ))
4132
- ERROR(missing_nserror_bridging_function,none,
4133
- " missing _bridgeNSError" , ())
4134
4095
4135
4096
#define OBJC_DIAG_SELECT " %select{initializer %1|implicit initializer %1|deinitializer|implicit deinitializer|method %1|getter for %1|subscript getter|setter for %1|subscript setter}0"
4136
4097
@@ -4489,8 +4450,6 @@ ERROR(specialize_attr_only_generic_param_req,none,
4489
4450
" Only requirements on generic parameters are supported by '_specialize' attribute" , ())
4490
4451
ERROR(specialize_attr_only_one_concrete_same_type_req,none,
4491
4452
" Only one concrete type should be used in the same-type requirement in '_specialize' attribute" , ())
4492
- ERROR(specialize_attr_non_nominal_type_constraint_req,none,
4493
- " Only conformances to nominal types are supported by '_specialize' attribute" , ())
4494
4453
ERROR(specialize_attr_non_protocol_type_constraint_req,none,
4495
4454
" Only conformances to protocol types are supported by '_specialize' attribute" , ())
4496
4455
ERROR(specialize_attr_type_parameter_count_mismatch,none,
0 commit comments