Skip to content

Commit 2b44aa8

Browse files
committed
setting
1 parent 133dcb3 commit 2b44aa8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

compiler/src/dotty/tools/dotc/config/ScalaSettings.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -462,6 +462,8 @@ private sealed trait YSettings:
462462
val Yinstrument: Setting[Boolean] = BooleanSetting(ForkSetting, "Yinstrument", "Add instrumentation code that counts allocations and closure creations.")
463463
val YinstrumentDefs: Setting[Boolean] = BooleanSetting(ForkSetting, "Yinstrument-defs", "Add instrumentation code that counts method calls; needs -Yinstrument to be set, too.")
464464

465+
val Yunused: Setting[String] = ChoiceSetting(ForkSetting, "Yunused", "strategy", "Heuristics to reduce warnings", List("fewer", "strict", "fewest"), "fewer")
466+
465467
// Deprecated: lifted from -Y to -X
466468
@deprecated(message = "Lifted to -X, Scheduled for removal.", since = "3.5.0")
467469
val YtermConflict: Setting[String] = ChoiceSetting(ForkSetting, "Yresolve-term-conflict", "strategy", "Resolve term conflicts", List("package", "object", "error"), "error", deprecation = Deprecation.renamed("-Xresolve-term-conflict"))

0 commit comments

Comments
 (0)