Skip to content

Commit ade36e1

Browse files
hamzaremmalnoti0na1
authored andcommitted
chore: enable explicit-nulls in the stdlib
1 parent a431d3a commit ade36e1

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
@@ -1676,7 +1676,8 @@ object Build {
16761676
// NOTE: The only difference here is that we drop `-Werror` and semanticDB for now
16771677
Compile / scalacOptions := Seq("-deprecation", "-feature", "-unchecked", "-encoding", "UTF8", "-language:implicitConversions"),
16781678
Compile / scalacOptions += "-Yno-stdlib-patches",
1679-
Compile / scalacOptions ++= Seq(
1679+
Compile / scalacOptions += "-Yexplicit-nulls",
1680+
(Compile / scalacOptions) ++= Seq(
16801681
// Needed so that the library sources are visible when `dotty.tools.dotc.core.Definitions#init` is called
16811682
"-sourcepath", (Compile / sourceDirectories).value.map(_.getCanonicalPath).distinct.mkString(File.pathSeparator),
16821683
),
@@ -1758,6 +1759,7 @@ object Build {
17581759
// NOTE: The only difference here is that we drop `-Werror` and semanticDB for now
17591760
Compile / scalacOptions := Seq("-deprecation", "-feature", "-unchecked", "-encoding", "UTF8", "-language:implicitConversions"),
17601761
Compile / scalacOptions += "-Yno-stdlib-patches",
1762+
Compile / scalacOptions += "-Yexplicit-nulls",
17611763
Compile / scalacOptions ++= Seq(
17621764
// Needed so that the library sources are visible when `dotty.tools.dotc.core.Definitions#init` is called
17631765
"-sourcepath", (Compile / sourceDirectories).value.map(_.getCanonicalPath).distinct.mkString(File.pathSeparator),

0 commit comments

Comments
 (0)