-
Notifications
You must be signed in to change notification settings - Fork 87
Update 2.12's scala.annotation.nowarn once 2.12.13 is out #397
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
Comments
are you sure things would break? even if
picks up the classfile from collection-compat, things could still work. Ah, the problem is that the one here |
@lrytz want to do one more round of thinking about this now that 2.12.13 is out...? I'm happy to pull publishing levers as needed once we're sure what the right thing is. |
Maybe we can find some workaround by making Another option is to add this patch to the compiler, it would make the 2.12 nowarn implementation work with the annotation from this library (which Another option is to change the annotation in this library to |
Is there some downside to that? |
I can't think of any issues that change would cause. |
is that binary compatible? |
technically no, but it shouldn't matter since it's an annotation. at least, I cannot contrive a situation in which it matters, and in a similar situation over at scala/scala#9336 (comment) , @lrytz wrote:
|
fyi @ghik (not sure if it matters over in your repo) |
See scala/scala-lang#1184 (comment)
2.12.13 is coming out imminently (today?). Once it's out, probably best when bumping to 2.12.13, it would be good to move that noop to 2.11 only.
But two scenarios to think about:
users that upgrade
scalaVersion
but notscala-collection-compat
(or if we don't implement this change): it's unclear what classfile for@nowarn
they'll class load, which could break the configurable warning featureusers that upgrade
scala-collection-compat
(with this implemented) but notscalaVersion
: won't have a@nowarn
in they're classpath any more... 😕 🤔 ...The text was updated successfully, but these errors were encountered: