From 7dff9021575e410a25c7dee74b04ac0e635b3af7 Mon Sep 17 00:00:00 2001 From: satorg Date: Wed, 20 Jul 2022 16:44:10 -0700 Subject: [PATCH] introduce compat @unused annotation [fixup] --- .../src/main/scala-2.12/cats/kernel/compat/unused.scala | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/kernel/src/main/scala-2.12/cats/kernel/compat/unused.scala b/kernel/src/main/scala-2.12/cats/kernel/compat/unused.scala index f046b437754..41401039516 100644 --- a/kernel/src/main/scala-2.12/cats/kernel/compat/unused.scala +++ b/kernel/src/main/scala-2.12/cats/kernel/compat/unused.scala @@ -21,11 +21,10 @@ package cats.kernel.compat +import scala.annotation.nowarn + /** Simulates the behaviour of `@unused` annotation originally implemented * in Scala 2.13 and above. - * - * @note copied from - * [[https://github.com/scala/scala-collection-compat/blob/e35e330fca28c78c39fa2d4812fa33ce892f19e3/compat/src/main/scala-2.11_2.12/scala/annotation/unused.scala scala-collection-compat]] - * source code. */ -final private[cats] class unused extends deprecated("unused", "unused") +@nowarn("msg=subclassing ClassfileAnnotation does not\nmake your annotation visible at runtime.") +final private[cats] class unused extends nowarn("cat=unused")