Skip to content

Conversation

@hamishknight
Copy link
Contributor

@hamishknight hamishknight commented Oct 29, 2025

I missed upgrading the tuple label mismatch warning to an error for Swift 6 mode, let's upgrade it to an error for a future language mode. It's important we reject these cases since we're otherwise allowing subtyping to be a weaker constraint than conversion. While here let's do the same for tuple shuffles, I also took the opportunity to improve the wording of the diagnostic a bit.

I missed upgrading this to an error for Swift 6 mode, let's upgrade it
to an error for a future language mode. It's important we reject these
cases since we're otherwise allowing subtyping to be a weaker constraint
than conversion.
"reorder" seems a bit less jargony than "shuffle", and include the 
labels that are being reordered.
This has been deprecated for a while now, flip it to an error for a
future language mode.
@hamishknight hamishknight changed the title [CS] Upgrade tuple label mismatch warning to error for future lang mode [CS] Upgrade a couple of tuple warnings to error for future lang mode Oct 29, 2025
@hamishknight
Copy link
Contributor Author

@swift-ci please test

@slavapestov
Copy link
Contributor

@swift-ci Please test source compatibility

@slavapestov
Copy link
Contributor

(Just in case :) )

@hamishknight hamishknight merged commit 6a7bf6f into swiftlang:main Oct 29, 2025
4 of 7 checks passed
@hamishknight hamishknight deleted the tuple-trouble branch October 30, 2025 08:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants