@@ -5859,8 +5859,8 @@ ERROR(expansion_not_allowed,none,
5859
5859
" pack expansion %0 can only appear in a function parameter list, "
5860
5860
" tuple element, or generic argument of a variadic type" , (Type))
5861
5861
ERROR(expansion_expr_not_allowed,none,
5862
- " value pack expansion can only appear inside a function argument list "
5863
- " or tuple element" , ())
5862
+ " value pack expansion can only appear inside a function argument list, "
5863
+ " tuple element, or as the expression of a for-in loop " , ())
5864
5864
ERROR(invalid_expansion_argument,none,
5865
5865
" cannot pass value pack expansion to non-pack parameter of type %0" ,
5866
5866
(Type))
@@ -7730,5 +7730,12 @@ ERROR(referencebindings_binding_must_be_to_lvalue,none,
7730
7730
ERROR(result_depends_on_no_result,none,
7731
7731
" Incorrect use of %0 with no result" , (StringRef))
7732
7732
7733
+ // ------------------------------------------------------------------------------
7734
+ // MARK: Pack Iteration Diagnostics
7735
+ // ------------------------------------------------------------------------------
7736
+
7737
+ ERROR(pack_iteration_where_clause_not_supported, none,
7738
+ " 'where' clause in pack iteration is not supported" , ())
7739
+
7733
7740
#define UNDEFINE_DIAGNOSTIC_MACROS
7734
7741
#include " DefineDiagnosticMacros.h"
0 commit comments