@@ -2903,14 +2903,17 @@ ERROR(decl_from_hidden_module,none,
29032903 " in an extension with conditional conformances}2; "
29042904 " %select{%3 has been imported as implementation-only|"
29052905 " it is an SPI imported from %3|"
2906- " it is SPI}4" ,
2906+ " it is SPI|"
2907+ " %3 was not imported by this file}4" ,
29072908 (DescriptiveDeclKind, DeclName, unsigned , Identifier, unsigned ))
29082909WARNING(decl_from_hidden_module_warn,none,
2909- " cannot use %0 %1 %select{in SPI |as property wrapper in SPI |"
2910- " as result builder in SPI |"
2910+ " cannot use %0 %1 %select{here |as property wrapper here |"
2911+ " as result builder here |"
29112912 " in an extension with public or '@usableFromInline' members|"
29122913 " in an extension with conditional conformances}2; "
2913- " %select{%3 has been imported as implementation-only}4" ,
2914+ " %select{%3 has been imported as implementation-only|"
2915+ " <<ERROR>>|<<ERROR>>|"
2916+ " %3 was not imported by this file}4" ,
29142917 (DescriptiveDeclKind, DeclName, unsigned , Identifier, unsigned ))
29152918ERROR(conformance_from_implementation_only_module,none,
29162919 " cannot use conformance of %0 to %1 %select{here|as property wrapper here|"
@@ -5784,7 +5787,15 @@ ERROR(inlinable_decl_ref_from_hidden_module,
57845787 none, " %0 %1 cannot be used in " FRAGILE_FUNC_KIND " 2 "
57855788 " because %select{%3 was imported implementation-only|"
57865789 " it is an SPI imported from %3|"
5787- " it is SPI}4" ,
5790+ " it is SPI|"
5791+ " %3 was not imported by this file}4" ,
5792+ (DescriptiveDeclKind, DeclName, unsigned , Identifier, unsigned ))
5793+
5794+ WARNING(inlinable_decl_ref_from_hidden_module_warn,
5795+ none, " %0 %1 cannot be used in " FRAGILE_FUNC_KIND " 2 "
5796+ " because %select{<<ERROR>>|<<ERROR>>|<<ERROR>>|"
5797+ " %3 was not imported by this file}4"
5798+ " ; this is an error in Swift 6" ,
57885799 (DescriptiveDeclKind, DeclName, unsigned , Identifier, unsigned ))
57895800
57905801ERROR(availability_macro_in_inlinable, none,
0 commit comments