Skip to content

Commit 69c2e8f

Browse files
committed
chore: deprecate the content of the scala.runtime.stdLibPatches package
1 parent 7eab684 commit 69c2e8f

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

library/src/scala/runtime/stdLibPatches/Predef.scala

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,12 @@ package scala.runtime.stdLibPatches
33
import scala.language.experimental.captureChecking
44

55
import scala.annotation.experimental
6+
import scala.annotation.publicInBinary
67
import scala.annotation.internal.RuntimeChecked
78

8-
object Predef:
9+
@publicInBinary
10+
@deprecated(message = "Patches are not applied to the stdlib anymore", since = "3.8.0")
11+
private[scala] object Predef:
912
import compiletime.summonFrom
1013

1114
transparent inline def assert(inline assertion: Boolean, inline message: => Any): Unit =

library/src/scala/runtime/stdLibPatches/language.scala

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,12 @@ package scala.runtime.stdLibPatches
33
import scala.language.experimental.captureChecking
44

55
import scala.annotation.compileTimeOnly
6+
import scala.annotation.publicInBinary
67

7-
/** Scala 3 additions and replacements to the `scala.language` object.
8-
*/
9-
object language:
8+
/** Scala 3 additions and replacements to the `scala.language` object. */
9+
@publicInBinary
10+
@deprecated(message = "Patches are not applied to the stdlib anymore", since = "3.8.0")
11+
private[scala] object language:
1012

1113
/** The experimental object contains features that have been recently added but have not
1214
* been thoroughly tested in production yet.

0 commit comments

Comments
 (0)