Skip to content

Commit

Permalink
bugfix: Disable -Wunused:all for Scala 3
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
tgodzik committed Jan 12, 2023
1 parent 009882e commit 851ee9d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,8 @@ commands ++= Seq(
// https://github.com/scala/bug/issues/10448
def lintingOptions(scalaVersion: String) = {
val unused213 = "-Wunused"
val unused3 = "-Wunused:all"
// Can't use due to issues with Scala 3 https://github.com/lampepfl/dotty/issues/16650
// val unused3 = "-Wunused:all"
val common = List(
// desugaring of for yield caused pattern var to complain
// https://github.com/scala/bug/issues/10287
Expand All @@ -181,7 +182,7 @@ def lintingOptions(scalaVersion: String) = {
crossSetting(
scalaVersion,
if213 = unused213 :: commonFiltered,
if3 = unused3 :: Nil,
if3 = Nil,
if211 = List("-Ywarn-unused-import"),
)
}
Expand Down

0 comments on commit 851ee9d

Please sign in to comment.