Skip to content

Commit d196c6c

Browse files
committed
Backport nowarn advice tweak
1 parent 6fe19a8 commit d196c6c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/src/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)