Skip to content

Commit ea281c1

Browse files
authored
Merge pull request scala#9832 from som-snytt/issue/12516
Backport nowarn advice tweak
2 parents a1ea603 + 88ac5e4 commit ea281c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/library/scala/annotation/nowarn.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ package scala.annotation
2929
* def f = { 1; deprecated() } // show deprecation warning
3030
* }}}
3131
*
32-
* To ensure that a `@nowarn` annotation actually suppresses a warning, enable `-Xlint:nowarn`.
32+
* To ensure that a `@nowarn` annotation actually suppresses a warning, enable `-Xlint:unused` or `-Wunused:nowarn`.
3333
*/
3434
@nowarn("msg=subclassing ClassfileAnnotation does not\nmake your annotation visible at runtime")
3535
class nowarn(value: String = "") extends ClassfileAnnotation

0 commit comments

Comments
 (0)