@@ -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,
@@ -1158,9 +1148,6 @@ ERROR(instance_member_in_initializer,none,
1158
1148
ERROR(instance_member_in_default_parameter,none,
1159
1149
" cannot use instance member %0 as a default parameter" , (DeclName))
1160
1150
1161
- ERROR(invalid_initialization_parameter_same_type,none,
1162
- " invalid initializer call with same type %0 as parameter" , (Type))
1163
-
1164
1151
ERROR(missing_argument_named,none,
1165
1152
" missing argument for parameter %0 in call" , (Identifier))
1166
1153
ERROR(missing_argument_positional,none,
@@ -1393,8 +1380,6 @@ ERROR(access_control_open_bad_decl,none,
1393
1380
" only classes and overridable class members can be declared 'open';"
1394
1381
" use 'public'" , ())
1395
1382
1396
- ERROR(invalid_decl_attribute_simple,none,
1397
- " attribute cannot be applied to declaration" , ())
1398
1383
ERROR(invalid_decl_attribute,none,
1399
1384
" '%0' attribute cannot be applied to this declaration" , (DeclAttribute))
1400
1385
ERROR(invalid_decl_modifier,none,
@@ -2228,9 +2213,6 @@ ERROR(recursive_same_type_constraint,none,
2228
2213
" same-type constraint %0 == %1 is recursive" , (Type, Type))
2229
2214
ERROR(recursive_superclass_constraint,none,
2230
2215
" superclass constraint %0 : %1 is recursive" , (Type, Type))
2231
- ERROR(requires_same_type_conflict,none,
2232
- " %select{associated type|generic parameter}0 %1 cannot be equal to "
2233
- " both %2 and %3" , (bool , Type, Type, Type))
2234
2216
ERROR(requires_generic_param_same_type_does_not_conform,none,
2235
2217
" same-type constraint type %0 does not conform to required protocol %1" ,
2236
2218
(Type, Identifier))
@@ -2905,9 +2887,6 @@ NOTE(found_candidate_type,none,
2905
2887
2906
2888
ERROR(no_MaxBuiltinFloatType_found,none,
2907
2889
" standard library error: _MaxBuiltinFloatType is not properly defined" , ())
2908
- ERROR(integer_literal_overflows_maxwidth, none,
2909
- " integer literal needs %1 bits, exceeding limit of %0 bits" ,
2910
- (unsigned , unsigned ))
2911
2890
2912
2891
ERROR(no_member_of_module,none,
2913
2892
" module %0 has no member named %1" , (Identifier, DeclName))
@@ -3078,8 +3057,6 @@ ERROR(missing_protocol,none,
3078
3057
" missing protocol %0" , (Identifier))
3079
3058
ERROR(nil_literal_broken_proto,none,
3080
3059
" protocol 'ExpressibleByNilLiteral' is broken" , ())
3081
- ERROR(array_protocol_broken,none,
3082
- " protocol 'ExpressibleByArrayLiteral' is broken" , ())
3083
3060
ERROR(builtin_integer_literal_broken_proto,none,
3084
3061
" protocol '_ExpressibleByBuiltinIntegerLiteral' is broken" , ())
3085
3062
ERROR(integer_literal_broken_proto,none,
@@ -3120,8 +3097,6 @@ ERROR(should_use_empty_dictionary_literal,none,
3120
3097
" use [:] to get an empty dictionary literal" , ())
3121
3098
3122
3099
// Dictionary literals
3123
- ERROR(dictionary_protocol_broken,none,
3124
- " ExpressibleByDictionaryLiteral protocol definition is broken" , ())
3125
3100
ERROR(type_is_not_dictionary,none,
3126
3101
" contextual type %0 cannot be used with dictionary literal" , (Type))
3127
3102
@@ -3432,12 +3407,6 @@ ERROR(assignment_let_property_delegating_init,none,
3432
3407
" 'let' property %0 may not be initialized directly; use "
3433
3408
" \" self.init(...)\" or \" self = ...\" instead" , (DeclName))
3434
3409
3435
- // ForEach Stmt
3436
- ERROR(sequence_protocol_broken,none,
3437
- " SequenceType protocol definition is broken" , ())
3438
- ERROR(iterator_protocol_broken,none,
3439
- " IteratorProtocol protocol definition is broken" , ())
3440
-
3441
3410
ERROR(label_shadowed, none,
3442
3411
" label %0 cannot be reused on an inner statement" , (Identifier))
3443
3412
ERROR(break_outside_loop,none,
@@ -3571,9 +3540,6 @@ ERROR(closure_tuple_parameter_destructuring,none,
3571
3540
ERROR(closure_tuple_parameter_destructuring_implicit,none,
3572
3541
" closure tuple parameter %0 does not support destructuring "
3573
3542
" with implicit parameters" , (Type))
3574
- ERROR(nested_tuple_parameter_destructuring,none,
3575
- " nested tuple parameter %0 of function %1 "
3576
- " does not support destructuring" , (Type, Type))
3577
3543
ERROR(single_tuple_parameter_mismatch_special,none,
3578
3544
" %0 expects a single parameter of type %1%2" ,
3579
3545
(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