Skip to content

Commit 642ad97

Browse files
Backport "chore: deprecate the content of the scala.runtime.stdLibPatches package" to 3.8.0 (#24617)
Backports #24587 to the 3.8.0-RC3. PR submitted by the release tooling.
2 parents aa1f983 + 0a55bf3 commit 642ad97

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
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.

presentation-compiler/test/dotty/tools/pc/tests/completion/CompletionDocSuite.scala

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,6 @@ class CompletionDocSuite extends BaseCompletionSuite:
136136
s"""
137137
|> Found documentation for scala/Predef.
138138
|Predef scala
139-
|> Found documentation for scala/runtime/stdLibPatches/Predef.
140-
|Predef - scala.runtime.stdLibPatches
141139
|""".stripMargin,
142140
includeDocs = true
143141
)

0 commit comments

Comments
 (0)