@@ -728,6 +728,10 @@ ERROR(module_interface_build_failed,Fatal,
728
728
" the textual interface may be broken by project issues"
729
729
" %select{, differences between compilers (the producer '%3' and this compiler '%4')|}2 or a compiler bug" ,
730
730
(bool , StringRef, bool , StringRef, StringRef))
731
+ ERROR(module_interface_build_failed_mismatching_compiler,Fatal,
732
+ " failed to build module '%0'; this SDK is not supported by the compiler "
733
+ " (the SDK is built with '%1', while this compiler is '%2'). Please select a toolchain which matches the SDK." ,
734
+ (StringRef, StringRef, StringRef))
731
735
ERROR(serialization_malformed_module,Fatal,
732
736
" malformed compiled module: %0" , (StringRef))
733
737
ERROR(serialization_module_too_new,Fatal,
@@ -2605,12 +2609,8 @@ ERROR(override_dynamic_self_mismatch,none,
2605
2609
ERROR(override_class_declaration_in_extension,none,
2606
2610
" cannot override a non-dynamic class declaration from an extension" ,
2607
2611
())
2608
- ERROR(override_throws,none,
2609
- " cannot override non-throwing %select{method|initializer}0 with "
2610
- " throwing %select{method|initializer}0" , (bool ))
2611
- // TODO: this really could be merged with the above.
2612
2612
ERROR(override_with_more_effects,none,
2613
- " cannot override non-'%1' %0 with '%1' %0" ,
2613
+ " cannot override non-%1 %0 with %1 %0" ,
2614
2614
(DescriptiveDeclKind, StringRef))
2615
2615
ERROR(override_throws_objc,none,
2616
2616
" overriding a throwing @objc %select{method|initializer}0 with "
@@ -3903,6 +3903,11 @@ ERROR(return_init_non_nil,none,
3903
3903
" 'nil' is the only return value permitted in an initializer" ,
3904
3904
())
3905
3905
3906
+ ERROR(implicit_async_super_init,none,
3907
+ " missing call to superclass's initializer; "
3908
+ " 'super.init' is 'async' and requires an explicit call" ,
3909
+ ())
3910
+
3906
3911
WARNING(if_always_true,none,
3907
3912
" 'if' condition is always true" , ())
3908
3913
WARNING(while_always_true,none,
@@ -4285,7 +4290,7 @@ NOTE(note_add_globalactor_to_function,none,
4285
4290
(StringRef, DescriptiveDeclKind, DeclName, Type))
4286
4291
FIXIT(insert_globalactor_attr, " @%0 " , (Type))
4287
4292
ERROR(not_objc_function_async,none,
4288
- " 'async' function cannot be represented in Objective-C" , ())
4293
+ " 'async' %0 cannot be represented in Objective-C" , (DescriptiveDeclKind ))
4289
4294
NOTE(not_objc_function_type_async,none,
4290
4295
" 'async' function types cannot be represented in Objective-C" , ())
4291
4296
ERROR(actor_isolated_objc,none,
0 commit comments