Skip to content

Commit

Permalink
Restore unsafe-warn-patvars
Browse files Browse the repository at this point in the history
  • Loading branch information
som-snytt committed Feb 3, 2025
1 parent 590691b commit 0be00ad
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions compiler/src/dotty/tools/dotc/config/ScalaSettings.scala
Original file line number Diff line number Diff line change
Expand Up @@ -184,9 +184,10 @@ private sealed trait WarningSettings:
ChoiceWithHelp("linted", "Enable -Wunused:imports,privates,locals,implicits"),
ChoiceWithHelp(
name = "strict-no-implicit-warn",
description = "Same as -Wunused:import, only for imports of explicit named members.\n" +
"NOTE : This overrides -Wunused:imports and NOT set by -Wunused:all"
description = """Same as -Wunused:imports, only for imports of explicit named members.
|NOTE : This overrides -Wunused:imports and NOT set by -Wunused:all""".stripMargin
),
ChoiceWithHelp("unsafe-warn-patvars", "Deprecated alias for `patvars`"),
),
default = Nil
)
Expand All @@ -211,7 +212,7 @@ private sealed trait WarningSettings:
def params(using Context) = allOr("params")
def privates(using Context) =
allOr("privates") || allOr("linted")
def patvars(using Context) = allOr("patvars")
def patvars(using Context) = allOr("patvars") || isChoiceSet("unsafe-warn-patvars")
def inlined(using Context) = isChoiceSet("inlined")
def linted(using Context) =
allOr("linted")
Expand Down

0 comments on commit 0be00ad

Please sign in to comment.