diff --git a/docs/_docs/index.md b/docs/_docs/index.md index abbca4c69bb2..97dc7fd5886b 100644 --- a/docs/_docs/index.md +++ b/docs/_docs/index.md @@ -1,6 +1,7 @@ --- layout: index redirectFrom: /docs/index.html +nightlyOf: https://docs.scala-lang.org/scala3/reference/ --- Dotty is the project name for technologies that are considered for inclusion in Scala 3. Scala has diff --git a/docs/_docs/reference/changed-features/changed-features.md b/docs/_docs/reference/changed-features/changed-features.md index e8eb2ac6714b..cacdc2598a02 100644 --- a/docs/_docs/reference/changed-features/changed-features.md +++ b/docs/_docs/reference/changed-features/changed-features.md @@ -1,7 +1,7 @@ --- layout: index title: "Other Changed Features" -movedTo: https://docs.scala-lang.org/scala3/reference/changed-features.html +nightlyOf: https://docs.scala-lang.org/scala3/reference/changed-features.html --- The following pages document the features that have changed in Scala 3, compared to Scala 2. diff --git a/docs/_docs/reference/changed-features/compiler-plugins.md b/docs/_docs/reference/changed-features/compiler-plugins.md index 2a446e9cfb84..20bdb7f49836 100644 --- a/docs/_docs/reference/changed-features/compiler-plugins.md +++ b/docs/_docs/reference/changed-features/compiler-plugins.md @@ -1,7 +1,7 @@ --- layout: doc-page title: "Changes in Compiler Plugins" -movedTo: https://docs.scala-lang.org/scala3/reference/changed-features/compiler-plugins.html +nightlyOf: https://docs.scala-lang.org/scala3/reference/changed-features/compiler-plugins.html --- Compiler plugins are supported by Dotty (and Scala 3) since 0.9. There are two notable changes diff --git a/docs/_docs/reference/changed-features/eta-expansion-spec.md b/docs/_docs/reference/changed-features/eta-expansion-spec.md index 67f7606d5b15..a62d45df9e11 100644 --- a/docs/_docs/reference/changed-features/eta-expansion-spec.md +++ b/docs/_docs/reference/changed-features/eta-expansion-spec.md @@ -1,7 +1,7 @@ --- layout: doc-page title: "Automatic Eta Expansion - More Details" -movedTo: https://docs.scala-lang.org/scala3/reference/changed-features/eta-expansion-spec.html +nightlyOf: https://docs.scala-lang.org/scala3/reference/changed-features/eta-expansion-spec.html --- ## Motivation diff --git a/docs/_docs/reference/changed-features/eta-expansion.md b/docs/_docs/reference/changed-features/eta-expansion.md index 2ae9af870a55..c05378135e54 100644 --- a/docs/_docs/reference/changed-features/eta-expansion.md +++ b/docs/_docs/reference/changed-features/eta-expansion.md @@ -1,7 +1,7 @@ --- layout: doc-page title: "Automatic Eta Expansion" -movedTo: https://docs.scala-lang.org/scala3/reference/changed-features/eta-expansion.html +nightlyOf: https://docs.scala-lang.org/scala3/reference/changed-features/eta-expansion.html --- The conversion of _methods_ into _functions_ has been improved and happens automatically for methods with one or more parameters. diff --git a/docs/_docs/reference/changed-features/implicit-conversions-spec.md b/docs/_docs/reference/changed-features/implicit-conversions-spec.md index b4ab97355036..dc19e10c8b8f 100644 --- a/docs/_docs/reference/changed-features/implicit-conversions-spec.md +++ b/docs/_docs/reference/changed-features/implicit-conversions-spec.md @@ -1,7 +1,7 @@ --- layout: doc-page title: "Implicit Conversions - More Details" -movedTo: https://docs.scala-lang.org/scala3/reference/changed-features/implicit-conversions-spec.html +nightlyOf: https://docs.scala-lang.org/scala3/reference/changed-features/implicit-conversions-spec.html --- ## Implementation diff --git a/docs/_docs/reference/changed-features/implicit-conversions.md b/docs/_docs/reference/changed-features/implicit-conversions.md index 69737d5b6bf9..eef236f39a07 100644 --- a/docs/_docs/reference/changed-features/implicit-conversions.md +++ b/docs/_docs/reference/changed-features/implicit-conversions.md @@ -1,7 +1,7 @@ --- layout: doc-page title: "Implicit Conversions" -movedTo: https://docs.scala-lang.org/scala3/reference/changed-features/implicit-conversions.html +nightlyOf: https://docs.scala-lang.org/scala3/reference/changed-features/implicit-conversions.html --- An _implicit conversion_, also called _view_, is a conversion that diff --git a/docs/_docs/reference/changed-features/implicit-resolution.md b/docs/_docs/reference/changed-features/implicit-resolution.md index cf8af361b787..bf15baa3299c 100644 --- a/docs/_docs/reference/changed-features/implicit-resolution.md +++ b/docs/_docs/reference/changed-features/implicit-resolution.md @@ -1,7 +1,7 @@ --- layout: doc-page title: "Changes in Implicit Resolution" -movedTo: https://docs.scala-lang.org/scala3/reference/changed-features/implicit-resolution.html +nightlyOf: https://docs.scala-lang.org/scala3/reference/changed-features/implicit-resolution.html --- This section describes changes to the implicit resolution that apply both to the new `given`s and to the old-style `implicit`s in Scala 3. diff --git a/docs/_docs/reference/changed-features/imports.md b/docs/_docs/reference/changed-features/imports.md index 7d364ce68b92..26dc67e25c64 100644 --- a/docs/_docs/reference/changed-features/imports.md +++ b/docs/_docs/reference/changed-features/imports.md @@ -1,7 +1,7 @@ --- layout: doc-page title: "Imports" -movedTo: https://docs.scala-lang.org/scala3/reference/changed-features/imports.html +nightlyOf: https://docs.scala-lang.org/scala3/reference/changed-features/imports.html --- The syntax of wildcard and renaming imports (and exports) has changed. diff --git a/docs/_docs/reference/changed-features/interpolation-escapes.md b/docs/_docs/reference/changed-features/interpolation-escapes.md index 6c9afa9d85cb..594e7671c5ab 100644 --- a/docs/_docs/reference/changed-features/interpolation-escapes.md +++ b/docs/_docs/reference/changed-features/interpolation-escapes.md @@ -1,7 +1,7 @@ --- layout: doc-page title: "Escapes in interpolations" -movedTo: https://docs.scala-lang.org/scala3/reference/changed-features/interpolation-escapes.html +nightlyOf: https://docs.scala-lang.org/scala3/reference/changed-features/interpolation-escapes.html --- In Scala 2 there is no straightforward way to represent a single quote character `"` in a single quoted interpolation. A `\` character can't be used for that because interpolators themselves decide how to handle escaping, so the parser doesn't know whether the `"` character should be escaped or used as a terminator. diff --git a/docs/_docs/reference/changed-features/lazy-vals-init.md b/docs/_docs/reference/changed-features/lazy-vals-init.md index c3b25cdc5ab3..131ac6ad7bb2 100644 --- a/docs/_docs/reference/changed-features/lazy-vals-init.md +++ b/docs/_docs/reference/changed-features/lazy-vals-init.md @@ -1,7 +1,7 @@ --- layout: doc-page title: Lazy Vals Initialization -movedTo: https://docs.scala-lang.org/scala3/reference/changed-features/lazy-vals-init.html +nightlyOf: https://docs.scala-lang.org/scala3/reference/changed-features/lazy-vals-init.html --- Scala 3 implements [Version 6](https://docs.scala-lang.org/sips/improved-lazy-val-initialization.html#version-6---no-synchronization-on-this-and-concurrent-initialization-of-fields) diff --git a/docs/_docs/reference/changed-features/main-functions.md b/docs/_docs/reference/changed-features/main-functions.md index 7485dc942d99..4460300d003e 100644 --- a/docs/_docs/reference/changed-features/main-functions.md +++ b/docs/_docs/reference/changed-features/main-functions.md @@ -1,7 +1,7 @@ --- layout: doc-page title: "Main Methods" -movedTo: https://docs.scala-lang.org/scala3/reference/changed-features/main-functions.html +nightlyOf: https://docs.scala-lang.org/scala3/reference/changed-features/main-functions.html --- Scala 3 offers a new way to define programs that can be invoked from the command line: diff --git a/docs/_docs/reference/changed-features/match-syntax.md b/docs/_docs/reference/changed-features/match-syntax.md index cff77262611b..dba50e9beb6a 100644 --- a/docs/_docs/reference/changed-features/match-syntax.md +++ b/docs/_docs/reference/changed-features/match-syntax.md @@ -1,7 +1,7 @@ --- layout: doc-page title: "Match Expressions" -movedTo: https://docs.scala-lang.org/scala3/reference/changed-features/match-syntax.html +nightlyOf: https://docs.scala-lang.org/scala3/reference/changed-features/match-syntax.html --- The syntactical precedence of match expressions has been changed. diff --git a/docs/_docs/reference/changed-features/numeric-literals.md b/docs/_docs/reference/changed-features/numeric-literals.md index 758cc2e21373..bba837dbf67d 100644 --- a/docs/_docs/reference/changed-features/numeric-literals.md +++ b/docs/_docs/reference/changed-features/numeric-literals.md @@ -1,7 +1,7 @@ --- layout: doc-page title: "Numeric Literals" -movedTo: https://docs.scala-lang.org/scala3/reference/changed-features/numeric-literals.html +nightlyOf: https://docs.scala-lang.org/scala3/reference/changed-features/numeric-literals.html --- [Document was moved](../experimental/numeric-literals.md) diff --git a/docs/_docs/reference/changed-features/operators.md b/docs/_docs/reference/changed-features/operators.md index 9b4e20dadfe5..0cf25d77bc11 100644 --- a/docs/_docs/reference/changed-features/operators.md +++ b/docs/_docs/reference/changed-features/operators.md @@ -1,7 +1,7 @@ --- layout: doc-page title: "Rules for Operators" -movedTo: https://docs.scala-lang.org/scala3/reference/changed-features/operators.html +nightlyOf: https://docs.scala-lang.org/scala3/reference/changed-features/operators.html --- The rules for infix operators have changed in some parts: diff --git a/docs/_docs/reference/changed-features/overload-resolution.md b/docs/_docs/reference/changed-features/overload-resolution.md index acdf3e96a381..bd7782ded520 100644 --- a/docs/_docs/reference/changed-features/overload-resolution.md +++ b/docs/_docs/reference/changed-features/overload-resolution.md @@ -1,7 +1,7 @@ --- layout: doc-page title: "Changes in Overload Resolution" -movedTo: https://docs.scala-lang.org/scala3/reference/changed-features/overload-resolution.html +nightlyOf: https://docs.scala-lang.org/scala3/reference/changed-features/overload-resolution.html --- Overload resolution in Scala 3 improves on Scala 2 in three ways. diff --git a/docs/_docs/reference/changed-features/pattern-bindings.md b/docs/_docs/reference/changed-features/pattern-bindings.md index 2c8d1c10ceae..ae2a5dbbbe6a 100644 --- a/docs/_docs/reference/changed-features/pattern-bindings.md +++ b/docs/_docs/reference/changed-features/pattern-bindings.md @@ -1,7 +1,7 @@ --- layout: doc-page title: "Pattern Bindings" -movedTo: https://docs.scala-lang.org/scala3/reference/changed-features/pattern-bindings.html +nightlyOf: https://docs.scala-lang.org/scala3/reference/changed-features/pattern-bindings.html --- In Scala 2, pattern bindings in `val` definitions and `for` expressions are diff --git a/docs/_docs/reference/changed-features/pattern-matching.md b/docs/_docs/reference/changed-features/pattern-matching.md index b4660f893141..dfd4b5a9a225 100644 --- a/docs/_docs/reference/changed-features/pattern-matching.md +++ b/docs/_docs/reference/changed-features/pattern-matching.md @@ -1,7 +1,7 @@ --- layout: doc-page title: "Option-less pattern matching" -movedTo: https://docs.scala-lang.org/scala3/reference/changed-features/pattern-matching.html +nightlyOf: https://docs.scala-lang.org/scala3/reference/changed-features/pattern-matching.html --- The implementation of pattern matching in Scala 3 was greatly simplified compared to Scala 2. From a user perspective, this means that Scala 3 generated patterns are a *lot* easier to debug, as variables all show up in debug modes and positions are correctly preserved. diff --git a/docs/_docs/reference/changed-features/structural-types-spec.md b/docs/_docs/reference/changed-features/structural-types-spec.md index 290189a67eda..d456932649fb 100644 --- a/docs/_docs/reference/changed-features/structural-types-spec.md +++ b/docs/_docs/reference/changed-features/structural-types-spec.md @@ -1,7 +1,7 @@ --- layout: doc-page title: "Programmatic Structural Types - More Details" -movedTo: https://docs.scala-lang.org/scala3/reference/changed-features/structural-types-spec.html +nightlyOf: https://docs.scala-lang.org/scala3/reference/changed-features/structural-types-spec.html --- ## Syntax diff --git a/docs/_docs/reference/changed-features/structural-types.md b/docs/_docs/reference/changed-features/structural-types.md index cc07487feb4d..091ee6aec264 100644 --- a/docs/_docs/reference/changed-features/structural-types.md +++ b/docs/_docs/reference/changed-features/structural-types.md @@ -1,7 +1,7 @@ --- layout: doc-page title: "Programmatic Structural Types" -movedTo: https://docs.scala-lang.org/scala3/reference/changed-features/structural-types.html +nightlyOf: https://docs.scala-lang.org/scala3/reference/changed-features/structural-types.html --- ## Motivation diff --git a/docs/_docs/reference/changed-features/type-checking.md b/docs/_docs/reference/changed-features/type-checking.md index 09a62698d4c7..6f59b1a1c1c6 100644 --- a/docs/_docs/reference/changed-features/type-checking.md +++ b/docs/_docs/reference/changed-features/type-checking.md @@ -1,7 +1,7 @@ --- layout: doc-page title: "Changes in Type Checking" -movedTo: https://docs.scala-lang.org/scala3/reference/changed-features/type-checking.html +nightlyOf: https://docs.scala-lang.org/scala3/reference/changed-features/type-checking.html --- *** **TO BE FILLED IN** *** diff --git a/docs/_docs/reference/changed-features/type-inference.md b/docs/_docs/reference/changed-features/type-inference.md index 020878444914..00d0e959f5ed 100644 --- a/docs/_docs/reference/changed-features/type-inference.md +++ b/docs/_docs/reference/changed-features/type-inference.md @@ -1,7 +1,7 @@ --- layout: doc-page title: "Changes in Type Inference" -movedTo: https://docs.scala-lang.org/scala3/reference/changed-features/type-inference.html +nightlyOf: https://docs.scala-lang.org/scala3/reference/changed-features/type-inference.html --- For more information, see the two presentations diff --git a/docs/_docs/reference/changed-features/vararg-splices.md b/docs/_docs/reference/changed-features/vararg-splices.md index 1d8b61408176..43c4acc5f880 100644 --- a/docs/_docs/reference/changed-features/vararg-splices.md +++ b/docs/_docs/reference/changed-features/vararg-splices.md @@ -1,7 +1,7 @@ --- layout: doc-page title: "Vararg Splices" -movedTo: https://docs.scala-lang.org/scala3/reference/changed-features/vararg-splices.html +nightlyOf: https://docs.scala-lang.org/scala3/reference/changed-features/vararg-splices.html --- The syntax of vararg splices in patterns and function arguments has changed. The new syntax uses a postfix `*`, analogously to how a vararg parameter is declared. diff --git a/docs/_docs/reference/changed-features/wildcards.md b/docs/_docs/reference/changed-features/wildcards.md index 3336f43c3795..6ef3e66c5e24 100644 --- a/docs/_docs/reference/changed-features/wildcards.md +++ b/docs/_docs/reference/changed-features/wildcards.md @@ -1,7 +1,7 @@ --- layout: doc-page title: Wildcard Arguments in Types -movedTo: https://docs.scala-lang.org/scala3/reference/changed-features/wildcards.html +nightlyOf: https://docs.scala-lang.org/scala3/reference/changed-features/wildcards.html --- The syntax of wildcard arguments in types has changed from `_` to `?`. Example: diff --git a/docs/_docs/reference/contextual/by-name-context-parameters.md b/docs/_docs/reference/contextual/by-name-context-parameters.md index 8e8427f7457f..593ebc6be7cc 100644 --- a/docs/_docs/reference/contextual/by-name-context-parameters.md +++ b/docs/_docs/reference/contextual/by-name-context-parameters.md @@ -1,7 +1,7 @@ --- layout: doc-page title: "By-Name Context Parameters" -movedTo: https://docs.scala-lang.org/scala3/reference/contextual/by-name-context-parameters.html +nightlyOf: https://docs.scala-lang.org/scala3/reference/contextual/by-name-context-parameters.html --- Context parameters can be declared by-name to avoid a divergent inferred expansion. Example: diff --git a/docs/_docs/reference/contextual/context-bounds.md b/docs/_docs/reference/contextual/context-bounds.md index e336f00cc463..5fb9152ed1aa 100644 --- a/docs/_docs/reference/contextual/context-bounds.md +++ b/docs/_docs/reference/contextual/context-bounds.md @@ -1,7 +1,7 @@ --- layout: doc-page title: "Context Bounds" -movedTo: https://docs.scala-lang.org/scala3/reference/contextual/context-bounds.html +nightlyOf: https://docs.scala-lang.org/scala3/reference/contextual/context-bounds.html --- A context bound is a shorthand for expressing the common pattern of a context parameter that depends on a type parameter. Using a context bound, the `maximum` function of the last section can be written like this: diff --git a/docs/_docs/reference/contextual/context-functions-spec.md b/docs/_docs/reference/contextual/context-functions-spec.md index 3c61e0e0c6ca..66a5bed432ce 100644 --- a/docs/_docs/reference/contextual/context-functions-spec.md +++ b/docs/_docs/reference/contextual/context-functions-spec.md @@ -1,7 +1,7 @@ --- layout: doc-page title: "Context Functions - More Details" -movedTo: https://docs.scala-lang.org/scala3/reference/contextual/context-functions-spec.html +nightlyOf: https://docs.scala-lang.org/scala3/reference/contextual/context-functions-spec.html --- ## Syntax diff --git a/docs/_docs/reference/contextual/context-functions.md b/docs/_docs/reference/contextual/context-functions.md index c556a0cadf8f..6eb838896fc9 100644 --- a/docs/_docs/reference/contextual/context-functions.md +++ b/docs/_docs/reference/contextual/context-functions.md @@ -1,7 +1,7 @@ --- layout: doc-page title: "Context Functions" -movedTo: https://docs.scala-lang.org/scala3/reference/contextual/context-functions.html +nightlyOf: https://docs.scala-lang.org/scala3/reference/contextual/context-functions.html --- _Context functions_ are functions with (only) context parameters. diff --git a/docs/_docs/reference/contextual/contextual.md b/docs/_docs/reference/contextual/contextual.md index 67200a7626ca..a2eaa8a27d2f 100644 --- a/docs/_docs/reference/contextual/contextual.md +++ b/docs/_docs/reference/contextual/contextual.md @@ -1,7 +1,7 @@ --- layout: index title: "Contextual Abstractions" -movedTo: https://docs.scala-lang.org/scala3/reference/contextual.html +nightlyOf: https://docs.scala-lang.org/scala3/reference/contextual.html --- ### Critique of the Status Quo diff --git a/docs/_docs/reference/contextual/conversions.md b/docs/_docs/reference/contextual/conversions.md index 9928719663e2..1ce8d42074e7 100644 --- a/docs/_docs/reference/contextual/conversions.md +++ b/docs/_docs/reference/contextual/conversions.md @@ -1,7 +1,7 @@ --- layout: doc-page title: "Implicit Conversions" -movedTo: https://docs.scala-lang.org/scala3/reference/contextual/conversions.html +nightlyOf: https://docs.scala-lang.org/scala3/reference/contextual/conversions.html --- Implicit conversions are defined by given instances of the `scala.Conversion` class. diff --git a/docs/_docs/reference/contextual/derivation-macro.md b/docs/_docs/reference/contextual/derivation-macro.md index e404e2592000..c63c7e715208 100644 --- a/docs/_docs/reference/contextual/derivation-macro.md +++ b/docs/_docs/reference/contextual/derivation-macro.md @@ -1,7 +1,7 @@ --- layout: doc-page title: "How to write a type class `derived` method using macros" -movedTo: https://docs.scala-lang.org/scala3/reference/contextual/derivation-macro.html +nightlyOf: https://docs.scala-lang.org/scala3/reference/contextual/derivation-macro.html --- In the main [derivation](./derivation.md) documentation page, we explained the diff --git a/docs/_docs/reference/contextual/derivation.md b/docs/_docs/reference/contextual/derivation.md index 8c2b76fba0cb..4f2b963473e8 100644 --- a/docs/_docs/reference/contextual/derivation.md +++ b/docs/_docs/reference/contextual/derivation.md @@ -1,7 +1,7 @@ --- layout: doc-page title: "Type Class Derivation" -movedTo: https://docs.scala-lang.org/scala3/reference/contextual/derivation.html +nightlyOf: https://docs.scala-lang.org/scala3/reference/contextual/derivation.html --- Type class derivation is a way to automatically generate given instances for type classes which satisfy some simple diff --git a/docs/_docs/reference/contextual/extension-methods.md b/docs/_docs/reference/contextual/extension-methods.md index c2a12081cf99..77e06ee687b2 100644 --- a/docs/_docs/reference/contextual/extension-methods.md +++ b/docs/_docs/reference/contextual/extension-methods.md @@ -1,7 +1,7 @@ --- layout: doc-page title: "Extension Methods" -movedTo: https://docs.scala-lang.org/scala3/reference/contextual/extension-methods.html +nightlyOf: https://docs.scala-lang.org/scala3/reference/contextual/extension-methods.html --- Extension methods allow one to add methods to a type after the type is defined. Example: diff --git a/docs/_docs/reference/contextual/given-imports.md b/docs/_docs/reference/contextual/given-imports.md index 3e3bc3d275cc..c5936a58a4a6 100644 --- a/docs/_docs/reference/contextual/given-imports.md +++ b/docs/_docs/reference/contextual/given-imports.md @@ -1,7 +1,7 @@ --- layout: doc-page title: "Importing Givens" -movedTo: https://docs.scala-lang.org/scala3/reference/contextual/given-imports.html +nightlyOf: https://docs.scala-lang.org/scala3/reference/contextual/given-imports.html --- A special form of import wildcard selector is used to import given instances. Example: diff --git a/docs/_docs/reference/contextual/givens.md b/docs/_docs/reference/contextual/givens.md index 1d0baae9e257..411d50ba63ea 100644 --- a/docs/_docs/reference/contextual/givens.md +++ b/docs/_docs/reference/contextual/givens.md @@ -1,7 +1,7 @@ --- layout: doc-page title: "Given Instances" -movedTo: https://docs.scala-lang.org/scala3/reference/contextual/givens.html +nightlyOf: https://docs.scala-lang.org/scala3/reference/contextual/givens.html --- Given instances (or, simply, "givens") define "canonical" values of certain types diff --git a/docs/_docs/reference/contextual/multiversal-equality.md b/docs/_docs/reference/contextual/multiversal-equality.md index f01b64d2e444..e9a81b95f472 100644 --- a/docs/_docs/reference/contextual/multiversal-equality.md +++ b/docs/_docs/reference/contextual/multiversal-equality.md @@ -1,7 +1,7 @@ --- layout: doc-page title: "Multiversal Equality" -movedTo: https://docs.scala-lang.org/scala3/reference/contextual/multiversal-equality.html +nightlyOf: https://docs.scala-lang.org/scala3/reference/contextual/multiversal-equality.html --- Previously, Scala had universal equality: Two values of any types diff --git a/docs/_docs/reference/contextual/relationship-implicits.md b/docs/_docs/reference/contextual/relationship-implicits.md index 2d256d061e59..fce07f51151a 100644 --- a/docs/_docs/reference/contextual/relationship-implicits.md +++ b/docs/_docs/reference/contextual/relationship-implicits.md @@ -1,7 +1,7 @@ --- layout: doc-page title: "Relationship with Scala 2 Implicits" -movedTo: https://docs.scala-lang.org/scala3/reference/contextual/relationship-implicits.html +nightlyOf: https://docs.scala-lang.org/scala3/reference/contextual/relationship-implicits.html --- Many, but not all, of the new contextual abstraction features in Scala 3 can be mapped to Scala 2's implicits. This page gives a rundown on the relationships between new and old features. diff --git a/docs/_docs/reference/contextual/right-associative-extension-methods.md b/docs/_docs/reference/contextual/right-associative-extension-methods.md index 7c2cf6b02675..068123df8cd2 100644 --- a/docs/_docs/reference/contextual/right-associative-extension-methods.md +++ b/docs/_docs/reference/contextual/right-associative-extension-methods.md @@ -1,7 +1,7 @@ --- layout: doc-page title: "Right-Associative Extension Methods: Details" -movedTo: https://docs.scala-lang.org/scala3/reference/contextual/right-associative-extension-methods.html +nightlyOf: https://docs.scala-lang.org/scala3/reference/contextual/right-associative-extension-methods.html --- The most general form of leading parameters of an extension method is as follows: diff --git a/docs/_docs/reference/contextual/type-classes.md b/docs/_docs/reference/contextual/type-classes.md index c4648b3baf28..71403ee6b9c3 100644 --- a/docs/_docs/reference/contextual/type-classes.md +++ b/docs/_docs/reference/contextual/type-classes.md @@ -1,7 +1,7 @@ --- layout: doc-page title: "Implementing Type classes" -movedTo: https://docs.scala-lang.org/scala3/reference/contextual/type-classes.html +nightlyOf: https://docs.scala-lang.org/scala3/reference/contextual/type-classes.html --- A _type class_ is an abstract, parameterized type that lets you add new behavior to any closed data type without using sub-typing. This can be useful in multiple use-cases, for example: diff --git a/docs/_docs/reference/contextual/using-clauses.md b/docs/_docs/reference/contextual/using-clauses.md index 8c522d82c402..9187e1916e7d 100644 --- a/docs/_docs/reference/contextual/using-clauses.md +++ b/docs/_docs/reference/contextual/using-clauses.md @@ -1,7 +1,7 @@ --- layout: doc-page title: "Using Clauses" -movedTo: https://docs.scala-lang.org/scala3/reference/contextual/using-clauses.html +nightlyOf: https://docs.scala-lang.org/scala3/reference/contextual/using-clauses.html --- Functional programming tends to express most dependencies as simple function parameterization. diff --git a/docs/_docs/reference/dropped-features/auto-apply.md b/docs/_docs/reference/dropped-features/auto-apply.md index c5424ffff22d..154bd2620635 100644 --- a/docs/_docs/reference/dropped-features/auto-apply.md +++ b/docs/_docs/reference/dropped-features/auto-apply.md @@ -1,7 +1,7 @@ --- layout: doc-page title: "Dropped: Auto-Application" -movedTo: https://docs.scala-lang.org/scala3/reference/dropped-features/auto-apply.html +nightlyOf: https://docs.scala-lang.org/scala3/reference/dropped-features/auto-apply.html --- Previously an empty argument list `()` was implicitly inserted when diff --git a/docs/_docs/reference/dropped-features/class-shadowing-spec.md b/docs/_docs/reference/dropped-features/class-shadowing-spec.md index 98acff828cd3..6c81087408c6 100644 --- a/docs/_docs/reference/dropped-features/class-shadowing-spec.md +++ b/docs/_docs/reference/dropped-features/class-shadowing-spec.md @@ -1,7 +1,7 @@ --- layout: doc-page title: "Dropped: Class Shadowing - More Details" -movedTo: https://docs.scala-lang.org/scala3/reference/dropped-features/class-shadowing-spec.html +nightlyOf: https://docs.scala-lang.org/scala3/reference/dropped-features/class-shadowing-spec.html --- Spec diff: in section [5.1.4 Overriding](https://www.scala-lang.org/files/archive/spec/2.13/05-classes-and-objects.html#Overriding), add *M' must not be a class*. diff --git a/docs/_docs/reference/dropped-features/class-shadowing.md b/docs/_docs/reference/dropped-features/class-shadowing.md index 839b40253169..8bfdb1eb196c 100644 --- a/docs/_docs/reference/dropped-features/class-shadowing.md +++ b/docs/_docs/reference/dropped-features/class-shadowing.md @@ -1,7 +1,7 @@ --- layout: doc-page title: "Dropped: Class Shadowing" -movedTo: https://docs.scala-lang.org/scala3/reference/dropped-features/class-shadowing.html +nightlyOf: https://docs.scala-lang.org/scala3/reference/dropped-features/class-shadowing.html --- Scala 2 so far allowed patterns like this: diff --git a/docs/_docs/reference/dropped-features/delayed-init.md b/docs/_docs/reference/dropped-features/delayed-init.md index ab48de388569..5d4f614ce951 100644 --- a/docs/_docs/reference/dropped-features/delayed-init.md +++ b/docs/_docs/reference/dropped-features/delayed-init.md @@ -1,7 +1,7 @@ --- layout: doc-page title: "Dropped: DelayedInit" -movedTo: https://docs.scala-lang.org/scala3/reference/dropped-features/delayed-init.html +nightlyOf: https://docs.scala-lang.org/scala3/reference/dropped-features/delayed-init.html --- The special handling of the [`DelayedInit`](https://scala-lang.org/api/3.x/scala/DelayedInit.html) diff --git a/docs/_docs/reference/dropped-features/do-while.md b/docs/_docs/reference/dropped-features/do-while.md index 5f5ca5feeea2..be86a73fd40d 100644 --- a/docs/_docs/reference/dropped-features/do-while.md +++ b/docs/_docs/reference/dropped-features/do-while.md @@ -1,7 +1,7 @@ --- layout: doc-page title: "Dropped: Do-While" -movedTo: https://docs.scala-lang.org/scala3/reference/dropped-features/do-while.html +nightlyOf: https://docs.scala-lang.org/scala3/reference/dropped-features/do-while.html --- The syntax construct diff --git a/docs/_docs/reference/dropped-features/dropped-features.md b/docs/_docs/reference/dropped-features/dropped-features.md index 51fbbc8a26ab..f6a13d9fa5da 100644 --- a/docs/_docs/reference/dropped-features/dropped-features.md +++ b/docs/_docs/reference/dropped-features/dropped-features.md @@ -1,7 +1,7 @@ --- layout: index title: "Dropped Features" -movedTo: https://docs.scala-lang.org/scala3/reference/dropped-features.html +nightlyOf: https://docs.scala-lang.org/scala3/reference/dropped-features.html --- The following pages document the features of Scala 2 that have been dropped in Scala 3. diff --git a/docs/_docs/reference/dropped-features/early-initializers.md b/docs/_docs/reference/dropped-features/early-initializers.md index cb2ffea94376..6f7c59c4f031 100644 --- a/docs/_docs/reference/dropped-features/early-initializers.md +++ b/docs/_docs/reference/dropped-features/early-initializers.md @@ -1,7 +1,7 @@ --- layout: doc-page title: "Dropped: Early Initializers" -movedTo: https://docs.scala-lang.org/scala3/reference/dropped-features/early-initializers.html +nightlyOf: https://docs.scala-lang.org/scala3/reference/dropped-features/early-initializers.html --- Early initializers of the form diff --git a/docs/_docs/reference/dropped-features/existential-types.md b/docs/_docs/reference/dropped-features/existential-types.md index 4d7d9e2f8c10..6ef815152cd0 100644 --- a/docs/_docs/reference/dropped-features/existential-types.md +++ b/docs/_docs/reference/dropped-features/existential-types.md @@ -1,7 +1,7 @@ --- layout: doc-page title: "Dropped: Existential Types" -movedTo: https://docs.scala-lang.org/scala3/reference/dropped-features/existential-types.html +nightlyOf: https://docs.scala-lang.org/scala3/reference/dropped-features/existential-types.html --- Existential types using `forSome` (as in diff --git a/docs/_docs/reference/dropped-features/limit22.md b/docs/_docs/reference/dropped-features/limit22.md index 514120fd2ce9..e72aeadbe2ca 100644 --- a/docs/_docs/reference/dropped-features/limit22.md +++ b/docs/_docs/reference/dropped-features/limit22.md @@ -1,7 +1,7 @@ --- layout: doc-page title: "Dropped: Limit 22" -movedTo: https://docs.scala-lang.org/scala3/reference/dropped-features/limit22.html +nightlyOf: https://docs.scala-lang.org/scala3/reference/dropped-features/limit22.html --- The limits of 22 for the maximal number of parameters of function types and the diff --git a/docs/_docs/reference/dropped-features/macros.md b/docs/_docs/reference/dropped-features/macros.md index e71bf120fe13..7ffe9043d0cd 100644 --- a/docs/_docs/reference/dropped-features/macros.md +++ b/docs/_docs/reference/dropped-features/macros.md @@ -1,7 +1,7 @@ --- layout: doc-page title: "Dropped: Scala 2 Macros" -movedTo: https://docs.scala-lang.org/scala3/reference/dropped-features/macros.html +nightlyOf: https://docs.scala-lang.org/scala3/reference/dropped-features/macros.html --- The previous, experimental macro system has been dropped. diff --git a/docs/_docs/reference/dropped-features/nonlocal-returns.md b/docs/_docs/reference/dropped-features/nonlocal-returns.md index 99cdcdf0cd03..aa5245159b41 100644 --- a/docs/_docs/reference/dropped-features/nonlocal-returns.md +++ b/docs/_docs/reference/dropped-features/nonlocal-returns.md @@ -2,7 +2,7 @@ layout: doc-page title: "Deprecated: Nonlocal Returns" -movedTo: https://docs.scala-lang.org/scala3/reference/dropped-features/nonlocal-returns.html +nightlyOf: https://docs.scala-lang.org/scala3/reference/dropped-features/nonlocal-returns.html --- Returning from nested anonymous functions has been deprecated. diff --git a/docs/_docs/reference/dropped-features/package-objects.md b/docs/_docs/reference/dropped-features/package-objects.md index 5e58b5479fd8..d8149e460bf5 100644 --- a/docs/_docs/reference/dropped-features/package-objects.md +++ b/docs/_docs/reference/dropped-features/package-objects.md @@ -1,7 +1,7 @@ --- layout: doc-page title: "Dropped: Package Objects" -movedTo: https://docs.scala-lang.org/scala3/reference/dropped-features/package-objects.html +nightlyOf: https://docs.scala-lang.org/scala3/reference/dropped-features/package-objects.html --- Package objects diff --git a/docs/_docs/reference/dropped-features/procedure-syntax.md b/docs/_docs/reference/dropped-features/procedure-syntax.md index cc82636d370d..de76fbb32af2 100644 --- a/docs/_docs/reference/dropped-features/procedure-syntax.md +++ b/docs/_docs/reference/dropped-features/procedure-syntax.md @@ -1,7 +1,7 @@ --- layout: doc-page title: "Dropped: Procedure Syntax" -movedTo: https://docs.scala-lang.org/scala3/reference/dropped-features/procedure-syntax.html +nightlyOf: https://docs.scala-lang.org/scala3/reference/dropped-features/procedure-syntax.html --- Procedure syntax diff --git a/docs/_docs/reference/dropped-features/symlits.md b/docs/_docs/reference/dropped-features/symlits.md index cec98030a831..d3c0180b16e6 100644 --- a/docs/_docs/reference/dropped-features/symlits.md +++ b/docs/_docs/reference/dropped-features/symlits.md @@ -1,7 +1,7 @@ --- layout: doc-page title: "Dropped: Symbol Literals" -movedTo: https://docs.scala-lang.org/scala3/reference/dropped-features/symlits.html +nightlyOf: https://docs.scala-lang.org/scala3/reference/dropped-features/symlits.html --- Symbol literals are no longer supported. diff --git a/docs/_docs/reference/dropped-features/this-qualifier.md b/docs/_docs/reference/dropped-features/this-qualifier.md index e1814e1d194e..4fcadff8fae3 100644 --- a/docs/_docs/reference/dropped-features/this-qualifier.md +++ b/docs/_docs/reference/dropped-features/this-qualifier.md @@ -1,7 +1,7 @@ --- layout: doc-page title: "Dropped: private[this] and protected[this]" -movedTo: https://docs.scala-lang.org/scala3/reference/dropped-features/this-qualifier.html +nightlyOf: https://docs.scala-lang.org/scala3/reference/dropped-features/this-qualifier.html --- The `private[this]` and `protected[this]` access modifiers are deprecated and will be phased out. diff --git a/docs/_docs/reference/dropped-features/type-projection.md b/docs/_docs/reference/dropped-features/type-projection.md index f45eff5c423f..08b5ffb34eca 100644 --- a/docs/_docs/reference/dropped-features/type-projection.md +++ b/docs/_docs/reference/dropped-features/type-projection.md @@ -1,7 +1,7 @@ --- layout: doc-page title: "Dropped: General Type Projection" -movedTo: https://docs.scala-lang.org/scala3/reference/dropped-features/type-projection.html +nightlyOf: https://docs.scala-lang.org/scala3/reference/dropped-features/type-projection.html --- Scala so far allowed general type projection `T#A` where `T` is an arbitrary type diff --git a/docs/_docs/reference/dropped-features/weak-conformance-spec.md b/docs/_docs/reference/dropped-features/weak-conformance-spec.md index 1432782a8e38..78fa0f553fd5 100644 --- a/docs/_docs/reference/dropped-features/weak-conformance-spec.md +++ b/docs/_docs/reference/dropped-features/weak-conformance-spec.md @@ -1,7 +1,7 @@ --- layout: doc-page title: "Dropped: Weak Conformance - More Details" -movedTo: https://docs.scala-lang.org/scala3/reference/dropped-features/weak-conformance-spec.html +nightlyOf: https://docs.scala-lang.org/scala3/reference/dropped-features/weak-conformance-spec.html --- To simplify the underlying type theory, Scala 3 drops the notion of diff --git a/docs/_docs/reference/dropped-features/weak-conformance.md b/docs/_docs/reference/dropped-features/weak-conformance.md index c2dabe39e7c7..b1478326b2c9 100644 --- a/docs/_docs/reference/dropped-features/weak-conformance.md +++ b/docs/_docs/reference/dropped-features/weak-conformance.md @@ -1,7 +1,7 @@ --- layout: doc-page title: "Dropped: Weak Conformance" -movedTo: https://docs.scala-lang.org/scala3/reference/dropped-features/weak-conformance.html +nightlyOf: https://docs.scala-lang.org/scala3/reference/dropped-features/weak-conformance.html --- In some situations, Scala used a _weak conformance_ relation when diff --git a/docs/_docs/reference/dropped-features/wildcard-init.md b/docs/_docs/reference/dropped-features/wildcard-init.md index c4b89674b11d..e42854079cf9 100644 --- a/docs/_docs/reference/dropped-features/wildcard-init.md +++ b/docs/_docs/reference/dropped-features/wildcard-init.md @@ -1,7 +1,7 @@ --- layout: doc-page title: "Dropped: Wildcard Initializer" -movedTo: https://docs.scala-lang.org/scala3/reference/dropped-features/wildcard-init.html +nightlyOf: https://docs.scala-lang.org/scala3/reference/dropped-features/wildcard-init.html --- The syntax diff --git a/docs/_docs/reference/dropped-features/xml.md b/docs/_docs/reference/dropped-features/xml.md index 9de06ca30f2e..458a347a66c4 100644 --- a/docs/_docs/reference/dropped-features/xml.md +++ b/docs/_docs/reference/dropped-features/xml.md @@ -1,7 +1,7 @@ --- layout: doc-page title: "Dropped: XML Literals" -movedTo: https://docs.scala-lang.org/scala3/reference/dropped-features/xml.html +nightlyOf: https://docs.scala-lang.org/scala3/reference/dropped-features/xml.html --- XML Literals are still supported, but will be dropped in the near future, to diff --git a/docs/_docs/reference/enums/adts.md b/docs/_docs/reference/enums/adts.md index 6fc5be78d7b8..818db9ee61be 100644 --- a/docs/_docs/reference/enums/adts.md +++ b/docs/_docs/reference/enums/adts.md @@ -1,7 +1,7 @@ --- layout: doc-page title: "Algebraic Data Types" -movedTo: https://docs.scala-lang.org/scala3/reference/enums/adts.html +nightlyOf: https://docs.scala-lang.org/scala3/reference/enums/adts.html --- The [`enum` concept](./enums.md) is general enough to also support algebraic data diff --git a/docs/_docs/reference/enums/desugarEnums.md b/docs/_docs/reference/enums/desugarEnums.md index 95df1a7513ce..a06736feb1f0 100644 --- a/docs/_docs/reference/enums/desugarEnums.md +++ b/docs/_docs/reference/enums/desugarEnums.md @@ -1,7 +1,7 @@ --- layout: doc-page title: "Translation of Enums and ADTs" -movedTo: https://docs.scala-lang.org/scala3/reference/enums/desugarEnums.html +nightlyOf: https://docs.scala-lang.org/scala3/reference/enums/desugarEnums.html --- The compiler expands enums and their cases to code that only uses diff --git a/docs/_docs/reference/enums/enums-index.md b/docs/_docs/reference/enums/enums-index.md index c49afaffea0d..9fe77bec2dd4 100644 --- a/docs/_docs/reference/enums/enums-index.md +++ b/docs/_docs/reference/enums/enums-index.md @@ -1,7 +1,7 @@ --- layout: index title: "Enums" -movedTo: https://docs.scala-lang.org/scala3/reference/enums.html +nightlyOf: https://docs.scala-lang.org/scala3/reference/enums.html --- This chapter documents enums in Scala 3. diff --git a/docs/_docs/reference/enums/enums.md b/docs/_docs/reference/enums/enums.md index 02a4be043b61..2760fb037b2d 100644 --- a/docs/_docs/reference/enums/enums.md +++ b/docs/_docs/reference/enums/enums.md @@ -1,7 +1,7 @@ --- layout: doc-page title: "Enumerations" -movedTo: https://docs.scala-lang.org/scala3/reference/enums/enums.html +nightlyOf: https://docs.scala-lang.org/scala3/reference/enums/enums.html --- An enumeration is used to define a type consisting of a set of named values. diff --git a/docs/_docs/reference/experimental/canthrow.md b/docs/_docs/reference/experimental/canthrow.md index 222bc63b6739..025a0ed1c686 100644 --- a/docs/_docs/reference/experimental/canthrow.md +++ b/docs/_docs/reference/experimental/canthrow.md @@ -1,7 +1,7 @@ --- layout: doc-page title: "CanThrow Capabilities" -movedTo: https://docs.scala-lang.org/scala3/reference/experimental/canthrow.html +nightlyOf: https://docs.scala-lang.org/scala3/reference/experimental/canthrow.html --- This page describes experimental support for exception checking in Scala 3. It is enabled by the language import diff --git a/docs/_docs/reference/experimental/erased-defs-spec.md b/docs/_docs/reference/experimental/erased-defs-spec.md index 7ca815878b55..5395a8468399 100644 --- a/docs/_docs/reference/experimental/erased-defs-spec.md +++ b/docs/_docs/reference/experimental/erased-defs-spec.md @@ -1,7 +1,7 @@ --- layout: doc-page title: "Erased Definitions - More Details" -movedTo: https://docs.scala-lang.org/scala3/reference/experimental/erased-defs-spec.html +nightlyOf: https://docs.scala-lang.org/scala3/reference/experimental/erased-defs-spec.html --- TODO: complete diff --git a/docs/_docs/reference/experimental/erased-defs.md b/docs/_docs/reference/experimental/erased-defs.md index d8562d20b420..28455f26cdc0 100644 --- a/docs/_docs/reference/experimental/erased-defs.md +++ b/docs/_docs/reference/experimental/erased-defs.md @@ -1,7 +1,7 @@ --- layout: doc-page title: "Erased Definitions" -movedTo: https://docs.scala-lang.org/scala3/reference/experimental/erased-defs.html +nightlyOf: https://docs.scala-lang.org/scala3/reference/experimental/erased-defs.html --- `erased` is a modifier that expresses that some definition or expression is erased by the compiler instead of being represented in the compiled output. It is not yet part of the Scala language standard. To enable `erased`, turn on the language feature diff --git a/docs/_docs/reference/experimental/explicit-nulls.md b/docs/_docs/reference/experimental/explicit-nulls.md index ec2298e3795a..bb13151b91a7 100644 --- a/docs/_docs/reference/experimental/explicit-nulls.md +++ b/docs/_docs/reference/experimental/explicit-nulls.md @@ -1,7 +1,7 @@ --- layout: doc-page title: "Explicit Nulls" -movedTo: https://docs.scala-lang.org/scala3/reference/other-new-features/explicit-nulls.html +nightlyOf: https://docs.scala-lang.org/scala3/reference/other-new-features/explicit-nulls.html --- Explicit nulls is an opt-in feature that modifies the Scala type system, which makes reference types diff --git a/docs/_docs/reference/experimental/fewer-braces.md b/docs/_docs/reference/experimental/fewer-braces.md index 644875c3774f..a6275e73a413 100644 --- a/docs/_docs/reference/experimental/fewer-braces.md +++ b/docs/_docs/reference/experimental/fewer-braces.md @@ -1,7 +1,7 @@ --- layout: doc-page title: "Fewer Braces" -movedTo: https://docs.scala-lang.org/scala3/reference/experimental/fewer-braces.html +nightlyOf: https://docs.scala-lang.org/scala3/reference/experimental/fewer-braces.html --- By and large, the possible indentation regions coincide with those regions where braces `{...}` are also legal, no matter whether the braces enclose an expression or a set of definitions. There is one exception, though: Arguments to function can be enclosed in braces but they cannot be simply indented instead. Making indentation always significant for function arguments would be too restrictive and fragile. diff --git a/docs/_docs/reference/experimental/named-typeargs-spec.md b/docs/_docs/reference/experimental/named-typeargs-spec.md index 7bf5c2f43ccf..9e1113bbac86 100644 --- a/docs/_docs/reference/experimental/named-typeargs-spec.md +++ b/docs/_docs/reference/experimental/named-typeargs-spec.md @@ -1,7 +1,7 @@ --- layout: doc-page title: "Named Type Arguments - More Details" -movedTo: https://docs.scala-lang.org/scala3/reference/experimental/named-typeargs-spec.html +nightlyOf: https://docs.scala-lang.org/scala3/reference/experimental/named-typeargs-spec.html --- In this section we give more details about the [named type arguments](named-typeargs.md) (*experimental*). diff --git a/docs/_docs/reference/experimental/named-typeargs.md b/docs/_docs/reference/experimental/named-typeargs.md index 2b83349f2e13..4928a40f8a6a 100644 --- a/docs/_docs/reference/experimental/named-typeargs.md +++ b/docs/_docs/reference/experimental/named-typeargs.md @@ -2,7 +2,7 @@ layout: doc-page title: "Named Type Arguments" redirectFrom: /docs/reference/other-new-features/named-typeargs.html -movedTo: https://docs.scala-lang.org/scala3/reference/experimental/named-typeargs.html +nightlyOf: https://docs.scala-lang.org/scala3/reference/experimental/named-typeargs.html --- **Note:** This feature is implemented in Scala 3, but is not expected to be part of Scala 3.0. diff --git a/docs/_docs/reference/experimental/numeric-literals.md b/docs/_docs/reference/experimental/numeric-literals.md index 56684d2722d5..0a4c1ac8d77d 100644 --- a/docs/_docs/reference/experimental/numeric-literals.md +++ b/docs/_docs/reference/experimental/numeric-literals.md @@ -1,7 +1,7 @@ --- layout: doc-page title: "Numeric Literals" -movedTo: https://docs.scala-lang.org/scala3/reference/experimental/numeric-literals.html +nightlyOf: https://docs.scala-lang.org/scala3/reference/experimental/numeric-literals.html --- **Note**: This feature is not yet part of the Scala 3 language definition. It can be made available by a language import: diff --git a/docs/_docs/reference/experimental/overview.md b/docs/_docs/reference/experimental/overview.md index 96677ef16b0b..46f5b6445fe3 100644 --- a/docs/_docs/reference/experimental/overview.md +++ b/docs/_docs/reference/experimental/overview.md @@ -1,7 +1,7 @@ --- layout: doc-page title: "Experimental" -movedTo: https://docs.scala-lang.org/scala3/reference/experimental/overview.html +nightlyOf: https://docs.scala-lang.org/scala3/reference/experimental/overview.html redirectFrom: overview.html --- diff --git a/docs/_docs/reference/features-classification.md b/docs/_docs/reference/features-classification.md index 21da1dfc065a..36cea3b9e72d 100644 --- a/docs/_docs/reference/features-classification.md +++ b/docs/_docs/reference/features-classification.md @@ -1,7 +1,7 @@ --- layout: doc-page title: "A Classification of Proposed Language Features" -movedTo: https://docs.scala-lang.org/scala3/reference/features-classification.html +nightlyOf: https://docs.scala-lang.org/scala3/reference/features-classification.html --- This document provides an overview of the constructs proposed for Scala 3 with the aim to facilitate the discussion what to include and when to include it. It classifies features into eight groups: (1) essential foundations, (2) simplifications, (3) restrictions, (4) dropped features, (5) changed features, (6) new features, (7) features oriented towards metaprogramming with the aim to replace existing macros, and (8) changes to type checking and inference. diff --git a/docs/_docs/reference/language-versions/source-compatibility.md b/docs/_docs/reference/language-versions/source-compatibility.md index 029a3674ba73..eaab2784a580 100644 --- a/docs/_docs/reference/language-versions/source-compatibility.md +++ b/docs/_docs/reference/language-versions/source-compatibility.md @@ -1,7 +1,7 @@ --- layout: doc-page title: "Source Compatibility" -movedTo: https://docs.scala-lang.org/scala3/reference/language-versions.html +nightlyOf: https://docs.scala-lang.org/scala3/reference/language-versions.html --- Scala 3 does NOT guarantee source compatibility between different minor language versions (e.g. some syntax valid in 3.x might get deprecated and then phased out in 3.y for y > x). There are also some syntax structures that were valid in Scala 2 but are not anymore in Scala 3. However the compiler provides a possibility to specify the desired version of syntax used in a particular file or globally for a run of the compiler to make migration between versions easier. diff --git a/docs/_docs/reference/metaprogramming/compiletime-ops.md b/docs/_docs/reference/metaprogramming/compiletime-ops.md index 944cdac5389a..2e879d3ddc9e 100644 --- a/docs/_docs/reference/metaprogramming/compiletime-ops.md +++ b/docs/_docs/reference/metaprogramming/compiletime-ops.md @@ -1,7 +1,7 @@ --- layout: doc-page title: "Compile-time operations" -movedTo: https://docs.scala-lang.org/scala3/reference/metaprogramming/compiletime-ops.html +nightlyOf: https://docs.scala-lang.org/scala3/reference/metaprogramming/compiletime-ops.html --- ## The `scala.compiletime` Package diff --git a/docs/_docs/reference/metaprogramming/inline.md b/docs/_docs/reference/metaprogramming/inline.md index c625f4774a18..065b7a1e9e71 100644 --- a/docs/_docs/reference/metaprogramming/inline.md +++ b/docs/_docs/reference/metaprogramming/inline.md @@ -1,7 +1,7 @@ --- layout: doc-page title: Inline -movedTo: https://docs.scala-lang.org/scala3/reference/metaprogramming/inline.html +nightlyOf: https://docs.scala-lang.org/scala3/reference/metaprogramming/inline.html --- ## Inline Definitions diff --git a/docs/_docs/reference/metaprogramming/macros-spec.md b/docs/_docs/reference/metaprogramming/macros-spec.md index d152377e6d62..aa8f94a9a1f7 100644 --- a/docs/_docs/reference/metaprogramming/macros-spec.md +++ b/docs/_docs/reference/metaprogramming/macros-spec.md @@ -1,7 +1,7 @@ --- layout: doc-page title: "Macros Spec" -movedTo: https://docs.scala-lang.org/scala3/reference/metaprogramming/macros-spec.html +nightlyOf: https://docs.scala-lang.org/scala3/reference/metaprogramming/macros-spec.html --- ## Implementation diff --git a/docs/_docs/reference/metaprogramming/macros.md b/docs/_docs/reference/metaprogramming/macros.md index e1267ea82a59..8045794d1143 100644 --- a/docs/_docs/reference/metaprogramming/macros.md +++ b/docs/_docs/reference/metaprogramming/macros.md @@ -1,7 +1,7 @@ --- layout: doc-page title: "Macros" -movedTo: https://docs.scala-lang.org/scala3/reference/metaprogramming/macros.html +nightlyOf: https://docs.scala-lang.org/scala3/reference/metaprogramming/macros.html --- > When developing macros enable `-Xcheck-macros` scalac option flag to have extra runtime checks. diff --git a/docs/_docs/reference/metaprogramming/metaprogramming.md b/docs/_docs/reference/metaprogramming/metaprogramming.md index 6b682d3ce237..3bce2d7c922e 100644 --- a/docs/_docs/reference/metaprogramming/metaprogramming.md +++ b/docs/_docs/reference/metaprogramming/metaprogramming.md @@ -1,7 +1,7 @@ --- layout: index title: "Metaprogramming" -movedTo: https://docs.scala-lang.org/scala3/reference/metaprogramming.html +nightlyOf: https://docs.scala-lang.org/scala3/reference/metaprogramming.html --- The following pages introduce the redesign of metaprogramming in Scala. They diff --git a/docs/_docs/reference/metaprogramming/reflection.md b/docs/_docs/reference/metaprogramming/reflection.md index 74bb4f693e1b..b2d492657a4e 100644 --- a/docs/_docs/reference/metaprogramming/reflection.md +++ b/docs/_docs/reference/metaprogramming/reflection.md @@ -1,7 +1,7 @@ --- layout: doc-page title: "Reflection" -movedTo: https://docs.scala-lang.org/scala3/reference/metaprogramming/reflection.html +nightlyOf: https://docs.scala-lang.org/scala3/reference/metaprogramming/reflection.html --- Reflection enables inspection and construction of Typed Abstract Syntax Trees diff --git a/docs/_docs/reference/metaprogramming/simple-smp.md b/docs/_docs/reference/metaprogramming/simple-smp.md index 78277987c874..2ba0155ad329 100644 --- a/docs/_docs/reference/metaprogramming/simple-smp.md +++ b/docs/_docs/reference/metaprogramming/simple-smp.md @@ -1,7 +1,7 @@ --- layout: doc-page title: "The Meta-theory of Symmetric Metaprogramming" -movedTo: https://docs.scala-lang.org/scala3/reference/metaprogramming/simple-smp.html +nightlyOf: https://docs.scala-lang.org/scala3/reference/metaprogramming/simple-smp.html --- This note presents a simplified variant of diff --git a/docs/_docs/reference/metaprogramming/staging.md b/docs/_docs/reference/metaprogramming/staging.md index 65efd1afea67..e74d491402b5 100644 --- a/docs/_docs/reference/metaprogramming/staging.md +++ b/docs/_docs/reference/metaprogramming/staging.md @@ -1,7 +1,7 @@ --- layout: doc-page title: "Runtime Multi-Stage Programming" -movedTo: https://docs.scala-lang.org/scala3/reference/metaprogramming/staging.html +nightlyOf: https://docs.scala-lang.org/scala3/reference/metaprogramming/staging.html --- The framework expresses at the same time compile-time metaprogramming and diff --git a/docs/_docs/reference/metaprogramming/tasty-inspect.md b/docs/_docs/reference/metaprogramming/tasty-inspect.md index 2ab2ce84c354..e643775243e0 100644 --- a/docs/_docs/reference/metaprogramming/tasty-inspect.md +++ b/docs/_docs/reference/metaprogramming/tasty-inspect.md @@ -1,7 +1,7 @@ --- layout: doc-page title: "TASTy Inspection" -movedTo: https://docs.scala-lang.org/scala3/reference/metaprogramming/tasty-inspect.html +nightlyOf: https://docs.scala-lang.org/scala3/reference/metaprogramming/tasty-inspect.html --- ```scala diff --git a/docs/_docs/reference/new-types/dependent-function-types-spec.md b/docs/_docs/reference/new-types/dependent-function-types-spec.md index c3915ba9b8ac..984a44d25e37 100644 --- a/docs/_docs/reference/new-types/dependent-function-types-spec.md +++ b/docs/_docs/reference/new-types/dependent-function-types-spec.md @@ -1,7 +1,7 @@ --- layout: doc-page title: "Dependent Function Types - More Details" -movedTo: https://docs.scala-lang.org/scala3/reference/new-types/dependent-function-types-spec.html +nightlyOf: https://docs.scala-lang.org/scala3/reference/new-types/dependent-function-types-spec.html --- Initial implementation in [PR #3464](https://github.com/lampepfl/dotty/pull/3464). diff --git a/docs/_docs/reference/new-types/dependent-function-types.md b/docs/_docs/reference/new-types/dependent-function-types.md index 33f677276aac..adbee1d8b3c8 100644 --- a/docs/_docs/reference/new-types/dependent-function-types.md +++ b/docs/_docs/reference/new-types/dependent-function-types.md @@ -1,7 +1,7 @@ --- layout: doc-page title: "Dependent Function Types" -movedTo: https://docs.scala-lang.org/scala3/reference/new-types/dependent-function-types.html +nightlyOf: https://docs.scala-lang.org/scala3/reference/new-types/dependent-function-types.html --- A dependent function type is a function type whose result depends diff --git a/docs/_docs/reference/new-types/intersection-types-spec.md b/docs/_docs/reference/new-types/intersection-types-spec.md index 8ed9305e1486..346c57c004f0 100644 --- a/docs/_docs/reference/new-types/intersection-types-spec.md +++ b/docs/_docs/reference/new-types/intersection-types-spec.md @@ -1,7 +1,7 @@ --- layout: doc-page title: "Intersection Types - More Details" -movedTo: https://docs.scala-lang.org/scala3/reference/new-types/intersection-types-spec.html +nightlyOf: https://docs.scala-lang.org/scala3/reference/new-types/intersection-types-spec.html --- ## Syntax diff --git a/docs/_docs/reference/new-types/intersection-types.md b/docs/_docs/reference/new-types/intersection-types.md index d498e664d150..a4eedeb000f6 100644 --- a/docs/_docs/reference/new-types/intersection-types.md +++ b/docs/_docs/reference/new-types/intersection-types.md @@ -1,7 +1,7 @@ --- layout: doc-page title: "Intersection Types" -movedTo: https://docs.scala-lang.org/scala3/reference/new-types/intersection-types.html +nightlyOf: https://docs.scala-lang.org/scala3/reference/new-types/intersection-types.html --- Used on types, the `&` operator creates an intersection type. diff --git a/docs/_docs/reference/new-types/match-types.md b/docs/_docs/reference/new-types/match-types.md index eea92c54dcbf..9fcee09c34f5 100644 --- a/docs/_docs/reference/new-types/match-types.md +++ b/docs/_docs/reference/new-types/match-types.md @@ -1,7 +1,7 @@ --- layout: doc-page title: "Match Types" -movedTo: https://docs.scala-lang.org/scala3/reference/new-types/match-types.html +nightlyOf: https://docs.scala-lang.org/scala3/reference/new-types/match-types.html --- A match type reduces to one of its right-hand sides, depending on the type of diff --git a/docs/_docs/reference/new-types/new-types.md b/docs/_docs/reference/new-types/new-types.md index be98f42ec70d..b57b8f4cc364 100644 --- a/docs/_docs/reference/new-types/new-types.md +++ b/docs/_docs/reference/new-types/new-types.md @@ -1,7 +1,7 @@ --- layout: index title: "New Types" -movedTo: https://docs.scala-lang.org/scala3/reference/new-types.html +nightlyOf: https://docs.scala-lang.org/scala3/reference/new-types.html --- This chapter documents the new types introduced in Scala 3. diff --git a/docs/_docs/reference/new-types/polymorphic-function-types.md b/docs/_docs/reference/new-types/polymorphic-function-types.md index 2a803f5e65db..1754bf844831 100644 --- a/docs/_docs/reference/new-types/polymorphic-function-types.md +++ b/docs/_docs/reference/new-types/polymorphic-function-types.md @@ -1,7 +1,7 @@ --- layout: doc-page title: "Polymorphic Function Types" -movedTo: https://docs.scala-lang.org/scala3/reference/new-types/polymorphic-function-types.html +nightlyOf: https://docs.scala-lang.org/scala3/reference/new-types/polymorphic-function-types.html --- A polymorphic function type is a function type which accepts type parameters. diff --git a/docs/_docs/reference/new-types/type-lambdas-spec.md b/docs/_docs/reference/new-types/type-lambdas-spec.md index 5c791ba40272..15487e4d8cde 100644 --- a/docs/_docs/reference/new-types/type-lambdas-spec.md +++ b/docs/_docs/reference/new-types/type-lambdas-spec.md @@ -1,7 +1,7 @@ --- layout: doc-page title: "Type Lambdas - More Details" -movedTo: https://docs.scala-lang.org/scala3/reference/new-types/type-lambdas-spec.html +nightlyOf: https://docs.scala-lang.org/scala3/reference/new-types/type-lambdas-spec.html --- ## Syntax diff --git a/docs/_docs/reference/new-types/type-lambdas.md b/docs/_docs/reference/new-types/type-lambdas.md index 8ede3f9305c7..ba88e28f5d56 100644 --- a/docs/_docs/reference/new-types/type-lambdas.md +++ b/docs/_docs/reference/new-types/type-lambdas.md @@ -1,7 +1,7 @@ --- layout: doc-page title: "Type Lambdas" -movedTo: https://docs.scala-lang.org/scala3/reference/new-types/type-lambdas.html +nightlyOf: https://docs.scala-lang.org/scala3/reference/new-types/type-lambdas.html --- A _type lambda_ lets one express a higher-kinded type directly, without diff --git a/docs/_docs/reference/new-types/union-types-spec.md b/docs/_docs/reference/new-types/union-types-spec.md index 042dedea6954..d250d3f11713 100644 --- a/docs/_docs/reference/new-types/union-types-spec.md +++ b/docs/_docs/reference/new-types/union-types-spec.md @@ -1,7 +1,7 @@ --- layout: doc-page title: "Union Types - More Details" -movedTo: https://docs.scala-lang.org/scala3/reference/new-types/union-types-spec.html +nightlyOf: https://docs.scala-lang.org/scala3/reference/new-types/union-types-spec.html --- ## Syntax diff --git a/docs/_docs/reference/new-types/union-types.md b/docs/_docs/reference/new-types/union-types.md index a1027fefb1c6..ebc4565e36fb 100644 --- a/docs/_docs/reference/new-types/union-types.md +++ b/docs/_docs/reference/new-types/union-types.md @@ -1,7 +1,7 @@ --- layout: doc-page title: "Union Types" -movedTo: https://docs.scala-lang.org/scala3/reference/new-types/union-types.html +nightlyOf: https://docs.scala-lang.org/scala3/reference/new-types/union-types.html --- A union type `A | B` has as values all values of type `A` and also all values of type `B`. diff --git a/docs/_docs/reference/other-new-features/control-syntax.md b/docs/_docs/reference/other-new-features/control-syntax.md index 2f0bbde41331..574e53406e27 100644 --- a/docs/_docs/reference/other-new-features/control-syntax.md +++ b/docs/_docs/reference/other-new-features/control-syntax.md @@ -1,7 +1,7 @@ --- layout: doc-page title: New Control Syntax -movedTo: https://docs.scala-lang.org/scala3/reference/other-new-features/control-syntax.html +nightlyOf: https://docs.scala-lang.org/scala3/reference/other-new-features/control-syntax.html --- Scala 3 has a new "quiet" syntax for control expressions that does not rely on diff --git a/docs/_docs/reference/other-new-features/creator-applications.md b/docs/_docs/reference/other-new-features/creator-applications.md index 17bc1574f763..a7b0366210c0 100644 --- a/docs/_docs/reference/other-new-features/creator-applications.md +++ b/docs/_docs/reference/other-new-features/creator-applications.md @@ -1,7 +1,7 @@ --- layout: doc-page title: "Universal Apply Methods" -movedTo: https://docs.scala-lang.org/scala3/reference/other-new-features/creator-applications.html +nightlyOf: https://docs.scala-lang.org/scala3/reference/other-new-features/creator-applications.html --- Scala case classes generate apply methods, so that values of case classes can be created using simple diff --git a/docs/_docs/reference/other-new-features/experimental-defs.md b/docs/_docs/reference/other-new-features/experimental-defs.md index ef9eca1ea7f5..d110c8bc079b 100644 --- a/docs/_docs/reference/other-new-features/experimental-defs.md +++ b/docs/_docs/reference/other-new-features/experimental-defs.md @@ -1,7 +1,7 @@ --- layout: doc-page title: "Experimental Definitions" -movedTo: https://docs.scala-lang.org/scala3/reference/other-new-features/experimental-defs.html +nightlyOf: https://docs.scala-lang.org/scala3/reference/other-new-features/experimental-defs.html --- The [`@experimental`](https://scala-lang.org/api/3.x/scala/annotation/experimental.html) annotation allows the definition of an API that is not guaranteed backward binary or source compatibility. @@ -38,7 +38,7 @@ Experimental definitions can only be referenced in an experimental scope. Experi
Example 2 - + ```scala import scala.annotation.experimental @@ -72,7 +72,7 @@ Experimental definitions can only be referenced in an experimental scope. Experi
Example 3 - + ```scala import scala.annotation.experimental @@ -85,7 +85,7 @@ Experimental definitions can only be referenced in an experimental scope. Experi
Example 4 - + ```scala import scala.annotation.experimental @@ -106,7 +106,7 @@ Experimental definitions can only be referenced in an experimental scope. Experi
Example 5 - + ```scala @experimental trait ExpSAM { diff --git a/docs/_docs/reference/other-new-features/export.md b/docs/_docs/reference/other-new-features/export.md index bd2d42e653a1..949e4b579513 100644 --- a/docs/_docs/reference/other-new-features/export.md +++ b/docs/_docs/reference/other-new-features/export.md @@ -1,7 +1,7 @@ --- layout: doc-page title: "Export Clauses" -movedTo: https://docs.scala-lang.org/scala3/reference/other-new-features/export.html +nightlyOf: https://docs.scala-lang.org/scala3/reference/other-new-features/export.html --- An export clause defines aliases for selected members of an object. Example: diff --git a/docs/_docs/reference/other-new-features/indentation.md b/docs/_docs/reference/other-new-features/indentation.md index 3de82f78115b..377869c622c9 100644 --- a/docs/_docs/reference/other-new-features/indentation.md +++ b/docs/_docs/reference/other-new-features/indentation.md @@ -1,7 +1,7 @@ --- layout: doc-page title: "Optional Braces" -movedTo: https://docs.scala-lang.org/scala3/reference/other-new-features/indentation.html +nightlyOf: https://docs.scala-lang.org/scala3/reference/other-new-features/indentation.html --- Scala 3 enforces some rules on indentation and allows some occurrences of braces `{...}` to be optional: diff --git a/docs/_docs/reference/other-new-features/kind-polymorphism.md b/docs/_docs/reference/other-new-features/kind-polymorphism.md index 057e9de9d55d..8f0172c4c04b 100644 --- a/docs/_docs/reference/other-new-features/kind-polymorphism.md +++ b/docs/_docs/reference/other-new-features/kind-polymorphism.md @@ -1,7 +1,7 @@ --- layout: doc-page title: "Kind Polymorphism" -movedTo: https://docs.scala-lang.org/scala3/reference/other-new-features/kind-polymorphism.html +nightlyOf: https://docs.scala-lang.org/scala3/reference/other-new-features/kind-polymorphism.html --- Normally type parameters in Scala are partitioned into _kinds_. First-level types are types of values. Higher-kinded types are type constructors diff --git a/docs/_docs/reference/other-new-features/matchable.md b/docs/_docs/reference/other-new-features/matchable.md index 6e88da332d5f..bd0daba189ee 100644 --- a/docs/_docs/reference/other-new-features/matchable.md +++ b/docs/_docs/reference/other-new-features/matchable.md @@ -1,7 +1,7 @@ --- layout: doc-page title: "The Matchable Trait" -movedTo: https://docs.scala-lang.org/scala3/reference/other-new-features/matchable.html +nightlyOf: https://docs.scala-lang.org/scala3/reference/other-new-features/matchable.html --- A new trait [`Matchable`](https://scala-lang.org/api/3.x/scala/Matchable.html) controls the ability to pattern match. diff --git a/docs/_docs/reference/other-new-features/opaques-details.md b/docs/_docs/reference/other-new-features/opaques-details.md index 83608ca78dd3..4b126fdd97f2 100644 --- a/docs/_docs/reference/other-new-features/opaques-details.md +++ b/docs/_docs/reference/other-new-features/opaques-details.md @@ -1,7 +1,7 @@ --- layout: doc-page title: "Opaque Type Aliases: More Details" -movedTo: https://docs.scala-lang.org/scala3/reference/other-new-features/opaques-details.html +nightlyOf: https://docs.scala-lang.org/scala3/reference/other-new-features/opaques-details.html --- ## Syntax diff --git a/docs/_docs/reference/other-new-features/opaques.md b/docs/_docs/reference/other-new-features/opaques.md index fd13d3cee9db..b87d45485a93 100644 --- a/docs/_docs/reference/other-new-features/opaques.md +++ b/docs/_docs/reference/other-new-features/opaques.md @@ -1,7 +1,7 @@ --- layout: doc-page title: "Opaque Type Aliases" -movedTo: https://docs.scala-lang.org/scala3/reference/other-new-features/opaques.html +nightlyOf: https://docs.scala-lang.org/scala3/reference/other-new-features/opaques.html --- Opaque types aliases provide type abstraction without any overhead. Example: diff --git a/docs/_docs/reference/other-new-features/open-classes.md b/docs/_docs/reference/other-new-features/open-classes.md index 6762b0eac14b..764c234df599 100644 --- a/docs/_docs/reference/other-new-features/open-classes.md +++ b/docs/_docs/reference/other-new-features/open-classes.md @@ -1,7 +1,7 @@ --- layout: doc-page title: "Open Classes" -movedTo: https://docs.scala-lang.org/scala3/reference/other-new-features/open-classes.html +nightlyOf: https://docs.scala-lang.org/scala3/reference/other-new-features/open-classes.html --- An `open` modifier on a class signals that the class is planned for extensions. Example: diff --git a/docs/_docs/reference/other-new-features/other-new-features.md b/docs/_docs/reference/other-new-features/other-new-features.md index 6264bd95c3f1..974a8548cb68 100644 --- a/docs/_docs/reference/other-new-features/other-new-features.md +++ b/docs/_docs/reference/other-new-features/other-new-features.md @@ -1,7 +1,7 @@ --- layout: index title: "Other New Features" -movedTo: https://docs.scala-lang.org/scala3/reference/other-new-features.html +nightlyOf: https://docs.scala-lang.org/scala3/reference/other-new-features.html --- The following pages document new features of Scala 3. diff --git a/docs/_docs/reference/other-new-features/parameter-untupling-spec.md b/docs/_docs/reference/other-new-features/parameter-untupling-spec.md index e01e91059a27..e5165550fc0d 100644 --- a/docs/_docs/reference/other-new-features/parameter-untupling-spec.md +++ b/docs/_docs/reference/other-new-features/parameter-untupling-spec.md @@ -1,7 +1,7 @@ --- layout: doc-page title: "Parameter Untupling - More Details" -movedTo: https://docs.scala-lang.org/scala3/reference/other-new-features/parameter-untupling-spec.html +nightlyOf: https://docs.scala-lang.org/scala3/reference/other-new-features/parameter-untupling-spec.html --- ## Motivation diff --git a/docs/_docs/reference/other-new-features/parameter-untupling.md b/docs/_docs/reference/other-new-features/parameter-untupling.md index 4c0fdb2765e2..fcc1fa11d519 100644 --- a/docs/_docs/reference/other-new-features/parameter-untupling.md +++ b/docs/_docs/reference/other-new-features/parameter-untupling.md @@ -1,7 +1,7 @@ --- layout: doc-page title: "Parameter Untupling" -movedTo: https://docs.scala-lang.org/scala3/reference/other-new-features/parameter-untupling.html +nightlyOf: https://docs.scala-lang.org/scala3/reference/other-new-features/parameter-untupling.html --- Say you have a list of pairs diff --git a/docs/_docs/reference/other-new-features/safe-initialization.md b/docs/_docs/reference/other-new-features/safe-initialization.md index 57c962c9f5e8..6fdf2ea5afce 100644 --- a/docs/_docs/reference/other-new-features/safe-initialization.md +++ b/docs/_docs/reference/other-new-features/safe-initialization.md @@ -1,7 +1,7 @@ --- layout: doc-page title: "Safe Initialization" -movedTo: https://docs.scala-lang.org/scala3/reference/other-new-features/safe-initialization.html +nightlyOf: https://docs.scala-lang.org/scala3/reference/other-new-features/safe-initialization.html --- Scala 3 implements experimental safe initialization check, which can be enabled by the compiler option `-Ysafe-init`. diff --git a/docs/_docs/reference/other-new-features/targetName.md b/docs/_docs/reference/other-new-features/targetName.md index 09886968a232..a2b7d96a9f94 100644 --- a/docs/_docs/reference/other-new-features/targetName.md +++ b/docs/_docs/reference/other-new-features/targetName.md @@ -1,7 +1,7 @@ --- layout: doc-page title: "The @targetName annotation" -movedTo: https://docs.scala-lang.org/scala3/reference/other-new-features/targetName.html +nightlyOf: https://docs.scala-lang.org/scala3/reference/other-new-features/targetName.html --- A [`@targetName`](https://scala-lang.org/api/3.x/scala/annotation/targetName.html) annotation on a definition defines an alternate name for the implementation of that definition. Example: diff --git a/docs/_docs/reference/other-new-features/threadUnsafe-annotation.md b/docs/_docs/reference/other-new-features/threadUnsafe-annotation.md index cd0d45e2246a..0068d0a6fe53 100644 --- a/docs/_docs/reference/other-new-features/threadUnsafe-annotation.md +++ b/docs/_docs/reference/other-new-features/threadUnsafe-annotation.md @@ -1,7 +1,7 @@ --- layout: doc-page title: "The @threadUnsafe annotation" -movedTo: https://docs.scala-lang.org/scala3/reference/other-new-features/threadUnsafe-annotation.html +nightlyOf: https://docs.scala-lang.org/scala3/reference/other-new-features/threadUnsafe-annotation.html --- A new annotation [`@threadUnsafe`](https://scala-lang.org/api/3.x/scala/annotation/threadUnsafe.html) can be used on a field which defines diff --git a/docs/_docs/reference/other-new-features/trait-parameters.md b/docs/_docs/reference/other-new-features/trait-parameters.md index 6c833a097b21..1d13574bce03 100644 --- a/docs/_docs/reference/other-new-features/trait-parameters.md +++ b/docs/_docs/reference/other-new-features/trait-parameters.md @@ -1,7 +1,7 @@ --- layout: doc-page title: "Trait Parameters" -movedTo: https://docs.scala-lang.org/scala3/reference/other-new-features/trait-parameters.html +nightlyOf: https://docs.scala-lang.org/scala3/reference/other-new-features/trait-parameters.html --- Scala 3 allows traits to have parameters, just like classes have parameters. diff --git a/docs/_docs/reference/other-new-features/transparent-traits.md b/docs/_docs/reference/other-new-features/transparent-traits.md index 830081caa502..699ce0b9ddd8 100644 --- a/docs/_docs/reference/other-new-features/transparent-traits.md +++ b/docs/_docs/reference/other-new-features/transparent-traits.md @@ -1,7 +1,7 @@ --- layout: doc-page title: "Transparent Traits" -movedTo: https://docs.scala-lang.org/scala3/reference/other-new-features/transparent-traits.html +nightlyOf: https://docs.scala-lang.org/scala3/reference/other-new-features/transparent-traits.html --- Traits are used in two roles: diff --git a/docs/_docs/reference/other-new-features/type-test.md b/docs/_docs/reference/other-new-features/type-test.md index ee4e612e9a37..ec7a87230753 100644 --- a/docs/_docs/reference/other-new-features/type-test.md +++ b/docs/_docs/reference/other-new-features/type-test.md @@ -1,7 +1,7 @@ --- layout: doc-page title: "TypeTest" -movedTo: https://docs.scala-lang.org/scala3/reference/other-new-features/type-test.html +nightlyOf: https://docs.scala-lang.org/scala3/reference/other-new-features/type-test.html --- ## TypeTest diff --git a/docs/_docs/reference/overview.md b/docs/_docs/reference/overview.md index 9b184a7408ba..588c1516bea5 100644 --- a/docs/_docs/reference/overview.md +++ b/docs/_docs/reference/overview.md @@ -1,7 +1,7 @@ --- layout: doc-page title: "Reference" -movedTo: https://docs.scala-lang.org/scala3/reference/overview.html +nightlyOf: https://docs.scala-lang.org/scala3/reference/overview.html redirectFrom: overview.html --- diff --git a/docs/_docs/reference/soft-modifier.md b/docs/_docs/reference/soft-modifier.md index 6421c38f00dd..c1329ebab1f0 100644 --- a/docs/_docs/reference/soft-modifier.md +++ b/docs/_docs/reference/soft-modifier.md @@ -1,7 +1,7 @@ --- layout: doc-page title: "Soft Keywords" -movedTo: https://docs.scala-lang.org/scala3/reference/soft-modifier.html +nightlyOf: https://docs.scala-lang.org/scala3/reference/soft-modifier.html --- A soft modifier is one of the identifiers `infix`, `inline`, `opaque`, `open` and `transparent`. diff --git a/docs/_docs/reference/syntax.md b/docs/_docs/reference/syntax.md index d04a7a848062..cbc570bb4e30 100644 --- a/docs/_docs/reference/syntax.md +++ b/docs/_docs/reference/syntax.md @@ -1,7 +1,7 @@ --- layout: doc-page title: "Scala 3 Syntax Summary" -movedTo: https://docs.scala-lang.org/scala3/reference/syntax.html +nightlyOf: https://docs.scala-lang.org/scala3/reference/syntax.html --- The following description of Scala tokens uses literal characters `ā€˜c’` when diff --git a/docs/_layouts/static-site-main.html b/docs/_layouts/static-site-main.html index 5c3e0a1ff2bd..586548a46a31 100644 --- a/docs/_layouts/static-site-main.html +++ b/docs/_layouts/static-site-main.html @@ -28,9 +28,10 @@ - {% if page.movedTo %} + {% if page.nightlyOf %} {% endif %} {{ content }}