-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
remove "-Xmigration"
from main scalacOptions. add explicit type
#12029
Conversation
7cc249c
to
9408ca8
Compare
9408ca8
to
8c1d453
Compare
@xuwei-k can you please rebase? Thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks LGTM!
However, I pushed two commits:
- First I removed the MiMa filter you added because it is not necessary (anymore?)
- I also removed the
-Wconf...
flags you added, because also they are not necessary anymore because Scala 2.13.13 fixed the errors, see- Drop package objects with inheritance scala/scala-dev#441 (comment)
- Package object extends deprecated under -Xsource:3 not dotty scala/bug#12886
- Allow either
-Xsource:3
(for preparing to switch to 3) or-Xsource:3-cross
(for crossbuilding on 2 and 3) scala/scala#10573 <-- This PR removes thepackage object inheritance is deprecated
errors/warnings
case _ => | ||
Seq.empty | ||
} | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The -Xmigration
flag for the test scope eventually got removed in
I adjusted all the test finally (necessary for upgrading to Scala 2.13.14 without adding any Wconf
filters, see #12576 (comment))
Backported this changes (together with removing |
Pull Request Checklist
Helpful things
Fixes
Purpose
remove
"-Xmigration"
from main code and add explicit types. for avoid different return types Scala 2 and 3.Background Context
"-Xmigration"
suppress some warnings. But I think this is not good idea.please see following example and
scala/scala
pull request.-Xsource:3
as fatal warnings, not errors;-Xmigration
turns off erroring scala/scala#10439Scala 3
no option
-Xsource:3
-Xsource:3
and-Xmigration
References