Skip to content

Commit 83fe5a7

Browse files
committed
Change quiet flag to no longer silence warnings
It has never been an option to the REPL user (until now), and warnings can always be turned off with `-nowarn` CLI argument or `:settings -nowarn`.
1 parent 4b7f321 commit 83fe5a7

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

compiler/src/dotty/tools/repl/ReplDriver.scala

+3-5
Original file line numberDiff line numberDiff line change
@@ -362,11 +362,9 @@ class ReplDriver(settings: Array[String],
362362
given Ordering[Diagnostic] =
363363
Ordering[(Int, Int, Int)].on(d => (d.pos.line, -d.level, d.pos.column))
364364

365-
if (!quiet) {
366-
(definitions ++ warnings)
367-
.sorted
368-
.foreach(printDiagnostic)
369-
}
365+
(if quiet then warnings else definitions ++ warnings)
366+
.sorted
367+
.foreach(printDiagnostic)
370368

371369
updatedState
372370
}

0 commit comments

Comments
 (0)