Skip to content

Prepare build for Scala 3.8.0 development #23626

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jul 29, 2025
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
3 changes: 2 additions & 1 deletion compiler/src/dotty/tools/dotc/config/SourceVersion.scala
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ enum SourceVersion:
case `3.6-migration`, `3.6`
case `3.7-migration`, `3.7`
case `3.8-migration`, `3.8`
case `3.9-migration`, `3.9`
// Add 3.x-migration and 3.x here
// !!! Keep in sync with scala.runtime.stdlibPatches.language !!!
case `2.13`
Expand Down Expand Up @@ -49,7 +50,7 @@ enum SourceVersion:
object SourceVersion extends Property.Key[SourceVersion]:

/* The default source version used by the built compiler */
val defaultSourceVersion = `3.7`
val defaultSourceVersion = `3.8`

/* Illegal source versions that may not appear in the settings `-source:<...>` */
val illegalInSettings = List(`2.13`, `3.1-migration`, `never`)
Expand Down
13 changes: 13 additions & 0 deletions library/src/scala/language.scala
Original file line number Diff line number Diff line change
Expand Up @@ -560,4 +560,17 @@ object language {
@compileTimeOnly("`3.8` can only be used at compile time in import statements")
object `3.8`

/** Set source version to 3.9-migration.
*
* @see [[https://docs.scala-lang.org/scala3/guides/migration/compatibility-intro.html]]
*/
@compileTimeOnly("`3.9-migration` can only be used at compile time in import statements")
object `3.9-migration`

/** Set source version to 3.9
*
* @see [[https://docs.scala-lang.org/scala3/guides/migration/compatibility-intro.html]]
*/
@compileTimeOnly("`3.9` can only be used at compile time in import statements")
object `3.9`
}
15 changes: 14 additions & 1 deletion library/src/scala/runtime/stdLibPatches/language.scala
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ object language:
@compileTimeOnly("`3.7` can only be used at compile time in import statements")
object `3.7`

/** Set source version to 3.8-migration.
/** Set source version to 3.8-migration.
*
* @see [[https://docs.scala-lang.org/scala3/guides/migration/compatibility-intro.html]]
*/
Expand All @@ -364,6 +364,19 @@ object language:
@compileTimeOnly("`3.8` can only be used at compile time in import statements")
object `3.8`

/** Set source version to 3.9-migration.
*
* @see [[https://docs.scala-lang.org/scala3/guides/migration/compatibility-intro.html]]
*/
@compileTimeOnly("`3.9-migration` can only be used at compile time in import statements")
object `3.9-migration`

/** Set source version to 3.9
*
* @see [[https://docs.scala-lang.org/scala3/guides/migration/compatibility-intro.html]]
*/
@compileTimeOnly("`3.9` can only be used at compile time in import statements")
object `3.9`

// !!! Keep in sync with dotty.tools.dotc.config.SourceVersion !!!
// Also add tests in `tests/pos/source-import-3-x.scala` and `tests/pos/source-import-3-x-migration.scala`
Expand Down
2 changes: 1 addition & 1 deletion project/Build.scala
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ object Build {
*
* Warning: Change of this variable might require updating `expectedTastyVersion`
*/
val developedVersion = "3.7.3"
val developedVersion = "3.8.0"

/** The version of the compiler including the RC prefix.
* Defined as common base before calculating environment specific suffixes in `dottyVersion`
Expand Down
Loading