diff --git a/community-build/community-projects/cats b/community-build/community-projects/cats index 771c6c802f59..46458272d33c 160000 --- a/community-build/community-projects/cats +++ b/community-build/community-projects/cats @@ -1 +1 @@ -Subproject commit 771c6c802f59c72dbc1be1898081c9c882ddfeb0 +Subproject commit 46458272d33c136a7c2d60646040679ce63c67d5 diff --git a/community-build/community-projects/cats-effect-3 b/community-build/community-projects/cats-effect-3 index 1d425e6efdf8..ab116dc954b6 160000 --- a/community-build/community-projects/cats-effect-3 +++ b/community-build/community-projects/cats-effect-3 @@ -1 +1 @@ -Subproject commit 1d425e6efdf8aee619a4a906e950473c51f78161 +Subproject commit ab116dc954b65a0799c6475055a77e0968af82a7 diff --git a/community-build/community-projects/endpoints4s b/community-build/community-projects/endpoints4s index 3a667a3608ff..af057da29fc8 160000 --- a/community-build/community-projects/endpoints4s +++ b/community-build/community-projects/endpoints4s @@ -1 +1 @@ -Subproject commit 3a667a3608ff9950c24e9b2b5038c71c1690a21d +Subproject commit af057da29fc81344f4316c300198e9bdcae85006 diff --git a/community-build/community-projects/intent b/community-build/community-projects/intent index 466662fb36ed..ab0fad2340eb 160000 --- a/community-build/community-projects/intent +++ b/community-build/community-projects/intent @@ -1 +1 @@ -Subproject commit 466662fb36ed38d1f045449682bdc109496c6b2d +Subproject commit ab0fad2340eb3966fda4203cf79d29b50994069d diff --git a/community-build/community-projects/minitest b/community-build/community-projects/minitest index fb23874c030f..27a9a5504444 160000 --- a/community-build/community-projects/minitest +++ b/community-build/community-projects/minitest @@ -1 +1 @@ -Subproject commit fb23874c030fea4f8d6b160fd4df45bde71ca02b +Subproject commit 27a9a55044445e9acd96f1ce86240ef0d6fbae1f diff --git a/community-build/community-projects/munit b/community-build/community-projects/munit index 5c77d7316fc6..fec8b75ff69b 160000 --- a/community-build/community-projects/munit +++ b/community-build/community-projects/munit @@ -1 +1 @@ -Subproject commit 5c77d7316fc66adaed64e9532ee0a45a668b01ec +Subproject commit fec8b75ff69b43000cc9297e73506f8b1abfc0de diff --git a/community-build/community-projects/scala-collection-compat b/community-build/community-projects/scala-collection-compat index b39b4b64732d..7ba80be2439f 160000 --- a/community-build/community-projects/scala-collection-compat +++ b/community-build/community-projects/scala-collection-compat @@ -1 +1 @@ -Subproject commit b39b4b64732d9dd5e0f065e4180f656237ac4444 +Subproject commit 7ba80be2439f22577502ca01432a99853867ee01 diff --git a/community-build/community-projects/scala-parser-combinators b/community-build/community-projects/scala-parser-combinators index f2f0b4f89e1f..1253ea3c8519 160000 --- a/community-build/community-projects/scala-parser-combinators +++ b/community-build/community-projects/scala-parser-combinators @@ -1 +1 @@ -Subproject commit f2f0b4f89e1fc0ffb67bbc3f93567b866880a01b +Subproject commit 1253ea3c8519fe1001a7b01d34711e17d1b9a394 diff --git a/community-build/community-projects/scalacheck b/community-build/community-projects/scalacheck index fbfaabd7b628..c72a6fd1c4b8 160000 --- a/community-build/community-projects/scalacheck +++ b/community-build/community-projects/scalacheck @@ -1 +1 @@ -Subproject commit fbfaabd7b628e9b0d8f78ed8a91a0672cf56ba15 +Subproject commit c72a6fd1c4b8118401d86c24a9ba995b5aafeed6 diff --git a/community-build/community-projects/scalatestplus-junit b/community-build/community-projects/scalatestplus-junit index ce02c8628b56..e5b13957c774 160000 --- a/community-build/community-projects/scalatestplus-junit +++ b/community-build/community-projects/scalatestplus-junit @@ -1 +1 @@ -Subproject commit ce02c8628b56c18e3df5405af6084a9e092423be +Subproject commit e5b13957c77448a3f953836980695dbc1658b9ab diff --git a/community-build/community-projects/scalatestplus-scalacheck b/community-build/community-projects/scalatestplus-scalacheck index 32e7dc67a949..ee5c16198f03 160000 --- a/community-build/community-projects/scalatestplus-scalacheck +++ b/community-build/community-projects/scalatestplus-scalacheck @@ -1 +1 @@ -Subproject commit 32e7dc67a9490147e6a04be9125c3ef0940d6819 +Subproject commit ee5c16198f03f49d69b3de2b03605dd05434b8c6 diff --git a/community-build/community-projects/scodec b/community-build/community-projects/scodec index 96a77ecaaf91..7e6e9c819169 160000 --- a/community-build/community-projects/scodec +++ b/community-build/community-projects/scodec @@ -1 +1 @@ -Subproject commit 96a77ecaaf913f195bb4079966a2e9fb41ce214e +Subproject commit 7e6e9c81916930469a6a4fafa05fcca210a6e855 diff --git a/community-build/community-projects/scodec-bits b/community-build/community-projects/scodec-bits index 5081dc10310d..d539c937316e 160000 --- a/community-build/community-projects/scodec-bits +++ b/community-build/community-projects/scodec-bits @@ -1 +1 @@ -Subproject commit 5081dc10310dc2010d3b968c2772d72b57eb7d1c +Subproject commit d539c937316e076f768c618fb3d762052f7639ba diff --git a/community-build/community-projects/verify b/community-build/community-projects/verify index ae37d7e153fc..539530784b05 160000 --- a/community-build/community-projects/verify +++ b/community-build/community-projects/verify @@ -1 +1 @@ -Subproject commit ae37d7e153fc62d64c40a72c45f810511aef2e01 +Subproject commit 539530784b05897fa884dece3932197f430f9564 diff --git a/community-build/src/scala/dotty/communitybuild/projects.scala b/community-build/src/scala/dotty/communitybuild/projects.scala index ae030dc66336..41c95f058e18 100644 --- a/community-build/src/scala/dotty/communitybuild/projects.scala +++ b/community-build/src/scala/dotty/communitybuild/projects.scala @@ -150,6 +150,7 @@ object SbtCommunityProject: def scalacOptions = List( "-Xcheck-macros", "-Ysafe-init", + "-Yexplicit-nulls", ) object projects: @@ -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( @@ -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( diff --git a/library/src/scala/runtime/stdLibPatches/Predef.scala b/library/src/scala/runtime/stdLibPatches/Predef.scala index 2146254a9467..3d8a2a2cb8a5 100644 --- a/library/src/scala/runtime/stdLibPatches/Predef.scala +++ b/library/src/scala/runtime/stdLibPatches/Predef.scala @@ -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