@@ -120,11 +120,6 @@ ERROR(expected_result_in_contextual_member,none,
120
120
ERROR(unexpected_arguments_in_enum_case,none,
121
121
" enum case %0 has no associated values" , (DeclName))
122
122
123
- ERROR(could_not_use_value_member,none,
124
- " member %1 cannot be used on value of type %0" , (Type, DeclNameRef))
125
- ERROR(could_not_use_type_member,none,
126
- " member %1 cannot be used on type %0" , (Type, DeclNameRef))
127
-
128
123
ERROR(could_not_use_type_member_on_instance,none,
129
124
" static member %1 cannot be used on instance of type %0" ,
130
125
(Type, DeclNameRef))
@@ -224,10 +219,6 @@ ERROR(cannot_apply_lvalue_binop_to_subelement,none,
224
219
ERROR(cannot_apply_lvalue_binop_to_rvalue,none,
225
220
" left side of mutating operator has immutable type %0" , (Type))
226
221
227
- ERROR(cannot_subscript_with_index,none,
228
- " cannot subscript a value of type %0 with an argument of type %1" ,
229
- (Type, Type))
230
-
231
222
ERROR(cannot_subscript_base,none,
232
223
" cannot subscript a value of type %0" ,
233
224
(Type))
@@ -255,10 +246,6 @@ ERROR(cannot_pass_rvalue_inout,none,
255
246
ERROR(cannot_provide_default_value_inout,none,
256
247
" cannot provide default value to inout parameter %0" , (Identifier))
257
248
258
- ERROR(cannot_call_with_no_params,none,
259
- " cannot invoke %select{|initializer for type }1'%0' with no arguments" ,
260
- (StringRef, bool ))
261
-
262
249
ERROR(cannot_call_with_params, none,
263
250
" cannot invoke %select{|initializer for type }2'%0' with an argument list"
264
251
" of type '%1'" , (StringRef, StringRef, bool ))
@@ -270,14 +257,6 @@ ERROR(no_candidates_match_result_type,none,
270
257
" no '%0' candidates produce the expected contextual result type %1" ,
271
258
(StringRef, Type))
272
259
273
-
274
- ERROR(cannot_invoke_closure,none,
275
- " cannot invoke closure expression with an argument list of type '%0'" ,
276
- (StringRef))
277
- ERROR(cannot_invoke_closure_type,none,
278
- " cannot invoke closure of type %0 with an argument list of type '%1'" ,
279
- (Type, StringRef))
280
-
281
260
ERROR(cannot_infer_closure_type,none,
282
261
" unable to infer closure type in the current context" , ())
283
262
ERROR(cannot_infer_closure_result_type,none,
@@ -291,13 +270,6 @@ ERROR(incorrect_explicit_closure_result,none,
291
270
" declared closure result %0 is incompatible with contextual type %1" ,
292
271
(Type, Type))
293
272
294
- ERROR(cannot_call_function_value,none,
295
- " cannot invoke value of function type with argument list '%0'" ,
296
- (StringRef))
297
- ERROR(cannot_call_value_of_function_type,none,
298
- " cannot invoke value of type %0 with argument list '%1'" ,
299
- (Type, StringRef))
300
-
301
273
NOTE(suggest_expected_match,none,
302
274
" %select{expected an argument list|produces result}0 of type '%1'" ,
303
275
(bool , StringRef))
@@ -943,16 +915,6 @@ NOTE(circular_reference_through_precedence_group, none,
943
915
// ------------------------------------------------------------------------------
944
916
// MARK: Expression Type Checking Errors
945
917
// ------------------------------------------------------------------------------
946
- ERROR(types_not_convertible,none,
947
- " %1 is not %select{convertible to|a subtype of}0 %2" ,
948
- (bool , Type, Type))
949
- NOTE(in_cast_expr_types,none,
950
- " in cast from type %0 to %1" ,
951
- (Type, Type))
952
-
953
- ERROR(types_not_convertible_use_bool_value,none,
954
- " %0 is not convertible to %1; did you mean %0.boolValue?" , (Type, Type))
955
-
956
918
ERROR(tuple_types_not_convertible_nelts,none,
957
919
" %0 is not convertible to %1, "
958
920
" tuples have a different number of elements" , (Type, Type))
@@ -3226,18 +3188,12 @@ ERROR(unresolved_member_no_inference,none,
3226
3188
(DeclNameRef))
3227
3189
ERROR(cannot_infer_base_of_unresolved_member,none,
3228
3190
" cannot infer contextual base in reference to member %0" , (DeclNameRef))
3229
- ERROR(unresolved_collection_literal,none,
3230
- " cannot infer type for empty collection literal without a "
3231
- " contextual type" , ())
3232
3191
ERROR(unresolved_nil_literal,none,
3233
3192
" 'nil' requires a contextual type" , ())
3234
3193
3235
3194
ERROR(type_of_expression_is_ambiguous,none,
3236
3195
" type of expression is ambiguous without more context" , ())
3237
3196
3238
- ERROR(specific_type_of_expression_is_ambiguous,none,
3239
- " expression type %0 is ambiguous without more context" , (Type))
3240
-
3241
3197
ERROR(failed_to_produce_diagnostic,Fatal,
3242
3198
" failed to produce diagnostic for expression; "
3243
3199
" please file a bug report" , ())
@@ -3515,9 +3471,6 @@ ERROR(general_noescape_to_escaping,none,
3515
3471
ERROR(converting_noescape_to_type,none,
3516
3472
" converting non-escaping value to %0 may allow it to escape" ,
3517
3473
(Type))
3518
- ERROR(unknown_escaping_use_of_noescape,none,
3519
- " using non-escaping value in a context where it may escape" ,
3520
- ())
3521
3474
3522
3475
ERROR(capture_across_type_decl,none,
3523
3476
" %0 declaration cannot close over value %1 defined in outer scope" ,
@@ -3746,8 +3699,6 @@ ERROR(single_tuple_parameter_mismatch_special,none,
3746
3699
ERROR(single_tuple_parameter_mismatch_normal,none,
3747
3700
" %0 %1 expects a single parameter of type %2%3" ,
3748
3701
(DescriptiveDeclKind, DeclBaseName, Type, StringRef))
3749
- ERROR(unknown_single_tuple_parameter_mismatch,none,
3750
- " single parameter of type %0 is expected in call" , (Type))
3751
3702
ERROR(cannot_convert_single_tuple_into_multiple_arguments,none,
3752
3703
" %0 %select{%1 |}2expects %3 separate arguments"
3753
3704
" %select{|; remove extra parentheses to change tuple into separate arguments}4" ,
0 commit comments