@@ -5859,8 +5859,8 @@ ERROR(expansion_not_allowed,none,
58595859 " pack expansion %0 can only appear in a function parameter list, "
58605860 " tuple element, or generic argument of a variadic type" , (Type))
58615861ERROR(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 " , ())
58645864ERROR(invalid_expansion_argument,none,
58655865 " cannot pass value pack expansion to non-pack parameter of type %0" ,
58665866 (Type))
@@ -7730,5 +7730,12 @@ ERROR(referencebindings_binding_must_be_to_lvalue,none,
77307730ERROR(result_depends_on_no_result,none,
77317731 " Incorrect use of %0 with no result" , (StringRef))
77327732
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+
77337740#define UNDEFINE_DIAGNOSTIC_MACROS
77347741#include " DefineDiagnosticMacros.h"
0 commit comments