[Diag] Reword the tuple shuffle diagnostic

"reorder" seems a bit less jargony than "shuffle", and include the 
labels that are being reordered.
This commit is contained in:
Hamish Knight
2025-10-29 15:14:23 +00:00
parent 6510eb024a
commit 24347812f5
9 changed files with 42 additions and 21 deletions

View File

@@ -7833,9 +7833,9 @@ ERROR(result_builder_buildpartialblock_accumulated_not_accessible,none,
// MARK: Tuple Shuffle Diagnostics
//------------------------------------------------------------------------------
WARNING(warn_reordering_tuple_shuffle_deprecated,Deprecation,
"expression shuffles the elements of this tuple; "
"this behavior is deprecated", ())
WARNING(warn_reordering_tuple_shuffle_deprecated,Deprecation,
"implicit reordering of tuple elements from '%0' to '%1' is deprecated",
(StringRef, StringRef))
//------------------------------------------------------------------------------
// MARK: Implicit conversion diagnostics