@@ -173,28 +173,20 @@ private sealed trait WarningSettings:
173173 choices = List (
174174 ChoiceWithHelp (" nowarn" , " " ),
175175 ChoiceWithHelp (" all" , " " ),
176- ChoiceWithHelp (
177- name = " imports" ,
178- description = " Warn if an import selector is not referenced.\n " +
179- " NOTE : overrided by -Wunused:strict-no-implicit-warn" ),
176+ ChoiceWithHelp (" imports" , " Warn if an import selector is not referenced." ),
180177 ChoiceWithHelp (" privates" , " Warn if a private member is unused" ),
181178 ChoiceWithHelp (" locals" , " Warn if a local definition is unused" ),
182179 ChoiceWithHelp (" explicits" , " Warn if an explicit parameter is unused" ),
183180 ChoiceWithHelp (" implicits" , " Warn if an implicit parameter is unused" ),
184181 ChoiceWithHelp (" params" , " Enable -Wunused:explicits,implicits" ),
185182 ChoiceWithHelp (" patvars" ," Warn if a variable bound in a pattern is unused" ),
183+ ChoiceWithHelp (" inlined" , " Apply -Wunused to inlined expansions" ),
186184 ChoiceWithHelp (" linted" , " Enable -Wunused:imports,privates,locals,implicits" ),
187185 ChoiceWithHelp (
188186 name = " strict-no-implicit-warn" ,
189187 description = " Same as -Wunused:import, only for imports of explicit named members.\n " +
190188 " NOTE : This overrides -Wunused:imports and NOT set by -Wunused:all"
191189 ),
192- ChoiceWithHelp (
193- name = " unsafe-warn-patvars" ,
194- description = " (UNSAFE) Warn if a variable bound in a pattern is unused.\n " +
195- " This warning can generate false positive, as warning cannot be\n " +
196- " suppressed yet."
197- )
198190 ),
199191 default = Nil
200192 )
@@ -206,7 +198,6 @@ private sealed trait WarningSettings:
206198 // Is any choice set for -Wunused?
207199 def any (using Context ): Boolean = Wall .value || Wunused .value.nonEmpty
208200
209- // overrided by strict-no-implicit-warn
210201 def imports (using Context ) =
211202 (allOr(" imports" ) || allOr(" linted" )) && ! (strictNoImplicitWarn)
212203 def locals (using Context ) =
@@ -220,9 +211,8 @@ private sealed trait WarningSettings:
220211 def params (using Context ) = allOr(" params" )
221212 def privates (using Context ) =
222213 allOr(" privates" ) || allOr(" linted" )
223- def patvars (using Context ) =
224- allOr(" patvars" )
225- // isChoiceSet("unsafe-warn-patvars") // not with "all"
214+ def patvars (using Context ) = allOr(" patvars" )
215+ def inlined (using Context ) = isChoiceSet(" inlined" )
226216 def linted (using Context ) =
227217 allOr(" linted" )
228218 def strictNoImplicitWarn (using Context ) =
0 commit comments