Skip to content

Commit 5029b89

Browse files
committed
remove the warnings in scala.Predef
1 parent 99fdcc1 commit 5029b89

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

library/src/scala/Predef.scala

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import scala.language.`2.13`
1616
import scala.language.implicitConversions
1717

1818
import scala.collection.{mutable, immutable, ArrayOps, StringOps}, immutable.WrappedString
19-
import scala.annotation.{experimental, implicitNotFound, publicInBinary, targetName }
19+
import scala.annotation.{experimental, implicitNotFound, publicInBinary, targetName, nowarn }
2020
import scala.annotation.meta.{ companionClass, companionMethod }
2121
import scala.annotation.internal.{ RuntimeChecked }
2222
import scala.compiletime.summonFrom
@@ -490,7 +490,9 @@ object Predef extends LowPriorityImplicits {
490490

491491
// these two are morally deprecated but the @deprecated annotation has been moved to the extension method themselves,
492492
// in order to provide a more specific deprecation method.
493+
@nowarn("""cat=deprecation&origin=scala\.runtime\.Tuple2Zipped""")
493494
implicit def tuple2ToZippedOps[T1, T2](x: (T1, T2)): runtime.Tuple2Zipped.Ops[T1, T2] = new runtime.Tuple2Zipped.Ops(x)
495+
@nowarn("""cat=deprecation&origin=scala\.runtime\.Tuple3Zipped""")
494496
implicit def tuple3ToZippedOps[T1, T2, T3](x: (T1, T2, T3)): runtime.Tuple3Zipped.Ops[T1, T2, T3] = new runtime.Tuple3Zipped.Ops(x)
495497

496498
// Not specialized anymore since 2.13 but we still need separate methods

0 commit comments

Comments
 (0)