@@ -1174,6 +1174,12 @@ ERROR(extra_trailing_closure_in_call,none,
1174
1174
ERROR(trailing_closure_bad_param,none,
1175
1175
" trailing closure passed to parameter of type %0 that does not "
1176
1176
" accept a closure" , (Type))
1177
+ WARNING(unlabeled_trailing_closure_deprecated,none,
1178
+ " backward matching of the unlabeled trailing closure is deprecated; label the argument with %0 to suppress this warning" ,
1179
+ (Identifier))
1180
+ NOTE(decl_multiple_defaulted_closure_parameters,none,
1181
+ " %0 contains defaulted closure parameters %1 and %2" ,
1182
+ (DeclName, Identifier, Identifier))
1177
1183
NOTE(candidate_with_extraneous_args,none,
1178
1184
" candidate %0 requires %1 argument%s1, "
1179
1185
" but %2 %select{were|was}3 %select{provided|used in closure body}4" ,
@@ -2678,6 +2684,12 @@ ERROR(decl_from_hidden_module,none,
2678
2684
" %select{%3 has been imported as implementation-only|"
2679
2685
" it is an SPI imported from %3}4" ,
2680
2686
(DescriptiveDeclKind, DeclName, unsigned , Identifier, unsigned ))
2687
+ WARNING(decl_from_hidden_module_warn,none,
2688
+ " cannot use %0 %1 %select{in SPI|as property wrapper in SPI|"
2689
+ " in an extension with public or '@usableFromInline' members|"
2690
+ " in an extension with conditional conformances}2; "
2691
+ " %select{%3 has been imported as implementation-only}4" ,
2692
+ (DescriptiveDeclKind, DeclName, unsigned , Identifier, unsigned ))
2681
2693
ERROR(conformance_from_implementation_only_module,none,
2682
2694
" cannot use conformance of %0 to %1 %select{here|as property wrapper here|"
2683
2695
" in an extension with public or '@usableFromInline' members|"
0 commit comments