Skip to content

Commit f18b5f6

Browse files
committed
Revert deprecation warnings disable
Deprecation warnings did not print a "There were deprecation warnings" anymore. This invalidates the whole point of making them deprecation warnings in the first place!
1 parent 874a203 commit f18b5f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/reporting/Reporter.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ trait Reporting { this: Context =>
5555
}
5656

5757
def deprecationWarning(msg: => Message, pos: SourcePosition = NoSourcePosition): Unit =
58-
if (this.settings.deprecation.value) reportWarning(new DeprecationWarning(msg, pos))
58+
reportWarning(new DeprecationWarning(msg, pos))
5959

6060
def migrationWarning(msg: => Message, pos: SourcePosition = NoSourcePosition): Unit =
6161
reportWarning(new MigrationWarning(msg, pos))

0 commit comments

Comments
 (0)