@@ -2533,6 +2533,11 @@ WARNING(associated_type_override_typealias,none,
2533
2533
" associated type %0 is redundant with type %0 declared in inherited "
2534
2534
" %1 %2" , (Identifier, DescriptiveDeclKind, Type))
2535
2535
2536
+ ERROR(requirement_machine_completion_failed,none,
2537
+ " cannot build rewrite system for %select{generic signature|protocol}0; "
2538
+ " %select{step|depth}1 limit exceeded" ,
2539
+ (unsigned , unsigned ))
2540
+
2536
2541
ERROR(associated_type_objc,none,
2537
2542
" associated type %0 cannot be declared inside '@objc' protocol %1" ,
2538
2543
(Identifier, Identifier))
@@ -3668,9 +3673,6 @@ ERROR(builtin_string_literal_broken_proto,none,
3668
3673
ERROR(string_literal_broken_proto,none,
3669
3674
" protocol 'ExpressibleByStringLiteral' is broken" , ())
3670
3675
3671
- ERROR(regex_decl_broken,none,
3672
- " cannot find 'Regex' type in scope" , ())
3673
-
3674
3676
// Array literals
3675
3677
ERROR(should_use_dictionary_literal,none,
3676
3678
" dictionary of type %0 cannot be %select{used|initialized}1 "
@@ -4618,6 +4620,19 @@ ERROR(unchecked_not_inheritance_clause,none,
4618
4620
ERROR(unchecked_not_existential,none,
4619
4621
" 'unchecked' attribute cannot apply to non-protocol type %0" , (Type))
4620
4622
4623
+ WARNING(unnecessary_any,none,
4624
+ " 'any' is redundant on type %0" , (Type))
4625
+ ERROR(any_not_existential,none,
4626
+ " 'any' has no effect on %select{concrete type|type parameter}0 %1" ,
4627
+ (bool , Type))
4628
+ ERROR(existential_requires_any,none,
4629
+ " protocol %0 as a type must be explicitly marked as 'any'" ,
4630
+ (Identifier))
4631
+ ERROR(explicit_existential_not_supported,none,
4632
+ " explicit 'any' not supported; use frontend flag "
4633
+ " -enable-explicit-existential-types to enable this feature" ,
4634
+ ())
4635
+
4621
4636
ERROR(nonisolated_let,none,
4622
4637
" 'nonisolated' is meaningless on 'let' declarations because "
4623
4638
" they are immutable" ,
@@ -4722,6 +4737,14 @@ ERROR(async_unavailable_decl,none,
4722
4737
" %0 %1 is unavailable from asynchronous contexts%select{|; %3}2" ,
4723
4738
(DescriptiveDeclKind, DeclBaseName, bool , StringRef))
4724
4739
4740
+ // ------------------------------------------------------------------------------
4741
+ // MARK: String Processing
4742
+ // ------------------------------------------------------------------------------
4743
+
4744
+ ERROR(string_processing_lib_missing,none,
4745
+ " missing '%0' declaration, probably because the '_StringProcessing' "
4746
+ " module was not imported properly" , (StringRef))
4747
+
4725
4748
// ------------------------------------------------------------------------------
4726
4749
// MARK: Type Check Types
4727
4750
// ------------------------------------------------------------------------------
0 commit comments