@@ -1174,6 +1174,12 @@ ERROR(extra_trailing_closure_in_call,none,
11741174ERROR(trailing_closure_bad_param,none,
11751175 " trailing closure passed to parameter of type %0 that does not "
11761176 " 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))
11771183NOTE(candidate_with_extraneous_args,none,
11781184 " candidate %0 requires %1 argument%s1, "
11791185 " but %2 %select{were|was}3 %select{provided|used in closure body}4" ,
@@ -2678,6 +2684,12 @@ ERROR(decl_from_hidden_module,none,
26782684 " %select{%3 has been imported as implementation-only|"
26792685 " it is an SPI imported from %3}4" ,
26802686 (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 ))
26812693ERROR(conformance_from_implementation_only_module,none,
26822694 " cannot use conformance of %0 to %1 %select{here|as property wrapper here|"
26832695 " in an extension with public or '@usableFromInline' members|"
0 commit comments