Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion library/src/scala/runtime/stdLibPatches/Predef.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down
8 changes: 5 additions & 3 deletions library/src/scala/runtime/stdLibPatches/language.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
Expand Down
Loading