Skip to content

Commit 851ee9d

Browse files
committed
bugfix: Disable -Wunused:all for Scala 3
Previously, this was ignored, but with a recent merge this started to actually be calculated, but unfortunately it fail for out specific scenario. Now, I disable -Wunused:all until scala/scala3#16650 is fixed.
1 parent 009882e commit 851ee9d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

build.sbt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,8 @@ commands ++= Seq(
160160
// https://github.com/scala/bug/issues/10448
161161
def lintingOptions(scalaVersion: String) = {
162162
val unused213 = "-Wunused"
163-
val unused3 = "-Wunused:all"
163+
// Can't use due to issues with Scala 3 https://github.com/lampepfl/dotty/issues/16650
164+
// val unused3 = "-Wunused:all"
164165
val common = List(
165166
// desugaring of for yield caused pattern var to complain
166167
// https://github.com/scala/bug/issues/10287
@@ -181,7 +182,7 @@ def lintingOptions(scalaVersion: String) = {
181182
crossSetting(
182183
scalaVersion,
183184
if213 = unused213 :: commonFiltered,
184-
if3 = unused3 :: Nil,
185+
if3 = Nil,
185186
if211 = List("-Ywarn-unused-import"),
186187
)
187188
}

0 commit comments

Comments
 (0)