Skip to content

Commit 5b1fa3d

Browse files
hamzaremmalnoti0na1
authored andcommitted
chore: enable explicit-nulls in the stdlib
1 parent ca400bd commit 5b1fa3d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

project/Build.scala

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1619,7 +1619,8 @@ object Build {
16191619
// NOTE: The only difference here is that we drop `-Werror` and semanticDB for now
16201620
Compile / scalacOptions := Seq("-deprecation", "-feature", "-unchecked", "-encoding", "UTF8", "-language:implicitConversions"),
16211621
Compile / scalacOptions += "-Yno-stdlib-patches",
1622-
Compile / scalacOptions ++= Seq(
1622+
Compile / scalacOptions += "-Yexplicit-nulls",
1623+
(Compile / scalacOptions) ++= Seq(
16231624
// Needed so that the library sources are visible when `dotty.tools.dotc.core.Definitions#init` is called
16241625
"-sourcepath", (Compile / sourceDirectories).value.map(_.getCanonicalPath).distinct.mkString(File.pathSeparator),
16251626
),
@@ -1701,6 +1702,7 @@ object Build {
17011702
// NOTE: The only difference here is that we drop `-Werror` and semanticDB for now
17021703
Compile / scalacOptions := Seq("-deprecation", "-feature", "-unchecked", "-encoding", "UTF8", "-language:implicitConversions"),
17031704
Compile / scalacOptions += "-Yno-stdlib-patches",
1705+
Compile / scalacOptions += "-Yexplicit-nulls",
17041706
Compile / scalacOptions ++= Seq(
17051707
// Needed so that the library sources are visible when `dotty.tools.dotc.core.Definitions#init` is called
17061708
"-sourcepath", (Compile / sourceDirectories).value.map(_.getCanonicalPath).distinct.mkString(File.pathSeparator),

0 commit comments

Comments
 (0)