Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only replace *new* errors by warnings under -migration #21289

Merged
merged 1 commit into from
Jul 31, 2024

Conversation

EugeneFlesselle
Copy link
Contributor

This makes errorOrMigrationWarning monotonic from the sourceVersion onto ok < warn < error

For example, ForComprehensionPatternWithoutCase:

  • became an error in 3.4,
  • was hence a warning in 3.4-migration,
  • but it should still be an error in 3.5-migration.

This makes `errorOrMigrationWarning` monotonic
from the sourceVersion onto ok < warn < error

For example, ForComprehensionPatternWithoutCase:
- became an error in 3.4,
- was hence a warning in 3.4-migration,
- but it should still be an error in 3.5-migration.
@EugeneFlesselle EugeneFlesselle marked this pull request as ready for review July 29, 2024 18:35
@EugeneFlesselle EugeneFlesselle merged commit 0000d23 into scala:main Jul 31, 2024
28 checks passed
@EugeneFlesselle EugeneFlesselle deleted the migration-warn branch July 31, 2024 16:22
@WojciechMazur WojciechMazur added this to the 3.6.0 milestone Oct 8, 2024
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.

4 participants