[Sema] Upgrade tuple shuffle warning to error in future lang mode

This has been deprecated for a while now, flip it to an error for a
future language mode.
This commit is contained in:
Hamish Knight
2025-10-29 15:14:23 +00:00
parent 24347812f5
commit 00d8774032
9 changed files with 45 additions and 20 deletions

View File

@@ -7833,8 +7833,13 @@ ERROR(result_builder_buildpartialblock_accumulated_not_accessible,none,
// MARK: Tuple Shuffle Diagnostics
//------------------------------------------------------------------------------
ERROR(reordering_tuple_shuffle,none,
"cannot implicitly reorder tuple elements from '%0' to '%1'",
(StringRef, StringRef))
WARNING(warn_reordering_tuple_shuffle_deprecated,Deprecation,
"implicit reordering of tuple elements from '%0' to '%1' is deprecated",
"implicit reordering of tuple elements from '%0' to '%1' is deprecated"
"; this will be an error in a future Swift language mode",
(StringRef, StringRef))
//------------------------------------------------------------------------------