Skip to content

Commit 0c9111c

Browse files
committed
Restore unsafe-warn-patvars
1 parent 93af7b8 commit 0c9111c

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Diff for: compiler/src/dotty/tools/dotc/config/ScalaSettings.scala

+4-3
Original file line numberDiff line numberDiff line change
@@ -185,9 +185,10 @@ private sealed trait WarningSettings:
185185
ChoiceWithHelp("linted", "Enable -Wunused:imports,privates,locals,implicits"),
186186
ChoiceWithHelp(
187187
name = "strict-no-implicit-warn",
188-
description = "Same as -Wunused:import, only for imports of explicit named members.\n" +
189-
"NOTE : This overrides -Wunused:imports and NOT set by -Wunused:all"
188+
description = """Same as -Wunused:imports, only for imports of explicit named members.
189+
|NOTE : This overrides -Wunused:imports and NOT set by -Wunused:all""".stripMargin
190190
),
191+
ChoiceWithHelp("unsafe-warn-patvars", "Deprecated alias for `patvars`"),
191192
),
192193
default = Nil
193194
)
@@ -212,7 +213,7 @@ private sealed trait WarningSettings:
212213
def params(using Context) = allOr("params")
213214
def privates(using Context) =
214215
allOr("privates") || allOr("linted")
215-
def patvars(using Context) = allOr("patvars")
216+
def patvars(using Context) = allOr("patvars") || isChoiceSet("unsafe-warn-patvars")
216217
def inlined(using Context) = isChoiceSet("inlined")
217218
def linted(using Context) =
218219
allOr("linted")

0 commit comments

Comments
 (0)