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

WIP: changes to community build projects to build with -Yflexible-types #18172

Draft
wants to merge 18 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion community-build/community-projects/cats
Submodule cats updated from 771c6c to 464582
2 changes: 1 addition & 1 deletion community-build/community-projects/cats-effect-3
Submodule cats-effect-3 updated 29 files
+6 −6 core/js/src/main/scala/cats/effect/IOApp.scala
+4 −4 core/js/src/main/scala/cats/effect/tracing/TracingPlatform.scala
+2 −2 core/js/src/main/scala/cats/effect/unsafe/FiberMonitor.scala
+2 −2 core/js/src/main/scala/cats/effect/unsafe/IORuntimeCompanionPlatform.scala
+3 −3 core/js/src/main/scala/cats/effect/unsafe/ref/Reference.scala
+1 −1 core/js/src/main/scala/cats/effect/unsafe/ref/ReferenceQueue.scala
+1 −1 core/js/src/main/scala/cats/effect/unsafe/ref/WeakReference.scala
+12 −10 core/jvm/src/main/scala/cats/effect/IOApp.scala
+5 −5 core/jvm/src/main/scala/cats/effect/IOCompanionPlatform.scala
+1 −1 core/jvm/src/main/scala/cats/effect/NonDaemonThreadLogger.scala
+1 −1 core/jvm/src/main/scala/cats/effect/tracing/TracingPlatform.scala
+52 −50 core/jvm/src/main/scala/cats/effect/unsafe/FiberMonitor.scala
+2 −2 core/jvm/src/main/scala/cats/effect/unsafe/IORuntimeCompanionPlatform.scala
+10 −10 core/jvm/src/main/scala/cats/effect/unsafe/LocalQueue.scala
+4 −4 core/jvm/src/main/scala/cats/effect/unsafe/WorkStealingThreadPool.scala
+33 −33 core/jvm/src/main/scala/cats/effect/unsafe/WorkerThread.scala
+12 −12 core/shared/src/main/scala/cats/effect/ArrayStack.scala
+1 −1 core/shared/src/main/scala/cats/effect/CallbackStack.scala
+8 −8 core/shared/src/main/scala/cats/effect/IO.scala
+60 −58 core/shared/src/main/scala/cats/effect/IOFiber.scala
+5 −5 core/shared/src/main/scala/cats/effect/SyncIO.scala
+1 −1 core/shared/src/main/scala/cats/effect/Trace.scala
+4 −4 core/shared/src/main/scala/cats/effect/tracing/RingBuffer.scala
+9 −4 core/shared/src/main/scala/cats/effect/tracing/Tracing.scala
+1 −1 kernel/jvm/src/main/scala/cats/effect/kernel/AsyncPlatform.scala
+3 −3 std/shared/src/main/scala/cats/effect/std/Console.scala
+2 −2 tests/jvm/src/test/scala/cats/effect/IOAppSpec.scala
+11 −11 tests/shared/src/test/scala/cats/effect/IOSpec.scala
+3 −3 tests/shared/src/test/scala/cats/effect/ResourceSpec.scala
2 changes: 1 addition & 1 deletion community-build/community-projects/endpoints4s
2 changes: 1 addition & 1 deletion community-build/community-projects/munit
Submodule munit updated from 5c77d7 to fec8b7
2 changes: 1 addition & 1 deletion community-build/community-projects/scalacheck
2 changes: 1 addition & 1 deletion community-build/community-projects/verify
7 changes: 5 additions & 2 deletions community-build/src/scala/dotty/communitybuild/projects.scala
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ object SbtCommunityProject:
def scalacOptions = List(
"-Xcheck-macros",
"-Ysafe-init",
"-Yexplicit-nulls",
)

object projects:
Expand Down Expand Up @@ -290,7 +291,8 @@ object projects:
// Problem parsing scalatest.dotty/target/scala-3.0.0-M2/src_managed/main/org/scalatest/concurrent/ConductorFixture.scala:[602..624..3843], documentation may not be generated.
// dotty.tools.dotc.core.MissingType:
dependencies = List(scalaXml),
testOnlyDependencies = () => List(scalatestplusJunit, scalatestplusTestNG)
testOnlyDependencies = () => List(scalatestplusJunit, scalatestplusTestNG),
scalacOptions = SbtCommunityProject.scalacOptions.filter(_ != "-Yexplicit-nulls")
)

lazy val scalatestplusScalacheck = SbtCommunityProject(
Expand Down Expand Up @@ -319,7 +321,8 @@ object projects:
project = "scala-xml",
sbtTestCommand = "xml/test",
sbtPublishCommand = "xml/publishLocal",
sbtDocCommand = "xml/doc"
sbtDocCommand = "xml/doc",
scalacOptions = SbtCommunityProject.scalacOptions.filter(_ != "-Yexplicit-nulls"),
)

lazy val scalap = SbtCommunityProject(
Expand Down
1 change: 1 addition & 0 deletions library/src/scala/runtime/stdLibPatches/Predef.scala
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,5 @@ object Predef:
* `eq` or `ne` methods, only `==` and `!=` inherited from `Any`. */
inline def ne(inline y: AnyRef | Null): Boolean =
!(x eq y)
extension (inline opt: Option.type) inline def fromNullable[T](t: T|Null): Option[T] = Option(t).asInstanceOf
end Predef
Loading