Skip to content

Commit a434d11

Browse files
committed
chore: enable explicit-nulls in the stdlib
1 parent 6c86743 commit a434d11

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
@@ -1622,7 +1622,8 @@ object Build {
16221622
// NOTE: The only difference here is that we drop `-Werror` and semanticDB for now
16231623
Compile / scalacOptions := Seq("-deprecation", "-feature", "-unchecked", "-encoding", "UTF8", "-language:implicitConversions"),
16241624
Compile / scalacOptions += "-Yno-stdlib-patches",
1625-
Compile / scalacOptions ++= Seq(
1625+
Compile / scalacOptions += "-Yexplicit-nulls",
1626+
(Compile / scalacOptions) ++= Seq(
16261627
// Needed so that the library sources are visible when `dotty.tools.dotc.core.Definitions#init` is called
16271628
"-sourcepath", (Compile / sourceDirectories).value.map(_.getCanonicalPath).distinct.mkString(File.pathSeparator),
16281629
),
@@ -1714,6 +1715,7 @@ object Build {
17141715
// NOTE: The only difference here is that we drop `-Werror` and semanticDB for now
17151716
Compile / scalacOptions := Seq("-deprecation", "-feature", "-unchecked", "-encoding", "UTF8", "-language:implicitConversions"),
17161717
Compile / scalacOptions += "-Yno-stdlib-patches",
1718+
Compile / scalacOptions += "-Yexplicit-nulls",
17171719
Compile / scalacOptions ++= Seq(
17181720
// Needed so that the library sources are visible when `dotty.tools.dotc.core.Definitions#init` is called
17191721
"-sourcepath", (Compile / sourceDirectories).value.map(_.getCanonicalPath).distinct.mkString(File.pathSeparator),

0 commit comments

Comments
 (0)