diff --git a/library/src/scala/runtime/stdLibPatches/Predef.scala b/library/src/scala/runtime/stdLibPatches/Predef.scala index 8fb435f39801..ded4bb85d347 100644 --- a/library/src/scala/runtime/stdLibPatches/Predef.scala +++ b/library/src/scala/runtime/stdLibPatches/Predef.scala @@ -3,9 +3,12 @@ package scala.runtime.stdLibPatches import scala.language.experimental.captureChecking import scala.annotation.experimental +import scala.annotation.publicInBinary import scala.annotation.internal.RuntimeChecked -object Predef: +@publicInBinary +@deprecated(message = "Patches are not applied to the stdlib anymore", since = "3.8.0") +private[scala] object Predef: import compiletime.summonFrom transparent inline def assert(inline assertion: Boolean, inline message: => Any): Unit = diff --git a/library/src/scala/runtime/stdLibPatches/language.scala b/library/src/scala/runtime/stdLibPatches/language.scala index 34227259de0d..6cee834647b7 100644 --- a/library/src/scala/runtime/stdLibPatches/language.scala +++ b/library/src/scala/runtime/stdLibPatches/language.scala @@ -3,10 +3,12 @@ package scala.runtime.stdLibPatches import scala.language.experimental.captureChecking import scala.annotation.compileTimeOnly +import scala.annotation.publicInBinary -/** Scala 3 additions and replacements to the `scala.language` object. - */ -object language: +/** Scala 3 additions and replacements to the `scala.language` object. */ +@publicInBinary +@deprecated(message = "Patches are not applied to the stdlib anymore", since = "3.8.0") +private[scala] object language: /** The experimental object contains features that have been recently added but have not * been thoroughly tested in production yet. diff --git a/presentation-compiler/test/dotty/tools/pc/tests/completion/CompletionDocSuite.scala b/presentation-compiler/test/dotty/tools/pc/tests/completion/CompletionDocSuite.scala index ec0b6dc20688..efc0b9a72dda 100644 --- a/presentation-compiler/test/dotty/tools/pc/tests/completion/CompletionDocSuite.scala +++ b/presentation-compiler/test/dotty/tools/pc/tests/completion/CompletionDocSuite.scala @@ -136,8 +136,6 @@ class CompletionDocSuite extends BaseCompletionSuite: s""" |> Found documentation for scala/Predef. |Predef scala - |> Found documentation for scala/runtime/stdLibPatches/Predef. - |Predef - scala.runtime.stdLibPatches |""".stripMargin, includeDocs = true )