Skip to content

Commit 4022588

Browse files
hamzaremmalnoti0na1
authored andcommitted
chore: enable explicit-nulls in the stdlib
1 parent 55faeeb commit 4022588

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
),
@@ -1711,6 +1712,7 @@ object Build {
17111712
// NOTE: The only difference here is that we drop `-Werror` and semanticDB for now
17121713
Compile / scalacOptions := Seq("-deprecation", "-feature", "-unchecked", "-encoding", "UTF8", "-language:implicitConversions"),
17131714
Compile / scalacOptions += "-Yno-stdlib-patches",
1715+
Compile / scalacOptions += "-Yexplicit-nulls",
17141716
Compile / scalacOptions ++= Seq(
17151717
// Needed so that the library sources are visible when `dotty.tools.dotc.core.Definitions#init` is called
17161718
"-sourcepath", (Compile / sourceDirectories).value.map(_.getCanonicalPath).distinct.mkString(File.pathSeparator),

0 commit comments

Comments
 (0)