55   |          its body in a block; no exceptions are handled.
66   |
77   | longer explanation available when compiling with `-explain`
8- -- [E002] Syntax Warning: tests/neg/nowarn.scala:25 :25 -----------------------------------------------------------------
9- 25  |@nowarn(o.inl) def t2d = try 1   // two warnings (`inl` is not a compile-time constant)
8+ -- [E002] Syntax Warning: tests/neg/nowarn.scala:22 :25 -----------------------------------------------------------------
9+ 22  |@nowarn(o.inl) def t2d = try 1   // two warnings (`inl` is not a compile-time constant)
1010   |                         ^^^^^
1111   |                         A try without catch or finally is equivalent to putting
1212   |                         its body in a block; no exceptions are handled.
1313   |
1414   | longer explanation available when compiling with `-explain`
15- -- [E002] Syntax Warning: tests/neg/nowarn.scala:33 :26 -----------------------------------------------------------------
16- 33  |@nowarn("id=1") def t4d = try 1 // error and warning (unused nowarn, wrong id)
15+ -- [E002] Syntax Warning: tests/neg/nowarn.scala:30 :26 -----------------------------------------------------------------
16+ 30  |@nowarn("id=1") def t4d = try 1 // error and warning (unused nowarn, wrong id)
1717   |                          ^^^^^
1818   |                          A try without catch or finally is equivalent to putting
1919   |                          its body in a block; no exceptions are handled.
2020   |
2121   | longer explanation available when compiling with `-explain`
22- -- [E002] Syntax Warning: tests/neg/nowarn.scala:35 :28 -----------------------------------------------------------------
23- 35  |@nowarn("verbose") def t5 = try 1 // warning with details
22+ -- [E002] Syntax Warning: tests/neg/nowarn.scala:32 :28 -----------------------------------------------------------------
23+ 32  |@nowarn("verbose") def t5 = try 1 // warning with details
2424   |                            ^^^^^
2525   |                            A try without catch or finally is equivalent to putting
2626   |                            its body in a block; no exceptions are handled.
@@ -40,71 +40,61 @@ Matching filters for @nowarn or -Wconf:
4040   |        ^^^^^^
4141   |        Invalid message filter
4242   |        unknown filter: wat?
43- -- [E129] Potential Issue Warning: tests/neg/nowarn.scala:18:12 --------------------------------------------------------
44- 18 |def t2a = { 1; 2 } // warning (invalid nowarn doesn't silence)
45-    |            ^
46-    |            A pure expression does nothing in statement position
47-    |
48-    | longer explanation available when compiling with `-explain`
49- -- Warning: tests/neg/nowarn.scala:17:8 --------------------------------------------------------------------------------
50- 17 |@nowarn(t1a.toString) // warning (typer, argument not a compile-time constant)
51-    |        ^^^^^^^^^^^^
52-    |        filter needs to be a compile-time constant string
53- -- Warning: tests/neg/nowarn.scala:25:10 -------------------------------------------------------------------------------
54- 25 |@nowarn(o.inl) def t2d = try 1   // two warnings (`inl` is not a compile-time constant)
43+ -- Warning: tests/neg/nowarn.scala:22:10 -------------------------------------------------------------------------------
44+ 22 |@nowarn(o.inl) def t2d = try 1   // two warnings (`inl` is not a compile-time constant)
5545   |        ^^^^^
5646   |        filter needs to be a compile-time constant string
57- -- Deprecation Warning: tests/neg/nowarn.scala:39 :10 -------------------------------------------------------------------
58- 39  |def t6a = f // warning (refchecks, deprecation)
47+ -- Deprecation Warning: tests/neg/nowarn.scala:36 :10 -------------------------------------------------------------------
48+ 36  |def t6a = f // warning (refchecks, deprecation)
5949   |          ^
6050   |          method f is deprecated
61- -- Deprecation Warning: tests/neg/nowarn.scala:42 :30 -------------------------------------------------------------------
62- 42  |@nowarn("msg=fish") def t6d = f // error (unused nowarn), warning (deprecation)
51+ -- Deprecation Warning: tests/neg/nowarn.scala:39 :30 -------------------------------------------------------------------
52+ 39  |@nowarn("msg=fish") def t6d = f // error (unused nowarn), warning (deprecation)
6353   |                              ^
6454   |                              method f is deprecated
65- -- Deprecation Warning: tests/neg/nowarn.scala:49 :10 -------------------------------------------------------------------
66- 49  |def t7c = f             // warning (deprecation)
55+ -- Deprecation Warning: tests/neg/nowarn.scala:46 :10 -------------------------------------------------------------------
56+ 46  |def t7c = f             // warning (deprecation)
6757   |          ^
6858   |          method f is deprecated
69- -- [E092] Pattern Match Unchecked Warning: tests/neg/nowarn.scala:55 :7 -------------------------------------------------
70- 55  |  case _: List[Int] => 0 // warning (patmat, unchecked)
59+ -- [E092] Pattern Match Unchecked Warning: tests/neg/nowarn.scala:52 :7 -------------------------------------------------
60+ 52  |  case _: List[Int] => 0 // warning (patmat, unchecked)
7161   |       ^
7262   |the type test for List[Int] cannot be checked at runtime because its type arguments can't be determined from Any
7363   |
7464   | longer explanation available when compiling with `-explain`
75- -- Error: tests/neg/nowarn.scala:33 :1 ----------------------------------------------------------------------------------
76- 33  |@nowarn("id=1") def t4d = try 1 // error and warning (unused nowarn, wrong id)
65+ -- Error: tests/neg/nowarn.scala:30 :1 ----------------------------------------------------------------------------------
66+ 30  |@nowarn("id=1") def t4d = try 1 // error and warning (unused nowarn, wrong id)
7767   |^^^^^^^^^^^^^^^
7868   |@nowarn annotation does not suppress any warnings
79- -- Error: tests/neg/nowarn.scala:42 :1 ----------------------------------------------------------------------------------
80- 42  |@nowarn("msg=fish") def t6d = f // error (unused nowarn), warning (deprecation)
69+ -- Error: tests/neg/nowarn.scala:39 :1 ----------------------------------------------------------------------------------
70+ 39  |@nowarn("msg=fish") def t6d = f // error (unused nowarn), warning (deprecation)
8171   |^^^^^^^^^^^^^^^^^^^
8272   |@nowarn annotation does not suppress any warnings
83- -- Error: tests/neg/nowarn.scala:50 :5 ----------------------------------------------------------------------------------
84- 50  |  : @nowarn("msg=fish") // error (unused nowarn)
73+ -- Error: tests/neg/nowarn.scala:47 :5 ----------------------------------------------------------------------------------
74+ 47  |  : @nowarn("msg=fish") // error (unused nowarn)
8575   |    ^^^^^^^^^^^^^^^^^^^
8676   |    @nowarn annotation does not suppress any warnings
87- -- Error: tests/neg/nowarn.scala:62 :0 ----------------------------------------------------------------------------------
88- 62  |@nowarn def t9a = { 1: @nowarn; 2 } // error (outer @nowarn is unused)
77+ -- Error: tests/neg/nowarn.scala:59 :0 ----------------------------------------------------------------------------------
78+ 59  |@nowarn def t9a = { 1: @nowarn; 2 } // error (outer @nowarn is unused)
8979   |^^^^^^^
9080   |@nowarn annotation does not suppress any warnings
91- -- Error: tests/neg/nowarn.scala:63 :27 ---------------------------------------------------------------------------------
92- 63  |@nowarn def t9b = { 1: Int @nowarn; 2 } // error (inner @nowarn is unused, it covers the type, not the expression)
81+ -- Error: tests/neg/nowarn.scala:60 :27 ---------------------------------------------------------------------------------
82+ 60  |@nowarn def t9b = { 1: Int @nowarn; 2 } // error (inner @nowarn is unused, it covers the type, not the expression)
9383   |                           ^^^^^^^
9484   |                           @nowarn annotation does not suppress any warnings
95- -- Error: tests/neg/nowarn.scala:68 :0 ----------------------------------------------------------------------------------
96- 68  |@nowarn @ann(f) def t10b = 0  // error (unused nowarn)
85+ -- Error: tests/neg/nowarn.scala:65 :0 ----------------------------------------------------------------------------------
86+ 65  |@nowarn @ann(f) def t10b = 0  // error (unused nowarn)
9787   |^^^^^^^
9888   |@nowarn annotation does not suppress any warnings
99- -- Error: tests/neg/nowarn.scala:69 :8 ----------------------------------------------------------------------------------
100- 69  |@ann(f: @nowarn) def t10c = 0 // error (unused nowarn), should be silent
89+ -- Error: tests/neg/nowarn.scala:66 :8 ----------------------------------------------------------------------------------
90+ 66  |@ann(f: @nowarn) def t10c = 0 // error (unused nowarn), should be silent
10191   |        ^^^^^^^
10292   |        @nowarn annotation does not suppress any warnings
103- -- Error: tests/neg/nowarn.scala:72 :0 ----------------------------------------------------------------------------------
104- 72  |@nowarn class I1a { // error (unused nowarn)
93+ -- Error: tests/neg/nowarn.scala:69 :0 ----------------------------------------------------------------------------------
94+ 69  |@nowarn class I1a { // error (unused nowarn)
10595   |^^^^^^^
10696   |@nowarn annotation does not suppress any warnings
107- -- Error: tests/neg/nowarn.scala:77 :0 ----------------------------------------------------------------------------------
108- 77  |@nowarn class I1b { // error (unused nowarn)
97+ -- Error: tests/neg/nowarn.scala:74 :0 ----------------------------------------------------------------------------------
98+ 74  |@nowarn class I1b { // error (unused nowarn)
10999   |^^^^^^^
110100   |@nowarn annotation does not suppress any warnings
0 commit comments