@@ -2301,32 +2301,32 @@ ERROR(pattern_type_not_usable_from_inline,none,
2301
2301
" type referenced from a '@usableFromInline' "
2302
2302
" %select{%select{variable|constant}0|property}1 "
2303
2303
" must be '@usableFromInline' or public" ,
2304
- (bool , bool , /* ignored */ bool ))
2304
+ (bool , bool ))
2305
2305
WARNING(pattern_type_not_usable_from_inline_warn,none,
2306
2306
" type referenced from a '@usableFromInline' "
2307
2307
" %select{%select{variable|constant}0|property}1 "
2308
2308
" should be '@usableFromInline' or public" ,
2309
- (bool , bool , /* ignored */ bool ))
2309
+ (bool , bool ))
2310
2310
ERROR(pattern_type_not_usable_from_inline_frozen,none,
2311
- " type referenced from a stored property in a '@frozen%select{| package}2 ' struct must "
2312
- " be '@usableFromInline'%select{ or public|, public, or package}2 " ,
2313
- (/* ignored*/ bool , /* ignored*/ bool , bool ))
2311
+ " type referenced from a stored property in a '@frozen' struct must "
2312
+ " be '@usableFromInline' or public" ,
2313
+ (/* ignored*/ bool , /* ignored*/ bool ))
2314
2314
ERROR(pattern_type_not_usable_from_inline_inferred,none,
2315
2315
" type referenced from a '@usableFromInline' "
2316
2316
" %select{%select{variable|constant}0|property}1 "
2317
2317
" with inferred type %2 "
2318
2318
" must be '@usableFromInline' or public" ,
2319
- (bool , bool , Type, /* ignored */ bool ))
2319
+ (bool , bool , Type))
2320
2320
WARNING(pattern_type_not_usable_from_inline_inferred_warn,none,
2321
2321
" type referenced from a '@usableFromInline' "
2322
2322
" %select{%select{variable|constant}0|property}1 "
2323
2323
" with inferred type %2 "
2324
2324
" should be '@usableFromInline' or public" ,
2325
- (bool , bool , Type, /* ignored */ bool ))
2325
+ (bool , bool , Type))
2326
2326
ERROR(pattern_type_not_usable_from_inline_inferred_frozen,none,
2327
2327
" type referenced from a stored property with inferred type %2 in a "
2328
- " '@frozen%select{| package}3 ' struct must be '@usableFromInline'%select{ or public|, public, or package}3 " ,
2329
- (/* ignored*/ bool , /* ignored*/ bool , Type, bool ))
2328
+ " '@frozen' struct must be '@usableFromInline' or public" ,
2329
+ (/* ignored*/ bool , /* ignored*/ bool , Type))
2330
2330
2331
2331
ERROR(pattern_binds_no_variables,none,
2332
2332
" %select{property|global variable}0 declaration does not bind any "
@@ -3648,35 +3648,28 @@ ERROR(decl_from_hidden_module,none,
3648
3648
" cannot use %kind0 %select{here|as property wrapper here|"
3649
3649
" as result builder here|"
3650
3650
" in an extension with public or '@usableFromInline' members|"
3651
- " in an extension with conditional conformances|"
3652
- " in an extension with public, package, or '@usableFromInline' members|"
3653
3651
" in an extension with conditional conformances}1; "
3654
3652
" %select{%2 has been imported as implementation-only|"
3655
3653
" it is an SPI imported from %2|"
3656
3654
" it is SPI|"
3657
3655
" %2 was imported for SPI only|"
3658
3656
" %2 was not imported by this file|"
3659
3657
" C++ types from imported module %2 do not support library evolution|"
3660
- " %2 was not imported publicly|"
3661
- " %2 was imported as package}3"
3662
- " %select{||||| or as package| or as package}1" ,
3658
+ " %2 was not imported publicly}3" ,
3663
3659
(const Decl *, unsigned , Identifier, unsigned ))
3664
3660
ERROR(typealias_desugars_to_type_from_hidden_module,none,
3665
3661
" %0 aliases '%1.%2' and cannot be used %select{here|"
3666
3662
" as property wrapper here|"
3667
3663
" as result builder here|"
3668
3664
" in an extension with public or '@usableFromInline' members|"
3669
- " in an extension with conditional conformances|"
3670
- " in an extension with public, package, or '@usableFromInline' members|"
3671
3665
" in an extension with conditional conformances}3 "
3672
3666
" because %select{%4 has been imported as implementation-only|"
3673
3667
" it is an SPI imported from %4|"
3674
3668
" <<ERROR>>|"
3675
3669
" %4 was imported for SPI only|"
3676
3670
" %4 was not imported by this file|"
3677
3671
" C++ types from imported module %4 do not support library evolution|"
3678
- " %4 was not imported publicly|"
3679
- " %4 was imported as package}5" ,
3672
+ " %4 was not imported publicly}5" ,
3680
3673
(const TypeAliasDecl *, StringRef, StringRef, unsigned , Identifier, unsigned ))
3681
3674
ERROR(conformance_from_implementation_only_module,none,
3682
3675
" cannot use conformance of %0 to %1 %select{here|as property wrapper here|"
@@ -3689,8 +3682,7 @@ ERROR(conformance_from_implementation_only_module,none,
3689
3682
" %3 was imported for SPI only|"
3690
3683
" %3 was not imported by this file|"
3691
3684
" C++ types from imported module %3 do not support library evolution|"
3692
- " %3 was not imported publicly|"
3693
- " %3 was imported as package}4" ,
3685
+ " %3 was not imported publicly}4" ,
3694
3686
(Type, Identifier, unsigned , Identifier, unsigned ))
3695
3687
NOTE(assoc_conformance_from_implementation_only_module,none,
3696
3688
" in associated type %0 (inferred as %1)" , (Type, Type))
@@ -6928,8 +6920,7 @@ ERROR(inlinable_decl_ref_from_hidden_module,
6928
6920
" %2 was imported for SPI only|"
6929
6921
" %2 was not imported by this file|"
6930
6922
" C++ APIs from imported module %2 do not support library evolution|"
6931
- " %2 was not imported publicly|"
6932
- " %2 was imported as package}3" ,
6923
+ " %2 was not imported publicly}3" ,
6933
6924
(const ValueDecl *, unsigned , Identifier, unsigned ))
6934
6925
6935
6926
WARNING(inlinable_decl_ref_from_hidden_module_warn,
@@ -6947,8 +6938,7 @@ ERROR(inlinable_typealias_desugars_to_type_from_hidden_module,
6947
6938
" %4 was imported for SPI only|"
6948
6939
" %4 was not imported by this file|"
6949
6940
" C++ types from imported module %4 do not support library evolution|"
6950
- " %4 was not imported publicly|"
6951
- " %4 was imported as package}5" ,
6941
+ " %4 was not imported publicly}5" ,
6952
6942
(const TypeAliasDecl *, StringRef, StringRef, unsigned , Identifier, unsigned ))
6953
6943
6954
6944
NOTE(missing_import_inserted,
@@ -6962,8 +6952,8 @@ ERROR(availability_macro_in_inlinable, none,
6962
6952
#undef FRAGILE_FUNC_KIND
6963
6953
6964
6954
NOTE (resilience_decl_declared_here,
6965
- none, " %kind0 is not '@usableFromInline'%select{ or public|, public, or package}1 " ,
6966
- (const ValueDecl *, bool ))
6955
+ none, " %kind0 is not '@usableFromInline' or public" ,
6956
+ (const ValueDecl *))
6967
6957
6968
6958
ERROR(class_designated_init_inlinable_resilient,none,
6969
6959
" initializer for class %0 is "
0 commit comments