Skip to content

Clean up warnings in library module#9235

Merged
diesalbla merged 4 commits intoscala:2.13.xfrom
NthPortal:topic/warnings-cleanup/PR
Oct 16, 2020
Merged

Clean up warnings in library module#9235
diesalbla merged 4 commits intoscala:2.13.xfrom
NthPortal:topic/warnings-cleanup/PR

Conversation

@NthPortal
Copy link
Contributor

Inspired by #8998

@NthPortal NthPortal added the internal not resulting in user-visible changes (build changes, tests, internal cleanups) label Oct 9, 2020
@scala-jenkins scala-jenkins added this to the 2.13.4 milestone Oct 9, 2020
@NthPortal
Copy link
Contributor Author

NthPortal commented Oct 9, 2020

I'm going to need to faff about with the ordering of the last 3 commits (and possibly squash 2 together) in order to get a clean history, I imagine

Edit: oh look, I ended up needing to do that

@som-snytt
Copy link
Contributor

This is the one Seth was looking forward to finishing up over a cold one? What a nice guy. He's probably off bumping an sbt version somewhere instead.

@NthPortal
Copy link
Contributor Author

I'm a fork/join pool, and I steal work ;)

@NthPortal NthPortal force-pushed the topic/warnings-cleanup/PR branch 2 times, most recently from b5c2539 to 1d68315 Compare October 9, 2020 04:28
@NthPortal NthPortal force-pushed the topic/warnings-cleanup/PR branch from 1d68315 to 06a6d71 Compare October 9, 2020 08:10
@NthPortal NthPortal force-pushed the topic/warnings-cleanup/PR branch from 96c6f46 to 8ad9aa8 Compare October 15, 2020 08:52
@NthPortal
Copy link
Contributor Author

new error needs fixing/suppressing due to #8120

@NthPortal
Copy link
Contributor Author

Fix blocked by #9247 (or similar)

Enable deprecation warnings for library module build
and fix or suppress all deprecations in the library module.
Enable feature warnings for library module build
and import feature flags where required in the library module.
Remove remaining -Xlint exclusions from library build
and suppress locations where -Xlint raised warnings.
Add `fatalWarnings` boolean setting key to sbt build
that adds the -Werror compile option to select modules.

Enable `fatalWarnings` setting for library module build.

Do not enable -Werror for the doc task.
@NthPortal NthPortal force-pushed the topic/warnings-cleanup/PR branch from 5f2cb87 to 9c1da15 Compare October 16, 2020 05:14
Copy link
Member

@SethTisue SethTisue left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@diesalbla diesalbla merged commit 9a369cb into scala:2.13.x Oct 16, 2020
@NthPortal NthPortal deleted the topic/warnings-cleanup/PR branch October 17, 2020 12:57
Comment on lines -380 to +381
) extends DefaultPromise[T]() with Callbacks[F] with Runnable with Batchable with OnCompleteRunnable {
final def this(xform: Int, f: _ => _, ec: ExecutionContext) = this(f.asInstanceOf[Any => Any], ec.prepare(), null, xform)
) extends DefaultPromise[T]() with Callbacks[F] with Runnable with Batchable {
final def this(xform: Int, f: _ => _, ec: ExecutionContext) =
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm concerned about how closely this is holding the standard library to implementation details

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not, IMO. It's on Akka for relying on it.

hamzaremmal pushed a commit to hamzaremmal/scala3 that referenced this pull request May 2, 2025
…anup/PR

Clean up warnings in library module
hamzaremmal pushed a commit to scala/scala3 that referenced this pull request May 7, 2025
…anup/PR

Clean up warnings in library module
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

internal not resulting in user-visible changes (build changes, tests, internal cleanups)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants