Skip to content

Commit 0b0c1bb

Browse files
committed
Delete redundantly warning for list options
1 parent 18e53af commit 0b0c1bb

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -257,11 +257,8 @@ object Settings:
257257
// check whether a value was previously set
258258
def checkRedundant(actual: List[String]) =
259259
if changed then
260-
var dangers: List[String] = Nil
261260
val current = valueIn(sstate).asInstanceOf[List[String]]
262-
for value <- split if current.contains(value) do
263-
dangers :+= s"Setting $name set to $value redundantly"
264-
dangers.foldLeft(update(current ++ actual, arg, args))((sum, w) => sum.warn(w))
261+
update(current ++ actual, arg, args)
265262
else
266263
update(actual, arg, args)
267264
choices match

0 commit comments

Comments
 (0)