Skip to content

Commit 3e5558c

Browse files
committed
Do not advertise deprecated alias
1 parent 051e8e7 commit 3e5558c

File tree

14 files changed

+14
-14
lines changed

14 files changed

+14
-14
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ abstract class Reporter extends interfaces.ReporterResult {
232232

233233
def finalizeReporting()(using Context) =
234234
if (hasWarnings && ctx.settings.Werror.value)
235-
report(new Error("No warnings can be incurred under -Werror (or -Xfatal-warnings)", NoSourcePosition))
235+
report(new Error("No warnings can be incurred under -Werror", NoSourcePosition))
236236

237237
/** Summary of warnings and errors */
238238
def summary: String =

tests/neg-custom-args/sourcepath2/hi/A.check

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
| class Hello is in the wrong directory.
55
| It was declared to be in package <empty>
66
| But it is found in directory hi
7-
No warnings can be incurred under -Werror (or -Xfatal-warnings)
7+
No warnings can be incurred under -Werror

tests/neg-macros/i9570.check

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
15 | case '{HCons(_,$t)} => // warn (in .check file)
33
| ^
44
| Use of `_` for lambda in quoted pattern. Use explicit lambda instead or use `$_` to match any term.
5-
No warnings can be incurred under -Werror (or -Xfatal-warnings)
5+
No warnings can be incurred under -Werror

tests/neg-macros/macro-deprecation.check

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
5 |inline def f = ${ impl } // warn (in .check file)
33
| ^^^^
44
| method impl is deprecated
5-
No warnings can be incurred under -Werror (or -Xfatal-warnings)
5+
No warnings can be incurred under -Werror

tests/neg-scalajs/enumeration-warnings.check

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,4 +58,4 @@
5858
| ^^^^^^^^^^^^
5959
| Passing null as name to a constructor of scala.Enumeration.Val requires reflection at run-time.
6060
| The resulting program is unlikely to function properly.
61-
No warnings can be incurred under -Werror (or -Xfatal-warnings)
61+
No warnings can be incurred under -Werror

tests/neg/i15474b.check

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
| ^^^^^^^^^^
44
| Infinite loop in function body
55
| Test1.c.apply(from).toInt
6-
No warnings can be incurred under -Werror (or -Xfatal-warnings)
6+
No warnings can be incurred under -Werror

tests/neg/i17612b.check

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,4 @@
3030
41 | class UnderDerived(x: Int, y: Int, z: Int) extends Derived(x, 1, y, z) // warn // warn // warn
3131
| ^
3232
| value z in class UnderDerived shadows field z inherited from trait Base
33-
No warnings can be incurred under -Werror (or -Xfatal-warnings)
33+
No warnings can be incurred under -Werror

tests/neg/i17613b.check

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,4 +58,4 @@
5858
42 | class InnerCl[ImClassR] // warn
5959
| ^^^^^^^^
6060
| Type parameter ImClassR for class InnerCl shadows an explicitly renamed type : ImClassR
61-
No warnings can be incurred under -Werror (or -Xfatal-warnings)
61+
No warnings can be incurred under -Werror

tests/neg/i18632.check

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
12 | bar // warn
33
| ^^^
44
| unused value of type String
5-
No warnings can be incurred under -Werror (or -Xfatal-warnings)
5+
No warnings can be incurred under -Werror

tests/neg/i8711.check

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@
1818
14 | case x: C => x // error
1919
| ^
2020
| this case is unreachable since type A | B and class C are unrelated
21-
No warnings can be incurred under -Werror (or -Xfatal-warnings)
21+
No warnings can be incurred under -Werror

0 commit comments

Comments
 (0)