Skip to content

Commit 2fe2627

Browse files
committed
chore: enable explicit-nulls in the stdlib
1 parent 5899730 commit 2fe2627

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

project/Build.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1430,6 +1430,7 @@ object Build {
14301430
Compile / unmanagedSourceDirectories += baseDirectory.value / "src-non-bootstrapped",
14311431
// NOTE: The only difference here is that we drop `-Werror` and semanticDB for now
14321432
Compile / scalacOptions := Seq("-deprecation", "-feature", "-unchecked", "-encoding", "UTF8", "-language:implicitConversions"),
1433+
Compile / scalacOptions += "-Yexplicit-nulls",
14331434
(Compile / scalacOptions) ++= Seq(
14341435
// Needed so that the library sources are visible when `dotty.tools.dotc.core.Definitions#init` is called
14351436
"-sourcepath", (Compile / sourceDirectories).value.map(_.getCanonicalPath).distinct.mkString(File.pathSeparator),
@@ -1456,6 +1457,7 @@ object Build {
14561457
Compile / unmanagedSourceDirectories += baseDirectory.value / "src-bootstrapped",
14571458
// NOTE: The only difference here is that we drop `-Werror` and semanticDB for now
14581459
Compile / scalacOptions := Seq("-deprecation", "-feature", "-unchecked", "-encoding", "UTF8", "-language:implicitConversions"),
1460+
Compile / scalacOptions += "-Yexplicit-nulls",
14591461
Compile / scalacOptions ++= Seq(
14601462
// Needed so that the library sources are visible when `dotty.tools.dotc.core.Definitions#init` is called
14611463
"-sourcepath", (Compile / sourceDirectories).value.map(_.getCanonicalPath).distinct.mkString(File.pathSeparator),

0 commit comments

Comments
 (0)