diff --git a/.github/ISSUE_TEMPLATE/feature.md b/.github/ISSUE_TEMPLATE/feature.md index 52f8010c372e..afbaa8020e07 100644 --- a/.github/ISSUE_TEMPLATE/feature.md +++ b/.github/ISSUE_TEMPLATE/feature.md @@ -1,10 +1,10 @@ --- name: "\U0001F389 Suggest a feature" -about: Please create a feature request here https://github.com/lampepfl/dotty/discussions/new?category=feature-requests +about: Please create a feature request here https://github.com/scala/scala3/discussions/new?category=feature-requests title: '' labels: '' assignees: '' --- -Please create a feature request in the [Dotty Discussions](https://github.com/lampepfl/dotty/discussions/new?category=feature-requests). +Please create a feature request in the [Dotty Discussions](https://github.com/scala/scala3/discussions/new?category=feature-requests). diff --git a/.github/ISSUE_TEMPLATE/improve-error.md b/.github/ISSUE_TEMPLATE/improve-error.md index 918196e1ec53..72d556951e53 100644 --- a/.github/ISSUE_TEMPLATE/improve-error.md +++ b/.github/ISSUE_TEMPLATE/improve-error.md @@ -19,7 +19,7 @@ This code should be self-contained, reproducible (i.e. produces the expected err Ideally, we should be able to just copy this code in a file and run `scalac` (and maybe `scala`) to reproduce the issue. -For a good example, see https://github.com/lampepfl/dotty/issues/18657 +For a good example, see https://github.com/scala/scala3/issues/18657 --> ```Scala @@ -44,12 +44,12 @@ for example: ## Why this Error/Warning was not helpful - + The message was unhelpful because... ## Suggested improvement - + It could be made more helpful by... diff --git a/.github/workflows/scripts/publish-sdkman.sh b/.github/workflows/scripts/publish-sdkman.sh index 70987bff175b..f959c426e9d8 100755 --- a/.github/workflows/scripts/publish-sdkman.sh +++ b/.github/workflows/scripts/publish-sdkman.sh @@ -10,8 +10,8 @@ set -u # latest stable dotty version -DOTTY_VERSION=$(curl -s https://api.github.com/repos/lampepfl/dotty/releases/latest | grep '"tag_name":' | sed -E 's/.*"([^"]+)".*/\1/') -DOTTY_URL="https://github.com/lampepfl/dotty/releases/download/$DOTTY_VERSION/scala3-$DOTTY_VERSION.zip" +DOTTY_VERSION=$(curl -s https://api.github.com/repos/scala/scala3/releases/latest | grep '"tag_name":' | sed -E 's/.*"([^"]+)".*/\1/') +DOTTY_URL="https://github.com/scala/scala3/releases/download/$DOTTY_VERSION/scala3-$DOTTY_VERSION.zip" # checking if dotty version is available if ! curl --output /dev/null --silent --head --fail "$DOTTY_URL"; then diff --git a/MAINTENANCE.md b/MAINTENANCE.md index 5537d6648a2a..79e55e11d4a9 100644 --- a/MAINTENANCE.md +++ b/MAINTENANCE.md @@ -15,11 +15,11 @@ The issue supervisor is responsible for: - Modifying issue labels to best capture information about the issues - Attempting to reproduce the issue (or label “stat:cannot reproduce”) - Further minimizing the issue or asking the reporter of the issue to minimize it correctly (or label “stat:needs minimization”) - - Identifying which issues are of considerable importance and bringing them to the attention of the team during the Dotty meeting, where they can be filtered and added to the [Future Versions](https://github.com/lampepfl/dotty/milestone/46) milestone. + - Identifying which issues are of considerable importance and bringing them to the attention of the team during the Dotty meeting, where they can be filtered and added to the [Future Versions](https://github.com/scala/scala3/milestone/46) milestone. - Identifying if a report is really a feature request and if so, converting it to - a [feature request discussion](https://github.com/lampepfl/dotty/discussions/categories/feature-requests). + a [feature request discussion](https://github.com/scala/scala3/discussions/categories/feature-requests). - Keeping an eye on new -[discussions](https://github.com/lampepfl/dotty/discussions), making sure they +[discussions](https://github.com/scala/scala3/discussions), making sure they don't go unanswered and also correctly labeling new feature requests. Other core teammates are responsible for providing information to the issue supervisor in a timely manner when it is requested if they have that information. diff --git a/NOTICE.md b/NOTICE.md index e9b64ac262f2..fd931397a500 100644 --- a/NOTICE.md +++ b/NOTICE.md @@ -104,4 +104,4 @@ major authors were omitted by oversight. [3] https://github.com/sbt/sbt/tree/0.13/compile/interface/src/main/scala/xsbt [4] https://github.com/scoverage/scalac-scoverage-plugin [5] https://github.com/scalameta/metals -[6] https://github.com/lampepfl/dotty/pull/5783/files +[6] https://github.com/scala/scala3/pull/5783/files diff --git a/README.md b/README.md index 1e62e90a1845..6c3212f0676b 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ Dotty ===== -[![Dotty CI](https://github.com/lampepfl/dotty/workflows/Dotty/badge.svg?branch=master)](https://github.com/lampepfl/dotty/actions?query=branch%3Amain) +[![Dotty CI](https://github.com/scala/scala3/workflows/Dotty/badge.svg?branch=master)](https://github.com/scala/scala3/actions?query=branch%3Amain) [![Join the chat at https://discord.com/invite/scala](https://img.shields.io/discord/632150470000902164)](https://discord.com/invite/scala) * [Documentation](https://docs.scala-lang.org/scala3/) @@ -23,7 +23,7 @@ other more direct lines of communication such as email. How to Contribute ================= * [Getting Started as Contributor](https://docs.scala-lang.org/scala3/guides/contribution/contribution-intro.html) -* [Issues](https://github.com/lampepfl/dotty/issues?q=is%3Aissue+is%3Aopen+label%3A%22help+wanted%22) +* [Issues](https://github.com/scala/scala3/issues?q=is%3Aissue+is%3Aopen+label%3A%22help+wanted%22) License ======= diff --git a/bench/profiles/compiletime.yml b/bench/profiles/compiletime.yml index fd77df7dfe9a..520af3750aa4 100644 --- a/bench/profiles/compiletime.yml +++ b/bench/profiles/compiletime.yml @@ -1,31 +1,31 @@ charts: - name: "Compile-time sums of constant integer types (generated)" - url: https://github.com/lampepfl/dotty/blob/main/bench/src/main/scala/generateBenchmarks.scala + url: https://github.com/scala/scala3/blob/main/bench/src/main/scala/generateBenchmarks.scala lines: - key: compiletime-sum-constants label: bootstrapped - name: "Compile-time sums of term reference types (generated)" - url: https://github.com/lampepfl/dotty/blob/main/bench/src/main/scala/generateBenchmarks.scala + url: https://github.com/scala/scala3/blob/main/bench/src/main/scala/generateBenchmarks.scala lines: - key: compiletime-sum-termrefs label: bootstrapped - name: "Sums of term references, result type inferred (generated)" - url: https://github.com/lampepfl/dotty/blob/main/bench/src/main/scala/generateBenchmarks.scala + url: https://github.com/scala/scala3/blob/main/bench/src/main/scala/generateBenchmarks.scala lines: - key: compiletime-sum-termrefs-terms label: bootstrapped - name: "Compile-time sums of type applications (generated)" - url: https://github.com/lampepfl/dotty/blob/main/bench/src/main/scala/generateBenchmarks.scala + url: https://github.com/scala/scala3/blob/main/bench/src/main/scala/generateBenchmarks.scala lines: - key: compiletime-sum-applications label: bootstrapped - name: "Compile-time additions inside multiplications (generated)" - url: https://github.com/lampepfl/dotty/blob/main/bench/src/main/scala/generateBenchmarks.scala + url: https://github.com/scala/scala3/blob/main/bench/src/main/scala/generateBenchmarks.scala lines: - key: compiletime-distribute label: bootstrapped @@ -48,4 +48,4 @@ scripts: - measure 6 6 7 1 $PROG_HOME/dotty/bench/tests-generated/compiletime-ops/distribute.scala config: - pr_base_url: "https://github.com/lampepfl/dotty/pull/" + pr_base_url: "https://github.com/scala/scala3/pull/" diff --git a/bench/profiles/default.yml b/bench/profiles/default.yml index 22ed6d5f31df..5867816217fe 100644 --- a/bench/profiles/default.yml +++ b/bench/profiles/default.yml @@ -11,4 +11,4 @@ includes: config: - pr_base_url: "https://github.com/lampepfl/dotty/pull/" + pr_base_url: "https://github.com/scala/scala3/pull/" diff --git a/bench/profiles/empty.yml b/bench/profiles/empty.yml index ac571e64e831..108150d3934e 100644 --- a/bench/profiles/empty.yml +++ b/bench/profiles/empty.yml @@ -1,19 +1,19 @@ charts: - name: "empty class" - url: https://github.com/lampepfl/dotty/blob/main/tests/bench/empty-class.scala + url: https://github.com/scala/scala3/blob/main/tests/bench/empty-class.scala lines: - key: empty-class label: bootstrapped - name: "empty object" - url: https://github.com/lampepfl/dotty/blob/main/tests/bench/empty-object.scala + url: https://github.com/scala/scala3/blob/main/tests/bench/empty-object.scala lines: - key: empty-object label: bootstrapped - name: "empty file" - url: https://github.com/lampepfl/dotty/blob/main/tests/bench/empty-file.scala + url: https://github.com/scala/scala3/blob/main/tests/bench/empty-file.scala lines: - key: empty-file label: bootstrapped @@ -30,4 +30,4 @@ scripts: - measure $PROG_HOME/dotty/tests/bench/empty-file.scala config: - pr_base_url: "https://github.com/lampepfl/dotty/pull/" + pr_base_url: "https://github.com/scala/scala3/pull/" diff --git a/bench/profiles/exhaustivity.yml b/bench/profiles/exhaustivity.yml index af6eb4041f6c..47710f7cb39f 100644 --- a/bench/profiles/exhaustivity.yml +++ b/bench/profiles/exhaustivity.yml @@ -1,54 +1,54 @@ charts: - name: "exhaustivity check" - url: https://github.com/lampepfl/dotty/blob/main/tests/bench/patmatexhaust.scala + url: https://github.com/scala/scala3/blob/main/tests/bench/patmatexhaust.scala lines: - key: patmatexhaust label: bootstrapped - name: "exhaustivity I" - url: https://github.com/lampepfl/dotty/blob/main/tests/bench/exhaustivity-I.scala + url: https://github.com/scala/scala3/blob/main/tests/bench/exhaustivity-I.scala lines: - key: exhaustivity-I label: bootstrapped - name: "exhaustivity S" - url: https://github.com/lampepfl/dotty/blob/main/tests/bench/exhaustivity-S.scala + url: https://github.com/scala/scala3/blob/main/tests/bench/exhaustivity-S.scala lines: - key: exhaustivity-S label: bootstrapped - name: "exhaustivity T" - url: https://github.com/lampepfl/dotty/blob/main/tests/bench/exhaustivity-T.scala + url: https://github.com/scala/scala3/blob/main/tests/bench/exhaustivity-T.scala lines: - key: exhaustivity-T label: bootstrapped - name: "exhaustivity V" - url: https://github.com/lampepfl/dotty/blob/main/tests/bench/exhaustivity-V.scala + url: https://github.com/scala/scala3/blob/main/tests/bench/exhaustivity-V.scala lines: - key: exhaustivity-V label: bootstrapped - name: "exhaustivity MIPS" - url: https://github.com/lampepfl/dotty/blob/main/tests/patmat/i7186.scala + url: https://github.com/scala/scala3/blob/main/tests/patmat/i7186.scala lines: - key: exhaustivity-mips label: bootstrapped - name: "exhaustivity i12241" - url: https://github.com/lampepfl/dotty/blob/main/tests/patmat/i12241.scala + url: https://github.com/scala/scala3/blob/main/tests/patmat/i12241.scala lines: - key: exhaustivity-i12241 label: bootstrapped - name: "exhaustivity i12358" - url: https://github.com/lampepfl/dotty/blob/main/tests/patmat/i12358.scala + url: https://github.com/scala/scala3/blob/main/tests/patmat/i12358.scala lines: - key: exhaustivity-i12358 label: bootstrapped - name: "exhaustivity i13565" - url: https://github.com/lampepfl/dotty/blob/main/tests/pos/i13565.scala + url: https://github.com/scala/scala3/blob/main/tests/pos/i13565.scala lines: - key: exhaustivity-i13565 label: bootstrapped @@ -83,4 +83,4 @@ scripts: - measure 20 40 3 $PROG_HOME/dotty/tests/pos/i13565.scala config: - pr_base_url: "https://github.com/lampepfl/dotty/pull/" + pr_base_url: "https://github.com/scala/scala3/pull/" diff --git a/bench/profiles/implicits.yml b/bench/profiles/implicits.yml index 3e944b5be28b..ff7f8c34b872 100644 --- a/bench/profiles/implicits.yml +++ b/bench/profiles/implicits.yml @@ -1,6 +1,6 @@ charts: - name: "implicit cache I" - url: https://github.com/lampepfl/dotty/blob/main/tests/bench/implicit_cache.scala + url: https://github.com/scala/scala3/blob/main/tests/bench/implicit_cache.scala lines: - key: implicit-cache label: bootstrapped @@ -8,7 +8,7 @@ charts: label: from tasty - name: "implicit cache II" - url: https://github.com/lampepfl/dotty/blob/main/tests/bench/implicitNums.scala + url: https://github.com/scala/scala3/blob/main/tests/bench/implicitNums.scala lines: - key: implicitNums label: bootstrapped @@ -16,13 +16,13 @@ charts: label: from tasty - name: "implicit scope loop" - url: https://github.com/lampepfl/dotty/blob/main/tests/bench/implicit-scope-loop.scala + url: https://github.com/scala/scala3/blob/main/tests/bench/implicit-scope-loop.scala lines: - key: implicit-scope-loop label: bootstrapped - name: "inductive implicits" - url: https://github.com/lampepfl/dotty/blob/main/tests/bench/inductive-implicits.scala + url: https://github.com/scala/scala3/blob/main/tests/bench/inductive-implicits.scala lines: - key: inductive-implicits label: bootstrapped @@ -48,4 +48,4 @@ scripts: - source $PROG_HOME/dotty/bench/scripts/implicitNums-from-tasty config: - pr_base_url: "https://github.com/lampepfl/dotty/pull/" + pr_base_url: "https://github.com/scala/scala3/pull/" diff --git a/bench/profiles/misc.yml b/bench/profiles/misc.yml index 668f8e60c176..7ef168a0eea9 100644 --- a/bench/profiles/misc.yml +++ b/bench/profiles/misc.yml @@ -1,13 +1,13 @@ charts: - name: "issue #1535" - url: https://github.com/lampepfl/dotty/blob/main/tests/bench/i1535.scala + url: https://github.com/scala/scala3/blob/main/tests/bench/i1535.scala lines: - key: i1535 label: bootstrapped - name: "issue #1687" - url: https://github.com/lampepfl/dotty/blob/main/tests/bench/i1687.scala + url: https://github.com/scala/scala3/blob/main/tests/bench/i1687.scala lines: - key: i1687 label: bootstrapped diff --git a/bench/profiles/projects.yml b/bench/profiles/projects.yml index f1133d180c54..72e506290bad 100644 --- a/bench/profiles/projects.yml +++ b/bench/profiles/projects.yml @@ -41,4 +41,4 @@ scripts: - source $PROG_HOME/dotty/bench/scripts/stdlib213 config: - pr_base_url: "https://github.com/lampepfl/dotty/pull/" + pr_base_url: "https://github.com/scala/scala3/pull/" diff --git a/bench/profiles/pull.yml b/bench/profiles/pull.yml index 163d75a8769d..4760e27daf95 100644 --- a/bench/profiles/pull.yml +++ b/bench/profiles/pull.yml @@ -5,4 +5,4 @@ includes: - empty.yml config: - pr_base_url: "https://github.com/lampepfl/dotty/pull/" + pr_base_url: "https://github.com/scala/scala3/pull/" diff --git a/bench/profiles/quotes.yml b/bench/profiles/quotes.yml index afd970543aa1..454cd0dc5faa 100644 --- a/bench/profiles/quotes.yml +++ b/bench/profiles/quotes.yml @@ -1,18 +1,18 @@ charts: - name: "Inline a quote" - url: https://github.com/lampepfl/dotty/blob/main/tests/bench/power-macro/PowerInlined-1.scala + url: https://github.com/scala/scala3/blob/main/tests/bench/power-macro/PowerInlined-1.scala lines: - key: power-macro-power-inlined-1 label: bootstrapped - name: "Inline 1k quotes" - url: https://github.com/lampepfl/dotty/blob/main/tests/bench/power-macro/PowerInlined-1k.scala + url: https://github.com/scala/scala3/blob/main/tests/bench/power-macro/PowerInlined-1k.scala lines: - key: power-macro-power-inlined-1k label: bootstrapped - name: "Quote String interpolation matching" - url: https://github.com/lampepfl/dotty/blob/main/tests/bench/string-interpolation-macro/Test.scala + url: https://github.com/scala/scala3/blob/main/tests/bench/string-interpolation-macro/Test.scala lines: - key: quote-string-interpolation-matching label: bootstrapped @@ -29,4 +29,4 @@ scripts: - source $PROG_HOME/dotty/bench/scripts/quote-string-interpolation-matching config: - pr_base_url: "https://github.com/lampepfl/dotty/pull/" + pr_base_url: "https://github.com/scala/scala3/pull/" diff --git a/bench/profiles/sbt.yml b/bench/profiles/sbt.yml index 3ab0e43f3db2..653b10381959 100644 --- a/bench/profiles/sbt.yml +++ b/bench/profiles/sbt.yml @@ -12,4 +12,4 @@ scripts: - measure -with-compiler -Yforce-sbt-phases -with-dotty $(find $PROG_HOME/dotty/compiler/src/dotty -name *.scala -o -name *.java) config: - pr_base_url: "https://github.com/lampepfl/dotty/pull/" + pr_base_url: "https://github.com/scala/scala3/pull/" diff --git a/bench/profiles/tuples.yml b/bench/profiles/tuples.yml index 5e41ecf7c80d..24bf76f786cc 100644 --- a/bench/profiles/tuples.yml +++ b/bench/profiles/tuples.yml @@ -1,42 +1,42 @@ charts: - name: "Tuple22 creation with Tuple22.apply" - url: https://github.com/lampepfl/dotty/blob/main/tests/bench/tuple22-creation-apply.scala + url: https://github.com/scala/scala3/blob/main/tests/bench/tuple22-creation-apply.scala lines: - key: tuple22-creation-apply label: bootstrapped - name: "Tuple22 creation with *:" - url: https://github.com/lampepfl/dotty/blob/main/tests/bench/tuple22-creation-cons.scala + url: https://github.com/scala/scala3/blob/main/tests/bench/tuple22-creation-cons.scala lines: - key: tuple22-creation-cons label: bootstrapped - name: "Tuple22.tail" - url: https://github.com/lampepfl/dotty/blob/main/tests/bench/tuple22-tails.scala + url: https://github.com/scala/scala3/blob/main/tests/bench/tuple22-tails.scala lines: - key: tuple22-tails label: bootstrapped - name: "Tuple22.apply" - url: https://github.com/lampepfl/dotty/blob/main/tests/bench/tuple22-apply.scala + url: https://github.com/scala/scala3/blob/main/tests/bench/tuple22-apply.scala lines: - key: tuple22-apply label: bootstrapped - name: "Tuple22.size" - url: https://github.com/lampepfl/dotty/blob/main/tests/bench/tuple22-size.scala + url: https://github.com/scala/scala3/blob/main/tests/bench/tuple22-size.scala lines: - key: tuple22-size label: bootstrapped - name: "Tuple reverse (Runtime)" - url: https://github.com/lampepfl/dotty/blob/main/bench-run/src/main/scala/dotty/tools/benchmarks/tuples/TupleOps.scala#L59 + url: https://github.com/scala/scala3/blob/main/bench-run/src/main/scala/dotty/tools/benchmarks/tuples/TupleOps.scala#L59 lines: - key: tuple-reverse label: bootstrapped - name: "Tuple flatMap (Runtime)" - url: https://github.com/lampepfl/dotty/blob/main/bench-run/src/main/scala/dotty/tools/benchmarks/tuples/TupleOps.scala#L64 + url: https://github.com/scala/scala3/blob/main/bench-run/src/main/scala/dotty/tools/benchmarks/tuples/TupleOps.scala#L64 lines: - key: tuple-flatMap label: bootstrapped @@ -65,4 +65,4 @@ scripts: - measure-run TupleOps.flatMap config: - pr_base_url: "https://github.com/lampepfl/dotty/pull/" + pr_base_url: "https://github.com/scala/scala3/pull/" diff --git a/bench/profiles/typing.yml b/bench/profiles/typing.yml index f6476bca7006..929438cb5a93 100644 --- a/bench/profiles/typing.yml +++ b/bench/profiles/typing.yml @@ -1,6 +1,6 @@ charts: - name: "Find Ref" - url: https://github.com/lampepfl/dotty/blob/main/tests/bench/FindRef.scala + url: https://github.com/scala/scala3/blob/main/tests/bench/FindRef.scala lines: - key: find-ref label: bootstrapped @@ -11,4 +11,4 @@ scripts: - measure $PROG_HOME/dotty/tests/bench/FindRef.scala config: - pr_base_url: "https://github.com/lampepfl/dotty/pull/" + pr_base_url: "https://github.com/scala/scala3/pull/" diff --git a/compiler/src/dotty/tools/backend/jvm/BCodeHelpers.scala b/compiler/src/dotty/tools/backend/jvm/BCodeHelpers.scala index 2ad58fea4cd1..385521e2785f 100644 --- a/compiler/src/dotty/tools/backend/jvm/BCodeHelpers.scala +++ b/compiler/src/dotty/tools/backend/jvm/BCodeHelpers.scala @@ -754,7 +754,7 @@ trait BCodeHelpers extends BCodeIdiomatic { case tp => report.warning( s"an unexpected type representation reached the compiler backend while compiling ${ctx.compilationUnit}: $tp. " + - "If possible, please file a bug on https://github.com/lampepfl/dotty/issues") + "If possible, please file a bug on https://github.com/scala/scala3/issues") tp match { case tp: ThisType if tp.cls == defn.ArrayClass => ObjectRef.asInstanceOf[ct.bTypes.ClassBType] // was introduced in 9b17332f11 to fix SI-999, but this code is not reached in its test, or any other test @@ -795,7 +795,7 @@ trait BCodeHelpers extends BCodeIdiomatic { report.error( em"""|compiler bug: created invalid generic signature for $sym in ${sym.denot.owner.showFullName} |signature: $sig - |if this is reproducible, please report bug at https://github.com/lampepfl/dotty/issues + |if this is reproducible, please report bug at https://github.com/scala/scala3/issues """, sym.sourcePos) throw ex } diff --git a/compiler/src/dotty/tools/backend/jvm/BCodeSkelBuilder.scala b/compiler/src/dotty/tools/backend/jvm/BCodeSkelBuilder.scala index 0ab9ed85b6cf..394700c2898e 100644 --- a/compiler/src/dotty/tools/backend/jvm/BCodeSkelBuilder.scala +++ b/compiler/src/dotty/tools/backend/jvm/BCodeSkelBuilder.scala @@ -191,7 +191,7 @@ trait BCodeSkelBuilder extends BCodeHelpers { // Should we do this transformation earlier, say in Constructors? Or would that just cause // pain for scala-{js, native}? // - // @sjrd (https://github.com/lampepfl/dotty/pull/9181#discussion_r457458205): + // @sjrd (https://github.com/scala/scala3/pull/9181#discussion_r457458205): // moving that before the back-end would make things significantly more complicated for // Scala.js and Native. Both have a first-class concept of ModuleClass, and encode the // singleton pattern of MODULE$ in a completely different way. In the Scala.js IR, there @@ -202,7 +202,7 @@ trait BCodeSkelBuilder extends BCodeHelpers { // TODO: remove `!f.name.is(LazyBitMapName)` once we change lazy val encoding - // https://github.com/lampepfl/dotty/issues/7140 + // https://github.com/scala/scala3/issues/7140 // // Lazy val encoding assumes bitmap fields are non-static // diff --git a/compiler/src/dotty/tools/backend/jvm/DottyBackendInterface.scala b/compiler/src/dotty/tools/backend/jvm/DottyBackendInterface.scala index 37045bda17ec..8016c2bfc209 100644 --- a/compiler/src/dotty/tools/backend/jvm/DottyBackendInterface.scala +++ b/compiler/src/dotty/tools/backend/jvm/DottyBackendInterface.scala @@ -126,7 +126,7 @@ object DottyBackendInterface { * See also `genPlainClass` in `BCodeSkelBuilder.scala`. * * TODO: remove the special handing of `LazyBitMapName` once we swtich to - * the new lazy val encoding: https://github.com/lampepfl/dotty/issues/7140 + * the new lazy val encoding: https://github.com/scala/scala3/issues/7140 */ def isStaticModuleField(using Context): Boolean = sym.owner.isStaticModuleClass && sym.isField && !sym.name.is(LazyBitMapName) && !sym.name.is(LazyLocalName) diff --git a/compiler/src/dotty/tools/dotc/Driver.scala b/compiler/src/dotty/tools/dotc/Driver.scala index fc5367d2ccba..196752aceb29 100644 --- a/compiler/src/dotty/tools/dotc/Driver.scala +++ b/compiler/src/dotty/tools/dotc/Driver.scala @@ -126,7 +126,7 @@ class Driver { * The trade-off is that you can only pass a SimpleReporter to this method * and not a normal Reporter which is more powerful. * - * Usage example: [[https://github.com/lampepfl/dotty/tree/master/compiler/test/dotty/tools/dotc/InterfaceEntryPointTest.scala]] + * Usage example: [[https://github.com/scala/scala3/tree/master/compiler/test/dotty/tools/dotc/InterfaceEntryPointTest.scala]] * * @param args Arguments to pass to the compiler. * @param simple Used to log errors, warnings, and info messages. @@ -143,7 +143,7 @@ class Driver { /** Principal entry point to the compiler. * - * Usage example: [[https://github.com/lampepfl/dotty/tree/master/compiler/test/dotty/tools/dotc/EntryPointsTest.scala.disabled]] + * Usage example: [[https://github.com/scala/scala3/tree/master/compiler/test/dotty/tools/dotc/EntryPointsTest.scala.disabled]] * in method `runCompiler` * * @param args Arguments to pass to the compiler. @@ -182,7 +182,7 @@ class Driver { * the other overloads cannot be overridden, instead you * should override this one which they call internally. * - * Usage example: [[https://github.com/lampepfl/dotty/tree/master/compiler/test/dotty/tools/dotc/EntryPointsTest.scala.disabled]] + * Usage example: [[https://github.com/scala/scala3/tree/master/compiler/test/dotty/tools/dotc/EntryPointsTest.scala.disabled]] * in method `runCompilerWithContext` * * @param args Arguments to pass to the compiler. diff --git a/compiler/src/dotty/tools/dotc/ast/Trees.scala b/compiler/src/dotty/tools/dotc/ast/Trees.scala index f35acdfaaafe..41899ed661f5 100644 --- a/compiler/src/dotty/tools/dotc/ast/Trees.scala +++ b/compiler/src/dotty/tools/dotc/ast/Trees.scala @@ -1503,7 +1503,7 @@ object Trees { * It ensures that the source is correct, and that the local context is used if * that's necessary for transforming the whole tree. * TODO: ensure transform is always called with the correct context as argument - * @see https://github.com/lampepfl/dotty/pull/13880#discussion_r836395977 + * @see https://github.com/scala/scala3/pull/13880#discussion_r836395977 */ def transformCtx(tree: Tree)(using Context): Context = val sourced = diff --git a/compiler/src/dotty/tools/dotc/interactive/Interactive.scala b/compiler/src/dotty/tools/dotc/interactive/Interactive.scala index a03ae502f2f1..16079125a434 100644 --- a/compiler/src/dotty/tools/dotc/interactive/Interactive.scala +++ b/compiler/src/dotty/tools/dotc/interactive/Interactive.scala @@ -250,7 +250,7 @@ object Interactive { * Note that if the given `pos` points out places for incomplete parses, * this method returns `errorTermTree` (`Literal(Consotant(null)`). * - * @see https://github.com/lampepfl/dotty/issues/15294 + * @see https://github.com/scala/scala3/issues/15294 */ def pathTo(trees: List[SourceTree], pos: SourcePosition)(using Context): List[Tree] = pathTo(trees.map(_.tree), pos.span) diff --git a/compiler/src/dotty/tools/dotc/interactive/SourceTree.scala b/compiler/src/dotty/tools/dotc/interactive/SourceTree.scala index 258d92a2d1a8..b950d71eb045 100644 --- a/compiler/src/dotty/tools/dotc/interactive/SourceTree.scala +++ b/compiler/src/dotty/tools/dotc/interactive/SourceTree.scala @@ -33,7 +33,7 @@ case class SourceTree(tree: tpd.Import | tpd.NameTree, source: SourceFile) { } val position = { // FIXME: This is incorrect in some cases, like with backquoted identifiers, - // see https://github.com/lampepfl/dotty/pull/1634#issuecomment-257079436 + // see https://github.com/scala/scala3/pull/1634#issuecomment-257079436 val (start, end) = if (!treeSpan.isSynthetic) (treeSpan.point, treeSpan.point + nameLength) diff --git a/compiler/src/dotty/tools/dotc/report.scala b/compiler/src/dotty/tools/dotc/report.scala index 8e39afdd6e7d..a63b6569fefe 100644 --- a/compiler/src/dotty/tools/dotc/report.scala +++ b/compiler/src/dotty/tools/dotc/report.scala @@ -154,7 +154,7 @@ object report: | | An unhandled exception was thrown in the compiler. | Please file a crash report here: - | https://github.com/lampepfl/dotty/issues/new/choose + | https://github.com/scala/scala3/issues/new/choose | For non-enriched exceptions, compile with -Yno-enrich-error-messages. | |$info1 diff --git a/compiler/src/dotty/tools/dotc/transform/ExpandPrivate.scala b/compiler/src/dotty/tools/dotc/transform/ExpandPrivate.scala index fa2492a261d5..9a6a04621074 100644 --- a/compiler/src/dotty/tools/dotc/transform/ExpandPrivate.scala +++ b/compiler/src/dotty/tools/dotc/transform/ExpandPrivate.scala @@ -25,8 +25,8 @@ import ValueClasses.* * This is necessary since private methods are not allowed to have the same name * as inherited public ones. * - * See discussion in https://github.com/lampepfl/dotty/pull/784 - * and https://github.com/lampepfl/dotty/issues/783 + * See discussion in https://github.com/scala/scala3/pull/784 + * and https://github.com/scala/scala3/issues/783 */ class ExpandPrivate extends MiniPhase with IdentityDenotTransformer { thisPhase => import ast.tpd.* diff --git a/compiler/src/dotty/tools/dotc/transform/InstrumentCoverage.scala b/compiler/src/dotty/tools/dotc/transform/InstrumentCoverage.scala index a76919e47164..f5e0f8c63b58 100644 --- a/compiler/src/dotty/tools/dotc/transform/InstrumentCoverage.scala +++ b/compiler/src/dotty/tools/dotc/transform/InstrumentCoverage.scala @@ -120,7 +120,7 @@ class InstrumentCoverage extends MacroTransform with IdentityDenotTransformer: start = pos.start, end = pos.end, // +1 to account for the line number starting at 1 - // the internal line number is 0-base https://github.com/lampepfl/dotty/blob/18ada516a85532524a39a962b2ddecb243c65376/compiler/src/dotty/tools/dotc/util/SourceFile.scala#L173-L176 + // the internal line number is 0-base https://github.com/scala/scala3/blob/18ada516a85532524a39a962b2ddecb243c65376/compiler/src/dotty/tools/dotc/util/SourceFile.scala#L173-L176 line = pos.line + 1, desc = sourceFile.content.slice(pos.start, pos.end).mkString, symbolName = tree.symbol.name.toSimpleName.show, diff --git a/compiler/src/dotty/tools/dotc/typer/ProtoTypes.scala b/compiler/src/dotty/tools/dotc/typer/ProtoTypes.scala index 9d5c1352b106..c8012bef0904 100644 --- a/compiler/src/dotty/tools/dotc/typer/ProtoTypes.scala +++ b/compiler/src/dotty/tools/dotc/typer/ProtoTypes.scala @@ -126,7 +126,7 @@ object ProtoTypes { constrainResult(mt, pt) } } else { - // Best-effort to fix https://github.com/lampepfl/dotty/issues/9685 in the 3.3.x series + // Best-effort to fix https://github.com/scala/scala3/issues/9685 in the 3.3.x series // while preserving source compatibility as much as possible val methodMatchedType = constrainResult(mt, wildApprox(pt)) meth.is(Transparent) || methodMatchedType diff --git a/compiler/test/dotty/tools/io/PathTest.scala b/compiler/test/dotty/tools/io/PathTest.scala index 731d29cee8e6..a3755e0ea7dc 100644 --- a/compiler/test/dotty/tools/io/PathTest.scala +++ b/compiler/test/dotty/tools/io/PathTest.scala @@ -3,7 +3,7 @@ package dotty.tools.io import org.junit.Test class PathTest { - // Ref https://github.com/lampepfl/dotty/issues/11644#issuecomment-792457275 + // Ref https://github.com/scala/scala3/issues/11644#issuecomment-792457275 @Test def parent(): Unit = { testParent(Path(""), Directory("..")) testParent(Path("."), Directory("..")) diff --git a/dist/bin/scalac b/dist/bin/scalac index 4b888641e786..d9bd21ca425b 100644 --- a/dist/bin/scalac +++ b/dist/bin/scalac @@ -40,7 +40,7 @@ while [[ $# -gt 0 ]]; do # pass all remaining arguments to scala, e.g. to avoid interpreting them here as -D or -J while [[ $# -gt 0 ]]; do addScala "$1" && shift ; done ;; - # Optimize for short-running applications, see https://github.com/lampepfl/dotty/issues/222 + # Optimize for short-running applications, see https://github.com/scala/scala3/issues/222 -Oshort) addScala "-Oshort" && \ addJava "-XX:+TieredCompilation" && addJava "-XX:TieredStopAtLevel=1" && shift ;; diff --git a/dist/bin/scalac.bat b/dist/bin/scalac.bat index 454158c85666..cb1a76471f70 100644 --- a/dist/bin/scalac.bat +++ b/dist/bin/scalac.bat @@ -55,7 +55,7 @@ if defined _CONSUME_REMAINING ( set _SCALA_ARGS=!_SCALA_ARGS! "%__ARG%" shift ) else if "%__ARG%"=="-Oshort" ( - @rem optimize for short-running applications, see https://github.com/lampepfl/dotty/issues/222 + @rem optimize for short-running applications, see https://github.com/scala/scala3/issues/222 set _JAVA_ARGS=!_JAVA_ARGS! "-XX:+TieredCompilation" "-XX:TieredStopAtLevel=1" set _SCALA_ARGS=!_SCALA_ARGS! -Oshort shift diff --git a/docs/_blog/_posts/2016-02-17-scaling-dot-soundness.md b/docs/_blog/_posts/2016-02-17-scaling-dot-soundness.md index 7619545b844e..bc9c558e3011 100644 --- a/docs/_blog/_posts/2016-02-17-scaling-dot-soundness.md +++ b/docs/_blog/_posts/2016-02-17-scaling-dot-soundness.md @@ -69,9 +69,9 @@ categories: is not associated with a runtime value. We can in fact construct soundness issues in all of these cases. Look -at the discussion for issues [#50](https://github.com/lampepfl/dotty/issues/50) -and [#1050](https://github.com/lampepfl/dotty/issues/1050) in the -[Dotty](https://github.com/lampepfl/dotty/issues/1050) repository +at the discussion for issues [#50](https://github.com/scala/scala3/issues/50) +and [#1050](https://github.com/scala/scala3/issues/1050) in the +[Dotty](https://github.com/scala/scala3/issues/1050) repository on GitHub. All issues work fundamentally in the same way: Construct a type `S` which has a type member `T` with bad bounds, say: @@ -98,7 +98,7 @@ course. The promise is usually broken at run-time by failing with a ## Plugging the Loopholes To get back to soundness we need to plug the loopholes. Some of the -necessary measures are taken in pull request [#1051](https://github.com/lampepfl/dotty/issues/1051). +necessary measures are taken in pull request [#1051](https://github.com/scala/scala3/issues/1051). That pull request - tightens the rules for overrides of lazy values: lazy values diff --git a/docs/_blog/_posts/2016-05-05-multiversal-equality.md b/docs/_blog/_posts/2016-05-05-multiversal-equality.md index 236225eec318..d9a48a9f4424 100644 --- a/docs/_blog/_posts/2016-05-05-multiversal-equality.md +++ b/docs/_blog/_posts/2016-05-05-multiversal-equality.md @@ -6,7 +6,7 @@ authorImg: images/martin.jpg date: 2016-05-05 --- -I have been working recently on making equality tests using `==` and `!=` safer in Scala. This has led to a [Language Enhancement Proposal](https://github.com/lampepfl/dotty/issues/1247) which I summarize in this blog. +I have been working recently on making equality tests using `==` and `!=` safer in Scala. This has led to a [Language Enhancement Proposal](https://github.com/scala/scala3/issues/1247) which I summarize in this blog. ## Why Change Equality? @@ -77,7 +77,7 @@ Given a set of `Eq` instances, the idea is that the Scala compiler will check ev So this means we still keep universal equality as it is in Scala now - we don't have a choice here anyway, because of backwards compatibility. But we render it safe by checking that for each comparison the corresponding `Eq` instance exists. -What about types for which no `Eq` instance exists? To maintain backwards compatibility, we allow comparisons of such types as well, by means of a fall-back `eqAny` instance. But we do not allow comparisons between types that have an `Eq` instance and types that have none. Details are explained in the [proposal](https://github.com/lampepfl/dotty/issues/1247). +What about types for which no `Eq` instance exists? To maintain backwards compatibility, we allow comparisons of such types as well, by means of a fall-back `eqAny` instance. But we do not allow comparisons between types that have an `Eq` instance and types that have none. Details are explained in the [proposal](https://github.com/scala/scala3/issues/1247). ## Properties diff --git a/docs/_blog/_posts/2016-12-05-implicit-function-types.md b/docs/_blog/_posts/2016-12-05-implicit-function-types.md index ba28159c0fa3..0d9eae53d37f 100644 --- a/docs/_blog/_posts/2016-12-05-implicit-function-types.md +++ b/docs/_blog/_posts/2016-12-05-implicit-function-types.md @@ -6,7 +6,7 @@ authorImg: images/martin.jpg date: 2016-12-05 --- -I just made the [first pull request](https://github.com/lampepfl/dotty/pull/1775) to add _implicit function types_ to +I just made the [first pull request](https://github.com/scala/scala3/pull/1775) to add _implicit function types_ to Scala. I am pretty excited about it, because - citing the explanation of the pull request - "_This is the first step to bring contextual abstraction to Scala_". What do I mean by this? @@ -181,7 +181,7 @@ implicit Transaction => Int ``` Just like the normal function type syntax `A => B`, desugars to `scala.Function1[A, B]` the implicit function type syntax `implicit A => B` desugars to `scala.ImplicitFunction1[A, B]`. -The same holds at other function arities. With Dotty's [pull request #1758](https://github.com/lampepfl/dotty/pull/1758) +The same holds at other function arities. With Dotty's [pull request #1758](https://github.com/scala/scala3/pull/1758) merged there is no longer an upper limit of 22 for such functions. The type `ImplicitFunction1` can be thought of being defined as follows: diff --git a/docs/_blog/_posts/2017-05-31-first-dotty-milestone-release.md b/docs/_blog/_posts/2017-05-31-first-dotty-milestone-release.md index 9bfd22b2e3db..3063e658537d 100644 --- a/docs/_blog/_posts/2017-05-31-first-dotty-milestone-release.md +++ b/docs/_blog/_posts/2017-05-31-first-dotty-milestone-release.md @@ -46,7 +46,7 @@ using Dotty with sbt, see the Releases are available for download on the _Releases_ section of the Dotty repository: -https://github.com/lampepfl/dotty/releases +https://github.com/scala/scala3/releases We also provide a [homebrew](https://brew.sh/) package that can be installed by running @@ -92,9 +92,9 @@ See here for the full [version number explanation](https://dotty.epfl.ch/docs/us Over the coming weeks and months, we plan to work on the following topics: - - [Integrate Local optimizations developed in Dotty linker](https://github.com/lampepfl/dotty/pull/2513); - - [Add Language-level support for HMaps and HLists](https://github.com/lampepfl/dotty/pull/2199); - - [Port global optimizations from Dotty linker](https://github.com/lampepfl/dotty/pull/1840). + - [Integrate Local optimizations developed in Dotty linker](https://github.com/scala/scala3/pull/2513); + - [Add Language-level support for HMaps and HLists](https://github.com/scala/scala3/pull/2199); + - [Port global optimizations from Dotty linker](https://github.com/scala/scala3/pull/1840). If you want to get your hands dirty with any of this, now is a good moment to get involved! Join the team of contributors, including diff --git a/docs/_blog/_posts/2017-07-12-second-dotty-milestone-release.md b/docs/_blog/_posts/2017-07-12-second-dotty-milestone-release.md index 9172b5ad67ec..ff314eed13f2 100644 --- a/docs/_blog/_posts/2017-07-12-second-dotty-milestone-release.md +++ b/docs/_blog/_posts/2017-07-12-second-dotty-milestone-release.md @@ -34,52 +34,52 @@ The [previous technology preview](/_blog/_posts/2017-05-31-first-dotty-milestone This technology preview is geared towards improving stability and reliability. It includes: - - [Local optimizations upstreamed from the Dotty Linker](https://github.com/lampepfl/dotty/pull/2513), [2647](https://github.com/lampepfl/dotty/pull/2647) by ([@OlivierBlanvillain](https://github.com/OlivierBlanvillain)). See more details below. - - [Optimizing Pattern Matcher](https://github.com/lampepfl/dotty/pull/2829) by ([@odersky](https://github.com/odersky)) - - [Idempotency checks](https://github.com/lampepfl/dotty/pull/2756) are the first step to reproducible builds - - [Faster Base class sets](https://github.com/lampepfl/dotty/pull/2676) by ([@odersky](https://github.com/odersky)) and ([@darkdimius](https://twitter.com/darkdimius)) + - [Local optimizations upstreamed from the Dotty Linker](https://github.com/scala/scala3/pull/2513), [2647](https://github.com/scala/scala3/pull/2647) by ([@OlivierBlanvillain](https://github.com/OlivierBlanvillain)). See more details below. + - [Optimizing Pattern Matcher](https://github.com/scala/scala3/pull/2829) by ([@odersky](https://github.com/odersky)) + - [Idempotency checks](https://github.com/scala/scala3/pull/2756) are the first step to reproducible builds + - [Faster Base class sets](https://github.com/scala/scala3/pull/2676) by ([@odersky](https://github.com/odersky)) and ([@darkdimius](https://twitter.com/darkdimius)) - Numerous fixes to IDE and Dotty Language Server covering: - - [Windows support for VS Code plugin](https://github.com/lampepfl/dotty/pull/2776) - - [Fix hover-on-type for implicitly converted expressions](https://github.com/lampepfl/dotty/pull/2836) - - [Fixes to find all references in external projects](https://github.com/lampepfl/dotty/pull/2810), [2773](https://github.com/lampepfl/dotty/pull/2773/files) - - [Fix conflict with dragos-vscode-scala](https://github.com/lampepfl/dotty/pull/2777) - - [Fix ide crash on non-parsable file](https://github.com/lampepfl/dotty/pull/2752) - - [Fix hover functionality for enum classes](https://github.com/lampepfl/dotty/pull/2722) - - [Report errors on Dotty Language Server initialization](https://github.com/lampepfl/dotty/pull/2708) - - [Fixes to sbt setting up Dotty IDE](https://github.com/lampepfl/dotty/pull/2690) - - General stability improvements [2838](https://github.com/lampepfl/dotty/pull/2838), [2787](https://github.com/lampepfl/dotty/pull/2787), [2692](https://github.com/lampepfl/dotty/pull/2692) + - [Windows support for VS Code plugin](https://github.com/scala/scala3/pull/2776) + - [Fix hover-on-type for implicitly converted expressions](https://github.com/scala/scala3/pull/2836) + - [Fixes to find all references in external projects](https://github.com/scala/scala3/pull/2810), [2773](https://github.com/scala/scala3/pull/2773/files) + - [Fix conflict with dragos-vscode-scala](https://github.com/scala/scala3/pull/2777) + - [Fix ide crash on non-parsable file](https://github.com/scala/scala3/pull/2752) + - [Fix hover functionality for enum classes](https://github.com/scala/scala3/pull/2722) + - [Report errors on Dotty Language Server initialization](https://github.com/scala/scala3/pull/2708) + - [Fixes to sbt setting up Dotty IDE](https://github.com/scala/scala3/pull/2690) + - General stability improvements [2838](https://github.com/scala/scala3/pull/2838), [2787](https://github.com/scala/scala3/pull/2787), [2692](https://github.com/scala/scala3/pull/2692) - Scalac compatibility improvements: - - [Support Scala 2.12 traits](https://github.com/lampepfl/dotty/pull/2685) - - [Fixes to handling of Scala 2 classfiles](https://github.com/lampepfl/dotty/pull/2834/files) - - [Scalac parser crashes on Dotty.jar](https://github.com/lampepfl/dotty/pull/2719) + - [Support Scala 2.12 traits](https://github.com/scala/scala3/pull/2685) + - [Fixes to handling of Scala 2 classfiles](https://github.com/scala/scala3/pull/2834/files) + - [Scalac parser crashes on Dotty.jar](https://github.com/scala/scala3/pull/2719) - Java compatibility improvements: - - [Fixes to handing of Java generic signatures](https://github.com/lampepfl/dotty/pull/2831) - - [java.lang.System.out is final but that's a lie](https://github.com/lampepfl/dotty/pull/2781) + - [Fixes to handing of Java generic signatures](https://github.com/scala/scala3/pull/2831) + - [java.lang.System.out is final but that's a lie](https://github.com/scala/scala3/pull/2781) - Improved error messages: - - [Nicer error message for "implicit function type needs non-empty parameter list"](https://github.com/lampepfl/dotty/pull/2821) - - [Nicer error message for nonsensical modifier combination](https://github.com/lampepfl/dotty/pull/2807/files), [2747](https://github.com/lampepfl/dotty/pull/2747) - - [Nicer error message for supercall inside @inline method](https://github.com/lampepfl/dotty/pull/2740) - - [Check that case classes don't inherit case classes](https://github.com/lampepfl/dotty/pull/2790) - - [Check that named parameters don't conflict with positional ones](https://github.com/lampepfl/dotty/pull/2785) + - [Nicer error message for "implicit function type needs non-empty parameter list"](https://github.com/scala/scala3/pull/2821) + - [Nicer error message for nonsensical modifier combination](https://github.com/scala/scala3/pull/2807/files), [2747](https://github.com/scala/scala3/pull/2747) + - [Nicer error message for supercall inside @inline method](https://github.com/scala/scala3/pull/2740) + - [Check that case classes don't inherit case classes](https://github.com/scala/scala3/pull/2790) + - [Check that named parameters don't conflict with positional ones](https://github.com/scala/scala3/pull/2785) - Improved command line handling: - - [Support params in a file like @file.txt](https://github.com/lampepfl/dotty/pull/2765) + - [Support params in a file like @file.txt](https://github.com/scala/scala3/pull/2765) - Type system stability: - - [Handle wildcard types in unions and intersections](https://github.com/lampepfl/dotty/pull/2742) + - [Handle wildcard types in unions and intersections](https://github.com/scala/scala3/pull/2742) - Fixes to implicit search: - - [Fix shadowing of higher order implicits](https://github.com/lampepfl/dotty/pull/2739) + - [Fix shadowing of higher order implicits](https://github.com/scala/scala3/pull/2739) ### Better generated code: @@ -313,7 +313,7 @@ using Dotty with sbt, see the Releases are available for download on the _Releases_ section of the Dotty repository: -[https://github.com/lampepfl/dotty/releases](https://github.com/lampepfl/dotty/releases) +[https://github.com/scala/scala3/releases](https://github.com/scala/scala3/releases) We also provide a [homebrew](https://brew.sh/) package that can be installed by running: @@ -338,10 +338,10 @@ You can try it out there without installing anything. Over the coming weeks and months, we plan to work on the following topics: - - [Add support for using Dotty generated classes with Scala 2.12](https://github.com/lampepfl/dotty/pull/2827) - - [Add Language-level support for HMaps and HLists](https://github.com/lampepfl/dotty/pull/2199); + - [Add support for using Dotty generated classes with Scala 2.12](https://github.com/scala/scala3/pull/2827) + - [Add Language-level support for HMaps and HLists](https://github.com/scala/scala3/pull/2199); - Upstream more optimizations from Dotty Linker - - [Add support for existing in the same classpath with Scala 2.12](https://github.com/lampepfl/dotty/pull/2827) + - [Add support for existing in the same classpath with Scala 2.12](https://github.com/scala/scala3/pull/2827) If you want to get your hands dirty with any of this, now is a good moment to get involved! Join the team of contributors, including diff --git a/docs/_blog/_posts/2017-09-07-third-dotty-milestone-release.md b/docs/_blog/_posts/2017-09-07-third-dotty-milestone-release.md index 236591139105..01fec156ecde 100644 --- a/docs/_blog/_posts/2017-09-07-third-dotty-milestone-release.md +++ b/docs/_blog/_posts/2017-09-07-third-dotty-milestone-release.md @@ -33,12 +33,12 @@ stability and reliability: This technology preview further improves stability and reliability. Some highlighted PRs are: - IDE bug fixes: - [#2986](https://github.com/lampepfl/dotty/pull/2986), - [#2932](https://github.com/lampepfl/dotty/pull/2932), - [#2885](https://github.com/lampepfl/dotty/pull/2885), - [#2876](https://github.com/lampepfl/dotty/pull/2876), - [#2870](https://github.com/lampepfl/dotty/pull/2870), - [#2872](https://github.com/lampepfl/dotty/pull/2872) by [@odersky] and [@smarter]. + [#2986](https://github.com/scala/scala3/pull/2986), + [#2932](https://github.com/scala/scala3/pull/2932), + [#2885](https://github.com/scala/scala3/pull/2885), + [#2876](https://github.com/scala/scala3/pull/2876), + [#2870](https://github.com/scala/scala3/pull/2870), + [#2872](https://github.com/scala/scala3/pull/2872) by [@odersky] and [@smarter]. ## How can you try it out? @@ -65,7 +65,7 @@ using Dotty with sbt, see the ### Standalone installation Releases are available for download on the _Releases_ section of the Dotty repository: -[https://github.com/lampepfl/dotty/releases](https://github.com/lampepfl/dotty/releases) +[https://github.com/scala/scala3/releases](https://github.com/scala/scala3/releases) We also provide a [homebrew](https://brew.sh/) package that can be installed by running: @@ -87,16 +87,16 @@ You can try it out there without installing anything. ## What are the next steps? Over the coming weeks and months, we plan to work on the following topics: - - [Add support for using Dotty generated classes with Scala 2.12](https://github.com/lampepfl/dotty/pull/2827) - - [Add Language-level support for HMaps and HLists](https://github.com/lampepfl/dotty/pull/2199); + - [Add support for using Dotty generated classes with Scala 2.12](https://github.com/scala/scala3/pull/2827) + - [Add Language-level support for HMaps and HLists](https://github.com/scala/scala3/pull/2199); - Upstream more optimizations from Dotty Linker - - [Add support for existing in the same classpath with Scala 2.12](https://github.com/lampepfl/dotty/pull/2827) - - [Add native Dotty REPL](https://github.com/lampepfl/dotty/pull/2991) + - [Add support for existing in the same classpath with Scala 2.12](https://github.com/scala/scala3/pull/2827) + - [Add native Dotty REPL](https://github.com/scala/scala3/pull/2991) ## Questions / Reporting Bugs If you have questions or any sort of feedback, feel free to send us a message on our [Gitter channel](https://gitter.im/lampepfl/dotty). If you encounter a bug, please -[open an issue on GitHub](https://github.com/lampepfl/dotty/issues/new). +[open an issue on GitHub](https://github.com/scala/scala3/issues/new). ## Contributing Thank you to all the contributors who made this release possible! @@ -122,7 +122,7 @@ According to `git shortlog -sn --no-merges 0.2.0-RC1..0.3.0-RC2` these are: If you want to get your hands dirty with any of this, now is a good moment to get involved! You can have a look at our [Getting Started page](https://dotty.epfl.ch/docs/contributing/getting-started.html), our [Awesome Error Messages](http://scala-lang.org/blog/2016/10/14/dotty-errors.html) or some of -the simple [Dotty issues](https://github.com/lampepfl/dotty/issues?q=is%3Aissue+is%3Aopen+label%3Aexp%3Anovice). +the simple [Dotty issues](https://github.com/scala/scala3/issues?q=is%3Aissue+is%3Aopen+label%3Aexp%3Anovice). They make perfect entry-points into hacking on the compiler. We are looking forward to having you join the team of contributors. diff --git a/docs/_blog/_posts/2017-10-16-fourth-dotty-milestone-release.md b/docs/_blog/_posts/2017-10-16-fourth-dotty-milestone-release.md index 7f98c4835ee6..1edf198380c8 100644 --- a/docs/_blog/_posts/2017-10-16-fourth-dotty-milestone-release.md +++ b/docs/_blog/_posts/2017-10-16-fourth-dotty-milestone-release.md @@ -25,14 +25,14 @@ stability and reliability. ## What’s new in the 0.4.0-RC1 technology preview? -### Rewritten REPL [#2991](https://github.com/lampepfl/dotty/pull/2991) +### Rewritten REPL [#2991](https://github.com/scala/scala3/pull/2991) The original Dotty REPL was a proof of concept hacked together from -[an ancient version of the scalac REPL](https://github.com/lampepfl/dotty/pull/1082#issuecomment-183905504). +[an ancient version of the scalac REPL](https://github.com/scala/scala3/pull/1082#issuecomment-183905504). It worked by creating Scala source files from the user input using string concatenation, this made it easy to adapt it for Dotty since it did not rely on the internals of scalac, but it was also fragile and hard to reason about. -The [new REPL](https://github.com/lampepfl/dotty/pull/2991) instead works by +The [new REPL](https://github.com/scala/scala3/pull/2991) instead works by manipulating ASTs (Abstract Syntax Trees), this is more robust and will make it easier to develop new features: we have already implemented auto-completion support (by reusing the APIs we had created for @@ -42,7 +42,7 @@ Note that the user interface of the REPL has not changed: like in the old REPL we use code adapted from the [Ammonite REPL](http://ammonite.io/#Ammonite-REPL) to provide syntax highlighting, multi-line editing, history, etc. -### Scala 2.12 support [#2827](https://github.com/lampepfl/dotty/pull/2827) +### Scala 2.12 support [#2827](https://github.com/scala/scala3/pull/2827) Since our first release, it has been possible to use Scala 2 libraries in a Dotty project as explained in the [dotty-example-project](https://github.com/smarter/dotty-example-project#getting-your-project-to-compile-with-dotty). @@ -82,7 +82,7 @@ the IDE sections of the [getting-started page](https://docs.scala-lang.org/scala ### Standalone installation Releases are available for download on the _Releases_ section of the Dotty repository: -[https://github.com/lampepfl/dotty/releases](https://github.com/lampepfl/dotty/releases) +[https://github.com/scala/scala3/releases](https://github.com/scala/scala3/releases) We also provide a [homebrew](https://brew.sh/) package that can be installed by running: @@ -99,7 +99,7 @@ brew upgrade dotty ## Let us know what you think! If you have questions or any sort of feedback, feel free to send us a message on our [Gitter channel](https://gitter.im/lampepfl/dotty). If you encounter a bug, please -[open an issue on GitHub](https://github.com/lampepfl/dotty/issues/new). +[open an issue on GitHub](https://github.com/scala/scala3/issues/new). ## Contributing Thank you to all the contributors who made this release possible! @@ -131,7 +131,7 @@ According to `git shortlog -sn --no-merges 0.3.0-RC2..0.4.0-RC1` these are: If you want to get your hands dirty and contribute to Dotty, now is a good time to get involved! You can have a look at our [Getting Started page for new contributors](https://dotty.epfl.ch/docs/contributing/getting-started.html), the [Awesome Error Messages](http://scala-lang.org/blog/2016/10/14/dotty-errors.html) project or some of -the simple [Dotty issues](https://github.com/lampepfl/dotty/issues?q=is%3Aissue+is%3Aopen+label%3Aexp%3Anovice). +the simple [Dotty issues](https://github.com/scala/scala3/issues?q=is%3Aissue+is%3Aopen+label%3Aexp%3Anovice). They make perfect entry-points into hacking on the compiler. We are looking forward to having you join the team of contributors. diff --git a/docs/_blog/_posts/2017-12-01-fifth-dotty-milestone-release.md b/docs/_blog/_posts/2017-12-01-fifth-dotty-milestone-release.md index 60d1062b7eac..dfc97e64f496 100644 --- a/docs/_blog/_posts/2017-12-01-fifth-dotty-milestone-release.md +++ b/docs/_blog/_posts/2017-12-01-fifth-dotty-milestone-release.md @@ -25,7 +25,7 @@ support for Scala 2.12 and came with a brand new REPL. ## What’s new in the 0.5.0-RC1 technology preview? -### Reworked implicit search [#3421](https://github.com/lampepfl/dotty/pull/3421) +### Reworked implicit search [#3421](https://github.com/scala/scala3/pull/3421) The treatment of ambiguity errors has changed. If an ambiguity is encountered in some recursive step of an implicit search, the ambiguity is propagated to the caller. Example: Say you have the following definitions: @@ -56,7 +56,7 @@ techniques no longer work. But there is now a new special type `scala.implicits. implements negation directly. For any query type `Q`: `Not[Q]` succeeds if and only if the implicit search for `Q` fails. -### Dependent function types [#3464](https://github.com/lampepfl/dotty/pull/3464) +### Dependent function types [#3464](https://github.com/scala/scala3/pull/3464) A dependent function type describes functions where the result type may depend on the function's parameter values. Example: @@ -108,7 +108,7 @@ are currently two backends using the TASTY frontend: This is the first step toward linking and whole word optimisations, recompiling code to a different backends... -### Generic java signatures [#3234](https://github.com/lampepfl/dotty/pull/3234) +### Generic java signatures [#3234](https://github.com/scala/scala3/pull/3234) Dotty now emits generic signatures for classes and methods. Those signatures are used by compilers, debuggers and to support runtime reflection. For example: @@ -144,7 +144,7 @@ the IDE sections of the [getting-started page](https://docs.scala-lang.org/scala ### Standalone installation Releases are available for download on the _Releases_ section of the Dotty repository: -[https://github.com/lampepfl/dotty/releases](https://github.com/lampepfl/dotty/releases) +[https://github.com/scala/scala3/releases](https://github.com/scala/scala3/releases) We also provide a [homebrew](https://brew.sh/) package that can be installed by running: @@ -161,7 +161,7 @@ brew upgrade dotty ## Let us know what you think! If you have questions or any sort of feedback, feel free to send us a message on our [Gitter channel](https://gitter.im/lampepfl/dotty). If you encounter a bug, please -[open an issue on GitHub](https://github.com/lampepfl/dotty/issues/new). +[open an issue on GitHub](https://github.com/scala/scala3/issues/new). ## Contributing Thank you to all the contributors who made this release possible! @@ -198,7 +198,7 @@ According to `git shortlog -sn --no-merges 0.4.0-RC1..0.5.0-RC1` these are: If you want to get your hands dirty and contribute to Dotty, now is a good time to get involved! You can have a look at our [Getting Started page for new contributors](https://dotty.epfl.ch/docs/contributing/getting-started.html), the [Awesome Error Messages](http://scala-lang.org/blog/2016/10/14/dotty-errors.html) project or some of -the simple [Dotty issues](https://github.com/lampepfl/dotty/issues?q=is%3Aissue+is%3Aopen+label%3Aexp%3Anovice). +the simple [Dotty issues](https://github.com/scala/scala3/issues?q=is%3Aissue+is%3Aopen+label%3Aexp%3Anovice). They make perfect entry-points into hacking on the compiler. We are looking forward to having you join the team of contributors. diff --git a/docs/_blog/_posts/2018-03-05-seventh-dotty-milestone-release.md b/docs/_blog/_posts/2018-03-05-seventh-dotty-milestone-release.md index a72e04409ea0..a70d71bc17b8 100644 --- a/docs/_blog/_posts/2018-03-05-seventh-dotty-milestone-release.md +++ b/docs/_blog/_posts/2018-03-05-seventh-dotty-milestone-release.md @@ -19,12 +19,12 @@ You can learn more about Dotty on our [website](http://dotty.epfl.ch). This is our seventh scheduled release according to our [6-week release schedule](https://dotty.epfl.ch/docs/usage/version-numbers.html). -The [previous technology preview](https://github.com/lampepfl/dotty/releases/tag/0.6.0-RC1) focussed +The [previous technology preview](https://github.com/scala/scala3/releases/tag/0.6.0-RC1) focussed on bug fixes and stability work. ## What’s new in the 0.7.0-RC1 technology preview? -### Enum Simplification [#4003](https://github.com/lampepfl/dotty/pull/4003) +### Enum Simplification [#4003](https://github.com/scala/scala3/pull/4003) The previously introduced syntax and rules for enum were arguably too complex. We can considerably simplify them by taking away one capability: that cases can have bodies which can define members. Arguably, if we choose an ADT decomposition of a problem, it's good style to write all methods using @@ -75,7 +75,7 @@ and how to use them to model [Algebraic Data Types](https://dotty.epfl.ch/docs/r visit the respective sections in our documentation. -### Erased terms [#3342](https://github.com/lampepfl/dotty/pull/3342) +### Erased terms [#3342](https://github.com/scala/scala3/pull/3342) The `erased` modifier can be used on parameters, `val` and `def` to enforce that no reference to those terms is ever used. As they are never used, they can safely be removed during compilation. @@ -103,10 +103,10 @@ For more information, visit the [Erased Terms](https://dotty.epfl.ch/docs/refere section of our documentation. **Note**: Erased terms replace _phantom types_: they have similar semantics, but with the added -advantage that any type can be an erased parameter. See [#3410](https://github.com/lampepfl/dotty/pull/3410). +advantage that any type can be an erased parameter. See [#3410](https://github.com/scala/scala3/pull/3410). -### Improved IDE support [#3960](https://github.com/lampepfl/dotty/pull/3960) +### Improved IDE support [#3960](https://github.com/scala/scala3/pull/3960) The Dotty language server now supports context sensitive IDE completions. Completions now include local and imported definitions. Members completions take possible implicit conversions into account. @@ -183,7 +183,7 @@ compile-time. For example, writing `(eval(a), eval(a))` instead of `(eval(a), eval(b))` in the example above should be an error, but it was not caught by Scala 2 or previous versions of Dotty, whereas we now get a type mismatch error as expected. More work remains to be done to fix the remaining [GADT-related -issues](https://github.com/lampepfl/dotty/issues?utf8=%E2%9C%93&q=is%3Aissue+is%3Aopen+gadt), +issues](https://github.com/scala/scala3/issues?utf8=%E2%9C%93&q=is%3Aissue+is%3Aopen+gadt), but so far no show-stopper has been found. ## Trying out Dotty @@ -210,7 +210,7 @@ the IDE sections of the [getting-started page](https://docs.scala-lang.org/scala ### Standalone installation Releases are available for download on the _Releases_ section of the Dotty repository: -[https://github.com/lampepfl/dotty/releases](https://github.com/lampepfl/dotty/releases) +[https://github.com/scala/scala3/releases](https://github.com/scala/scala3/releases) We also provide a [homebrew](https://brew.sh/) package that can be installed by running: @@ -227,7 +227,7 @@ brew upgrade dotty ## Let us know what you think! If you have questions or any sort of feedback, feel free to send us a message on our [Gitter channel](https://gitter.im/lampepfl/dotty). If you encounter a bug, please -[open an issue on GitHub](https://github.com/lampepfl/dotty/issues/new). +[open an issue on GitHub](https://github.com/scala/scala3/issues/new). ## Contributing Thank you to all the contributors who made this release possible! @@ -255,7 +255,7 @@ According to `git shortlog -sn --no-merges 0.6.0..0.7.0-RC1` these are: If you want to get your hands dirty and contribute to Dotty, now is a good time to get involved! Head to our [Getting Started page for new contributors](https://dotty.epfl.ch/docs/contributing/getting-started.html), -and have a look at some of the [good first issues](https://github.com/lampepfl/dotty/issues?q=is%3Aissue+is%3Aopen+label%3Aexp%3Anovice). +and have a look at some of the [good first issues](https://github.com/scala/scala3/issues?q=is%3Aissue+is%3Aopen+label%3Aexp%3Anovice). They make perfect entry-points into hacking on the compiler. We are looking forward to having you join the team of contributors. diff --git a/docs/_blog/_posts/2018-04-27-eighth-dotty-milestone-release.md b/docs/_blog/_posts/2018-04-27-eighth-dotty-milestone-release.md index 72c0747e659d..d2194594edcc 100644 --- a/docs/_blog/_posts/2018-04-27-eighth-dotty-milestone-release.md +++ b/docs/_blog/_posts/2018-04-27-eighth-dotty-milestone-release.md @@ -24,12 +24,12 @@ You can learn more about Dotty on our [website](https://dotty.epfl.ch). This is our eighth scheduled release according to our [6-week release schedule](https://dotty.epfl.ch/docs/usage/version-numbers.html). -The [previous technology preview](https://github.com/lampepfl/dotty/releases/tag/0.7.0-RC1) simplified +The [previous technology preview](https://github.com/scala/scala3/releases/tag/0.7.0-RC1) simplified enums, introduced erased terms, improved IDE support and improved pattern matching for GADT. ## What’s new in the 0.8.0-RC1 technology preview? -### sbt 1 support [#3872](https://github.com/lampepfl/dotty/pull/3872) +### sbt 1 support [#3872](https://github.com/scala/scala3/pull/3872) Starting with Dotty 0.8.0, we will only support versions of sbt >= 1.1.4. Migrating to sbt 1 lets us use the new improved incremental compiler for Scala called [Zinc](https://github.com/sbt/zinc), and enables integration with tools such as [Bloop](https://scalacenter.github.io/bloop/). @@ -43,7 +43,7 @@ If you are already using Dotty with sbt 0.13, follow these simple steps to upgra ``` - replace usages of `.withDottyCompat()` by `.withDottyCompat(scalaVersion.value)` -### Unchecked warnings [#4045](https://github.com/lampepfl/dotty/pull/4045) +### Unchecked warnings [#4045](https://github.com/scala/scala3/pull/4045) Dotty now emits `unchecked` warnings like `scalac` whenever a type test is performed but cannot be fully checked at runtime because of type erasure. For example: @@ -64,7 +64,7 @@ def foo[T](x: T) = x match { } ``` -### Kind Polymorphism [#4108](https://github.com/lampepfl/dotty/pull/4108) +### Kind Polymorphism [#4108](https://github.com/scala/scala3/pull/4108) Normally type parameters in Scala are partitioned into kinds. First-level types are types of values. Higher-kinded types are type constructors such as `List` or `Map`. The kind of a type is indicated by the top type of which it is a subtype. Normal types are subtypes of `Any`, covariant single @@ -94,7 +94,7 @@ f[[X] =>> String] (i.e. `-Ykind-polymorphism`). For more information, visit the [Kind Polymorphism](https://dotty.epfl.ch/docs/reference/other-new-features/kind-polymorphism.html) section of our documentation. -### Improved support for SAM type [#4152](https://github.com/lampepfl/dotty/pull/4152) +### Improved support for SAM type [#4152](https://github.com/scala/scala3/pull/4152) This release includes fixes to [SAM types](https://www.scala-lang.org/news/2.12.0/#lambda-syntax-for-sam-types) that greatly improve interoperability with Java 8 lambdas. One can now easily write Scala code that uses Java streams: @@ -139,7 +139,7 @@ the IDE sections of the [getting-started page](https://docs.scala-lang.org/scala ### Standalone installation Releases are available for download on the _Releases_ section of the Dotty repository: -[https://github.com/lampepfl/dotty/releases](https://github.com/lampepfl/dotty/releases) +[https://github.com/scala/scala3/releases](https://github.com/scala/scala3/releases) We also provide a [homebrew](https://brew.sh/) package that can be installed by running: @@ -156,7 +156,7 @@ brew upgrade dotty ## Let us know what you think! If you have questions or any sort of feedback, feel free to send us a message on our [Gitter channel](https://gitter.im/lampepfl/dotty). If you encounter a bug, please -[open an issue on GitHub](https://github.com/lampepfl/dotty/issues/new). +[open an issue on GitHub](https://github.com/scala/scala3/issues/new). ## Contributing Thank you to all the contributors who made this release possible! @@ -187,7 +187,7 @@ According to `git shortlog -sn --no-merges 0.7.0..0.8.0-RC1` these are: If you want to get your hands dirty and contribute to Dotty, now is a good time to get involved! Head to our [Getting Started page for new contributors](https://dotty.epfl.ch/docs/contributing/getting-started.html), -and have a look at some of the [good first issues](https://github.com/lampepfl/dotty/issues?q=is%3Aissue+is%3Aopen+label%3Aexp%3Anovice). +and have a look at some of the [good first issues](https://github.com/scala/scala3/issues?q=is%3Aissue+is%3Aopen+label%3Aexp%3Anovice). They make perfect entry-points into hacking on the compiler. We are looking forward to having you join the team of contributors. diff --git a/docs/_blog/_posts/2018-07-06-ninth-dotty-milestone-release.md b/docs/_blog/_posts/2018-07-06-ninth-dotty-milestone-release.md index 914eca4d73d3..73066551300b 100644 --- a/docs/_blog/_posts/2018-07-06-ninth-dotty-milestone-release.md +++ b/docs/_blog/_posts/2018-07-06-ninth-dotty-milestone-release.md @@ -24,23 +24,23 @@ You can learn more about Dotty on our [website](https://dotty.epfl.ch). This is our ninth scheduled release according to our [6-week release schedule](https://dotty.epfl.ch/docs/usage/version-numbers.html). -The [previous technology preview](https://github.com/lampepfl/dotty/releases/tag/0.8.0-RC1) added +The [previous technology preview](https://github.com/scala/scala3/releases/tag/0.8.0-RC1) added support for sbt 1, introduced improved unchecked warnings and improved SAM type support. ## What’s new in the 0.9.0-RC1 technology preview? -### Improved REPL [#4680](https://github.com/lampepfl/dotty/pull/4680) +### Improved REPL [#4680](https://github.com/scala/scala3/pull/4680) The REPL now uses [JLine 3](https://github.com/jline/jline3) under the hood which improves on many aspects such as, auto-completions and multi-line editing. The REPL now also works on Windows! -### Documentation support in the IDE [#4461](https://github.com/lampepfl/dotty/pull/4461), [#4648](https://github.com/lampepfl/dotty/pull/4648) +### Documentation support in the IDE [#4461](https://github.com/scala/scala3/pull/4461), [#4648](https://github.com/scala/scala3/pull/4648) The Dotty IDE will now display documentation while hovering over symbols that were previously compiled by the Dotty compiler. In the future, we plan to let users query the documentation in the REPL as well. -### Drop requirement that implicit functions must be non-empty [#4549](https://github.com/lampepfl/dotty/pull/4549) +### Drop requirement that implicit functions must be non-empty [#4549](https://github.com/scala/scala3/pull/4549) We remove the arbitrary restriction that parameters of implicit functions must by non-empty. We can now write: ```scala @@ -63,7 +63,7 @@ timed { Both definitions above are equivalent. -### Emit feature warnings for implicit conversions [#4229](https://github.com/lampepfl/dotty/pull/4229) +### Emit feature warnings for implicit conversions [#4229](https://github.com/scala/scala3/pull/4229) Implicit conversions are easily the most misused feature in Scala. We now emit feature warnings when encountering an implicit conversion definition, just like Scala 2 does. @@ -76,7 +76,7 @@ unless the conversion is: (we might extend this to more conversions). -### Optimise s and raw interpolators [#3961](https://github.com/lampepfl/dotty/pull/3961) +### Optimise s and raw interpolators [#3961](https://github.com/scala/scala3/pull/3961) `s` and `raw` string interpolators were known to be slower than their not type-safe counterparts: ```scala s"Hello $name!" @@ -89,7 +89,7 @@ The compiler will now desugar the former into the latter. Special thanks to compiler! -### Support for compiler plugins [#3438](https://github.com/lampepfl/dotty/pull/3438) +### Support for compiler plugins [#3438](https://github.com/scala/scala3/pull/3438) Dotty now supports Compiler plugins. Compiler plugins let you customize the compiler pipeline without having to modify the compiler source code. A major difference compared to Scala 2 is that Dotty plugins must run after the type checker. Being able to influence normal type checking @@ -123,7 +123,7 @@ the IDE sections of the [getting-started page](https://docs.scala-lang.org/scala ### Standalone installation Releases are available for download on the _Releases_ section of the Dotty repository: -[https://github.com/lampepfl/dotty/releases](https://github.com/lampepfl/dotty/releases) +[https://github.com/scala/scala3/releases](https://github.com/scala/scala3/releases) We also provide a [homebrew](https://brew.sh/) package that can be installed by running: @@ -144,7 +144,7 @@ installing anything. Note however that Scastie only supports Dotty 0.7.0-RC1. ## Let us know what you think! If you have questions or any sort of feedback, feel free to send us a message on our [Gitter channel](https://gitter.im/lampepfl/dotty). If you encounter a bug, please -[open an issue on GitHub](https://github.com/lampepfl/dotty/issues/new). +[open an issue on GitHub](https://github.com/scala/scala3/issues/new). ## Contributing Thank you to all the contributors who made this release possible! @@ -180,7 +180,7 @@ According to `git shortlog -sn --no-merges 0.8.0..0.9.0-RC1` these are: If you want to get your hands dirty and contribute to Dotty, now is a good time to get involved! Head to our [Getting Started page for new contributors](https://dotty.epfl.ch/docs/contributing/getting-started.html), -and have a look at some of the [good first issues](https://github.com/lampepfl/dotty/issues?q=is%3Aissue+is%3Aopen+label%3Aexp%3Anovice). +and have a look at some of the [good first issues](https://github.com/scala/scala3/issues?q=is%3Aissue+is%3Aopen+label%3Aexp%3Anovice). They make perfect entry-points into hacking on the compiler. We are looking forward to having you join the team of contributors. diff --git a/docs/_blog/_posts/2018-10-10-10th-dotty-milestone-release.md b/docs/_blog/_posts/2018-10-10-10th-dotty-milestone-release.md index b583d1bd0f49..0a5ebd067391 100644 --- a/docs/_blog/_posts/2018-10-10-10th-dotty-milestone-release.md +++ b/docs/_blog/_posts/2018-10-10-10th-dotty-milestone-release.md @@ -99,7 +99,7 @@ or the enclosing class did not change at call site. E.g. This restriction has now been removed. We also improve upon `scalac` which is not able to optimise methods that change the type of `this` on a polymorphic recursive call. -[Examples](https://github.com/lampepfl/dotty/blob/7a45a4a386d33180e5b7b21aa74271a77cce4707/tests/neg-tailcall/tailrec.scala#L43-L44) +[Examples](https://github.com/scala/scala3/blob/7a45a4a386d33180e5b7b21aa74271a77cce4707/tests/neg-tailcall/tailrec.scala#L43-L44) can be found in our test suite. ### Experimental support for generic Tuples @@ -125,7 +125,7 @@ val t2: (Int, String, Long, Int, String, Long) = (1,2,3,1,2,3) ### And much more! -Please read our [release notes](https://github.com/lampepfl/dotty/releases/tag/0.10.0-RC1) +Please read our [release notes](https://github.com/scala/scala3/releases/tag/0.10.0-RC1) for more details! ## Breaking changes @@ -160,7 +160,7 @@ the IDE sections of the [getting-started page](https://docs.scala-lang.org/scala Releases are available for download on the _Releases_ section of the Dotty repository: -[https://github.com/lampepfl/dotty/releases](https://github.com/lampepfl/dotty/releases) +[https://github.com/scala/scala3/releases](https://github.com/scala/scala3/releases) For macOS users, we also provide a [homebrew](https://brew.sh/) package that can be installed by running: @@ -179,7 +179,7 @@ brew upgrade dotty If you have questions or any sort of feedback, feel free to send us a message on our [Gitter channel](https://gitter.im/lampepfl/dotty). If you encounter a bug, please -[open an issue on GitHub](https://github.com/lampepfl/dotty/issues/new). +[open an issue on GitHub](https://github.com/scala/scala3/issues/new). ## Contributing @@ -222,7 +222,7 @@ According to `git shortlog -sn --no-merges 0.9.0..0.10.0-RC1` these are: If you want to get your hands dirty and contribute to Dotty, now is a good time to get involved! Head to our [Getting Started page for new contributors](https://dotty.epfl.ch/docs/contributing/getting-started.html), -and have a look at some of the [good first issues](https://github.com/lampepfl/dotty/issues?q=is%3Aissue+is%3Aopen+label%3Aexp%3Anovice). +and have a look at some of the [good first issues](https://github.com/scala/scala3/issues?q=is%3Aissue+is%3Aopen+label%3Aexp%3Anovice). They make perfect entry points into hacking on the compiler. We are looking forward to having you join the team of contributors. diff --git a/docs/_blog/_posts/2018-11-30-11th-dotty-milestone-release.md b/docs/_blog/_posts/2018-11-30-11th-dotty-milestone-release.md index 344900e2e164..268d86db00c6 100644 --- a/docs/_blog/_posts/2018-11-30-11th-dotty-milestone-release.md +++ b/docs/_blog/_posts/2018-11-30-11th-dotty-milestone-release.md @@ -115,7 +115,7 @@ information from the Scaladoc comment, then format it before we display it in th ### And much more! -Please read our [release notes](https://github.com/lampepfl/dotty/releases/tag/0.11.0-RC1) +Please read our [release notes](https://github.com/scala/scala3/releases/tag/0.11.0-RC1) for more details! ## Trying out Dotty @@ -146,7 +146,7 @@ the IDE sections of the [getting-started page](https://docs.scala-lang.org/scala Releases are available for download on the _Releases_ section of the Dotty repository: -[https://github.com/lampepfl/dotty/releases](https://github.com/lampepfl/dotty/releases) +[https://github.com/scala/scala3/releases](https://github.com/scala/scala3/releases) For macOS users, we also provide a [homebrew](https://brew.sh/) package that can be installed by running: @@ -165,7 +165,7 @@ brew upgrade dotty If you have questions or any sort of feedback, feel free to send us a message on our [Gitter channel](https://gitter.im/lampepfl/dotty). If you encounter a bug, please -[open an issue on GitHub](https://github.com/lampepfl/dotty/issues/new). +[open an issue on GitHub](https://github.com/scala/scala3/issues/new). ## Contributing @@ -201,7 +201,7 @@ According to `git shortlog -sn --no-merges 0.10.0..0.11.0-RC1` these are: If you want to get your hands dirty and contribute to Dotty, now is a good time to get involved! Head to our [Getting Started page for new contributors](https://dotty.epfl.ch/docs/contributing/getting-started.html), -and have a look at some of the [good first issues](https://github.com/lampepfl/dotty/issues?q=is%3Aissue+is%3Aopen+label%3Aexp%3Anovice). +and have a look at some of the [good first issues](https://github.com/scala/scala3/issues?q=is%3Aissue+is%3Aopen+label%3Aexp%3Anovice). They make perfect entry points into hacking on the compiler. We are looking forward to having you join the team of contributors. diff --git a/docs/_blog/_posts/2019-01-21-12th-dotty-milestone-release.md b/docs/_blog/_posts/2019-01-21-12th-dotty-milestone-release.md index f9fc25375d86..d56a03b4e345 100644 --- a/docs/_blog/_posts/2019-01-21-12th-dotty-milestone-release.md +++ b/docs/_blog/_posts/2019-01-21-12th-dotty-milestone-release.md @@ -106,7 +106,7 @@ This kind of reasoning is necessary for many advanced GADT usages! ### And much more! -Please read our [release notes](https://github.com/lampepfl/dotty/releases/tag/0.12.0-RC1) +Please read our [release notes](https://github.com/scala/scala3/releases/tag/0.12.0-RC1) for more details! ## Trying out Dotty @@ -137,7 +137,7 @@ the IDE sections of the [getting-started page](https://docs.scala-lang.org/scala Releases are available for download on the _Releases_ section of the Dotty repository: -[https://github.com/lampepfl/dotty/releases](https://github.com/lampepfl/dotty/releases) +[https://github.com/scala/scala3/releases](https://github.com/scala/scala3/releases) For macOS users, we also provide a [homebrew](https://brew.sh/) package that can be installed by running: @@ -156,7 +156,7 @@ brew upgrade dotty If you have questions or any sort of feedback, feel free to send us a message on our [Gitter channel](https://gitter.im/lampepfl/dotty). If you encounter a bug, please -[open an issue on GitHub](https://github.com/lampepfl/dotty/issues/new). +[open an issue on GitHub](https://github.com/scala/scala3/issues/new). ## Contributing @@ -195,7 +195,7 @@ According to `git shortlog -sn --no-merges 0.11.0-RC1..0.12.0-RC1` these are: If you want to get your hands dirty and contribute to Dotty, now is a good time to get involved! Head to our [Getting Started page for new contributors](https://dotty.epfl.ch/docs/contributing/getting-started.html), -and have a look at some of the [good first issues](https://github.com/lampepfl/dotty/issues?q=is%3Aissue+is%3Aopen+label%3Aexp%3Anovice). +and have a look at some of the [good first issues](https://github.com/scala/scala3/issues?q=is%3Aissue+is%3Aopen+label%3Aexp%3Anovice). They make perfect entry points into hacking on the compiler. We are looking forward to having you join the team of contributors. diff --git a/docs/_blog/_posts/2019-03-05-13th-dotty-milestone-release.md b/docs/_blog/_posts/2019-03-05-13th-dotty-milestone-release.md index f1838847d81e..8ebb70ea59e5 100644 --- a/docs/_blog/_posts/2019-03-05-13th-dotty-milestone-release.md +++ b/docs/_blog/_posts/2019-03-05-13th-dotty-milestone-release.md @@ -50,11 +50,11 @@ smoothly, but the *Parallelism and Concurrency* course given in the Spring semester teaches Spark, which means we needed to support it in Dotty! Luckily, this turned out to be mostly straightforward: we adopted the [object -serialization scheme](https://github.com/lampepfl/dotty/pull/5775) and [lambda -serialization scheme](https://github.com/lampepfl/dotty/pull/5837) pioneered by +serialization scheme](https://github.com/scala/scala3/pull/5775) and [lambda +serialization scheme](https://github.com/scala/scala3/pull/5837) pioneered by Scala 2, and that was enough to make our Spark assignments run correctly! This doesn't mean that our support is perfect however, so don't hesitate to [open an -issue](http://github.com/lampepfl/dotty/issues) if something is amiss. +issue](http://github.com/scala/scala3/issues) if something is amiss. ## Introducing top level definitions @@ -74,7 +74,7 @@ def b = a._2 You can read about [dropping package objects](https://dotty.epfl.ch/docs/reference/dropped-features/package-objects.html) at the documentation linked or at the relevant PR -[#5754](https://github.com/lampepfl/dotty/pull/5754). +[#5754](https://github.com/scala/scala3/pull/5754). ## All things impl... implied @@ -211,7 +211,7 @@ object B { **You can read more about** [implied imports](https://dotty.epfl.ch/docs/reference/contextual/import-delegate.html) from the docs or the relevant PR -[#5868](https://github.com/lampepfl/dotty/pull/5868). +[#5868](https://github.com/scala/scala3/pull/5868). As we mentioned above, *context queries* are functions with (only) inferable parameters. Here is an example of such a function: @@ -227,9 +227,9 @@ merely an alignment of IFTs into the new scheme. **You can read more about** the alternative to implicits through the *Contextual Abstractions* section of our documentation or for a deep dive from the relevant PR chain that originated from -[#5458](https://github.com/lampepfl/dotty/pull/5458). The syntax changes for new +[#5458](https://github.com/scala/scala3/pull/5458). The syntax changes for new implicits are summarized in -[#5825](https://github.com/lampepfl/dotty/pull/5825). +[#5825](https://github.com/scala/scala3/pull/5825). This release offers the support for _type class derivation_ as a language feature. Type class derivation is a way to generate instances of certain type @@ -279,8 +279,8 @@ def derived[T] given Generic[T] = ... **You can read more about** [Type class Derivation](https://dotty.epfl.ch/docs/reference/contextual/derivation.html) or have a deep dive at the relevant PRs: -[#5540](https://github.com/lampepfl/dotty/pull/5540) and -[#5839](https://github.com/lampepfl/dotty/pull/5839). +[#5540](https://github.com/scala/scala3/pull/5540) and +[#5839](https://github.com/scala/scala3/pull/5839). _Multiversal equality_ is now supported through the `Eql` marker trait (renamed from `Eq` to differentiate it from Cats' `Eq`). For example, in order to be able @@ -292,7 +292,7 @@ implied for Eql[Int, String] = Eql.derived ``` **You can read more about** how we based multiversal equality on type class derivation through -the relevant PR [#5843](https://github.com/lampepfl/dotty/pull/5843). +the relevant PR [#5843](https://github.com/scala/scala3/pull/5843). _Implicit conversions_ are now defined by implied instances of the `scala.Conversion` class. For example: @@ -311,7 +311,7 @@ important with the documentation of each feature, please consult the ## Implicit resolution rule changes -PR [#5887](https://github.com/lampepfl/dotty/pull/5887) applies the following +PR [#5887](https://github.com/scala/scala3/pull/5887) applies the following changes to implicit resolution: 1. nested implicits always take precedence over outer ones @@ -324,12 +324,12 @@ changes to implicit resolution: data model for semantic information such as symbols and types about programs in Scala and other languages. SemanticDB decouples production and consumption of semantic information, establishing documented means for communication between -tools. With PR [#5761](https://github.com/lampepfl/dotty/pull/5761) we add the +tools. With PR [#5761](https://github.com/scala/scala3/pull/5761) we add the first prototype for the generation of SemanticDB information from TASTy. ## And much more! -Please read our [release notes](https://github.com/lampepfl/dotty/releases/tag/0.13.0-RC1) +Please read our [release notes](https://github.com/scala/scala3/releases/tag/0.13.0-RC1) for more details! # Trying out Dotty @@ -360,7 +360,7 @@ the IDE sections of the [getting-started page](https://docs.scala-lang.org/scala Releases are available for download on the _Releases_ section of the Dotty repository: -[https://github.com/lampepfl/dotty/releases](https://github.com/lampepfl/dotty/releases) +[https://github.com/scala/scala3/releases](https://github.com/scala/scala3/releases) For macOS users, we also provide a [homebrew](https://brew.sh/) package that can be installed by running: @@ -379,7 +379,7 @@ brew upgrade dotty If you have questions or any sort of feedback, feel free to send us a message on our [Gitter channel](https://gitter.im/lampepfl/dotty). If you encounter a bug, please -[open an issue on GitHub](https://github.com/lampepfl/dotty/issues/new). +[open an issue on GitHub](https://github.com/scala/scala3/issues/new). ## Contributing @@ -417,7 +417,7 @@ According to `git shortlog -sn --no-merges 0.12.0-RC1..0.13.0-RC1` these are: If you want to get your hands dirty and contribute to Dotty, now is a good time to get involved! Head to our [Getting Started page for new contributors](https://dotty.epfl.ch/docs/contributing/getting-started.html), -and have a look at some of the [good first issues](https://github.com/lampepfl/dotty/issues?q=is%3Aissue+is%3Aopen+label%3Aexp%3Anovice). +and have a look at some of the [good first issues](https://github.com/scala/scala3/issues?q=is%3Aissue+is%3Aopen+label%3Aexp%3Anovice). They make perfect entry points into hacking on the compiler. We are looking forward to having you join the team of contributors. diff --git a/docs/_blog/_posts/2019-04-15-14th-dotty-milestone-release.md b/docs/_blog/_posts/2019-04-15-14th-dotty-milestone-release.md index 6724ae11cef1..1ac1c3ae9fbb 100644 --- a/docs/_blog/_posts/2019-04-15-14th-dotty-milestone-release.md +++ b/docs/_blog/_posts/2019-04-15-14th-dotty-milestone-release.md @@ -72,7 +72,7 @@ For more information, please read more in the [documentation](https://dotty.epfl ## An immutable array type -A new type, `scala.IArray[T]`, is added, which is an immutable version of the `Array` type. Its implementation deserves a special attention, as it uses the new Dotty features in an elegant way (the below is an abstract from the corresponding [commit](https://github.com/lampepfl/dotty/commit/af2a0e66eb4b1204eac5dcb1d979486b92ef93d7#diff-156dc405d9f228bbc0fe406dfba63f65): +A new type, `scala.IArray[T]`, is added, which is an immutable version of the `Array` type. Its implementation deserves a special attention, as it uses the new Dotty features in an elegant way (the below is an abstract from the corresponding [commit](https://github.com/scala/scala3/commit/af2a0e66eb4b1204eac5dcb1d979486b92ef93d7#diff-156dc405d9f228bbc0fe406dfba63f65): ```scala opaque type IArray[T] = Array[T] @@ -131,7 +131,7 @@ Some of the other changes include: If you have questions or any sort of feedback, feel free to send us a message on our [Gitter channel](https://gitter.im/lampepfl/dotty). If you encounter a bug, please -[open an issue on GitHub](https://github.com/lampepfl/dotty/issues/new). +[open an issue on GitHub](https://github.com/scala/scala3/issues/new). ## Contributing @@ -171,7 +171,7 @@ According to `git shortlog -sn --no-merges 0.13.0-RC1..0.14.0-RC1` these are: If you want to get your hands dirty and contribute to Dotty, now is a good time to get involved! Head to our [Getting Started page for new contributors](https://dotty.epfl.ch/docs/contributing/getting-started.html), -and have a look at some of the [good first issues](https://github.com/lampepfl/dotty/issues?q=is%3Aissue+is%3Aopen+label%3Aexp%3Anovice). +and have a look at some of the [good first issues](https://github.com/scala/scala3/issues?q=is%3Aissue+is%3Aopen+label%3Aexp%3Anovice). They make perfect entry points into hacking on the compiler. We are looking forward to having you join the team of contributors. diff --git a/docs/_blog/_posts/2019-05-23-15th-dotty-milestone-release.md b/docs/_blog/_posts/2019-05-23-15th-dotty-milestone-release.md index 68337d78ca8c..1ffb07377da4 100644 --- a/docs/_blog/_posts/2019-05-23-15th-dotty-milestone-release.md +++ b/docs/_blog/_posts/2019-05-23-15th-dotty-milestone-release.md @@ -6,7 +6,7 @@ authorImg: images/anatolii.png date: 2019-05-23 --- -Hi! We are very excited to announce the 15th release of Dotty. The most exciting thing in this release is the full bootstrap for Dotty introduced by PR [#5923](https://github.com/lampepfl/dotty/pull/5923)🎉😍. This means that we now always compile Dotty with Dotty itself, hence we can use use all the new features in the compiler code base. +Hi! We are very excited to announce the 15th release of Dotty. The most exciting thing in this release is the full bootstrap for Dotty introduced by PR [#5923](https://github.com/scala/scala3/pull/5923)🎉😍. This means that we now always compile Dotty with Dotty itself, hence we can use use all the new features in the compiler code base. With this release comes a bunch of new features and improvements, such as the ability to enforce whether an operator is intended to be used in an infix position, the type safe pattern bindings and more. @@ -36,7 +36,7 @@ This is our 15th scheduled release according to our ## Full Bootstrap Bootstrapping Dotty is a big milestone for us and in compiler construction in general. Firstly, we feel more confident that our compiler works as is (even without reusing the new features). Secondly, in the immediate future, we will be able to reuse many of the features that dotty proposes within dotty itself. For example, we have no fewer than 2641 occurrences of the text string (implicit ctx: Context) in the compiler that we can scrap with [Contextual Function types](https://www.scala-lang.org/blog/2016/12/07/implicit-function-types.html). Big milestones have high risk/high gain and we must be attentive. That is the reason that we will wait a bit until we start using new features. Consequently, at the moment we cross-compile the build with 2.12 on the CI so that we don't accidentally start using Dotty features in case we need to revise the bootstrap process (we'll start using Dotty features eventually, but let's wait until we're confident that this setup works well enough). -Check the following for more information [#5923 (comment)](https://github.com/lampepfl/dotty/pull/5923#issuecomment-485421148) and please let us know if you have any incremental compilation issues or anything else! +Check the following for more information [#5923 (comment)](https://github.com/scala/scala3/pull/5923#issuecomment-485421148) and please let us know if you have any incremental compilation issues or anything else! ## Operator Rules This change addresses the problem of the regulation of whether an operator is supposed to be used in an infix position. The motivation is for the library authors to be able to enforce whether a method or a type is supposed to be used in an infix position by the users. This ability will help to make code bases more consistent in the way the calls to methods are performed. @@ -150,7 +150,7 @@ For the migration purposes, the above change will only take effect in Scala 3.1. For more information, see the [documentation](https://dotty.epfl.ch/docs/reference/changed-features/pattern-bindings.html). ## Further improvements to Generalised Algebraic Data Types (GADTs) support -In this release, we've further improved our support for GADTs. Most notably, we now support variant GADTs, thus fixing [#2985](https://github.com/lampepfl/dotty/issues/2985): +In this release, we've further improved our support for GADTs. Most notably, we now support variant GADTs, thus fixing [#2985](https://github.com/scala/scala3/issues/2985): ```scala enum Expr[+T] { @@ -164,20 +164,20 @@ def eval[T](e: Expr[T]): T = e match { } ``` -We've also plugged a few soundness problems (e.g. [#5667](https://github.com/lampepfl/dotty/issues/5667)) caused by inferring too much when matching on abstract, union and intersection types. For more information, see PR [#5736](https://github.com/lampepfl/dotty/pull/5736). +We've also plugged a few soundness problems (e.g. [#5667](https://github.com/scala/scala3/issues/5667)) caused by inferring too much when matching on abstract, union and intersection types. For more information, see PR [#5736](https://github.com/scala/scala3/pull/5736). ## Other changes Some of the other notable changes include the following: - Singletons are now allowed in union types. E.g. the following is allowed: `object foo; type X = Int | foo.type`. -- A bunch of improvements was made for the type inference system – see, e.g., PRs [#6454](https://github.com/lampepfl/dotty/pull/6454) and [#6467](https://github.com/lampepfl/dotty/pull/6467). -- Improvements to the Scala 2 code support which, in particular, improves Cats support – see PRs [#6494](https://github.com/lampepfl/dotty/pull/6494) and [#6498](https://github.com/lampepfl/dotty/pull/6498). +- A bunch of improvements was made for the type inference system – see, e.g., PRs [#6454](https://github.com/scala/scala3/pull/6454) and [#6467](https://github.com/scala/scala3/pull/6467). +- Improvements to the Scala 2 code support which, in particular, improves Cats support – see PRs [#6494](https://github.com/scala/scala3/pull/6494) and [#6498](https://github.com/scala/scala3/pull/6498). # Let us know what you think! If you have questions or any sort of feedback, feel free to send us a message on our [Gitter channel](https://gitter.im/lampepfl/dotty). If you encounter a bug, please -[open an issue on GitHub](https://github.com/lampepfl/dotty/issues/new). +[open an issue on GitHub](https://github.com/scala/scala3/issues/new). ## Contributing @@ -205,7 +205,7 @@ According to `git shortlog -sn --no-merges 0.14.0-RC1..0.15.0-RC1` these are: If you want to get your hands dirty and contribute to Dotty, now is a good time to get involved! Head to our [Getting Started page for new contributors](https://dotty.epfl.ch/docs/contributing/getting-started.html), -and have a look at some of the [good first issues](https://github.com/lampepfl/dotty/issues?q=is%3Aissue+is%3Aopen+label%3Aexp%3Anovice). +and have a look at some of the [good first issues](https://github.com/scala/scala3/issues?q=is%3Aissue+is%3Aopen+label%3Aexp%3Anovice). They make perfect entry points into hacking on the compiler. We are looking forward to having you join the team of contributors. diff --git a/docs/_blog/_posts/2019-06-11-16th-dotty-milestone-release.md b/docs/_blog/_posts/2019-06-11-16th-dotty-milestone-release.md index 41194df26625..91f63a5610b7 100644 --- a/docs/_blog/_posts/2019-06-11-16th-dotty-milestone-release.md +++ b/docs/_blog/_posts/2019-06-11-16th-dotty-milestone-release.md @@ -49,7 +49,7 @@ represented by `=>>`. As a result a function from types to types is written as `[X] =>> F[X]`. For those who are interested in the discussions, -[#6558](https://github.com/lampepfl/dotty/pull/6558) introduced the new syntax. +[#6558](https://github.com/scala/scala3/pull/6558) introduced the new syntax. ## Syntax Change: Wildcard Arguments in Types @@ -92,7 +92,7 @@ delegate ListOrd[T] for Ord[List[T]] given (ord: Ord[T]) { ``` For more information, the documentation has been updated as part of the relevant -PR [#6649](https://github.com/lampepfl/dotty/pull/6649) +PR [#6649](https://github.com/scala/scala3/pull/6649) ## Polymorphic function types @@ -127,7 +127,7 @@ With PFTs we can now achieve what we want: ``` For those who are interested in the discussions and more test cases, -[#4672](https://github.com/lampepfl/dotty/pull/4672/) introduced PFTs. +[#4672](https://github.com/scala/scala3/pull/4672/) introduced PFTs. ## `lazy val`s are now thread-safe by default @@ -156,9 +156,9 @@ enum B(val gravity: Double) extends java.lang.Enum[B] { } ``` -For more information please check the [test case](https://github.com/lampepfl/dotty/tree/main/tests/run/enum-java) and -also the relevant PRs [#6602](https://github.com/lampepfl/dotty/pull/6602) and -[#6629](https://github.com/lampepfl/dotty/pull/6629). +For more information please check the [test case](https://github.com/scala/scala3/tree/main/tests/run/enum-java) and +also the relevant PRs [#6602](https://github.com/scala/scala3/pull/6602) and +[#6629](https://github.com/scala/scala3/pull/6629). In the test, the enums are defined in the `MainScala.scala` file and used from a Java source, `Test.java`. @@ -212,13 +212,13 @@ Advantages of new scheme: - Complete decoupling between derives clauses and mirror generation. For the technical details of these changes please consule the corresponding PR -[#6531](https://github.com/lampepfl/dotty/pull/6531). +[#6531](https://github.com/scala/scala3/pull/6531). # Let us know what you think! If you have questions or any sort of feedback, feel free to send us a message on our [Gitter channel](https://gitter.im/lampepfl/dotty). If you encounter a bug, please -[open an issue on GitHub](https://github.com/lampepfl/dotty/issues/new). +[open an issue on GitHub](https://github.com/scala/scala3/issues/new). ## Contributing @@ -245,7 +245,7 @@ According to `git shortlog -sn --no-merges 0.15.0-RC1..0.16.0-RC3` these are: If you want to get your hands dirty and contribute to Dotty, now is a good time to get involved! Head to our [Getting Started page for new contributors](https://dotty.epfl.ch/docs/contributing/getting-started.html), -and have a look at some of the [good first issues](https://github.com/lampepfl/dotty/issues?q=is%3Aissue+is%3Aopen+label%3Aexp%3Anovice). +and have a look at some of the [good first issues](https://github.com/scala/scala3/issues?q=is%3Aissue+is%3Aopen+label%3Aexp%3Anovice). They make perfect entry points into hacking on the compiler. We are looking forward to having you join the team of contributors. diff --git a/docs/_blog/_posts/2019-07-25-17th-dotty-milestone-release.md b/docs/_blog/_posts/2019-07-25-17th-dotty-milestone-release.md index eea99263def9..62e0a550598d 100644 --- a/docs/_blog/_posts/2019-07-25-17th-dotty-milestone-release.md +++ b/docs/_blog/_posts/2019-07-25-17th-dotty-milestone-release.md @@ -31,7 +31,7 @@ This is our 17th scheduled release according to our # What’s new in the 0.17.0-RC1 technology preview? ## New implicit scoping rules -We aim to make the implicit scoping rules clean and intuitive. In this release, the scoping rules were refactored to facilitate this goal. As specified in the [code documentation](https://github.com/lampepfl/dotty/pull/6832/files#diff-584b631c45ba6f2d4bc5d803074b8f12R474): +We aim to make the implicit scoping rules clean and intuitive. In this release, the scoping rules were refactored to facilitate this goal. As specified in the [code documentation](https://github.com/scala/scala3/pull/6832/files#diff-584b631c45ba6f2d4bc5d803074b8f12R474): The implicit scope of a type `tp` is the smallest set S of object references (i.e. TermRefs with Module symbol) such that: @@ -48,14 +48,14 @@ with Module symbol) such that: - If `tp` is some other type, its implicit scope is the union of the implicit scopes of its parts (parts defined as in the spec). -You can learn more from PR [#6832](https://github.com/lampepfl/dotty/pull/6832). +You can learn more from PR [#6832](https://github.com/scala/scala3/pull/6832). ## Metaprogramming We are making steady progress developing metaprogramming features. The highlights for this release are: -- Tasty Reflection's `Reflection` object moved inside `QuoteContext` object. This means that if previously to do Tasty Reflection you had to implicitly depend on `Reflection`, now you need to depend on `QuoteContext`. To know more, see [#6723](https://github.com/lampepfl/dotty/pull/6723). -- Progress made on quoted patterns – see [#6504](https://github.com/lampepfl/dotty/pull/6504). -- `code` string interpolator allows to obtain the code a user passes to a macro as a String. See [#6661](https://github.com/lampepfl/dotty/pull/6661). To enable this feature, do the following import: `import scala.compiletime._`. +- Tasty Reflection's `Reflection` object moved inside `QuoteContext` object. This means that if previously to do Tasty Reflection you had to implicitly depend on `Reflection`, now you need to depend on `QuoteContext`. To know more, see [#6723](https://github.com/scala/scala3/pull/6723). +- Progress made on quoted patterns – see [#6504](https://github.com/scala/scala3/pull/6504). +- `code` string interpolator allows to obtain the code a user passes to a macro as a String. See [#6661](https://github.com/scala/scala3/pull/6661). To enable this feature, do the following import: `import scala.compiletime._`. ## 2.12 build removed from the CI tests 2.12 build is removed from the test suite. The 2.12 build compiled and tested the Dotty compiler with the Scala 2.12 compiler. This means that, even though Dotty is bootstrapped (i.e. capable of compiling itself), we were not able to use any of the new Dotty features in the Dotty codebase since these features would not compile with Scala 2.12. The decision to abstain from using the new features was made to give us the time to see if something goes wrong with the bootstrap and the ability to revert to Scala 2.12 if it becomes necessary. @@ -74,7 +74,7 @@ There were some organizational and infrastructural changes worth mentioning. If you have questions or any sort of feedback, feel free to send us a message on our [Gitter channel](https://gitter.im/lampepfl/dotty). If you encounter a bug, please -[open an issue on GitHub](https://github.com/lampepfl/dotty/issues/new). +[open an issue on GitHub](https://github.com/scala/scala3/issues/new). ## Contributing @@ -113,7 +113,7 @@ According to `git shortlog -sn --no-merges 0.16.0-RC3..0.17.0-RC1` these are: If you want to get your hands dirty and contribute to Dotty, now is a good time to get involved! Head to our [Getting Started page for new contributors](https://dotty.epfl.ch/docs/contributing/getting-started.html), -and have a look at some of the [good first issues](https://github.com/lampepfl/dotty/issues?q=is%3Aissue+is%3Aopen+label%3Aexp%3Anovice). +and have a look at some of the [good first issues](https://github.com/scala/scala3/issues?q=is%3Aissue+is%3Aopen+label%3Aexp%3Anovice). They make perfect entry points into hacking on the compiler. We are looking forward to having you join the team of contributors. diff --git a/docs/_blog/_posts/2019-08-30-18th-dotty-milestone-release.md b/docs/_blog/_posts/2019-08-30-18th-dotty-milestone-release.md index 420b9103d3b7..8c06b2058230 100644 --- a/docs/_blog/_posts/2019-08-30-18th-dotty-milestone-release.md +++ b/docs/_blog/_posts/2019-08-30-18th-dotty-milestone-release.md @@ -168,7 +168,7 @@ val iterator = Iterator.from(10, -1) } ``` -For more information, see PR [#6994](https://github.com/lampepfl/dotty/pull/6994). +For more information, see PR [#6994](https://github.com/scala/scala3/pull/6994). ## Brace-less syntax for control expressions This is an effort to clean-up the control expressions. Scala 2 has two ways of writing `if` statements – with and without parentheses. Parentheses can be dropped in Scala 2 `if`s inside `match` or `for` statements. We'd like to have a single style of writing all of the control expressions, and the cleaner the better. @@ -202,7 +202,7 @@ This release, hence, brings the ability to write all of the control expressions Moreover, the compiler can automatically rewrite your sources from the old syntax to the new syntax and vice versa. To rewrite the sources to the new syntax, run the compiler with the `-rewrite -new-syntax` flags, and to rewrite to the old syntax, use `-rewrite -old-syntax`. So far, both syntaxes are supported. -For more information and the precise rules, see PR [#7024](https://github.com/lampepfl/dotty/pull/7024). +For more information and the precise rules, see PR [#7024](https://github.com/scala/scala3/pull/7024). ## Significant indentation syntax Significant indentations syntax is here! A logical continuation of the brace-less syntax for control expressions described above, meant as an exploration into a better way to write Scala, it allows writing Scala programs without braces. For example: @@ -232,7 +232,7 @@ given as scala.util.FromString[Day]: So far, it is a purely experimental effort. This means there is no final decision yet on whether or not it will be included in Scala 3. However, we treat this feature seriously enough to give it an extended period of trial and see if it is viable as the new look and feel for Scala. -For more details and the discussion, see PRs [#7083](https://github.com/lampepfl/dotty/pull/7083) and [#7114](https://github.com/lampepfl/dotty/pull/7114). +For more details and the discussion, see PRs [#7083](https://github.com/scala/scala3/pull/7083) and [#7114](https://github.com/scala/scala3/pull/7114). ## Generic Number Literals It is now possible to seamlessly integrate with different number formats: that is, to write a number and get it automatically converted to your class of choice. E.g.: @@ -256,13 +256,13 @@ For precise rules, semantics and a larger example of `BigFloat`, see [the docume ## Metaprogramming Progress We are making steady progress with the language metaprogramming features. The metaprogramming spotlights of this release are as follows: -- `toExprOfTuple` method which allows converting a `Seq[Expr[Any]]` to `Expr[Tuple]`. The types of the expressions will be preserved in the tuple. See [#7037](https://github.com/lampepfl/dotty/pull/7037) and [#7076](https://github.com/lampepfl/dotty/pull/7076) for the details. -- `toExprOfTuple` method that converts a tuple of expressions to an expression of tuple – see [#7047](https://github.com/lampepfl/dotty/pull/7047). -- `toExprOfSeq` which converts an `Seq[Expr[A]]` to `Expr[Seq[A]]` – see [#6935](https://github.com/lampepfl/dotty/pull/6935). -- More `Liftable` instances – for Tuples of arity greater than 22, `BigInt` and `BigDecimal` – see [#6947](https://github.com/lampepfl/dotty/pull/6947) and [#6944](https://github.com/lampepfl/dotty/pull/6944). -- Leverage implicit lambdas to simplify `Liftable.toExpr` method – see [#6924](https://github.com/lampepfl/dotty/pull/6924) to learn how it is done. -- Runtime staging `run` moved to `scala.quoted.staging` in [#7077](https://github.com/lampepfl/dotty/pull/7077). -- Runtime staging factored out to a separate library in [#7080](https://github.com/lampepfl/dotty/pull/7080). +- `toExprOfTuple` method which allows converting a `Seq[Expr[Any]]` to `Expr[Tuple]`. The types of the expressions will be preserved in the tuple. See [#7037](https://github.com/scala/scala3/pull/7037) and [#7076](https://github.com/scala/scala3/pull/7076) for the details. +- `toExprOfTuple` method that converts a tuple of expressions to an expression of tuple – see [#7047](https://github.com/scala/scala3/pull/7047). +- `toExprOfSeq` which converts an `Seq[Expr[A]]` to `Expr[Seq[A]]` – see [#6935](https://github.com/scala/scala3/pull/6935). +- More `Liftable` instances – for Tuples of arity greater than 22, `BigInt` and `BigDecimal` – see [#6947](https://github.com/scala/scala3/pull/6947) and [#6944](https://github.com/scala/scala3/pull/6944). +- Leverage implicit lambdas to simplify `Liftable.toExpr` method – see [#6924](https://github.com/scala/scala3/pull/6924) to learn how it is done. +- Runtime staging `run` moved to `scala.quoted.staging` in [#7077](https://github.com/scala/scala3/pull/7077). +- Runtime staging factored out to a separate library in [#7080](https://github.com/scala/scala3/pull/7080). ## Type Class Derivation Type class derivation has received a major rework and an [updated documentation](https://dotty.epfl.ch/docs/reference/contextual/derivation.html). We have dropped the usage of the `Shape` type to describe the shape of a type. Instead, all the relevant information is now encoded in the `Mirror` type and its subtypes as tuples. @@ -270,15 +270,15 @@ Type class derivation has received a major rework and an [updated documentation] For more information, see the [documentation](https://dotty.epfl.ch/docs/reference/contextual/derivation.html). ## Other -- This release also features the new version of the SBT Dotty Plugin – 0.3.4. It contains some bug fixes – see [#7120](https://github.com/lampepfl/dotty/pull/7120) for details. -- Scala Days 2019 talks related to Dotty are now [mentioned](https://dotty.epfl.ch/docs/resources/talks.html) at our website – this allows to systematize the knowledge about the next generation of Scala in one place – see [#6984](https://github.com/lampepfl/dotty/pull/6984). -- ScalaJS needs your help! We would like to have robust support for ScalaJS in Dotty, which unfortunately is not the case so far. If you are interested in contributing, please see [the getting started tutorial](https://gist.github.com/sjrd/e0823a5bddbcef43999cdaa032b1220c) and [the discussion](https://github.com/lampepfl/dotty/issues/7113). +- This release also features the new version of the SBT Dotty Plugin – 0.3.4. It contains some bug fixes – see [#7120](https://github.com/scala/scala3/pull/7120) for details. +- Scala Days 2019 talks related to Dotty are now [mentioned](https://dotty.epfl.ch/docs/resources/talks.html) at our website – this allows to systematize the knowledge about the next generation of Scala in one place – see [#6984](https://github.com/scala/scala3/pull/6984). +- ScalaJS needs your help! We would like to have robust support for ScalaJS in Dotty, which unfortunately is not the case so far. If you are interested in contributing, please see [the getting started tutorial](https://gist.github.com/sjrd/e0823a5bddbcef43999cdaa032b1220c) and [the discussion](https://github.com/scala/scala3/issues/7113). # Let us know what you think! If you have questions or any sort of feedback, feel free to send us a message on our [Gitter channel](https://gitter.im/lampepfl/dotty). If you encounter a bug, please -[open an issue on GitHub](https://github.com/lampepfl/dotty/issues/new). +[open an issue on GitHub](https://github.com/scala/scala3/issues/new). ## Contributing @@ -310,7 +310,7 @@ According to `git shortlog -sn --no-merges 0.17.0-RC1..0.18.1-RC1` these are: If you want to get your hands dirty and contribute to Dotty, now is a good time to get involved! Head to our [Getting Started page for new contributors](https://dotty.epfl.ch/docs/contributing/getting-started.html), -and have a look at some of the [good first issues](https://github.com/lampepfl/dotty/issues?q=is%3Aissue+is%3Aopen+label%3Aexp%3Anovice). +and have a look at some of the [good first issues](https://github.com/scala/scala3/issues?q=is%3Aissue+is%3Aopen+label%3Aexp%3Anovice). They make perfect entry points into hacking on the compiler. We are looking forward to having you join the team of contributors. diff --git a/docs/_blog/_posts/2019-09-23-19th-dotty-milestone-release.md b/docs/_blog/_posts/2019-09-23-19th-dotty-milestone-release.md index 0de8d87b92bb..55458b5a20c6 100644 --- a/docs/_blog/_posts/2019-09-23-19th-dotty-milestone-release.md +++ b/docs/_blog/_posts/2019-09-23-19th-dotty-milestone-release.md @@ -160,7 +160,7 @@ For instance, `-project-logo dotty-logo.svg` will make `/images/dotty-logo.svg` [The front page](https://dotty.epfl.ch) has been redesigned too, with a new responsive menu and improved contrast. -Overall, every page has been updated with consistent settings of fonts and colors. A more detailed comparison between the new and the old design can be found [here](https://github.com/lampepfl/dotty/pull/7153). +Overall, every page has been updated with consistent settings of fonts and colors. A more detailed comparison between the new and the old design can be found [here](https://github.com/scala/scala3/pull/7153). ## Metaprogramming Progress We're making steady progress on the Dotty metaprogramming capability. In our previous work, we've implemented a bunch of functions for working with expressions. For example, we have a capability to convert a list of expressions into an expression of list, or a tuple of expressions into an expression of tuple. @@ -179,7 +179,7 @@ Also, `x.toExpr` syntax which lifts `x` into an expression is now deprecated. It If you have questions or any sort of feedback, feel free to send us a message on our [Gitter channel](https://gitter.im/lampepfl/dotty). If you encounter a bug, please -[open an issue on GitHub](https://github.com/lampepfl/dotty/issues/new). +[open an issue on GitHub](https://github.com/scala/scala3/issues/new). ## Contributing @@ -206,7 +206,7 @@ According to `git shortlog -sn --no-merges 0.18.1-RC1..0.19.0-RC1` these are: If you want to get your hands dirty and contribute to Dotty, now is a good time to get involved! Head to our [Getting Started page for new contributors](https://dotty.epfl.ch/docs/contributing/getting-started.html), -and have a look at some of the [good first issues](https://github.com/lampepfl/dotty/issues?q=is%3Aissue+is%3Aopen+label%3Aexp%3Anovice). +and have a look at some of the [good first issues](https://github.com/scala/scala3/issues?q=is%3Aissue+is%3Aopen+label%3Aexp%3Anovice). They make perfect entry points into hacking on the compiler. We are looking forward to having you join the team of contributors. diff --git a/docs/_blog/_posts/2019-11-04-20th-dotty-milestone-release.md b/docs/_blog/_posts/2019-11-04-20th-dotty-milestone-release.md index 78cbe171ca11..e28b2304831c 100644 --- a/docs/_blog/_posts/2019-11-04-20th-dotty-milestone-release.md +++ b/docs/_blog/_posts/2019-11-04-20th-dotty-milestone-release.md @@ -127,16 +127,16 @@ It is easy to forget to put `then` at the end of the line if nothing else follow ## Metaprogramming Progress We are making a steady progress developing and improving the metaprogramming features of Dotty. Here are metaprogramming highlights of this release: -- Fix #7189: Do not try to load contents if file does not exist [#7476](https://github.com/lampepfl/dotty/pull/7476) -- Add customizable names for definitions in quotes [#7346](https://github.com/lampepfl/dotty/pull/7346) -- Rename scala.quoted.matching.{Bind => Sym} [#7332](https://github.com/lampepfl/dotty/pull/7332) -- Replace AsFunction implicit class with Expr.reduce [#7299](https://github.com/lampepfl/dotty/pull/7299) +- Fix #7189: Do not try to load contents if file does not exist [#7476](https://github.com/scala/scala3/pull/7476) +- Add customizable names for definitions in quotes [#7346](https://github.com/scala/scala3/pull/7346) +- Rename scala.quoted.matching.{Bind => Sym} [#7332](https://github.com/scala/scala3/pull/7332) +- Replace AsFunction implicit class with Expr.reduce [#7299](https://github.com/scala/scala3/pull/7299) # Let us know what you think! If you have questions or any sort of feedback, feel free to send us a message on our [Gitter channel](https://gitter.im/lampepfl/dotty). If you encounter a bug, please -[open an issue on GitHub](https://github.com/lampepfl/dotty/issues/new). +[open an issue on GitHub](https://github.com/scala/scala3/issues/new). ## Contributing @@ -173,7 +173,7 @@ According to `git shortlog -sn --no-merges 0.19.0-RC1..0.20.0-RC1` these are: If you want to get your hands dirty and contribute to Dotty, now is a good time to get involved! Head to our [Getting Started page for new contributors](https://dotty.epfl.ch/docs/contributing/getting-started.html), -and have a look at some of the [good first issues](https://github.com/lampepfl/dotty/issues?q=is%3Aissue+is%3Aopen+label%3Aexp%3Anovice). +and have a look at some of the [good first issues](https://github.com/scala/scala3/issues?q=is%3Aissue+is%3Aopen+label%3Aexp%3Anovice). They make perfect entry points into hacking on the compiler. We are looking forward to having you join the team of contributors. diff --git a/docs/_blog/_posts/2019-12-20-21th-dotty-milestone-release.md b/docs/_blog/_posts/2019-12-20-21th-dotty-milestone-release.md index 94d8ee61bec9..794eb875e3fc 100644 --- a/docs/_blog/_posts/2019-12-20-21th-dotty-milestone-release.md +++ b/docs/_blog/_posts/2019-12-20-21th-dotty-milestone-release.md @@ -17,7 +17,7 @@ happy to announce that we are now feature complete! # Feature Complete! This release is a HUGE milestone for us, for Dotty, for Scala 3, for our community. Since that -[initial commit](https://github.com/lampepfl/dotty/commit/90962407e72d88f8f3249ade0f6bd60ff15af5ce) +[initial commit](https://github.com/scala/scala3/commit/90962407e72d88f8f3249ade0f6bd60ff15af5ce) on the 6th December of 2012 when the only feature was the basic structure of a compiler based on the DOT calculus, we have come a long way. @@ -48,7 +48,7 @@ It means that we can now put the Scala 3 compiler under heavy load, getting it ready for industrial strength applications. At the moment we have 23 projects on our community projects and we expect this number to go up! -> https://github.com/lampepfl/dotty/tree/main/community-build/community-projects +> https://github.com/scala/scala3/tree/main/community-build/community-projects This project contains tests to build and test a corpus of open sources Scala 2.x projects against Scala 3. @@ -333,7 +333,7 @@ root for `.semanticdb` files) and `-sourceroot` to calculate a relative path for If you have questions or any sort of feedback, feel free to send us a message on our [Gitter channel](https://gitter.im/lampepfl/dotty). If you encounter a bug, please -[open an issue on GitHub](https://github.com/lampepfl/dotty/issues/new). +[open an issue on GitHub](https://github.com/scala/scala3/issues/new). ## Contributing @@ -378,7 +378,7 @@ According to `git shortlog -sn --no-merges 0.20.0-RC1..0.21.0-RC1` these are: If you want to get your hands dirty and contribute to Dotty, now is a good time to get involved! Head to our [Getting Started page for new contributors](https://dotty.epfl.ch/docs/contributing/getting-started.html), -and have a look at some of the [good first issues](https://github.com/lampepfl/dotty/issues?q=is%3Aissue+is%3Aopen+label%3Aexp%3Anovice). +and have a look at some of the [good first issues](https://github.com/scala/scala3/issues?q=is%3Aissue+is%3Aopen+label%3Aexp%3Anovice). They make perfect entry points into hacking on the compiler. We are looking forward to having you join the team of contributors. diff --git a/docs/_blog/_posts/2020-02-05-22nd-dotty-milestone-release.md b/docs/_blog/_posts/2020-02-05-22nd-dotty-milestone-release.md index a901e83130d8..1dc100a9a741 100644 --- a/docs/_blog/_posts/2020-02-05-22nd-dotty-milestone-release.md +++ b/docs/_blog/_posts/2020-02-05-22nd-dotty-milestone-release.md @@ -55,7 +55,7 @@ println(s"Third: ${list.third}") // 3 This syntax is a completely separate one from the `given` syntax and hence is aimed to bring more clarity and disentangle the two different concepts. -For the discussion, see [PR #7917](https://github.com/lampepfl/dotty/pull/7917). For more information on how to use extension methods in general and collective extension methods in particular, see the [documentation](https://dotty.epfl.ch/docs/reference/contextual/extension-methods.html). +For the discussion, see [PR #7917](https://github.com/scala/scala3/pull/7917). For more information on how to use extension methods in general and collective extension methods in particular, see the [documentation](https://dotty.epfl.ch/docs/reference/contextual/extension-methods.html). # Kind projector syntax support [Kind projector](https://github.com/typelevel/kind-projector) is a popular compiler plugin for Scala 2. It is especially useful in the context of purely functional programming and type class derivation – everywhere where you need to work extensively with types. @@ -90,7 +90,7 @@ object tupleFunctor extends Functor[λ[x => (x, x)]] println(squared) // (1,4) ``` -For the discussion, see [PR #7775](https://github.com/lampepfl/dotty/pull/7775). Also see the GitHub [repository](https://github.com/typelevel/kind-projector) of the kind projector Scala 2 plugin for more context. +For the discussion, see [PR #7775](https://github.com/scala/scala3/pull/7775). Also see the GitHub [repository](https://github.com/typelevel/kind-projector) of the kind projector Scala 2 plugin for more context. # Further improvements to the context parameters syntax Scala 3 context parameters are successors of Scala 2 implicits. In Scala 2, they proved useful for a wide range of applications including purely functional programming, dependency injection, type class derivation, type-level programming. Because their apparent value, one of the priorities in Scala 3 for us is to improve the conceptual framework behind them. @@ -127,7 +127,7 @@ As opposed to the previous: f(2)(given 20) ``` -For the time being, the change is experimental and the old syntax is also supported. For the discussion, see [PR #8162](https://github.com/lampepfl/dotty/pull/8162). You can browse the documentation concerning the new syntax [here](https://dotty.epfl.ch/docs/reference/contextual/motivation-new.html). +For the time being, the change is experimental and the old syntax is also supported. For the discussion, see [PR #8162](https://github.com/scala/scala3/pull/8162). You can browse the documentation concerning the new syntax [here](https://dotty.epfl.ch/docs/reference/contextual/motivation-new.html). # Semantics of inline parameters changed Inline parameters is a metaprogramming feature of Dotty which allows to splice the body of the parameter on its call site. Previously, inline parameters to methods were required to be known on compile time. With this release, this constraint has been relaxed. The following: @@ -149,7 +149,7 @@ Notice how the value of the by-name parameter `b` is not inlined but is bound to So, if previously you had a macro `inline def operationOnCode(code: => Unit) = ${ mcrImpl('code) }` which did something on the AST of the passed `code`, with this release you need to change it to `inline def operationOnCode(inline code: Unit) = ${ mcrImpl('code) }`. -This change was introduced by [PR #8060](https://github.com/lampepfl/dotty/pull/8060/). +This change was introduced by [PR #8060](https://github.com/scala/scala3/pull/8060/). Another change in the semantics of the inline parameters involves the fact that the can no longer be passed as constants to macro implementations. Previously, the following was possible: @@ -169,7 +169,7 @@ inline def power(x: Double, inline n: Int) = ${ powerCode('x, 'n) } private def powerCode(x: Expr[Double], n: Expr[Int])(given QuoteContext): Expr[Double] = ??? ``` -You can obtain the constant value of `n` from within the macro implementation by calling `n.getValue` on it which returns an `Option`. This change was introduced by [PR #8061](https://github.com/lampepfl/dotty/pull/8061). +You can obtain the constant value of `n` from within the macro implementation by calling `n.getValue` on it which returns an `Option`. This change was introduced by [PR #8061](https://github.com/scala/scala3/pull/8061). For more information about the inline capability of Dotty, see [documentation](https://dotty.epfl.ch/docs/reference/metaprogramming/inline.html). @@ -194,7 +194,7 @@ The compile-time error above will say: This feature is particularly useful for data science applications. In data science, it is very easy to make a linear algebra mistake, multiply matrices of wrong dimensions and get a runtime error – sometimes after a few hours of running the model. Hence compile-time verification of the models has a great potential for saving time. With such a type-level arithmetic, Scala becomes well-positioned to implement such type-safe data science frameworks. -For the discussion, see [PR #7628](https://github.com/lampepfl/dotty/pull/7628). The documentation is available [here](https://dotty.epfl.ch/docs/reference/metaprogramming/inline.html#the-scalacompiletimeops-package). +For the discussion, see [PR #7628](https://github.com/scala/scala3/pull/7628). The documentation is available [here](https://dotty.epfl.ch/docs/reference/metaprogramming/inline.html#the-scalacompiletimeops-package). # Suggestions on missing context parameters If there's a compile-time error due to a missing context parameter and this error can be fixed with an import, the compiler will attempt to suggest such an import in the error message. Here is an example of how this error looks like: @@ -212,7 +212,7 @@ If there's a compile-time error due to a missing context parameter and this erro One area where these suggestions will make life easier is purely functional programming with type-classes, with libraries like [cats](https://typelevel.org/cats/). Having the fix for a missing type class in the error message itself is a big time-saver. -For the discussion, see [PR #7862](https://github.com/lampepfl/dotty/pull/7862). +For the discussion, see [PR #7862](https://github.com/scala/scala3/pull/7862). # TASTy Inspector library TASTy Consumer was renamed to TASTy Inspector as of this release. It was also published in a library of its own. For more information, see the [documentation](https://dotty.epfl.ch/docs/reference/metaprogramming/tasty-inspect.html) on this library. @@ -221,7 +221,7 @@ TASTy Consumer was renamed to TASTy Inspector as of this release. It was also pu If you have questions or any sort of feedback, feel free to send us a message on our [Gitter channel](https://gitter.im/lampepfl/dotty). If you encounter a bug, please -[open an issue on GitHub](https://github.com/lampepfl/dotty/issues/new). +[open an issue on GitHub](https://github.com/scala/scala3/issues/new). ## Contributing @@ -267,7 +267,7 @@ According to `git shortlog -sn --no-merges 0.21.0-RC1..0.22.0-RC1` these are: If you want to get your hands dirty and contribute to Dotty, now is a good time to get involved! Head to our [Getting Started page for new contributors](https://dotty.epfl.ch/docs/contributing/getting-started.html), -and have a look at some of the [good first issues](https://github.com/lampepfl/dotty/issues?q=is%3Aissue+is%3Aopen+label%3Aexp%3Anovice). +and have a look at some of the [good first issues](https://github.com/scala/scala3/issues?q=is%3Aissue+is%3Aopen+label%3Aexp%3Anovice). They make perfect entry points into hacking on the compiler. We are looking forward to having you join the team of contributors. diff --git a/docs/_blog/_posts/2020-03-18-23rd-dotty-milestone-release.md b/docs/_blog/_posts/2020-03-18-23rd-dotty-milestone-release.md index e52db993dd19..7725d7e7d254 100644 --- a/docs/_blog/_posts/2020-03-18-23rd-dotty-milestone-release.md +++ b/docs/_blog/_posts/2020-03-18-23rd-dotty-milestone-release.md @@ -52,7 +52,7 @@ In this release, we have added an aid for the programmer to detect such mistakes 1 error found ``` -You can learn more about the feature from the [documentation](https://dotty.epfl.ch/0.23.0-RC1/docs/reference/other-new-features/safe-initialization.html). For the discussion, see PR [#7789](https://github.com/lampepfl/dotty/pull/7789). +You can learn more about the feature from the [documentation](https://dotty.epfl.ch/0.23.0-RC1/docs/reference/other-new-features/safe-initialization.html). For the discussion, see PR [#7789](https://github.com/scala/scala3/pull/7789). ## Bitwise Int compiletime operations In the previous release, Dotty has [received](https://dotty.epfl.ch/blog/2020/02/05/22nd-dotty-milestone-release.html#primitive-compiletime-operations-on-singleton-types) a support for type-level arithmetic operations on integers. In this release, we are extending this support by adding bitwise operations. For example: @@ -246,7 +246,7 @@ Notice how above, we are calling `app.fun` and `app.args`. `fun` and `args` are If you have questions or any sort of feedback, feel free to send us a message on our [Gitter channel](https://gitter.im/lampepfl/dotty). If you encounter a bug, please -[open an issue on GitHub](https://github.com/lampepfl/dotty/issues/new). +[open an issue on GitHub](https://github.com/scala/scala3/issues/new). ## Contributing @@ -294,7 +294,7 @@ According to `git shortlog -sn --no-merges 0.22.0-RC1..0.23.0-RC1` these are: If you want to get your hands dirty and contribute to Dotty, now is a good time to get involved! Head to our [Getting Started page for new contributors](https://dotty.epfl.ch/docs/contributing/getting-started.html), -and have a look at some of the [good first issues](https://github.com/lampepfl/dotty/issues?q=is%3Aissue+is%3Aopen+label%3Aexp%3Anovice). +and have a look at some of the [good first issues](https://github.com/scala/scala3/issues?q=is%3Aissue+is%3Aopen+label%3Aexp%3Anovice). They make perfect entry points into hacking on the compiler. We are looking forward to having you join the team of contributors. diff --git a/docs/_blog/_posts/2020-04-29-24th-dotty-milestone-release.md b/docs/_blog/_posts/2020-04-29-24th-dotty-milestone-release.md index e32df8cacc55..79148254e409 100644 --- a/docs/_blog/_posts/2020-04-29-24th-dotty-milestone-release.md +++ b/docs/_blog/_posts/2020-04-29-24th-dotty-milestone-release.md @@ -76,13 +76,13 @@ Bar 22 Bar 22 ``` -This new change, however, comes with rather intricated rules – if you are interested to learn about them in details, see [documentation](https://dotty.epfl.ch/docs/reference/metaprogramming/inline.html#rules-for-overriding) on inlines and the PR #[8543](https://github.com/lampepfl/dotty/pull/8543/files) which introduced the change. +This new change, however, comes with rather intricated rules – if you are interested to learn about them in details, see [documentation](https://dotty.epfl.ch/docs/reference/metaprogramming/inline.html#rules-for-overriding) on inlines and the PR #[8543](https://github.com/scala/scala3/pull/8543/files) which introduced the change. # Let us know what you think! If you have questions or any sort of feedback, feel free to send us a message on our [Gitter channel](https://gitter.im/lampepfl/dotty). If you encounter a bug, please -[open an issue on GitHub](https://github.com/lampepfl/dotty/issues/new). +[open an issue on GitHub](https://github.com/scala/scala3/issues/new). ## Contributing @@ -125,7 +125,7 @@ According to `git shortlog -sn --no-merges 0.23.0-RC1..0.24.0-RC1` these are: If you want to get your hands dirty and contribute to Dotty, now is a good time to get involved! Head to our [Getting Started page for new contributors](https://dotty.epfl.ch/docs/contributing/getting-started.html), -and have a look at some of the [good first issues](https://github.com/lampepfl/dotty/issues?q=is%3Aissue+is%3Aopen+label%3Aexp%3Anovice). +and have a look at some of the [good first issues](https://github.com/scala/scala3/issues?q=is%3Aissue+is%3Aopen+label%3Aexp%3Anovice). They make perfect entry points into hacking on the compiler. We are looking forward to having you join the team of contributors. @@ -134,7 +134,7 @@ We are looking forward to having you join the team of contributors. Dotty now has a set of widely-used community libraries that are built against every nightly Dotty snapshot. Currently, this includes shapeless, ScalaPB, algebra, scalatest, scopt and squants. -Join our [community build](https://github.com/lampepfl/dotty/tree/main/community-build) +Join our [community build](https://github.com/scala/scala3/tree/main/community-build) to make sure that our regression suite includes your library. [Scastie]: https://scastie.scala-lang.org/?target=dotty diff --git a/docs/_blog/_posts/2020-06-22-25th-dotty-milestone-release.md b/docs/_blog/_posts/2020-06-22-25th-dotty-milestone-release.md index dd5def04bfe9..db73513c2413 100644 --- a/docs/_blog/_posts/2020-06-22-25th-dotty-milestone-release.md +++ b/docs/_blog/_posts/2020-06-22-25th-dotty-milestone-release.md @@ -35,13 +35,13 @@ This default budget is configurable via a compiler flag `-Ximport-suggestion-tim This change should speed up the compiler when it comes to programming with givens. -For more information, see PR [#9167](https://github.com/lampepfl/dotty/pull/9167). +For more information, see PR [#9167](https://github.com/scala/scala3/pull/9167). # Let us know what you think! If you have questions or any sort of feedback, feel free to send us a message on our [Gitter channel](https://gitter.im/lampepfl/dotty). If you encounter a bug, please -[open an issue on GitHub](https://github.com/lampepfl/dotty/issues/new). +[open an issue on GitHub](https://github.com/scala/scala3/issues/new). ## Contributing Thank you to all the contributors who made this release possible 🎉 @@ -89,7 +89,7 @@ According to `git shortlog -sn --no-merges 0.24.0-RC1..0.25.0-RC2` these are: If you want to get your hands dirty and contribute to Dotty, now is a good time to get involved! Head to our [Getting Started page for new contributors](https://dotty.epfl.ch/docs/contributing/getting-started.html), -and have a look at some of the [good first issues](https://github.com/lampepfl/dotty/issues?q=is%3Aissue+is%3Aopen+label%3Aexp%3Anovice). +and have a look at some of the [good first issues](https://github.com/scala/scala3/issues?q=is%3Aissue+is%3Aopen+label%3Aexp%3Anovice). They make perfect entry points into hacking on the compiler. We are looking forward to having you join the team of contributors. @@ -98,7 +98,7 @@ We are looking forward to having you join the team of contributors. Dotty now has a set of widely-used community libraries that are built against every nightly Dotty snapshot. Currently, this includes shapeless, ScalaPB, algebra, scalatest, scopt and squants. -Join our [community build](https://github.com/lampepfl/dotty/tree/main/community-build) +Join our [community build](https://github.com/scala/scala3/tree/main/community-build) to make sure that our regression suite includes your library. [Scastie]: https://scastie.scala-lang.org/?target=dotty diff --git a/docs/_blog/_posts/2020-07-27-26th-dotty-milestone-release.md b/docs/_blog/_posts/2020-07-27-26th-dotty-milestone-release.md index b0d153dded7e..06bf6fc5dabb 100644 --- a/docs/_blog/_posts/2020-07-27-26th-dotty-milestone-release.md +++ b/docs/_blog/_posts/2020-07-27-26th-dotty-milestone-release.md @@ -35,7 +35,7 @@ extension (ss: Seq[String]): def longestString: String = longestStrings.head ``` -You can read more about the new syntax in the [documentation](https://dotty.epfl.ch/docs/reference/contextual/extension-methods.html). For the discussion, see [PR](https://github.com/lampepfl/dotty/pull/9255). +You can read more about the new syntax in the [documentation](https://dotty.epfl.ch/docs/reference/contextual/extension-methods.html). For the discussion, see [PR](https://github.com/scala/scala3/pull/9255). # Local Selectable Instances Local and anonymous classes that extend `Selectable` get more refined types than other classes. For example: @@ -78,7 +78,7 @@ val result = constValueTuple["foo" *: "bar" *: 10 *: 2.5 *: EmptyTuple] println(result) // (foo,bar,10,2.5) ``` -This feature was introduced by PR [#9209](https://github.com/lampepfl/dotty/pull/9209). +This feature was introduced by PR [#9209](https://github.com/scala/scala3/pull/9209). # Per-run time budget for import suggestions Import suggestions is a feature useful for debugging but potentially taxing for performance. Therefore, we have added the `-Ximport-suggestion-timeout ` to allow specifying the timeout (in milliseconds) after which the suggestions mechanism should stop the lookup. The timeout budget is per-run (and not per suggestion) which ensures that the performance does not degrade in case of too many suggestions. @@ -87,7 +87,7 @@ Import suggestions is a feature useful for debugging but potentially taxing for If you have questions or any sort of feedback, feel free to send us a message on our [Gitter channel](https://gitter.im/lampepfl/dotty). If you encounter a bug, please -[open an issue on GitHub](https://github.com/lampepfl/dotty/issues/new). +[open an issue on GitHub](https://github.com/scala/scala3/issues/new). ## Contributing @@ -119,7 +119,7 @@ According to `git shortlog -sn --no-merges 0.25.0-RC2..0.26.0-RC1` these are: If you want to get your hands dirty and contribute to Dotty, now is a good time to get involved! Head to our [Getting Started page for new contributors](https://dotty.epfl.ch/docs/contributing/getting-started.html), -and have a look at some of the [good first issues](https://github.com/lampepfl/dotty/issues?q=is%3Aissue+is%3Aopen+label%3Aexp%3Anovice). +and have a look at some of the [good first issues](https://github.com/scala/scala3/issues?q=is%3Aissue+is%3Aopen+label%3Aexp%3Anovice). They make perfect entry points into hacking on the compiler. We are looking forward to having you join the team of contributors. @@ -128,7 +128,7 @@ We are looking forward to having you join the team of contributors. Dotty now has a set of widely-used community libraries that are built against every nightly Dotty snapshot. Currently, this includes shapeless, ScalaPB, algebra, scalatest, scopt and squants. -Join our [community build](https://github.com/lampepfl/dotty/tree/main/community-build) +Join our [community build](https://github.com/scala/scala3/tree/main/community-build) to make sure that our regression suite includes your library. [Scastie]: https://scastie.scala-lang.org/?target=dotty diff --git a/docs/_blog/_posts/2020-08-31-27th-dotty-milestone-release.md b/docs/_blog/_posts/2020-08-31-27th-dotty-milestone-release.md index e42e98a1385b..7d0eebe369e2 100644 --- a/docs/_blog/_posts/2020-08-31-27th-dotty-milestone-release.md +++ b/docs/_blog/_posts/2020-08-31-27th-dotty-milestone-release.md @@ -41,30 +41,30 @@ To the best of our knowledge, cross-compiling libraries should be able to use Sc If you experience a bug with anything except the unsupported features mentioned above, please file a bug report. # Stability -As we're getting closer to the release of Scala 3, we are continuing to focus on the stability and performance of the language. In this release, we have fixed support of objects under JDK9+ (PR [#9181](https://github.com/lampepfl/dotty/pull/9181)). The issue was, due to the changes in JDK9+ compared to JDK8, our initialization scheme for objects did not work under JDK9+. The aforementioned fixed that issue, thereby unblocking JDK9+ support for Dotty. +As we're getting closer to the release of Scala 3, we are continuing to focus on the stability and performance of the language. In this release, we have fixed support of objects under JDK9+ (PR [#9181](https://github.com/scala/scala3/pull/9181)). The issue was, due to the changes in JDK9+ compared to JDK8, our initialization scheme for objects did not work under JDK9+. The aforementioned fixed that issue, thereby unblocking JDK9+ support for Dotty. -We are also continuing to work on stabilising enums. PR [#9532](https://github.com/lampepfl/dotty/pull/9532) corrects the deserialization and serialization of singleton enum values with `ObjectInputStream` and `ObjectOutputStream`. PR [#9549](https://github.com/lampepfl/dotty/pull/9549) enables overriding the `toString` method on enums – previously this was not possible because of the way enums were desugared. +We are also continuing to work on stabilising enums. PR [#9532](https://github.com/scala/scala3/pull/9532) corrects the deserialization and serialization of singleton enum values with `ObjectInputStream` and `ObjectOutputStream`. PR [#9549](https://github.com/scala/scala3/pull/9549) enables overriding the `toString` method on enums – previously this was not possible because of the way enums were desugared. # Performance We are also focusing these days on making the compiler faster and memory-efficient. For the past month, we were looking in the compiler's memory footprint. We were trying to determine what was allocated in unreasonable amounts during compilation and trying to resolve these allocation issues. The following PRs attempt to increase the performance of the compiler: -- Optimize megaphase [#9597](https://github.com/lampepfl/dotty/pull/9597) -- Cache all memberNamed results [#9633](https://github.com/lampepfl/dotty/pull/9633) -- Parallelize position pickling [#9619](https://github.com/lampepfl/dotty/pull/9619) -- Simplify TypeComparer [#9405](https://github.com/lampepfl/dotty/pull/9405) -- Optimize and simplify SourcePosition handling [#9561](https://github.com/lampepfl/dotty/pull/9561) +- Optimize megaphase [#9597](https://github.com/scala/scala3/pull/9597) +- Cache all memberNamed results [#9633](https://github.com/scala/scala3/pull/9633) +- Parallelize position pickling [#9619](https://github.com/scala/scala3/pull/9619) +- Simplify TypeComparer [#9405](https://github.com/scala/scala3/pull/9405) +- Optimize and simplify SourcePosition handling [#9561](https://github.com/scala/scala3/pull/9561) # Metaprogramming We are keeping the work on the metaprogramming API improvements. For this release, the following PRs bring better API to metaprogrammers: -- Avoid leak of internal implementation in tasty.Reflection [#9613](https://github.com/lampepfl/dotty/pull/9613) -- Redefine quoted.Expr.betaReduce [#9469](https://github.com/lampepfl/dotty/pull/9469) +- Avoid leak of internal implementation in tasty.Reflection [#9613](https://github.com/scala/scala3/pull/9613) +- Redefine quoted.Expr.betaReduce [#9469](https://github.com/scala/scala3/pull/9469) # Let us know what you think! If you have questions or any sort of feedback, feel free to send us a message on our [Gitter channel](https://gitter.im/lampepfl/dotty). If you encounter a bug, please -[open an issue on GitHub](https://github.com/lampepfl/dotty/issues/new). +[open an issue on GitHub](https://github.com/scala/scala3/issues/new). ## Contributing Thank you to all the contributors who made this release possible 🎉 @@ -100,7 +100,7 @@ According to `git shortlog -sn --no-merges 0.26.0-RC1..0.27.0-RC1` these are: If you want to get your hands dirty and contribute to Dotty, now is a good time to get involved! Head to our [Getting Started page for new contributors](https://dotty.epfl.ch/docs/contributing/getting-started.html), -and have a look at some of the [good first issues](https://github.com/lampepfl/dotty/issues?q=is%3Aissue+is%3Aopen+label%3Aexp%3Anovice). +and have a look at some of the [good first issues](https://github.com/scala/scala3/issues?q=is%3Aissue+is%3Aopen+label%3Aexp%3Anovice). They make perfect entry points into hacking on the compiler. We are looking forward to having you join the team of contributors. @@ -109,7 +109,7 @@ We are looking forward to having you join the team of contributors. Dotty now has a set of widely-used community libraries that are built against every nightly Dotty snapshot. Currently, this includes shapeless, ScalaPB, algebra, scalatest, scopt and squants. -Join our [community build](https://github.com/lampepfl/dotty/tree/main/community-build) +Join our [community build](https://github.com/scala/scala3/tree/main/community-build) to make sure that our regression suite includes your library. [Scastie]: https://scastie.scala-lang.org/?target=dotty diff --git a/docs/_blog/_posts/2020-11-09-scala3-m1.md b/docs/_blog/_posts/2020-11-09-scala3-m1.md index ffef5618f9ff..228a9f8eb99e 100644 --- a/docs/_blog/_posts/2020-11-09-scala3-m1.md +++ b/docs/_blog/_posts/2020-11-09-scala3-m1.md @@ -19,8 +19,8 @@ Below, you can find a short summary of the changes that took place during betwee Dotty 0.27.0-RC1 had introduced preliminary Scala.js support with the portable subset of Scala and native JavaScript types. Scala 3.0.0-M1 significantly expands on that support: -* support for non-native JS types ([#9774](https://github.com/lampepfl/dotty/pull/9774)), and -* better support for other JS interop features, notably their interactions with Scala 3 features such as top-level declarations and `enum`s (e.g, [#9725](https://github.com/lampepfl/dotty/pull/9725) and [#9955](https://github.com/lampepfl/dotty/pull/9955)). +* support for non-native JS types ([#9774](https://github.com/scala/scala3/pull/9774)), and +* better support for other JS interop features, notably their interactions with Scala 3 features such as top-level declarations and `enum`s (e.g, [#9725](https://github.com/scala/scala3/pull/9725) and [#9955](https://github.com/scala/scala3/pull/9955)). The only remaining feature of Scala.js that is not supported yet is JS exports: `@JSExport` and its siblings `@JSExportAll`, `@JSExportTopLevel` and `@JSExportStatic` are all ignored by Scala 3.0.0-M1. Support for JS exports will come in the next release. @@ -46,7 +46,7 @@ x match { As of Scala 3.1.0, the `@` syntax will be deprecated and the codebases should switch to `as` instead. -This change was implemented by PR [#9837](https://github.com/lampepfl/dotty/pull/9837). +This change was implemented by PR [#9837](https://github.com/scala/scala3/pull/9837). # Pattern-Bound Given Instances The syntax for `given` instances in patterns has also changed. In the `for`-comprehensions, the correct way of using `given`s is as follows: @@ -62,7 +62,7 @@ pair match case (ctx as given Context, y) => ... ``` -For more information, see [documentation](https://dotty.epfl.ch/docs/reference/contextual/givens.html#pattern-bound-given-instances), and for discussion, see PR [#10091](https://github.com/lampepfl/dotty/pull/10091). +For more information, see [documentation](https://dotty.epfl.ch/docs/reference/contextual/givens.html#pattern-bound-given-instances), and for discussion, see PR [#10091](https://github.com/scala/scala3/pull/10091). # Change wildcard given selectors This is another syntactic change which aims to simplify the code. Instead of: @@ -77,7 +77,7 @@ The correct version of the wildcard `given` import now becomes: import p.given ``` -This change was implemented by PR [#9949](https://github.com/lampepfl/dotty/pull/9949). +This change was implemented by PR [#9949](https://github.com/scala/scala3/pull/9949). # Final API for enumerations `enum` definitions are now released in their final design. since `0.27.0-RC1` we have made the following changes: @@ -125,22 +125,22 @@ val res1: Opt[?] = Nn # Keep `@alpha` optional for operators Following the discussion on [contributors](https://contributors.scala-lang.org/t/the-alpha-notation/4583), we now keep `@alpha` optional for operators. The checking behavior is still available when compiling with the `-Yrequire-alpha`. -`@alpha` annotations provide a way to define an alternate name for symbolic operators. You can learn more about `@alpha` annotations from the [documentation](https://dotty.epfl.ch/docs/reference/changed-features/operators.html#the-alpha-annotation). The change was implemented by PR [#10093](https://github.com/lampepfl/dotty/pull/10093). +`@alpha` annotations provide a way to define an alternate name for symbolic operators. You can learn more about `@alpha` annotations from the [documentation](https://dotty.epfl.ch/docs/reference/changed-features/operators.html#the-alpha-annotation). The change was implemented by PR [#10093](https://github.com/scala/scala3/pull/10093). # Optimizing the compiler During the last months, a considerable amount of effort went into investigating performance bottlenecks in the compiler and optimizing its workflow. We also work on stabilizing the compiler and porting relevant changes from the Scala 2 compiler to Scala 3. The following PRs are relevant to highlighting this work: -- Port classfile parsing improvements [#10037](https://github.com/lampepfl/dotty/pull/10037) -- Semanticdb usability enhancements [#9768](https://github.com/lampepfl/dotty/pull/9768) -- Optimize core and frontend [#9867](https://github.com/lampepfl/dotty/pull/9867) +- Port classfile parsing improvements [#10037](https://github.com/scala/scala3/pull/10037) +- Semanticdb usability enhancements [#9768](https://github.com/scala/scala3/pull/9768) +- Optimize core and frontend [#9867](https://github.com/scala/scala3/pull/9867) # Known issues -This release of Scala 3 doesn't work on JDK 14 because of a regression fixed in [#10135](https://github.com/lampepfl/dotty/pull/10135). JDK 15 doesn't work either because of [scala/bug#12172](https://github.com/scala/bug/issues/12172) which will be fixed in the new scala-library release. +This release of Scala 3 doesn't work on JDK 14 because of a regression fixed in [#10135](https://github.com/scala/scala3/pull/10135). JDK 15 doesn't work either because of [scala/bug#12172](https://github.com/scala/bug/issues/12172) which will be fixed in the new scala-library release. # Let us know what you think! If you have questions or any sort of feedback, feel free to send us a message on our [Gitter channel](https://gitter.im/lampepfl/dotty). If you encounter a bug, please -[open an issue on GitHub](https://github.com/lampepfl/dotty/issues/new). +[open an issue on GitHub](https://github.com/scala/scala3/issues/new). ## Contributors @@ -190,7 +190,7 @@ According to `git shortlog -sn --no-merges 0.27.0-RC1..3.0.0-M1` these are: If you want to get your hands dirty and contribute to Dotty, now is a good time to get involved! Head to our [Getting Started page for new contributors](https://dotty.epfl.ch/docs/contributing/getting-started.html), -and have a look at some of the [good first issues](https://github.com/lampepfl/dotty/issues?q=is%3Aissue+is%3Aopen+label%3Aexp%3Anovice). +and have a look at some of the [good first issues](https://github.com/scala/scala3/issues?q=is%3Aissue+is%3Aopen+label%3Aexp%3Anovice). They make perfect entry points into hacking on the compiler. We are looking forward to having you join the team of contributors. @@ -199,7 +199,7 @@ We are looking forward to having you join the team of contributors. Dotty now has a set of widely-used community libraries that are built against every nightly Dotty snapshot. Currently, this includes shapeless, ScalaPB, algebra, scalatest, scopt and squants. -Join our [community build](https://github.com/lampepfl/dotty/tree/main/community-build) +Join our [community build](https://github.com/scala/scala3/tree/main/community-build) to make sure that our regression suite includes your library. [Scastie]: https://scastie.scala-lang.org/?target=dotty diff --git a/docs/_blog/_posts/2020-12-18-scala3-m3.md b/docs/_blog/_posts/2020-12-18-scala3-m3.md index 41cfa76c0265..84fa9e823bda 100644 --- a/docs/_blog/_posts/2020-12-18-scala3-m3.md +++ b/docs/_blog/_posts/2020-12-18-scala3-m3.md @@ -19,7 +19,7 @@ You can try out the M3 version online via [Scastie](https://scastie.scala-lang.o # sbt plugin update -We published a new version of the sbt plugin `sbt-dotty`, v0.5.1. Because of the changes in PR [#10607](https://github.com/lampepfl/dotty/pull/10607), this release of Scala 3 will not work with earlier versions of sbt-dotty. You will need to upgrade sbt-dotty to 0.5.1 to be able to use Scala 3.0.0-M3. +We published a new version of the sbt plugin `sbt-dotty`, v0.5.1. Because of the changes in PR [#10607](https://github.com/scala/scala3/pull/10607), this release of Scala 3 will not work with earlier versions of sbt-dotty. You will need to upgrade sbt-dotty to 0.5.1 to be able to use Scala 3.0.0-M3. # Final syntactic tweaks ## `as` dropped from the `given` syntax @@ -57,7 +57,7 @@ given global: ExecutionContext = ForkJoinContext() given Context = ctx ``` -You can find a discussion of the above change in the [PR #10538](https://github.com/lampepfl/dotty/pull/10538). +You can find a discussion of the above change in the [PR #10538](https://github.com/scala/scala3/pull/10538). ## Drop `as` in patterns Since we dropped `as` from `given`s, we lost a strong reason for having `as` at all. Therefore, we dropped `as` from patterns as well. The following syntax, valid in Scala 3.0.0-M2, is not accepted anymore: @@ -128,16 +128,16 @@ In the meantime, the compiler will emit warnings when trying to call those metho Note that the warnings are only active with language mode `3.1-migration` or higher - see the documentation on the [Language Versions](https://dotty.epfl.ch/docs/usage/language-versions.html) to learn how to enable it. -You can read the discussion of this change in the [PR #10670](https://github.com/lampepfl/dotty/pull/10670). You can also read more about it in the [documentation](https://dotty.epfl.ch/docs/reference/other-new-features/matchable.html). +You can read the discussion of this change in the [PR #10670](https://github.com/scala/scala3/pull/10670). You can also read more about it in the [documentation](https://dotty.epfl.ch/docs/reference/other-new-features/matchable.html). # Tooling improvements As we are getting closer to a stable release of Scala 3, the focus increasingly shifts on the tooling available to get started with Scala 3. For a while now, we are not using the old dottydoc documentation tool for building the documentation. We are developing an entirely new tool, scala3doc, from scratch. This new documentation tool is more robust and faster than the old one. -As part of the tooling effort, this new Scala 3 documentation tool is rapidly improved. [PR #10522](https://github.com/lampepfl/dotty/pull/10522) proves that the doctool can generate documentation for the community build projects. You can access this documentation via the following [link](https://scala3doc.virtuslab.com/pr-master-docs/index.html). +As part of the tooling effort, this new Scala 3 documentation tool is rapidly improved. [PR #10522](https://github.com/scala/scala3/pull/10522) proves that the doctool can generate documentation for the community build projects. You can access this documentation via the following [link](https://scala3doc.virtuslab.com/pr-master-docs/index.html). -[PR #10491](https://github.com/lampepfl/dotty/pull/10491) introduced scripting support in Scala 3. Consider the following source named `Main.scala`: +[PR #10491](https://github.com/scala/scala3/pull/10491) introduced scripting support in Scala 3. Consider the following source named `Main.scala`: ```scala @main def Test(name: String): Unit = @@ -157,25 +157,25 @@ The documentation for this feature is available [here](https://dotty.epfl.ch/doc # Metaprogramming changes We have been polishing the metaprogramming API and making it more uniform. The following notable changes occurred between M2 and M3: -- Add `Expr.asTerm` [#10694](https://github.com/lampepfl/dotty/pull/10694) -- Add reflect `MatchCase` `TypeRepr` [#10735](https://github.com/lampepfl/dotty/pull/10735) -- Rework reflect Symbol fields API [#10705](https://github.com/lampepfl/dotty/pull/10705) -- Remove `Expr.StringContext.unapply` [#10675](https://github.com/lampepfl/dotty/pull/10675) -- Rename `Liftable` to `ToExpr` and `Unliftable` to `FromExpr` [#10618](https://github.com/lampepfl/dotty/pull/10618) -- Remove Unliftable[Unit] [#10570](https://github.com/lampepfl/dotty/pull/10570) -- Remove reflect.LambdaType [#10548](https://github.com/lampepfl/dotty/pull/10548) -- Add `scala.quoted.Expr.unapply` as dual of `Expr.apply` [#10580](https://github.com/lampepfl/dotty/pull/10580) -- Move `Quotes` as last parameter in `ExprMap.transform` [#10519](https://github.com/lampepfl/dotty/pull/10519) -- Rework reflect Constant API [#10753](https://github.com/lampepfl/dotty/pull/10753) -- Unify quoted.report and reflect.Reporting [#10474](https://github.com/lampepfl/dotty/pull/10474) -- Fix #10359: Add GivenSelector to reflection API [#10469](https://github.com/lampepfl/dotty/pull/10469) -- Rework reflect show API [#10661](https://github.com/lampepfl/dotty/pull/10661) -- Fix #10709: Add missing level check before inlining [#10781](https://github.com/lampepfl/dotty/pull/10781) +- Add `Expr.asTerm` [#10694](https://github.com/scala/scala3/pull/10694) +- Add reflect `MatchCase` `TypeRepr` [#10735](https://github.com/scala/scala3/pull/10735) +- Rework reflect Symbol fields API [#10705](https://github.com/scala/scala3/pull/10705) +- Remove `Expr.StringContext.unapply` [#10675](https://github.com/scala/scala3/pull/10675) +- Rename `Liftable` to `ToExpr` and `Unliftable` to `FromExpr` [#10618](https://github.com/scala/scala3/pull/10618) +- Remove Unliftable[Unit] [#10570](https://github.com/scala/scala3/pull/10570) +- Remove reflect.LambdaType [#10548](https://github.com/scala/scala3/pull/10548) +- Add `scala.quoted.Expr.unapply` as dual of `Expr.apply` [#10580](https://github.com/scala/scala3/pull/10580) +- Move `Quotes` as last parameter in `ExprMap.transform` [#10519](https://github.com/scala/scala3/pull/10519) +- Rework reflect Constant API [#10753](https://github.com/scala/scala3/pull/10753) +- Unify quoted.report and reflect.Reporting [#10474](https://github.com/scala/scala3/pull/10474) +- Fix #10359: Add GivenSelector to reflection API [#10469](https://github.com/scala/scala3/pull/10469) +- Rework reflect show API [#10661](https://github.com/scala/scala3/pull/10661) +- Fix #10709: Add missing level check before inlining [#10781](https://github.com/scala/scala3/pull/10781) # Let us know what you think! If you have questions or any sort of feedback, feel free to send us a message on our [Gitter channel](https://gitter.im/lampepfl/dotty). If you encounter a bug, please -[open an issue on GitHub](https://github.com/lampepfl/dotty/issues/new). +[open an issue on GitHub](https://github.com/scala/scala3/issues/new). ## Contributors @@ -231,7 +231,7 @@ We are looking forward to having you join the team of contributors. ## Library authors: Join our community build -Scala 3 is regularly tested against a sample of libraries known as the "community build". You can add your library to the [community build](https://github.com/lampepfl/dotty/tree/main/community-build) by submitting a PR. +Scala 3 is regularly tested against a sample of libraries known as the "community build". You can add your library to the [community build](https://github.com/scala/scala3/tree/main/community-build) by submitting a PR. [Scastie]: https://scastie.scala-lang.org/?target=dotty diff --git a/docs/_blog/_posts/2021-02-17-scala3-rc1.md b/docs/_blog/_posts/2021-02-17-scala3-rc1.md index 9751f7b7461e..011dc0819107 100644 --- a/docs/_blog/_posts/2021-02-17-scala3-rc1.md +++ b/docs/_blog/_posts/2021-02-17-scala3-rc1.md @@ -11,7 +11,7 @@ Greetings from the Scala 3 team! We are delighted to announce the first release This release brings some last-minute polishings, clean-ups and changes before the big release. There were a few language changes to improve the user experience, as well as the polishings of the metaprogramming framework. We have also worked on the issues that had to be fixed before the stable release. -Overall, more than [400 PRs](https://github.com/lampepfl/dotty/pulls?q=is%3Apr+is%3Aclosed+closed%3A%3E2020-12-02+sort%3Acomments-desc) were merged after the M3 release and until today! Read more below! +Overall, more than [400 PRs](https://github.com/scala/scala3/pulls?q=is%3Apr+is%3Aclosed+closed%3A%3E2020-12-02+sort%3Acomments-desc) were merged after the M3 release and until today! Read more below! ## Allow secondary type parameter list in extension methods @@ -43,7 +43,7 @@ Or, when passing both type arguments: sumBy[String](List("a", "bb", "ccc"))[Int](_.length) ``` -For discussion, see [PR #10940](https://github.com/lampepfl/dotty/pull/10940). For more information about the extension methods, see [documentation](https://dotty.epfl.ch/docs/reference/contextual/extension-methods.html). +For discussion, see [PR #10940](https://github.com/scala/scala3/pull/10940). For more information about the extension methods, see [documentation](https://dotty.epfl.ch/docs/reference/contextual/extension-methods.html). ## New `import` syntax @@ -62,11 +62,11 @@ import scala.collection.mutable as mut import NumPy as np ``` -For the details and discussion, see [PR #11244](https://github.com/lampepfl/dotty/pull/11244). Read more about this change in the [documentation](https://dotty.epfl.ch/docs/reference/changed-features/imports.html). +For the details and discussion, see [PR #11244](https://github.com/scala/scala3/pull/11244). Read more about this change in the [documentation](https://dotty.epfl.ch/docs/reference/changed-features/imports.html). ## Use `*` for vararg splices -[PR #11240](https://github.com/lampepfl/dotty/pull/11240) changed the syntax of vararg splices in patterns and function arguments. The new syntax uses a postfix `*`, instead of `: _*`, analogously to how a vararg parameter is declared. +[PR #11240](https://github.com/scala/scala3/pull/11240) changed the syntax of vararg splices in patterns and function arguments. The new syntax uses a postfix `*`, instead of `: _*`, analogously to how a vararg parameter is declared. ## Use `uninitialized` for wildcard initializers @@ -88,7 +88,7 @@ var x: A = uninitialized This way expresses the intent of the idiom in a more verbose and easy to read way than simply writing an underscore. -For discussion, see [PR #11231](https://github.com/lampepfl/dotty/pull/11231), and the [documentation](https://dotty.epfl.ch/docs/reference/dropped-features/wildcard-init.html) is available on our website. +For discussion, see [PR #11231](https://github.com/scala/scala3/pull/11231), and the [documentation](https://dotty.epfl.ch/docs/reference/dropped-features/wildcard-init.html) is available on our website. ## Eta-expand companion object if functions are expected @@ -109,49 +109,49 @@ Results in: |The method `apply` is inserted. The auto insertion will be deprecated, please write `Foo.apply` explicitly. ``` -As the warning suggests, now you should write `Foo.apply` instead of `Foo`. See [Issue #6190](https://github.com/lampepfl/dotty/issues/6190) and [PR #7207](https://github.com/lampepfl/dotty/pull/7207) for discussion. +As the warning suggests, now you should write `Foo.apply` instead of `Foo`. See [Issue #6190](https://github.com/scala/scala3/issues/6190) and [PR #7207](https://github.com/scala/scala3/pull/7207) for discussion. ## Settling on `scaladoc` as the documentation tool We have settled on using the well-known `scaladoc` as a name for the documentation tool for Scala 3 (known previously as `scala3doc`). The obsolete `dotty-doc` (or `scala3-doc`) is removed in RC1. We have also removed all the Kotlin dependencies (Dokka, etc.) from scaladoc. -For details, see [PR #11349](https://github.com/lampepfl/dotty/pull/11349). To read more about `scaladoc`, see [documentation](https://dotty.epfl.ch/docs/usage/scaladoc/index.html) +For details, see [PR #11349](https://github.com/scala/scala3/pull/11349). To read more about `scaladoc`, see [documentation](https://dotty.epfl.ch/docs/usage/scaladoc/index.html) ## Use `future` and `future-migration` to specify language versions after 3.0 in `-source` -[PR #11355](https://github.com/lampepfl/dotty/pull/11355) changes the `-source` specifier for the Scala version(s) after 3.0 from `3.1` to `future`. I.e. it is now +[PR #11355](https://github.com/scala/scala3/pull/11355) changes the `-source` specifier for the Scala version(s) after 3.0 from `3.1` to `future`. I.e. it is now `-source future` and `-source future-migration` instead of `-source 3.1` and `-source 3.1-migration`. Language imports are changed analogously. The reason for the change is that we want to keep the possibility open to ship a `3.1` version that does not yet contain all the changes enabled under `-source future`. ## Other language changes -- Warn when matching against an opaque type [#10664](https://github.com/lampepfl/dotty/pull/10664) -- Fix [#8634](https://github.com/lampepfl/dotty/issues/8634): Support -release option [#10746](https://github.com/lampepfl/dotty/pull/10746) – the same way Scala 2 does. +- Warn when matching against an opaque type [#10664](https://github.com/scala/scala3/pull/10664) +- Fix [#8634](https://github.com/scala/scala3/issues/8634): Support -release option [#10746](https://github.com/scala/scala3/pull/10746) – the same way Scala 2 does. This setting allows you to specify a version of the Java platform (8, 9 etc) and compile the code with classes specific to the that Java platform, and emit the bytecode for that version. ## Metaprogramming changes A lot of work has been done on the metaprogramming side of things. Mostly we are cleaning up and polishing the API to prepare it for the stable release. The following are the important metaprogramming changes that took place: -- Add `scala.quoted.Expr.unapply` as dual of `Expr.apply` [#10580](https://github.com/lampepfl/dotty/pull/10580) -- Remove `Expr.StringContext.unapply` [#10675](https://github.com/lampepfl/dotty/pull/10675) -- Add reflect `MatchCase` `TypeRepr` [#10735](https://github.com/lampepfl/dotty/pull/10735) -- Rename `scala.quoted.staging.{Toolbox => Compiler}` [#11129](https://github.com/lampepfl/dotty/pull/11129) -- Fix [#10863](https://github.com/lampepfl/dotty/issues/10863): Make show `AnyKind`ed [#10988](https://github.com/lampepfl/dotty/pull/10988) -- Add ParamClause to allow multiple type param clauses [#11074](https://github.com/lampepfl/dotty/pull/11074) -- Rework reflect Symbol fields API [#10705](https://github.com/lampepfl/dotty/pull/10705) -- Rename `Liftable` to `ToExpr` and `Unliftable` to `FromExpr` [#10618](https://github.com/lampepfl/dotty/pull/10618) -- Expand non-transparent macros after Typer [#9984](https://github.com/lampepfl/dotty/pull/9984) -- Rework TastyInspector API to allow inspection of all files [#10792](https://github.com/lampepfl/dotty/pull/10792) -- Allow leading context parameters in extension methods [#10940](https://github.com/lampepfl/dotty/pull/10940) -- Rename `Not` to `NotGiven` to make its purpose clearer [#10720](https://github.com/lampepfl/dotty/pull/10720) -- Fix [#10709](https://github.com/lampepfl/dotty/issues/10709): Add missing level check before inlining [#10781](https://github.com/lampepfl/dotty/pull/10781) +- Add `scala.quoted.Expr.unapply` as dual of `Expr.apply` [#10580](https://github.com/scala/scala3/pull/10580) +- Remove `Expr.StringContext.unapply` [#10675](https://github.com/scala/scala3/pull/10675) +- Add reflect `MatchCase` `TypeRepr` [#10735](https://github.com/scala/scala3/pull/10735) +- Rename `scala.quoted.staging.{Toolbox => Compiler}` [#11129](https://github.com/scala/scala3/pull/11129) +- Fix [#10863](https://github.com/scala/scala3/issues/10863): Make show `AnyKind`ed [#10988](https://github.com/scala/scala3/pull/10988) +- Add ParamClause to allow multiple type param clauses [#11074](https://github.com/scala/scala3/pull/11074) +- Rework reflect Symbol fields API [#10705](https://github.com/scala/scala3/pull/10705) +- Rename `Liftable` to `ToExpr` and `Unliftable` to `FromExpr` [#10618](https://github.com/scala/scala3/pull/10618) +- Expand non-transparent macros after Typer [#9984](https://github.com/scala/scala3/pull/9984) +- Rework TastyInspector API to allow inspection of all files [#10792](https://github.com/scala/scala3/pull/10792) +- Allow leading context parameters in extension methods [#10940](https://github.com/scala/scala3/pull/10940) +- Rename `Not` to `NotGiven` to make its purpose clearer [#10720](https://github.com/scala/scala3/pull/10720) +- Fix [#10709](https://github.com/scala/scala3/issues/10709): Add missing level check before inlining [#10781](https://github.com/scala/scala3/pull/10781) ## Let us know what you think! If you have questions or any sort of feedback, feel free to send us a message on our [Gitter channel](https://gitter.im/lampepfl/dotty). If you encounter a bug, please -[open an issue on GitHub](https://github.com/lampepfl/dotty/issues/new). +[open an issue on GitHub](https://github.com/scala/scala3/issues/new). ## Contributors @@ -225,7 +225,7 @@ According to `git shortlog -sn --no-merges 3.0.0-M3..3.0.0-RC1` these are: If you want to get your hands dirty and contribute to Scala 3, now is a good time to get involved! Head to our [Getting Started page for new contributors](https://dotty.epfl.ch/docs/contributing/getting-started.html), -and have a look at some of the [good first issues](https://github.com/lampepfl/dotty/issues?q=is%3Aissue+is%3Aopen+label%3Aexp%3Anovice). +and have a look at some of the [good first issues](https://github.com/scala/scala3/issues?q=is%3Aissue+is%3Aopen+label%3Aexp%3Anovice). They make perfect entry points into hacking on the compiler. We are looking forward to having you join the team of contributors. diff --git a/docs/_blog/_posts/2021-03-31-scala3-rc2.md b/docs/_blog/_posts/2021-03-31-scala3-rc2.md index 178dfabfbffc..13170adbcfad 100644 --- a/docs/_blog/_posts/2021-03-31-scala3-rc2.md +++ b/docs/_blog/_posts/2021-03-31-scala3-rc2.md @@ -6,7 +6,7 @@ authorImg: /images/anatolii.png date: 2021-03-31 --- -Hello! We are happy to announce Scala 3.0.0-RC2. With this release, we are getting ready for 3.0.0. The significance of it is to give the community the chance and time to test all the changes meant for 3.0.0 final. A lot of bug fixes found their way into this release to ensure stability for 3.0.0 – more than [250 PRs](https://github.com/lampepfl/dotty/pulls?q=is%3Apr+is%3Aclosed+closed%3A%3E2021-02-16) were merged after the 3.0.0-RC1 release and until today! +Hello! We are happy to announce Scala 3.0.0-RC2. With this release, we are getting ready for 3.0.0. The significance of it is to give the community the chance and time to test all the changes meant for 3.0.0 final. A lot of bug fixes found their way into this release to ensure stability for 3.0.0 – more than [250 PRs](https://github.com/scala/scala3/pulls?q=is%3Apr+is%3Aclosed+closed%3A%3E2021-02-16) were merged after the 3.0.0-RC1 release and until today! Read more about this release below. @@ -28,31 +28,31 @@ As mentioned above, we are currently in an issue-fixing mode. So a lot of those There are some notable changes worth mentioning. ## Restrict experimental features to unstable releases only -PR [#11920](https://github.com/lampepfl/dotty/pull/11920) restricts usage of experimental features only to nightlies and snapshots. This change ensures that changes deemed experimental will not propagate into the wider ecosystem provided that the wider ecosystem depends on stable releases. This is needed so that if an experimental feature is modified or removed from the language, the ecosystem will not be impacted. +PR [#11920](https://github.com/scala/scala3/pull/11920) restricts usage of experimental features only to nightlies and snapshots. This change ensures that changes deemed experimental will not propagate into the wider ecosystem provided that the wider ecosystem depends on stable releases. This is needed so that if an experimental feature is modified or removed from the language, the ecosystem will not be impacted. ## New `unsafeNulls` language feature -PR [#9884](https://github.com/lampepfl/dotty/pull/9884) adds a new language feature which enables unsafe null operations under explicit nulls. This is a tool to help projects migrating to full explicit nulls gradually. From now on, you can use an import `import scala.language.unsafeNulls` to create an unsafe scope. For discussion, see the PR linked above, and for more information on the feature, see the [documentation](https://dotty.epfl.ch/docs/reference/other-new-features/explicit-nulls.html). +PR [#9884](https://github.com/scala/scala3/pull/9884) adds a new language feature which enables unsafe null operations under explicit nulls. This is a tool to help projects migrating to full explicit nulls gradually. From now on, you can use an import `import scala.language.unsafeNulls` to create an unsafe scope. For discussion, see the PR linked above, and for more information on the feature, see the [documentation](https://dotty.epfl.ch/docs/reference/other-new-features/explicit-nulls.html). ## Treat Scala.js pseudo-unions as real unions -In PR [#11671](https://github.com/lampepfl/dotty/pull/11671), we now treat the `scala.scalajs.js.|[A, B]` as if it was a real Scala 3 union `A | B`, which further boosts the support for Scala.js in Scala 3. +In PR [#11671](https://github.com/scala/scala3/pull/11671), we now treat the `scala.scalajs.js.|[A, B]` as if it was a real Scala 3 union `A | B`, which further boosts the support for Scala.js in Scala 3. ## Other API changes -`-Ycheck-init` was renamed to `-Ysafe-init`. This flag is used to check safe initialization, more about which you can read in the [documentation](https://dotty.epfl.ch/docs/reference/other-new-features/safe-initialization.html). See also PR [#11920](https://github.com/lampepfl/dotty/pull/11920). +`-Ycheck-init` was renamed to `-Ysafe-init`. This flag is used to check safe initialization, more about which you can read in the [documentation](https://dotty.epfl.ch/docs/reference/other-new-features/safe-initialization.html). See also PR [#11920](https://github.com/scala/scala3/pull/11920). -PR [#11745](https://github.com/lampepfl/dotty/pull/11745) changes the `compiletime` package API a bit. `compiletime.S` was moved to `compiletime.ops.int.S` and the package object `compiletime` was removed in favor of top-level definitions. +PR [#11745](https://github.com/scala/scala3/pull/11745) changes the `compiletime` package API a bit. `compiletime.S` was moved to `compiletime.ops.int.S` and the package object `compiletime` was removed in favor of top-level definitions. ## Metaprogramming The following are some notable metaprogramming changes included into this release: -- Add quotes.Type.valueOfConstant [#11715](https://github.com/lampepfl/dotty/pull/11715) -- Remove compiletime.Widen [#11569](https://github.com/lampepfl/dotty/pull/11569) -- Add -Xcheck-macros scalac option [#11655](https://github.com/lampepfl/dotty/pull/11655) +- Add quotes.Type.valueOfConstant [#11715](https://github.com/scala/scala3/pull/11715) +- Remove compiletime.Widen [#11569](https://github.com/scala/scala3/pull/11569) +- Add -Xcheck-macros scalac option [#11655](https://github.com/scala/scala3/pull/11655) # Let us know what you think! If you have questions or any sort of feedback, feel free to send us a message on our [Gitter channel](https://gitter.im/lampepfl/dotty). If you encounter a bug, please -[open an issue on GitHub](https://github.com/lampepfl/dotty/issues/new). +[open an issue on GitHub](https://github.com/scala/scala3/issues/new). ## Contributors @@ -107,7 +107,7 @@ According to `git shortlog -sn --no-merges 3.0.0-RC1..3.0.0-RC2` these are: If you want to get your hands dirty and contribute to Dotty, now is a good time to get involved! Head to our [Getting Started page for new contributors](https://dotty.epfl.ch/docs/contributing/getting-started.html), -and have a look at some of the [good first issues](https://github.com/lampepfl/dotty/issues?q=is%3Aissue+is%3Aopen+label%3Aexp%3Anovice). +and have a look at some of the [good first issues](https://github.com/scala/scala3/issues?q=is%3Aissue+is%3Aopen+label%3Aexp%3Anovice). They make perfect entry points into hacking on the compiler. We are looking forward to having you join the team of contributors. @@ -116,7 +116,7 @@ We are looking forward to having you join the team of contributors. Dotty now has a set of widely-used community libraries that are built against every nightly Dotty snapshot. Currently, this includes shapeless, ScalaPB, algebra, scalatest, scopt and squants. -Join our [community build](https://github.com/lampepfl/dotty/tree/main/community-build) +Join our [community build](https://github.com/scala/scala3/tree/main/community-build) to make sure that our regression suite includes your library. [Scastie]: https://scastie.scala-lang.org/?target=dotty diff --git a/docs/_blog/_posts/2021-04-21-scala3-rc3.md b/docs/_blog/_posts/2021-04-21-scala3-rc3.md index 8651730da93a..6eddc82e7273 100644 --- a/docs/_blog/_posts/2021-04-21-scala3-rc3.md +++ b/docs/_blog/_posts/2021-04-21-scala3-rc3.md @@ -13,16 +13,16 @@ This release also impacts the release date for 3.0.0 stable. 3.0.0 stable will g # Bug fixes included -- Fix type test for trait parameter arguments [#12066](https://github.com/lampepfl/dotty/pull/12066) -- Set file filter correctly [#12119](https://github.com/lampepfl/dotty/pull/12119) -- Provide mirror support after inlining [#12079](https://github.com/lampepfl/dotty/pull/12079) -- Revert "Recursively check nonvariant arguments of base types for realizability" [#12067](https://github.com/lampepfl/dotty/pull/12067) -- When simplifying match types, ensure fully defined before reducing [#12068](https://github.com/lampepfl/dotty/pull/12068) -- sbt-dotty: the binary version is 3 for Scala >= 3.0.0 [#12084](https://github.com/lampepfl/dotty/pull/12084) -- Fix isInstanceOf[Array[?]] returning true on non-Array [#12108](https://github.com/lampepfl/dotty/pull/12108) -- Scala2Unpickler: don't unpickle the same type parameter twice [#12129](https://github.com/lampepfl/dotty/pull/12129) -- Overloading resolution: Handle SAM types more like Java and Scala 2 [#12131](https://github.com/lampepfl/dotty/pull/12131) -- Add TermParamClause.isGiven [#12042](https://github.com/lampepfl/dotty/pull/12042) +- Fix type test for trait parameter arguments [#12066](https://github.com/scala/scala3/pull/12066) +- Set file filter correctly [#12119](https://github.com/scala/scala3/pull/12119) +- Provide mirror support after inlining [#12079](https://github.com/scala/scala3/pull/12079) +- Revert "Recursively check nonvariant arguments of base types for realizability" [#12067](https://github.com/scala/scala3/pull/12067) +- When simplifying match types, ensure fully defined before reducing [#12068](https://github.com/scala/scala3/pull/12068) +- sbt-dotty: the binary version is 3 for Scala >= 3.0.0 [#12084](https://github.com/scala/scala3/pull/12084) +- Fix isInstanceOf[Array[?]] returning true on non-Array [#12108](https://github.com/scala/scala3/pull/12108) +- Scala2Unpickler: don't unpickle the same type parameter twice [#12129](https://github.com/scala/scala3/pull/12129) +- Overloading resolution: Handle SAM types more like Java and Scala 2 [#12131](https://github.com/scala/scala3/pull/12131) +- Add TermParamClause.isGiven [#12042](https://github.com/scala/scala3/pull/12042) ## Contributors Thank you to all the contributors who made this release possible 🎉 @@ -40,7 +40,7 @@ According to `git shortlog -sn --no-merges 3.0.0-RC2..3.0.0-RC3` these are: If you want to get your hands dirty and contribute to Dotty, now is a good time to get involved! Head to our [Getting Started page for new contributors](https://dotty.epfl.ch/docs/contributing/getting-started.html), -and have a look at some of the [good first issues](https://github.com/lampepfl/dotty/issues?q=is%3Aissue+is%3Aopen+label%3Aexp%3Anovice). +and have a look at some of the [good first issues](https://github.com/scala/scala3/issues?q=is%3Aissue+is%3Aopen+label%3Aexp%3Anovice). They make perfect entry points into hacking on the compiler. We are looking forward to having you join the team of contributors. @@ -49,7 +49,7 @@ We are looking forward to having you join the team of contributors. Dotty now has a set of widely-used community libraries that are built against every nightly Dotty snapshot. Currently, this includes shapeless, ScalaPB, algebra, scalatest, scopt and squants. -Join our [community build](https://github.com/lampepfl/dotty/tree/main/community-build) +Join our [community build](https://github.com/scala/scala3/tree/main/community-build) to make sure that our regression suite includes your library. [Scastie]: https://scastie.scala-lang.org/?target=dotty diff --git a/docs/_blog/_posts/2021-06-07-scala3.0.1-rc1-release.md b/docs/_blog/_posts/2021-06-07-scala3.0.1-rc1-release.md index e9fac2d0447c..617f175e74b7 100644 --- a/docs/_blog/_posts/2021-06-07-scala3.0.1-rc1-release.md +++ b/docs/_blog/_posts/2021-06-07-scala3.0.1-rc1-release.md @@ -21,13 +21,13 @@ The spirit of this policy is to make sure that effectively, no library published Having said that, we still encourage people to play with the experimental features from the `NIGHTLY` compiler versions and discuss their findings. Without the curious and adventurous part of the community playing with the new features, there is no way of knowing what they are good for, and no way to decide whether they should be dropped or promoted to a stable feature. -More about this change you can read in the PR [#12102](https://github.com/lampepfl/dotty/pull/12102). +More about this change you can read in the PR [#12102](https://github.com/scala/scala3/pull/12102). # Kind-projector work -This release also brings extra features for the [Kind Projector](https://docs.scala-lang.org/scala3/guides/migration/plugin-kind-projector.html) migration support. First, PR [#12378](https://github.com/lampepfl/dotty/pull/12378) allows `_` as type lambda placeholder. Second, PR [#12341](https://github.com/lampepfl/dotty/pull/12341) brings support for the variance annotations on the placeholder. This work enhances the ability to cross-compile Scala 2 code that uses the Kind Projector plugin to Scala 3. +This release also brings extra features for the [Kind Projector](https://docs.scala-lang.org/scala3/guides/migration/plugin-kind-projector.html) migration support. First, PR [#12378](https://github.com/scala/scala3/pull/12378) allows `_` as type lambda placeholder. Second, PR [#12341](https://github.com/scala/scala3/pull/12341) brings support for the variance annotations on the placeholder. This work enhances the ability to cross-compile Scala 2 code that uses the Kind Projector plugin to Scala 3. # Improved error reporting -Down the error reporting lane, match type reduction errors were improved. When using a match type, it may or may not reduce to one of its cases. If it doesn't match type is used as specified, e.g. if `M[T]` is a match type and it didn't reduce for `M[Int]`, `M[Int]` will be used. This behavior, however, is frequently not what you want: there is a lot of cases where you would expect a match type to reduce but it doesn't. In such cases, it would be nice to have some diagnostic regarding why it didn't reduce. PR [#12053](https://github.com/lampepfl/dotty/pull/12053/) adds just such a diagnostic. E.g. the following code: +Down the error reporting lane, match type reduction errors were improved. When using a match type, it may or may not reduce to one of its cases. If it doesn't match type is used as specified, e.g. if `M[T]` is a match type and it didn't reduce for `M[Int]`, `M[Int]` will be used. This behavior, however, is frequently not what you want: there is a lot of cases where you would expect a match type to reduce but it doesn't. In such cases, it would be nice to have some diagnostic regarding why it didn't reduce. PR [#12053](https://github.com/scala/scala3/pull/12053/) adds just such a diagnostic. E.g. the following code: ```scala trait A @@ -58,32 +58,32 @@ will report the following error: ``` # Scaladoc -We have updated the [documentation](http://dotty.epfl.ch/docs/usage/scaladoc/index.html) for Scaladoc making it easier for you to get started. Also, PR [#11582](https://github.com/lampepfl/dotty/pull/11582) has added the snippet compiler to ensure the snippets in your scaladoc documentation comments aren't broken. You can read more about this feature on the [mailing list](https://contributors.scala-lang.org/t/snippet-validation-in-scaladoc-for-scala-3/4976). +We have updated the [documentation](http://dotty.epfl.ch/docs/usage/scaladoc/index.html) for Scaladoc making it easier for you to get started. Also, PR [#11582](https://github.com/scala/scala3/pull/11582) has added the snippet compiler to ensure the snippets in your scaladoc documentation comments aren't broken. You can read more about this feature on the [mailing list](https://contributors.scala-lang.org/t/snippet-validation-in-scaladoc-for-scala-3/4976). # Metaprogramming A lot of metaprogramming work was focused on improving the performance. Some of the notable PRs include: -- Cache quote unpickling [#12242](https://github.com/lampepfl/dotty/pull/12242) -- Avoid pickled tasty for some captured quote reference [#12248](https://github.com/lampepfl/dotty/pull/12248) -- Improve quote matcher performance [#12418](https://github.com/lampepfl/dotty/pull/12418) -- Port scala.quoted.runtime.impl.QuoteMatcher [#12402](https://github.com/lampepfl/dotty/pull/12402) +- Cache quote unpickling [#12242](https://github.com/scala/scala3/pull/12242) +- Avoid pickled tasty for some captured quote reference [#12248](https://github.com/scala/scala3/pull/12248) +- Improve quote matcher performance [#12418](https://github.com/scala/scala3/pull/12418) +- Port scala.quoted.runtime.impl.QuoteMatcher [#12402](https://github.com/scala/scala3/pull/12402) # Issue fixing Otherwise, we are making an effort to reduce our issue tracker. Among others, the following are some of the PRs dedicated to issue fixing: -- IArray.toArray: Deprecate broken method [#12598](https://github.com/lampepfl/dotty/pull/12598) -- Fix comparison of dependent function types [#12214](https://github.com/lampepfl/dotty/pull/12214) -- Make translucentSuperType handle match types [#12153](https://github.com/lampepfl/dotty/pull/12153) -- Harden Type Inference [#12560](https://github.com/lampepfl/dotty/pull/12560) -- Reject references to self in super constructor calls [#12567](https://github.com/lampepfl/dotty/pull/12567) -- Provide mirror support after inlining [#12062](https://github.com/lampepfl/dotty/pull/12062) -- Allow export paths to see imports [#12134](https://github.com/lampepfl/dotty/pull/12134) -- Streamline given syntax [#12107](https://github.com/lampepfl/dotty/pull/12107) -- Export constructor proxies [#12311](https://github.com/lampepfl/dotty/pull/12311) -- Identify package and nested package object in isSubPrefix [#12297](https://github.com/lampepfl/dotty/pull/12297) -- Treat Refinements more like AndTypes [#12317](https://github.com/lampepfl/dotty/pull/12317) -- Fix [#9871](https://github.com/lampepfl/dotty/pull/9871): use toNestedPairs in provablyDisjoint [#10560](https://github.com/lampepfl/dotty/pull/10560) +- IArray.toArray: Deprecate broken method [#12598](https://github.com/scala/scala3/pull/12598) +- Fix comparison of dependent function types [#12214](https://github.com/scala/scala3/pull/12214) +- Make translucentSuperType handle match types [#12153](https://github.com/scala/scala3/pull/12153) +- Harden Type Inference [#12560](https://github.com/scala/scala3/pull/12560) +- Reject references to self in super constructor calls [#12567](https://github.com/scala/scala3/pull/12567) +- Provide mirror support after inlining [#12062](https://github.com/scala/scala3/pull/12062) +- Allow export paths to see imports [#12134](https://github.com/scala/scala3/pull/12134) +- Streamline given syntax [#12107](https://github.com/scala/scala3/pull/12107) +- Export constructor proxies [#12311](https://github.com/scala/scala3/pull/12311) +- Identify package and nested package object in isSubPrefix [#12297](https://github.com/scala/scala3/pull/12297) +- Treat Refinements more like AndTypes [#12317](https://github.com/scala/scala3/pull/12317) +- Fix [#9871](https://github.com/scala/scala3/pull/9871): use toNestedPairs in provablyDisjoint [#10560](https://github.com/scala/scala3/pull/10560) # Contributors @@ -147,7 +147,7 @@ According to `git shortlog -sn --no-merges 3.0.0-RC2..3.0.1-RC1`† these are: ## Library authors: Join our community build Scala 3 now has a set of widely-used community libraries that are built against every nightly Scala 3 snapshot. -Join our [community build](https://github.com/lampepfl/dotty/tree/main/community-build) +Join our [community build](https://github.com/scala/scala3/tree/main/community-build) to make sure that our regression suite includes your library. [Scastie]: https://scastie.scala-lang.org/?target=dotty diff --git a/docs/_blog/_posts/2021-06-25-scala301-rc2.md b/docs/_blog/_posts/2021-06-25-scala301-rc2.md index 76257d1a8664..054a8dfc9d56 100644 --- a/docs/_blog/_posts/2021-06-25-scala301-rc2.md +++ b/docs/_blog/_posts/2021-06-25-scala301-rc2.md @@ -6,9 +6,9 @@ authorImg: /images/anatolii.png date: 2021-06-25 --- -This post is a quick announcement of Scala 3.0.1-RC2. This is the second release candidate for 3.0.1. The reason for this release is that a regression with respect to 3.0.0 was introduced by PR [#12519](https://github.com/lampepfl/dotty/pull/12519) which caused the compiler to fail where it shouldn't. We have fixed this regression in PR [#12827](https://github.com/lampepfl/dotty/pull/12827) and backported it to 3.0.1. This is the main reason for having 3.0.1-RC2 before 3.0.1 which is due in one week. +This post is a quick announcement of Scala 3.0.1-RC2. This is the second release candidate for 3.0.1. The reason for this release is that a regression with respect to 3.0.0 was introduced by PR [#12519](https://github.com/scala/scala3/pull/12519) which caused the compiler to fail where it shouldn't. We have fixed this regression in PR [#12827](https://github.com/scala/scala3/pull/12827) and backported it to 3.0.1. This is the main reason for having 3.0.1-RC2 before 3.0.1 which is due in one week. -Besides this main change, taking advantage of the fact that RC2 is happening, we have also included various SBT reporting improvements (PR [#12845](https://github.com/lampepfl/dotty/pull/12845)) which should improve interaction with [Metals](https://scalameta.org/metals/). Also we've backported a few infrastructural fixes even though they aren't a regression from 3.0.0. +Besides this main change, taking advantage of the fact that RC2 is happening, we have also included various SBT reporting improvements (PR [#12845](https://github.com/scala/scala3/pull/12845)) which should improve interaction with [Metals](https://scalameta.org/metals/). Also we've backported a few infrastructural fixes even though they aren't a regression from 3.0.0. @@ -29,7 +29,7 @@ According to `git shortlog -sn --no-merges 3.0.1-RC1..3.0.1-RC2` these are: ## Library authors: Join our community build Scala 3 now has a set of widely-used community libraries that are built against every nightly Scala 3 snapshot. -Join our [community build](https://github.com/lampepfl/dotty/tree/main/community-build) +Join our [community build](https://github.com/scala/scala3/tree/main/community-build) to make sure that our regression suite includes your library. [Scastie]: https://scastie.scala-lang.org/?target=dotty diff --git a/docs/_docs/contributing/architecture/context.md b/docs/_docs/contributing/architecture/context.md index cd38ee437867..61cb88ad5494 100644 --- a/docs/_docs/contributing/architecture/context.md +++ b/docs/_docs/contributing/architecture/context.md @@ -50,4 +50,4 @@ convention is that the `Context` be an explicit parameter, to track its usage. | ... | and so on | -[Contexts]: https://github.com/lampepfl/dotty/blob/master/compiler/src/dotty/tools/dotc/core/Contexts.scala +[Contexts]: https://github.com/scala/scala3/blob/master/compiler/src/dotty/tools/dotc/core/Contexts.scala diff --git a/docs/_docs/contributing/architecture/lifecycle.md b/docs/_docs/contributing/architecture/lifecycle.md index 2cf58f477da3..30ca934ede71 100644 --- a/docs/_docs/contributing/architecture/lifecycle.md +++ b/docs/_docs/contributing/architecture/lifecycle.md @@ -78,13 +78,13 @@ tools // contains helpers and the `scala` generic runner ``` -[Phases]: https://github.com/lampepfl/dotty/blob/master/compiler/src/dotty/tools/dotc/core/Phases.scala -[CompilationUnit]: https://github.com/lampepfl/dotty/blob/master/compiler/src/dotty/tools/dotc/CompilationUnit.scala +[Phases]: https://github.com/scala/scala3/blob/master/compiler/src/dotty/tools/dotc/core/Phases.scala +[CompilationUnit]: https://github.com/scala/scala3/blob/master/compiler/src/dotty/tools/dotc/CompilationUnit.scala -[dotty.tools]: https://github.com/lampepfl/dotty/tree/master/compiler/src/dotty/tools -[ScalaSettings]: https://github.com/lampepfl/dotty/blob/master/compiler/src/dotty/tools/dotc/config/ScalaSettings.scala +[dotty.tools]: https://github.com/scala/scala3/tree/master/compiler/src/dotty/tools +[ScalaSettings]: https://github.com/scala/scala3/blob/master/compiler/src/dotty/tools/dotc/config/ScalaSettings.scala [syntax]: https://docs.scala-lang.org/scala3/reference/syntax.html -[Main]: https://github.com/lampepfl/dotty/blob/master/compiler/src/dotty/tools/dotc/Main.scala -[Driver]: https://github.com/lampepfl/dotty/blob/master/compiler/src/dotty/tools/dotc/Driver.scala -[Compiler]: https://github.com/lampepfl/dotty/blob/master/compiler/src/dotty/tools/dotc/Compiler.scala -[Run]: https://github.com/lampepfl/dotty/blob/master/compiler/src/dotty/tools/dotc/Run.scala \ No newline at end of file +[Main]: https://github.com/scala/scala3/blob/master/compiler/src/dotty/tools/dotc/Main.scala +[Driver]: https://github.com/scala/scala3/blob/master/compiler/src/dotty/tools/dotc/Driver.scala +[Compiler]: https://github.com/scala/scala3/blob/master/compiler/src/dotty/tools/dotc/Compiler.scala +[Run]: https://github.com/scala/scala3/blob/master/compiler/src/dotty/tools/dotc/Run.scala \ No newline at end of file diff --git a/docs/_docs/contributing/architecture/phases.md b/docs/_docs/contributing/architecture/phases.md index 844ae144dddb..8e63de04dadb 100644 --- a/docs/_docs/contributing/architecture/phases.md +++ b/docs/_docs/contributing/architecture/phases.md @@ -85,24 +85,24 @@ suitable for the runtime system, with two sub-groupings: ### `backendPhases` These map the transformed trees to Java classfiles or SJSIR files. -[CompilationUnit]: https://github.com/lampepfl/dotty/blob/master/compiler/src/dotty/tools/dotc/CompilationUnit.scala -[Compiler]: https://github.com/lampepfl/dotty/blob/master/compiler/src/dotty/tools/dotc/Compiler.scala -[Phase]: https://github.com/lampepfl/dotty/blob/master/compiler/src/dotty/tools/dotc/core/Phases.scala -[MiniPhase]: https://github.com/lampepfl/dotty/blob/master/compiler/src/dotty/tools/dotc/transform/MegaPhase.scala -[Run]: https://github.com/lampepfl/dotty/blob/master/compiler/src/dotty/tools/dotc/Run.scala -[parser]: https://github.com/lampepfl/dotty/blob/master/compiler/src/dotty/tools/dotc/parsing/ParserPhase.scala -[typer]: https://github.com/lampepfl/dotty/blob/master/compiler/src/dotty/tools/dotc/typer/TyperPhase.scala -[posttyper]: https://github.com/lampepfl/dotty/blob/master/compiler/src/dotty/tools/dotc/transform/PostTyper.scala -[prepjsinterop]: https://github.com/lampepfl/dotty/blob/master/compiler/src/dotty/tools/dotc/transform/sjs/PrepJSInterop.scala -[pickler]: https://github.com/lampepfl/dotty/blob/master/compiler/src/dotty/tools/dotc/transform/Pickler.scala -[inlining]: https://github.com/lampepfl/dotty/blob/master/compiler/src/dotty/tools/dotc/transform/Inlining.scala -[postInlining]: https://github.com/lampepfl/dotty/blob/master/compiler/src/dotty/tools/dotc/transform/PostInlining.scala -[staging]: https://github.com/lampepfl/dotty/blob/master/compiler/src/dotty/tools/dotc/transform/Staging.scala -[pickleQuotes]: https://github.com/lampepfl/dotty/blob/master/compiler/src/dotty/tools/dotc/transform/PickleQuotes.scala -[refchecks]: https://github.com/lampepfl/dotty/blob/master/compiler/src/dotty/tools/dotc/typer/RefChecks.scala -[initChecker]: https://github.com/lampepfl/dotty/blob/master/compiler/src/dotty/tools/dotc/transform/init/Checker.scala -[firstTransform]: https://github.com/lampepfl/dotty/blob/master/compiler/src/dotty/tools/dotc/transform/FirstTransform.scala -[patternMatcher]: https://github.com/lampepfl/dotty/blob/master/compiler/src/dotty/tools/dotc/transform/PatternMatcher.scala -[erasure]: https://github.com/lampepfl/dotty/blob/master/compiler/src/dotty/tools/dotc/transform/Erasure.scala -[Mirror]: https://github.com/lampepfl/dotty/blob/master/library/src/scala/deriving/Mirror.scala +[CompilationUnit]: https://github.com/scala/scala3/blob/master/compiler/src/dotty/tools/dotc/CompilationUnit.scala +[Compiler]: https://github.com/scala/scala3/blob/master/compiler/src/dotty/tools/dotc/Compiler.scala +[Phase]: https://github.com/scala/scala3/blob/master/compiler/src/dotty/tools/dotc/core/Phases.scala +[MiniPhase]: https://github.com/scala/scala3/blob/master/compiler/src/dotty/tools/dotc/transform/MegaPhase.scala +[Run]: https://github.com/scala/scala3/blob/master/compiler/src/dotty/tools/dotc/Run.scala +[parser]: https://github.com/scala/scala3/blob/master/compiler/src/dotty/tools/dotc/parsing/ParserPhase.scala +[typer]: https://github.com/scala/scala3/blob/master/compiler/src/dotty/tools/dotc/typer/TyperPhase.scala +[posttyper]: https://github.com/scala/scala3/blob/master/compiler/src/dotty/tools/dotc/transform/PostTyper.scala +[prepjsinterop]: https://github.com/scala/scala3/blob/master/compiler/src/dotty/tools/dotc/transform/sjs/PrepJSInterop.scala +[pickler]: https://github.com/scala/scala3/blob/master/compiler/src/dotty/tools/dotc/transform/Pickler.scala +[inlining]: https://github.com/scala/scala3/blob/master/compiler/src/dotty/tools/dotc/transform/Inlining.scala +[postInlining]: https://github.com/scala/scala3/blob/master/compiler/src/dotty/tools/dotc/transform/PostInlining.scala +[staging]: https://github.com/scala/scala3/blob/master/compiler/src/dotty/tools/dotc/transform/Staging.scala +[pickleQuotes]: https://github.com/scala/scala3/blob/master/compiler/src/dotty/tools/dotc/transform/PickleQuotes.scala +[refchecks]: https://github.com/scala/scala3/blob/master/compiler/src/dotty/tools/dotc/typer/RefChecks.scala +[initChecker]: https://github.com/scala/scala3/blob/master/compiler/src/dotty/tools/dotc/transform/init/Checker.scala +[firstTransform]: https://github.com/scala/scala3/blob/master/compiler/src/dotty/tools/dotc/transform/FirstTransform.scala +[patternMatcher]: https://github.com/scala/scala3/blob/master/compiler/src/dotty/tools/dotc/transform/PatternMatcher.scala +[erasure]: https://github.com/scala/scala3/blob/master/compiler/src/dotty/tools/dotc/transform/Erasure.scala +[Mirror]: https://github.com/scala/scala3/blob/master/library/src/scala/deriving/Mirror.scala [PCP]: ../../reference/metaprogramming/macros.md#the-phase-consistency-principle diff --git a/docs/_docs/contributing/architecture/symbols.md b/docs/_docs/contributing/architecture/symbols.md index c19588a4ff12..c11c054b4967 100644 --- a/docs/_docs/contributing/architecture/symbols.md +++ b/docs/_docs/contributing/architecture/symbols.md @@ -60,11 +60,11 @@ All definition symbols will contain a `SymDenotation`. The denotation, in turn, A class symbol will instead be associated with a `ClassDenotation`, which extends `SymDenotation` with some additional fields specific for classes. -[Signature1]: https://github.com/lampepfl/dotty/blob/a527f3b1e49c0d48148ccfb2eb52e3302fc4a349/compiler/src/dotty/tools/dotc/core/Signature.scala#L9-L33 -[Symbols]: https://github.com/lampepfl/dotty/blob/master/compiler/src/dotty/tools/dotc/core/Symbols.scala -[flatten]: https://github.com/lampepfl/dotty/blob/master/compiler/src/dotty/tools/dotc/transform/Flatten.scala -[lambdaLift]: https://github.com/lampepfl/dotty/blob/master/compiler/src/dotty/tools/dotc/transform/LambdaLift.scala -[CompilationUnit]: https://github.com/lampepfl/dotty/blob/master/compiler/src/dotty/tools/dotc/CompilationUnit.scala -[Denotations]: https://github.com/lampepfl/dotty/blob/master/compiler/src/dotty/tools/dotc/core/Denotations.scala -[SymDenotations]: https://github.com/lampepfl/dotty/blob/master/compiler/src/dotty/tools/dotc/core/SymDenotations.scala -[flags]: https://github.com/lampepfl/dotty/blob/master/compiler/src/dotty/tools/dotc/core/Flags.scala +[Signature1]: https://github.com/scala/scala3/blob/a527f3b1e49c0d48148ccfb2eb52e3302fc4a349/compiler/src/dotty/tools/dotc/core/Signature.scala#L9-L33 +[Symbols]: https://github.com/scala/scala3/blob/master/compiler/src/dotty/tools/dotc/core/Symbols.scala +[flatten]: https://github.com/scala/scala3/blob/master/compiler/src/dotty/tools/dotc/transform/Flatten.scala +[lambdaLift]: https://github.com/scala/scala3/blob/master/compiler/src/dotty/tools/dotc/transform/LambdaLift.scala +[CompilationUnit]: https://github.com/scala/scala3/blob/master/compiler/src/dotty/tools/dotc/CompilationUnit.scala +[Denotations]: https://github.com/scala/scala3/blob/master/compiler/src/dotty/tools/dotc/core/Denotations.scala +[SymDenotations]: https://github.com/scala/scala3/blob/master/compiler/src/dotty/tools/dotc/core/SymDenotations.scala +[flags]: https://github.com/scala/scala3/blob/master/compiler/src/dotty/tools/dotc/core/Flags.scala diff --git a/docs/_docs/contributing/architecture/time.md b/docs/_docs/contributing/architecture/time.md index 588b1ce40bb2..56a6cf7447a1 100644 --- a/docs/_docs/contributing/architecture/time.md +++ b/docs/_docs/contributing/architecture/time.md @@ -61,8 +61,8 @@ method foo after typer => (b: Box)(x: b.X): scala.collection.immutable.List[b. method foo after erasure => (b: Box, x: Object): scala.collection.immutable.List ``` -[runs]: https://github.com/lampepfl/dotty/blob/a527f3b1e49c0d48148ccfb2eb52e3302fc4a349/compiler/src/dotty/tools/dotc/Run.scala -[periods]: https://github.com/lampepfl/dotty/blob/a527f3b1e49c0d48148ccfb2eb52e3302fc4a349/compiler/src/dotty/tools/dotc/core/Periods.scala -[Contexts]: https://github.com/lampepfl/dotty/blob/master/compiler/src/dotty/tools/dotc/core/Contexts.scala -[typer]: https://github.com/lampepfl/dotty/blob/master/compiler/src/dotty/tools/dotc/typer/TyperPhase.scala -[erasure]: https://github.com/lampepfl/dotty/blob/master/compiler/src/dotty/tools/dotc/transform/Erasure.scala +[runs]: https://github.com/scala/scala3/blob/a527f3b1e49c0d48148ccfb2eb52e3302fc4a349/compiler/src/dotty/tools/dotc/Run.scala +[periods]: https://github.com/scala/scala3/blob/a527f3b1e49c0d48148ccfb2eb52e3302fc4a349/compiler/src/dotty/tools/dotc/core/Periods.scala +[Contexts]: https://github.com/scala/scala3/blob/master/compiler/src/dotty/tools/dotc/core/Contexts.scala +[typer]: https://github.com/scala/scala3/blob/master/compiler/src/dotty/tools/dotc/typer/TyperPhase.scala +[erasure]: https://github.com/scala/scala3/blob/master/compiler/src/dotty/tools/dotc/transform/Erasure.scala diff --git a/docs/_docs/contributing/architecture/types.md b/docs/_docs/contributing/architecture/types.md index 2dfdc33101a0..ed8995c08643 100644 --- a/docs/_docs/contributing/architecture/types.md +++ b/docs/_docs/contributing/architecture/types.md @@ -143,5 +143,5 @@ Type -+- proxy_type --+- NamedType --------+- TypeRef ``` -[Types.scala]: https://github.com/lampepfl/dotty/blob/master/compiler/src/dotty/tools/dotc/core/Types.scala -[DottyTypeStealer]: https://github.com/lampepfl/dotty/blob/master/compiler/test/dotty/tools/DottyTypeStealer.scala +[Types.scala]: https://github.com/scala/scala3/blob/master/compiler/src/dotty/tools/dotc/core/Types.scala +[DottyTypeStealer]: https://github.com/scala/scala3/blob/master/compiler/test/dotty/tools/DottyTypeStealer.scala diff --git a/docs/_docs/contributing/community-build.md b/docs/_docs/contributing/community-build.md index b382786c614e..e333e4985e36 100644 --- a/docs/_docs/contributing/community-build.md +++ b/docs/_docs/contributing/community-build.md @@ -32,14 +32,14 @@ project to the community build you can follow these steps: check out the [Scala 3 Migration Guide](https://docs.scala-lang.org/scala3/guides/migration/compatibility-intro.html). You can see the submodules in - [community-projects](https://github.com/lampepfl/dotty/tree/main/community-build/community-projects/) + [community-projects](https://github.com/scala/scala3/tree/main/community-build/community-projects/) for examples of projects that compile with Scala 3. 2. Open a PR against this repo that: - Adds your project as a new git submodule - `git submodule add https://github.com/dotty-staging/XYZ.git community-build/community-projects/XYZ` - - Add the project to [projects.scala](https://github.com/lampepfl/dotty/blob/main/community-build/src/scala/dotty/communitybuild/projects.scala) - - Adds a test in [CommunityBuildTest.scala](https://github.com/lampepfl/dotty/blob/main/community-build/test/scala/dotty/communitybuild/CommunityBuildTest.scala) + - Add the project to [projects.scala](https://github.com/scala/scala3/blob/main/community-build/src/scala/dotty/communitybuild/projects.scala) + - Adds a test in [CommunityBuildTest.scala](https://github.com/scala/scala3/blob/main/community-build/test/scala/dotty/communitybuild/CommunityBuildTest.scala) 3. Once the CI is green, someone from the Dotty team will fork your repo and add it to [dotty-staging](https://github.com/dotty-staging). This enables us to diff --git a/docs/_docs/contributing/debugging/ide-debugging.md b/docs/_docs/contributing/debugging/ide-debugging.md index af817826565a..8548235672af 100644 --- a/docs/_docs/contributing/debugging/ide-debugging.md +++ b/docs/_docs/contributing/debugging/ide-debugging.md @@ -74,7 +74,7 @@ To locate them on your filesystem you can run the `export scala3-library-bootstr ``` $ sbt > export scala3-library-bootstrapped/fullClasspath -/home/user/lampepfl/dotty/out/bootstrap/scala3-library-bootstrapped/scala-3.3.1-RC1-bin-SNAPSHOT-nonbootstrapped/classes:/home/user/.cache/coursier/v1/https/repo1.maven.org/maven2/org/scala-lang/scala-library/2.13.10/scala-library-2.13.10.jar +/home/user/scala/scala3/out/bootstrap/scala3-library-bootstrapped/scala-3.3.1-RC1-bin-SNAPSHOT-nonbootstrapped/classes:/home/user/.cache/coursier/v1/https/repo1.maven.org/maven2/org/scala-lang/scala-library/2.13.10/scala-library-2.13.10.jar [success] Total time: 1 s, completed Mar 10, 2023, 4:37:43 PM ``` @@ -93,7 +93,7 @@ Here is the final configuration: "../tests/pos/HelloWorld.scala", "-classpath", // To replace with your own paths - "/home/user/lampepfl/dotty/out/bootstrap/scala3-library-bootstrapped/scala-3.3.1-RC1-bin-SNAPSHOT-nonbootstrapped/classes:/home/user/.cache/coursier/v1/https/repo1.maven.org/maven2/org/scala-lang/scala-library/2.13.10/scala-library-2.13.10.jar", + "/home/user/scala/scala3/out/bootstrap/scala3-library-bootstrapped/scala-3.3.1-RC1-bin-SNAPSHOT-nonbootstrapped/classes:/home/user/.cache/coursier/v1/https/repo1.maven.org/maven2/org/scala-lang/scala-library/2.13.10/scala-library-2.13.10.jar", "-color", "never" ], @@ -112,7 +112,7 @@ You can compile more than one Scala file, by adding them in the `args`: "file1.scala", "file2.scala", "-classpath", - "/home/user/lampepfl/dotty/out/bootstrap/scala3-library-bootstrapped/scala-3.3.1-RC1-bin-SNAPSHOT-nonbootstrapped/classes:/home/user/.cache/coursier/v1/https/repo1.maven.org/maven2/org/scala-lang/scala-library/2.13.10/scala-library-2.13.10.jar" + "/home/user/scala/scala3/out/bootstrap/scala3-library-bootstrapped/scala-3.3.1-RC1-bin-SNAPSHOT-nonbootstrapped/classes:/home/user/.cache/coursier/v1/https/repo1.maven.org/maven2/org/scala-lang/scala-library/2.13.10/scala-library-2.13.10.jar" ] ``` @@ -132,7 +132,7 @@ And concatenate the output into the classpath argument, which should already con "args": [ "using-cats.scala", "-classpath", - "/home/user/lampepfl/dotty/out/bootstrap/scala3-library-bootstrapped/scala-3.3.1-RC1-bin-SNAPSHOT-nonbootstrapped/classes:/home/user/.cache/coursier/v1/https/repo1.maven.org/maven2/org/scala-lang/scala-library/2.13.10/scala-library-2.13.10.jar:/home/user/.cache/coursier/v1/https/repo1.maven.org/maven2/org/typelevel/cats-core_3/2.9.0/cats-core_3-2.9.0.jar:/home/user/.cache/coursier/v1/https/repo1.maven.org/maven2/org/typelevel/cats-kernel_3/2.9.0/cats-kernel_3-2.9.0.jar" + "/home/user/scala/scala3/out/bootstrap/scala3-library-bootstrapped/scala-3.3.1-RC1-bin-SNAPSHOT-nonbootstrapped/classes:/home/user/.cache/coursier/v1/https/repo1.maven.org/maven2/org/scala-lang/scala-library/2.13.10/scala-library-2.13.10.jar:/home/user/.cache/coursier/v1/https/repo1.maven.org/maven2/org/typelevel/cats-core_3/2.9.0/cats-core_3-2.9.0.jar:/home/user/.cache/coursier/v1/https/repo1.maven.org/maven2/org/typelevel/cats-kernel_3/2.9.0/cats-kernel_3-2.9.0.jar" ] ``` diff --git a/docs/_docs/contributing/debugging/inspection.md b/docs/_docs/contributing/debugging/inspection.md index a80c3d3462ae..7cb1fa68abff 100644 --- a/docs/_docs/contributing/debugging/inspection.md +++ b/docs/_docs/contributing/debugging/inspection.md @@ -181,6 +181,6 @@ class StealBox: assert(empty.name.toString == "") ``` -[DottyTypeStealer]: https://github.com/lampepfl/dotty/blob/master/compiler/test/dotty/tools/DottyTypeStealer.scala -[ScalaSettings]: https://github.com/lampepfl/dotty/blob/master/compiler/src/dotty/tools/dotc/config/ScalaSettings.scala -[symbols]: https://github.com/lampepfl/dotty/blob/master/compiler/src/dotty/tools/dotc/core/SymDenotations.scala +[DottyTypeStealer]: https://github.com/scala/scala3/blob/master/compiler/test/dotty/tools/DottyTypeStealer.scala +[ScalaSettings]: https://github.com/scala/scala3/blob/master/compiler/src/dotty/tools/dotc/config/ScalaSettings.scala +[symbols]: https://github.com/scala/scala3/blob/master/compiler/src/dotty/tools/dotc/core/SymDenotations.scala diff --git a/docs/_docs/contributing/debugging/other-debugging.md b/docs/_docs/contributing/debugging/other-debugging.md index 50be43db51ab..e8b72bcca656 100644 --- a/docs/_docs/contributing/debugging/other-debugging.md +++ b/docs/_docs/contributing/debugging/other-debugging.md @@ -152,7 +152,7 @@ To print out the trees after all phases: scalac -Xprint:all ../issues/Playground.scala ``` -To find out the list of all the phases and their names, check out [this](https://github.com/lampepfl/dotty/blob/10526a7d0aa8910729b6036ee51942e05b71abf6/compiler/src/dotty/tools/dotc/Compiler.scala#L34) line in `Compiler.scala`. Each `Phase` object has `phaseName` defined on it, this is the phase name. +To find out the list of all the phases and their names, check out [this](https://github.com/scala/scala3/blob/10526a7d0aa8910729b6036ee51942e05b71abf6/compiler/src/dotty/tools/dotc/Compiler.scala#L34) line in `Compiler.scala`. Each `Phase` object has `phaseName` defined on it, this is the phase name. ## Printing out stack traces of compile time errors You can use the flag `-Ydebug-error` to get the stack trace of all the compile-time errors. Consider the following file: @@ -207,7 +207,7 @@ val YshowVarBounds = BooleanSetting("-Yshow-var-bounds" , "Print type varia val YtestPickler = BooleanSetting("-Ytest-pickler" , "self-test for pickling functionality; should be used with -Ystop-after:pickler") ``` -They are defined in [ScalaSettings.scala](https://github.com/lampepfl/dotty/blob/main/compiler/src/dotty/tools/dotc/config/ScalaSettings.scala). E.g. `YprintPos` is defined as: +They are defined in [ScalaSettings.scala](https://github.com/scala/scala3/blob/main/compiler/src/dotty/tools/dotc/config/ScalaSettings.scala). E.g. `YprintPos` is defined as: ```scala val YprintPos: Setting[Boolean] = BooleanSetting("-Yprint-pos", "show tree positions.") @@ -244,7 +244,7 @@ package @ { ### Figuring out an object creation site #### Via ID -Every [Positioned](https://github.com/lampepfl/dotty/blob/10526a7d0aa8910729b6036ee51942e05b71abf6/compiler/src/dotty/tools/dotc/ast/Positioned.scala) (a parent class of `Tree`) object has a `uniqueId` field. It is an integer that is unique for that tree and doesn't change from compile run to compile run. You can output these IDs from any printer (such as the ones used by `.show` and `-Xprint`) via `-Yshow-tree-ids` flag, e.g.: +Every [Positioned](https://github.com/scala/scala3/blob/10526a7d0aa8910729b6036ee51942e05b71abf6/compiler/src/dotty/tools/dotc/ast/Positioned.scala) (a parent class of `Tree`) object has a `uniqueId` field. It is an integer that is unique for that tree and doesn't change from compile run to compile run. You can output these IDs from any printer (such as the ones used by `.show` and `-Xprint`) via `-Yshow-tree-ids` flag, e.g.: ```shell scalac -Xprint:typer -Yshow-tree-ids ../issues/Playground.scala @@ -355,7 +355,7 @@ if (tree.show == """println("Hello World")""") { } ``` -In other words, you have a reference to the object and want to know were it was created. To do so, go to the class definition of that object. In our case, `tree` is a [`Tree`](https://github.com/lampepfl/dotty/blob/10526a7d0aa8910729b6036ee51942e05b71abf6/compiler/src/dotty/tools/dotc/ast/Trees.scala#L52). Now, create a new `val` member of that type: +In other words, you have a reference to the object and want to know were it was created. To do so, go to the class definition of that object. In our case, `tree` is a [`Tree`](https://github.com/scala/scala3/blob/10526a7d0aa8910729b6036ee51942e05b71abf6/compiler/src/dotty/tools/dotc/ast/Trees.scala#L52). Now, create a new `val` member of that type: ```scala val tracer = Thread.currentThread.getStackTrace.mkString("\n") @@ -380,7 +380,7 @@ Dotty has a lot of debug calls scattered throughout the code, most of which are These do not follow any particular system and so probably it will be easier to go with `println` most of the times instead. #### Printers -Defined in [Printers.scala](https://github.com/lampepfl/dotty/blob/10526a7d0aa8910729b6036ee51942e05b71abf6/compiler/src/dotty/tools/dotc/config/Printers.scala) as a set of variables, each responsible for its own domain. To enable them, replace `noPrinter` with `default`. [Example](https://github.com/lampepfl/dotty/blob/10526a7d0aa8910729b6036ee51942e05b71abf6/compiler/src/dotty/tools/dotc/typer/Typer.scala#L2226) from the code: +Defined in [Printers.scala](https://github.com/scala/scala3/blob/10526a7d0aa8910729b6036ee51942e05b71abf6/compiler/src/dotty/tools/dotc/config/Printers.scala) as a set of variables, each responsible for its own domain. To enable them, replace `noPrinter` with `default`. [Example](https://github.com/scala/scala3/blob/10526a7d0aa8910729b6036ee51942e05b71abf6/compiler/src/dotty/tools/dotc/typer/Typer.scala#L2226) from the code: ```scala typr.println(i"make contextual function $tree / $pt ---> $ifun") @@ -389,13 +389,13 @@ typr.println(i"make contextual function $tree / $pt ---> $ifun") `typr` is a printer. #### Tracing -Defined in [trace.scala](https://github.com/lampepfl/dotty/blob/10526a7d0aa8910729b6036ee51942e05b71abf6/compiler/src/dotty/tools/dotc/reporting/trace.scala). [Example](https://github.com/lampepfl/dotty/blob/10526a7d0aa8910729b6036ee51942e05b71abf6/compiler/src/dotty/tools/dotc/typer/Typer.scala#L2232) from the code: +Defined in [trace.scala](https://github.com/scala/scala3/blob/10526a7d0aa8910729b6036ee51942e05b71abf6/compiler/src/dotty/tools/dotc/reporting/trace.scala). [Example](https://github.com/scala/scala3/blob/10526a7d0aa8910729b6036ee51942e05b71abf6/compiler/src/dotty/tools/dotc/typer/Typer.scala#L2232) from the code: ```scala trace(i"typing $tree", typr, show = true) { // ... ``` -To enable globally, change [tracingEnabled](https://github.com/lampepfl/dotty/blob/10526a7d0aa8910729b6036ee51942e05b71abf6/compiler/src/dotty/tools/dotc/config/Config.scala#L164) to `true` (will recompile a lot of code). +To enable globally, change [tracingEnabled](https://github.com/scala/scala3/blob/10526a7d0aa8910729b6036ee51942e05b71abf6/compiler/src/dotty/tools/dotc/config/Config.scala#L164) to `true` (will recompile a lot of code). You also need to set the printer referenced in the call (in the example, `typr`) to `default` as explained in the section on printers. @@ -406,4 +406,4 @@ trace.force(i"typing $tree", typr, show = true) { // ... ``` #### Reporter -Defined in [Reporter.scala](https://github.com/lampepfl/dotty/blob/10526a7d0aa8910729b6036ee51942e05b71abf6/compiler/src/dotty/tools/dotc/reporting/Reporter.scala). Enables calls such as `report.log`. To enable, run scalac with `-Ylog:typer` option. +Defined in [Reporter.scala](https://github.com/scala/scala3/blob/10526a7d0aa8910729b6036ee51942e05b71abf6/compiler/src/dotty/tools/dotc/reporting/Reporter.scala). Enables calls such as `report.log`. To enable, run scalac with `-Ylog:typer` option. diff --git a/docs/_docs/contributing/getting-started.md b/docs/_docs/contributing/getting-started.md index 938e7ff36d42..63e968902600 100644 --- a/docs/_docs/contributing/getting-started.md +++ b/docs/_docs/contributing/getting-started.md @@ -127,7 +127,7 @@ For more information, see the [scaladoc section](./scaladoc.md). ## Community The main development discussion channels are: -- [github.com/lampepfl/dotty/discussions](https://github.com/lampepfl/dotty/discussions) +- [github.com/scala/scala3/discussions](https://github.com/scala/scala3/discussions) - [contributors.scala-lang.org](https://contributors.scala-lang.org) - [gitter.im/scala/contributors](https://gitter.im/scala/contributors) @@ -141,5 +141,5 @@ The main development discussion channels are: [adopt]: https://adoptopenjdk.net/ [compat]: https://docs.scala-lang.org/overviews/jdk-compatibility/overview.html [scala-cla]: https://www.lightbend.com/contribute/cla/scala -[dotty-issue]: https://github.com/lampepfl/dotty/issues -[dotty-discussion]: https://github.com/lampepfl/dotty/discussions +[dotty-issue]: https://github.com/scala/scala3/issues +[dotty-discussion]: https://github.com/scala/scala3/discussions diff --git a/docs/_docs/contributing/index.md b/docs/_docs/contributing/index.md index 507149340941..965847e39a94 100644 --- a/docs/_docs/contributing/index.md +++ b/docs/_docs/contributing/index.md @@ -12,9 +12,9 @@ also documents the inner workings of the Scala 3 compiler, `dotc`. Keep in mind that the code for `dotc` is continually changing, so the ideas discussed in this guide may fall out of date. This is a living document, so please consider contributing to it on -[GitHub](https://github.com/lampepfl/dotty/tree/main/docs/_docs/contributing) if +[GitHub](https://github.com/scala/scala3/tree/main/docs/_docs/contributing) if you notice anything out of date, or report any issues -[here](https://github.com/lampepfl/dotty/issues). +[here](https://github.com/scala/scala3/issues). ### Get the most from This Guide diff --git a/docs/_docs/contributing/issues/areas.md b/docs/_docs/contributing/issues/areas.md index ce27e9c0a5aa..9206d608ffbb 100644 --- a/docs/_docs/contributing/issues/areas.md +++ b/docs/_docs/contributing/issues/areas.md @@ -55,17 +55,17 @@ See [Inliner]. #### Compiletime Ops Types See `tryCompiletimeConstantFold` in [Types]. -[Showable]: https://github.com/lampepfl/dotty/blob/master/compiler/src/dotty/tools/dotc/printing/Showable.scala -[PlainPrinter]: https://github.com/lampepfl/dotty/blob/master/compiler/src/dotty/tools/dotc/printing/PlainPrinter.scala -[RefinedPrinter]: https://github.com/lampepfl/dotty/blob/master/compiler/src/dotty/tools/dotc/printing/RefinedPrinter.scala -[ErrorMessageID]: https://github.com/lampepfl/dotty/blob/master/compiler/src/dotty/tools/dotc/reporting/ErrorMessageID.scala -[messages]: https://github.com/lampepfl/dotty/blob/master/compiler/src/dotty/tools/dotc/reporting/messages.scala -[Synthesizer]: https://github.com/lampepfl/dotty/blob/master/compiler/src/dotty/tools/dotc/typer/Synthesizer.scala -[SyntheticMembers]: https://github.com/lampepfl/dotty/blob/master/compiler/src/dotty/tools/dotc/transform/SyntheticMembers.scala -[quotes-impl]: https://github.com/lampepfl/dotty/tree/master/compiler/src/scala/quoted/runtime/impl -[Inliner]: https://github.com/lampepfl/dotty/blob/main/compiler/src/dotty/tools/dotc/inlines/Inliner.scala -[Types]: https://github.com/lampepfl/dotty/tree/master/compiler/src/dotty/tools/dotc/core/Types.scala -[Completion]: https://github.com/lampepfl/dotty/tree/master/compiler/src/dotty/tools/dotc/interactive/Completion.scala -[DesugarEnums]: https://github.com/lampepfl/dotty/blob/master/compiler/src/dotty/tools/dotc/ast/DesugarEnums.scala -[Desugar]: https://github.com/lampepfl/dotty/blob/master/compiler/src/dotty/tools/dotc/ast/Desugar.scala -[Space]: https://github.com/lampepfl/dotty/blob/master/compiler/src/dotty/tools/dotc/transform/patmat/Space.scala +[Showable]: https://github.com/scala/scala3/blob/master/compiler/src/dotty/tools/dotc/printing/Showable.scala +[PlainPrinter]: https://github.com/scala/scala3/blob/master/compiler/src/dotty/tools/dotc/printing/PlainPrinter.scala +[RefinedPrinter]: https://github.com/scala/scala3/blob/master/compiler/src/dotty/tools/dotc/printing/RefinedPrinter.scala +[ErrorMessageID]: https://github.com/scala/scala3/blob/master/compiler/src/dotty/tools/dotc/reporting/ErrorMessageID.scala +[messages]: https://github.com/scala/scala3/blob/master/compiler/src/dotty/tools/dotc/reporting/messages.scala +[Synthesizer]: https://github.com/scala/scala3/blob/master/compiler/src/dotty/tools/dotc/typer/Synthesizer.scala +[SyntheticMembers]: https://github.com/scala/scala3/blob/master/compiler/src/dotty/tools/dotc/transform/SyntheticMembers.scala +[quotes-impl]: https://github.com/scala/scala3/tree/master/compiler/src/scala/quoted/runtime/impl +[Inliner]: https://github.com/scala/scala3/blob/main/compiler/src/dotty/tools/dotc/inlines/Inliner.scala +[Types]: https://github.com/scala/scala3/tree/master/compiler/src/dotty/tools/dotc/core/Types.scala +[Completion]: https://github.com/scala/scala3/tree/master/compiler/src/dotty/tools/dotc/interactive/Completion.scala +[DesugarEnums]: https://github.com/scala/scala3/blob/master/compiler/src/dotty/tools/dotc/ast/DesugarEnums.scala +[Desugar]: https://github.com/scala/scala3/blob/master/compiler/src/dotty/tools/dotc/ast/Desugar.scala +[Space]: https://github.com/scala/scala3/blob/master/compiler/src/dotty/tools/dotc/transform/patmat/Space.scala diff --git a/docs/_docs/contributing/issues/cause.md b/docs/_docs/contributing/issues/cause.md index e23f6d1f747f..f96d3b6d2f8a 100644 --- a/docs/_docs/contributing/issues/cause.md +++ b/docs/_docs/contributing/issues/cause.md @@ -116,7 +116,7 @@ def myInfo: Type = myInfo_debug, def myInfo_=(x: Type) = { tracer = Thread.currentThread.getStackTrace.mkString("\n"); myInfo_debug = x } ``` -[Printers]: https://github.com/lampepfl/dotty/blob/master/compiler/src/dotty/tools/dotc/config/Printers.scala -[Denotation]: https://github.com/lampepfl/dotty/blob/master/compiler/src/dotty/tools/dotc/core/Denotations.scala -[PostTyper]: https://github.com/lampepfl/dotty/blob/master/compiler/src/dotty/tools/dotc/transform/PostTyper.scala -[ScalaSettings]: https://github.com/lampepfl/dotty/blob/master/compiler/src/dotty/tools/dotc/config/ScalaSettings.scala +[Printers]: https://github.com/scala/scala3/blob/master/compiler/src/dotty/tools/dotc/config/Printers.scala +[Denotation]: https://github.com/scala/scala3/blob/master/compiler/src/dotty/tools/dotc/core/Denotations.scala +[PostTyper]: https://github.com/scala/scala3/blob/master/compiler/src/dotty/tools/dotc/transform/PostTyper.scala +[ScalaSettings]: https://github.com/scala/scala3/blob/master/compiler/src/dotty/tools/dotc/config/ScalaSettings.scala diff --git a/docs/_docs/contributing/issues/reproduce.md b/docs/_docs/contributing/issues/reproduce.md index ca5da324a867..ae031a44d76f 100644 --- a/docs/_docs/contributing/issues/reproduce.md +++ b/docs/_docs/contributing/issues/reproduce.md @@ -159,7 +159,7 @@ scala -classpath $here/out Test # Run main method of `Test` generated by the co In this section, you have seen how to reproduce an issue locally, and next you will see how to try and detect its root cause. -[lampepfl/dotty]: https://github.com/lampepfl/dotty/issues -[#7710]: https://github.com/lampepfl/dotty/issues/7710 +[lampepfl/dotty]: https://github.com/scala/scala3/issues +[#7710]: https://github.com/scala/scala3/issues/7710 [dotty-issue-workspace]: https://github.com/anatoliykmetyuk/dotty-issue-workspace [workspace-readme]: https://github.com/anatoliykmetyuk/dotty-issue-workspace#getting-started diff --git a/docs/_docs/contributing/procedures/release.md b/docs/_docs/contributing/procedures/release.md index c54bb637aff5..88e1beb1b93b 100644 --- a/docs/_docs/contributing/procedures/release.md +++ b/docs/_docs/contributing/procedures/release.md @@ -28,7 +28,7 @@ Say we want to release the 0.14.0 version. In this section we describe the proce CI is set to automatically detect the tags of the format discussed above and perform the required release operations. Precisely, it will do two things for the release tags: - Publish the release jars to Maven -- Create the drafts at the GitHub [release](https://github.com/lampepfl/dotty/releases) page of the repository with the artefacts of the release. +- Create the drafts at the GitHub [release](https://github.com/scala/scala3/releases) page of the repository with the artefacts of the release. The CI operation is entirely automatic provided you have tagged the release correctly. No need to do anything here. @@ -50,11 +50,11 @@ However, you may end up with as many as 6 tasks being run. The auxiliary tasks m ### Release Procedure Checklist Before we start the release procedure, we create an issue with a release checklist. As we go through the release, we update the checklist. To generate the checklist, run the following command: -`bash <(curl -sL https://raw.githubusercontent.com/lampepfl/dotty/main/docs/docs/contributing/checklist.sh) ` +`bash <(curl -sL https://raw.githubusercontent.com/scala/scala3/main/docs/docs/contributing/checklist.sh) ` Above, `` is the stable version being released. For example, if you are releasing `0.14.0` and `0.15.0-RC1`, this variable is `14` and the command is as follows: -`bash <(curl -sL https://raw.githubusercontent.com/lampepfl/dotty/main/docs/docs/contributing/checklist.sh) 14` +`bash <(curl -sL https://raw.githubusercontent.com/scala/scala3/main/docs/docs/contributing/checklist.sh) 14` Copy and paste the output into the release issue. @@ -73,10 +73,10 @@ After the release is done, we document it as follows: During the release process we ensure that various parts of the community are also prepared for the new version of Scala so that users can hit the ground running when the new release is announced. You can see an example of this -[here](https://github.com/lampepfl/dotty/issues/17559). +[here](https://github.com/scala/scala3/issues/17559). # Procedure in Bash Scripts -The below procedure is compiled from [this](https://github.com/lampepfl/dotty/issues/5907#issue-409313505) and [this](https://github.com/lampepfl/dotty/issues/6235#issue-429265748) checklists. It assumes we want to publish the `0.14.0` given the `0.14.0-RC1` release candidate. +The below procedure is compiled from [this](https://github.com/scala/scala3/issues/5907#issue-409313505) and [this](https://github.com/scala/scala3/issues/6235#issue-429265748) checklists. It assumes we want to publish the `0.14.0` given the `0.14.0-RC1` release candidate. Note that at the same time we will also publish the `0.15.0-RC1` release. We publish two releases at the same time as per the logic outlined at the [Example/At the Dotty Repo](#at-the-dotty-repo) and the [Model](#model) sections above: the step (5) in the algorithm outlined in the [Example](#at-the-dotty-repo) for the release cycle of `0.14.0` is the step (1) in the release cycle of `0.15.0`. @@ -101,7 +101,7 @@ git merge 0.14.x git push origin main ######## Publish the 0.15.0-RC1 unstable version – begin the release cycle for 0.15.0 ######## -# Move all the unfinished tasks from Milestone 15 to Milestone 16 on GitHub – see https://github.com/lampepfl/dotty/milestones +# Move all the unfinished tasks from Milestone 15 to Milestone 16 on GitHub – see https://github.com/scala/scala3/milestones git checkout -b 0.15.x diff --git a/docs/_docs/contributing/sending-in-a-pr.md b/docs/_docs/contributing/sending-in-a-pr.md index c99e6a28172b..0c276e2c9287 100644 --- a/docs/_docs/contributing/sending-in-a-pr.md +++ b/docs/_docs/contributing/sending-in-a-pr.md @@ -104,7 +104,7 @@ every part of CI. For example, maybe you're just updating some documentation and there is no need to run the community build for this. We skip parts of the CI by utilizing keywords inside of brackets. The most up-to-date way to see this are by looking in the `if` statements of jobs. For example you can see some -[here](https://github.com/lampepfl/dotty/blob/5d2812a5937389f8a46f9e97ab9cbfbb3f298d87/.github/workflows/ci.yaml#L54-L64). +[here](https://github.com/scala/scala3/blob/5d2812a5937389f8a46f9e97ab9cbfbb3f298d87/.github/workflows/ci.yaml#L54-L64). Below are commonly used ones: @@ -160,8 +160,8 @@ you're PR will be merged in! [pull-request]: https://docs.github.com/en?query=pull+requests [lampepfl/dotty]: https://github.com/lampepfl/dotty [cla]: http://typesafe.com/contribute/cla/scala -[issues]: https://github.com/lampepfl/dotty/issues -[full-list]: https://github.com/lampepfl/dotty/blob/master/CONTRIBUTING.md +[issues]: https://github.com/scala/scala3/issues +[full-list]: https://github.com/scala/scala3/blob/master/CONTRIBUTING.md [discord]: https://discord.gg/TSmY9zkHar [dry]: https://www.oreilly.com/library/view/97-things-every/9780596809515/ch30.html [scouts]: https://www.oreilly.com/library/view/97-things-every/9780596809515/ch08.html diff --git a/docs/_docs/contributing/setting-up-your-ide.md b/docs/_docs/contributing/setting-up-your-ide.md index 3bb7d329d50c..a02c1dee63cb 100644 --- a/docs/_docs/contributing/setting-up-your-ide.md +++ b/docs/_docs/contributing/setting-up-your-ide.md @@ -34,7 +34,7 @@ want to make sure you do two things: 1. You'll want to find and change the following under `commonBootstrappedSettings` which is found in the - [`Build.scala`](https://github.com/lampepfl/dotty/blob/main/project/Build.scala) + [`Build.scala`](https://github.com/scala/scala3/blob/main/project/Build.scala) file. ```diff diff --git a/docs/_docs/contributing/testing.md b/docs/_docs/contributing/testing.md index 6c9ea7616e0b..9ea02f071cb6 100644 --- a/docs/_docs/contributing/testing.md +++ b/docs/_docs/contributing/testing.md @@ -251,7 +251,7 @@ can enter an inconsistent state and cause spurious test failures. If you suspect you can run `rm -rf out/*` from the root of the repository and run your tests again. If that fails, you can try `git clean -xfd`. -[CompilationTests]: https://github.com/lampepfl/dotty/blob/master/compiler/test/dotty/tools/dotc/CompilationTests.scala -[compiler/test]: https://github.com/lampepfl/dotty/blob/master/compiler/test/ -[compiler/test/dotc]: https://github.com/lampepfl/dotty/tree/master/compiler/test/dotc -[SemanticdbTests]: https://github.com/lampepfl/dotty/blob/master/compiler/test/dotty/tools/dotc/semanticdb/SemanticdbTests.scala +[CompilationTests]: https://github.com/scala/scala3/blob/master/compiler/test/dotty/tools/dotc/CompilationTests.scala +[compiler/test]: https://github.com/scala/scala3/blob/master/compiler/test/ +[compiler/test/dotc]: https://github.com/scala/scala3/tree/master/compiler/test/dotc +[SemanticdbTests]: https://github.com/scala/scala3/blob/master/compiler/test/dotty/tools/dotc/semanticdb/SemanticdbTests.scala diff --git a/docs/_docs/internals/coverage.md b/docs/_docs/internals/coverage.md index 162aa182a1e0..923908683721 100644 --- a/docs/_docs/internals/coverage.md +++ b/docs/_docs/internals/coverage.md @@ -5,7 +5,7 @@ title: "Code Coverage for Scala 3" ## Instrument code for coverage analysis -[PR#13880](https://github.com/lampepfl/dotty/pull/13880) has implemented code coverage support for Dotty. +[PR#13880](https://github.com/scala/scala3/pull/13880) has implemented code coverage support for Dotty. In general, code coverage "instruments" the program at compile time: code is inserted to record which statement are called. This does not change the behavior of the program. Also, a list of all the coverable statements is produced. To use this feature, add the compile option `-coverage-out:DIR`, where `DIR` is the destination of the measurement files. diff --git a/docs/_docs/internals/debug-macros.md b/docs/_docs/internals/debug-macros.md index 4d5cab52c568..a085ebbde355 100644 --- a/docs/_docs/internals/debug-macros.md +++ b/docs/_docs/internals/debug-macros.md @@ -34,7 +34,7 @@ the stack trace, we will be able to figure out where the tree is created. If the position is in the compiler, then either report a compiler bug or fix the problem with `.withSpan(tree.span)`. The following fix is an example: -- https://github.com/lampepfl/dotty/pull/6581 +- https://github.com/scala/scala3/pull/6581 ## unresolved symbols in pickling diff --git a/docs/_docs/internals/dotc-scalac.md b/docs/_docs/internals/dotc-scalac.md index 03baad375eb1..e5335c734891 100644 --- a/docs/_docs/internals/dotc-scalac.md +++ b/docs/_docs/internals/dotc-scalac.md @@ -133,6 +133,6 @@ if (sym is Flags.PackageClass) // Scala 3 (*) * `MethodType(paramSyms, resultType)` from scalac => `mt @ MethodType(paramNames, paramTypes)`. Result type is `mt.resultType` -[Denotations1]: https://github.com/lampepfl/dotty/blob/a527f3b1e49c0d48148ccfb2eb52e3302fc4a349/compiler/src/dotty/tools/dotc/core/Denotations.scala#L27-L72 -[Denotations2]: https://github.com/lampepfl/dotty/blob/a527f3b1e49c0d48148ccfb2eb52e3302fc4a349/compiler/src/dotty/tools/dotc/core/Denotations.scala#L77-L103 -[Signature1]: https://github.com/lampepfl/dotty/blob/a527f3b1e49c0d48148ccfb2eb52e3302fc4a349/compiler/src/dotty/tools/dotc/core/Signature.scala#L9-L33 +[Denotations1]: https://github.com/scala/scala3/blob/a527f3b1e49c0d48148ccfb2eb52e3302fc4a349/compiler/src/dotty/tools/dotc/core/Denotations.scala#L27-L72 +[Denotations2]: https://github.com/scala/scala3/blob/a527f3b1e49c0d48148ccfb2eb52e3302fc4a349/compiler/src/dotty/tools/dotc/core/Denotations.scala#L77-L103 +[Signature1]: https://github.com/scala/scala3/blob/a527f3b1e49c0d48148ccfb2eb52e3302fc4a349/compiler/src/dotty/tools/dotc/core/Signature.scala#L9-L33 diff --git a/docs/_docs/internals/overall-structure.md b/docs/_docs/internals/overall-structure.md index ab936ddd8512..a25c287e16c9 100644 --- a/docs/_docs/internals/overall-structure.md +++ b/docs/_docs/internals/overall-structure.md @@ -235,10 +235,10 @@ Phases fall into four categories: * Code generators: These map the transformed trees to Java classfiles or .sjsir files. -[dotty.tools]: https://github.com/lampepfl/dotty/tree/main/compiler/src/dotty/tools -[dotc]: https://github.com/lampepfl/dotty/tree/main/compiler/src/dotty/tools/dotc -[Main]: https://github.com/lampepfl/dotty/blob/main/compiler/src/dotty/tools/dotc/Main.scala -[Driver]: https://github.com/lampepfl/dotty/blob/main/compiler/src/dotty/tools/dotc/Driver.scala -[Compiler]: https://github.com/lampepfl/dotty/blob/main/compiler/src/dotty/tools/dotc/Compiler.scala -[Run]: https://github.com/lampepfl/dotty/blob/main/compiler/src/dotty/tools/dotc/Run.scala -[Context]: https://github.com/lampepfl/dotty/blob/main/compiler/src/dotty/tools/dotc/core/Contexts.scala +[dotty.tools]: https://github.com/scala/scala3/tree/main/compiler/src/dotty/tools +[dotc]: https://github.com/scala/scala3/tree/main/compiler/src/dotty/tools/dotc +[Main]: https://github.com/scala/scala3/blob/main/compiler/src/dotty/tools/dotc/Main.scala +[Driver]: https://github.com/scala/scala3/blob/main/compiler/src/dotty/tools/dotc/Driver.scala +[Compiler]: https://github.com/scala/scala3/blob/main/compiler/src/dotty/tools/dotc/Compiler.scala +[Run]: https://github.com/scala/scala3/blob/main/compiler/src/dotty/tools/dotc/Run.scala +[Context]: https://github.com/scala/scala3/blob/main/compiler/src/dotty/tools/dotc/core/Contexts.scala diff --git a/docs/_docs/internals/periods.md b/docs/_docs/internals/periods.md index 46241da0bb17..bf9c4a5fe786 100644 --- a/docs/_docs/internals/periods.md +++ b/docs/_docs/internals/periods.md @@ -88,6 +88,6 @@ object Period { As a sentinel value there's `Nowhere`, a period that is empty. -[runs]: https://github.com/lampepfl/dotty/blob/a527f3b1e49c0d48148ccfb2eb52e3302fc4a349/compiler/src/dotty/tools/dotc/Run.scala -[phases]: https://github.com/lampepfl/dotty/blob/a527f3b1e49c0d48148ccfb2eb52e3302fc4a349/compiler/src/dotty/tools/dotc/core/Phases.scala -[period]: https://github.com/lampepfl/dotty/blob/a527f3b1e49c0d48148ccfb2eb52e3302fc4a349/compiler/src/dotty/tools/dotc/core/Periods.scala +[runs]: https://github.com/scala/scala3/blob/a527f3b1e49c0d48148ccfb2eb52e3302fc4a349/compiler/src/dotty/tools/dotc/Run.scala +[phases]: https://github.com/scala/scala3/blob/a527f3b1e49c0d48148ccfb2eb52e3302fc4a349/compiler/src/dotty/tools/dotc/core/Phases.scala +[period]: https://github.com/scala/scala3/blob/a527f3b1e49c0d48148ccfb2eb52e3302fc4a349/compiler/src/dotty/tools/dotc/core/Periods.scala diff --git a/docs/_docs/internals/type-system.md b/docs/_docs/internals/type-system.md index 8fa8912a7118..d2c0cd869e61 100644 --- a/docs/_docs/internals/type-system.md +++ b/docs/_docs/internals/type-system.md @@ -95,7 +95,7 @@ checks if `tp1` is a subtype of `tp2`. ### Type rebasing ### **FIXME**: This section is no longer accurate because -https://github.com/lampepfl/dotty/pull/331 changed the handling of refined +https://github.com/scala/scala3/pull/331 changed the handling of refined types. Consider [tests/pos/refinedSubtyping.scala][5] @@ -132,8 +132,8 @@ TODO ## Type inference via constraint solving ## TODO -[1]: https://github.com/lampepfl/dotty/blob/main/compiler/src/dotty/tools/dotc/core/Types.scala +[1]: https://github.com/scala/scala3/blob/main/compiler/src/dotty/tools/dotc/core/Types.scala [2]: https://github.com/samuelgruetter/dotty/blob/classdiagrampdf/dotty-types.pdf [3]: https://github.com/samuelgruetter/scaladiagrams/tree/print-descendants -[4]: https://github.com/lampepfl/dotty/blob/main/compiler/src/dotty/tools/dotc/core/TypeComparer.scala -[5]: https://github.com/lampepfl/dotty/blob/main/tests/pos/refinedSubtyping.scala +[4]: https://github.com/scala/scala3/blob/main/compiler/src/dotty/tools/dotc/core/TypeComparer.scala +[5]: https://github.com/scala/scala3/blob/main/tests/pos/refinedSubtyping.scala diff --git a/docs/_docs/reference/changed-features/eta-expansion-spec.md b/docs/_docs/reference/changed-features/eta-expansion-spec.md index 714ab37ae11a..516764ef5370 100644 --- a/docs/_docs/reference/changed-features/eta-expansion-spec.md +++ b/docs/_docs/reference/changed-features/eta-expansion-spec.md @@ -74,4 +74,4 @@ The method value syntax `m _` is deprecated. ## Reference -For more information, see [PR #2701](https://github.com/lampepfl/dotty/pull/2701). +For more information, see [PR #2701](https://github.com/scala/scala3/pull/2701). diff --git a/docs/_docs/reference/changed-features/implicit-conversions-spec.md b/docs/_docs/reference/changed-features/implicit-conversions-spec.md index dc19e10c8b8f..a70321b70c15 100644 --- a/docs/_docs/reference/changed-features/implicit-conversions-spec.md +++ b/docs/_docs/reference/changed-features/implicit-conversions-spec.md @@ -114,4 +114,4 @@ changes to implicit resolution, refer to the [Changes in Implicit Resolution](im ## Reference For more information about implicit resolution, see [Changes in Implicit Resolution](implicit-resolution.md). -Other details are available in [PR #2065](https://github.com/lampepfl/dotty/pull/2065). +Other details are available in [PR #2065](https://github.com/scala/scala3/pull/2065). diff --git a/docs/_docs/reference/changed-features/structural-types-spec.md b/docs/_docs/reference/changed-features/structural-types-spec.md index 18d0f31ee6fe..216b738ae61c 100644 --- a/docs/_docs/reference/changed-features/structural-types-spec.md +++ b/docs/_docs/reference/changed-features/structural-types-spec.md @@ -16,7 +16,7 @@ RefineStat ::= ‘val’ VarDcl | ‘def’ DefDcl | ‘type’ {nl} TypeDcl ## Implementation of Structural Types The standard library defines a universal marker trait -[`scala.Selectable`](https://github.com/lampepfl/dotty/blob/main/library/src/scala/Selectable.scala): +[`scala.Selectable`](https://github.com/scala/scala3/blob/main/library/src/scala/Selectable.scala): ```scala trait Selectable extends Any @@ -150,4 +150,4 @@ conversion that can turn `v` into a `Selectable`, and the selection methods coul ## Context -For more information, see [Rethink Structural Types](https://github.com/lampepfl/dotty/issues/1886). +For more information, see [Rethink Structural Types](https://github.com/scala/scala3/issues/1886). diff --git a/docs/_docs/reference/contextual/by-name-context-parameters.md b/docs/_docs/reference/contextual/by-name-context-parameters.md index 3515efd78fa5..7c517abe9406 100644 --- a/docs/_docs/reference/contextual/by-name-context-parameters.md +++ b/docs/_docs/reference/contextual/by-name-context-parameters.md @@ -61,5 +61,5 @@ No local given instance was generated because the synthesized argument is not re ## Reference -For more information, see [Issue #1998](https://github.com/lampepfl/dotty/issues/1998) +For more information, see [Issue #1998](https://github.com/scala/scala3/issues/1998) and the associated [Scala SIP](https://docs.scala-lang.org/sips/byname-implicits.html). diff --git a/docs/_docs/reference/contextual/multiversal-equality.md b/docs/_docs/reference/contextual/multiversal-equality.md index b51d03b10963..6258973c0cda 100644 --- a/docs/_docs/reference/contextual/multiversal-equality.md +++ b/docs/_docs/reference/contextual/multiversal-equality.md @@ -25,7 +25,7 @@ the program will still typecheck, since values of all types can be compared with But it will probably give unexpected results and fail at runtime. Multiversal equality is an opt-in way to make universal equality safer. -It uses a binary type class [`scala.CanEqual`](https://github.com/lampepfl/dotty/blob/main/library/src/scala/CanEqual.scala) +It uses a binary type class [`scala.CanEqual`](https://github.com/scala/scala3/blob/main/library/src/scala/CanEqual.scala) to indicate that values of two given types can be compared with each other. The example above would not typecheck if `S` or `T` was a class that derives `CanEqual`, e.g. @@ -71,7 +71,7 @@ given CanEqual[A, B] = CanEqual.derived given CanEqual[B, A] = CanEqual.derived ``` -The [`scala.CanEqual`](https://github.com/lampepfl/dotty/blob/main/library/src/scala/CanEqual.scala) +The [`scala.CanEqual`](https://github.com/scala/scala3/blob/main/library/src/scala/CanEqual.scala) object defines a number of `CanEqual` given instances that together define a rule book for what standard types can be compared (more details below). @@ -225,4 +225,4 @@ work under `-language:strictEquality`, since otherwise the universal `Eq[Any]` i More on multiversal equality is found in a [blog post](http://www.scala-lang.org/blog/2016/05/06/multiversal-equality.html) -and a [GitHub issue](https://github.com/lampepfl/dotty/issues/1247). +and a [GitHub issue](https://github.com/scala/scala3/issues/1247). diff --git a/docs/_docs/reference/dropped-features/auto-apply.md b/docs/_docs/reference/dropped-features/auto-apply.md index eadfe2f429ea..1a809275d4d0 100644 --- a/docs/_docs/reference/dropped-features/auto-apply.md +++ b/docs/_docs/reference/dropped-features/auto-apply.md @@ -93,4 +93,4 @@ stricter checking. ## Reference -For more information, see [Issue #2570](https://github.com/lampepfl/dotty/issues/2570) and [PR #2716](https://github.com/lampepfl/dotty/pull/2716). +For more information, see [Issue #2570](https://github.com/scala/scala3/issues/2570) and [PR #2716](https://github.com/scala/scala3/pull/2716). diff --git a/docs/_docs/reference/dropped-features/type-projection.md b/docs/_docs/reference/dropped-features/type-projection.md index 08b5ffb34eca..2c3e82ce99b8 100644 --- a/docs/_docs/reference/dropped-features/type-projection.md +++ b/docs/_docs/reference/dropped-features/type-projection.md @@ -9,7 +9,7 @@ and `A` names a type member of `T`. Scala 3 disallows this if `T` is an abstract type (class types and type aliases are fine). This change was made because unrestricted type projection -is [unsound](https://github.com/lampepfl/dotty/issues/1050). +is [unsound](https://github.com/scala/scala3/issues/1050). This restriction rules out the [type-level encoding of a combinator calculus](https://michid.wordpress.com/2010/01/29/scala-type-level-encoding-of-the-ski-calculus/). diff --git a/docs/_docs/reference/enums/adts.md b/docs/_docs/reference/enums/adts.md index 5219e062a633..36dd1daf0b59 100644 --- a/docs/_docs/reference/enums/adts.md +++ b/docs/_docs/reference/enums/adts.md @@ -170,4 +170,4 @@ The changes are specified below as deltas with respect to the Scala syntax given ## Reference -For more information, see [Issue #1970](https://github.com/lampepfl/dotty/issues/1970). +For more information, see [Issue #1970](https://github.com/scala/scala3/issues/1970). diff --git a/docs/_docs/reference/enums/enums.md b/docs/_docs/reference/enums/enums.md index 65051bdfb39f..8d4fca3268b0 100644 --- a/docs/_docs/reference/enums/enums.md +++ b/docs/_docs/reference/enums/enums.md @@ -180,7 +180,7 @@ scala> Color.Red.compareTo(Color.Green) val res15: Int = -1 ``` -For a more in-depth example of using Scala 3 enums from Java, see [this test](https://github.com/lampepfl/dotty/tree/main/tests/run/enum-java). In the test, the enums are defined in the `MainScala.scala` file and used from a Java source, `Test.java`. +For a more in-depth example of using Scala 3 enums from Java, see [this test](https://github.com/scala/scala3/tree/main/tests/run/enum-java). In the test, the enums are defined in the `MainScala.scala` file and used from a Java source, `Test.java`. ## Implementation @@ -218,5 +218,5 @@ val Red: Color = $new(0, "Red") ## Reference -For more information, see [Issue #1970](https://github.com/lampepfl/dotty/issues/1970) and -[PR #4003](https://github.com/lampepfl/dotty/pull/4003). +For more information, see [Issue #1970](https://github.com/scala/scala3/issues/1970) and +[PR #4003](https://github.com/scala/scala3/pull/4003). diff --git a/docs/_docs/reference/experimental/explicit-nulls.md b/docs/_docs/reference/experimental/explicit-nulls.md index 47b21d3a5e23..1925b0b3c925 100644 --- a/docs/_docs/reference/experimental/explicit-nulls.md +++ b/docs/_docs/reference/experimental/explicit-nulls.md @@ -431,7 +431,7 @@ When dealing with local mutable variables, there are two questions: x = null ``` -See [more examples](https://github.com/lampepfl/dotty/blob/main/tests/explicit-nulls/neg/flow-varref-in-closure.scala). +See [more examples](https://github.com/scala/scala3/blob/main/tests/explicit-nulls/neg/flow-varref-in-closure.scala). Currently, we are unable to track paths with a mutable variable prefix. For example, `x.a` if `x` is mutable. diff --git a/docs/_docs/reference/experimental/tupled-function.md b/docs/_docs/reference/experimental/tupled-function.md index 0cc016953a80..de683128fb0c 100644 --- a/docs/_docs/reference/experimental/tupled-function.md +++ b/docs/_docs/reference/experimental/tupled-function.md @@ -35,7 +35,7 @@ The compiler will synthesize an instance of `TupledFunction[F, G]` if: Examples -------- `TupledFunction` can be used to generalize the `Function1.tupled`, ... `Function22.tupled` methods to functions of any arities. -The following defines `tupled` as [extension method](../contextual/extension-methods.html) ([full example](https://github.com/lampepfl/dotty/blob/main/tests/run/tupled-function-tupled.scala)). +The following defines `tupled` as [extension method](../contextual/extension-methods.html) ([full example](https://github.com/scala/scala3/blob/main/tests/run/tupled-function-tupled.scala)). ```scala /** Creates a tupled version of this function: instead of N arguments, @@ -49,7 +49,7 @@ extension [F, Args <: Tuple, R](f: F) def tupled(using tf: TupledFunction[F, Args => R]): Args => R = tf.tupled(f) ``` -`TupledFunction` can be used to generalize the `Function.untupled` to a function of any arities ([full example](https://github.com/lampepfl/dotty/blob/main/tests/run/tupled-function-untupled.scala)) +`TupledFunction` can be used to generalize the `Function.untupled` to a function of any arities ([full example](https://github.com/scala/scala3/blob/main/tests/run/tupled-function-untupled.scala)) ```scala /** Creates an untupled version of this function: instead of a single argument of type [[scala.Tuple]] with N elements, @@ -65,7 +65,7 @@ extension [F, Args <: Tuple, R](f: Args => R) def untupled(using tf: TupledFunction[F, Args => R]): F = tf.untupled(f) ``` -`TupledFunction` can also be used to generalize the [`Tuple1.compose`](https://github.com/lampepfl/dotty/blob/main/tests/run/tupled-function-compose.scala) and [`Tuple1.andThen`](https://github.com/lampepfl/dotty/blob/main/tests/run/tupled-function-andThen.scala) methods to compose functions of larger arities and with functions that return tuples. +`TupledFunction` can also be used to generalize the [`Tuple1.compose`](https://github.com/scala/scala3/blob/main/tests/run/tupled-function-compose.scala) and [`Tuple1.andThen`](https://github.com/scala/scala3/blob/main/tests/run/tupled-function-andThen.scala) methods to compose functions of larger arities and with functions that return tuples. ```scala /** Composes two instances of TupledFunction into a new TupledFunction, with this function applied last. diff --git a/docs/_docs/reference/features-classification.md b/docs/_docs/reference/features-classification.md index 36cea3b9e72d..550130780b44 100644 --- a/docs/_docs/reference/features-classification.md +++ b/docs/_docs/reference/features-classification.md @@ -72,7 +72,7 @@ These constructs are restricted to make the language safer. - [Given Imports](contextual/given-imports.md): implicits now require a special form of import, to make the import clearly visible. - [Type Projection](dropped-features/type-projection.md): only classes can be used as prefix `C` of a type projection `C#A`. Type projection on abstract types is no longer supported since it is unsound. - [Multiversal equality](contextual/multiversal-equality.md) implements an "opt-in" scheme to rule out nonsensical comparisons with `==` and `!=`. - - [infix](https://github.com/lampepfl/dotty/pull/5975) + - [infix](https://github.com/scala/scala3/pull/5975) makes method application syntax uniform across code bases. Unrestricted implicit conversions continue to be available in Scala 3.0, but will be deprecated and removed later. Unrestricted versions of the other constructs in the list above are available only under `-source 3.0-migration`. @@ -100,7 +100,7 @@ These constructs are proposed to be dropped without a new construct replacing th - [Auto application](dropped-features/auto-apply.md), - [Weak conformance](dropped-features/weak-conformance.md), - [Compound types](new-types/intersection-types.md), - - [Auto tupling](https://github.com/lampepfl/dotty/pull/4311) (implemented, but not merged). + - [Auto tupling](https://github.com/scala/scala3/pull/4311) (implemented, but not merged). The date when these constructs are dropped varies. The current status is: @@ -148,7 +148,7 @@ These are additions to the language that make it more powerful or pleasant to us - [Enums](enums/enums.md) provide concise syntax for enumerations and [algebraic data types](enums/adts.md). - [Parameter untupling](other-new-features/parameter-untupling.md) avoids having to use `case` for tupled parameter destructuring. - [Dependent function types](new-types/dependent-function-types.md) generalize dependent methods to dependent function values and types. - - [Polymorphic function types](https://github.com/lampepfl/dotty/pull/4672) generalize polymorphic methods to dependent function values and types. _Current status_: There is a proposal, and a prototype implementation, but the implementation has not been finalized or merged yet. + - [Polymorphic function types](https://github.com/scala/scala3/pull/4672) generalize polymorphic methods to dependent function values and types. _Current status_: There is a proposal, and a prototype implementation, but the implementation has not been finalized or merged yet. - [Kind polymorphism](other-new-features/kind-polymorphism.md) allows the definition of operators working equally on types and type constructors. **Status: mixed** diff --git a/docs/_docs/reference/metaprogramming/compiletime-ops.md b/docs/_docs/reference/metaprogramming/compiletime-ops.md index 048c6b6165bb..dcefb3a16ed3 100644 --- a/docs/_docs/reference/metaprogramming/compiletime-ops.md +++ b/docs/_docs/reference/metaprogramming/compiletime-ops.md @@ -259,5 +259,5 @@ val notMissing : NotMissing = summonInlineCheck(3) ## Reference -For more information about compile-time operations, see [PR #4768](https://github.com/lampepfl/dotty/pull/4768), -which explains how `summonFrom`'s predecessor (implicit matches) can be used for typelevel programming and code specialization and [PR #7201](https://github.com/lampepfl/dotty/pull/7201) which explains the new `summonFrom` syntax. +For more information about compile-time operations, see [PR #4768](https://github.com/scala/scala3/pull/4768), +which explains how `summonFrom`'s predecessor (implicit matches) can be used for typelevel programming and code specialization and [PR #7201](https://github.com/scala/scala3/pull/7201) which explains the new `summonFrom` syntax. 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 f603200b1ae0..3084ff4de71c 100644 --- a/docs/_docs/reference/new-types/dependent-function-types-spec.md +++ b/docs/_docs/reference/new-types/dependent-function-types-spec.md @@ -4,7 +4,7 @@ title: "Dependent Function Types - More Details" 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). +Initial implementation in [PR #3464](https://github.com/scala/scala3/pull/3464). ## Syntax @@ -46,7 +46,7 @@ same way that other functions do, see The example below defines a trait `C` and the two dependent function types `DF` and `IDF` and prints the results of the respective function applications: -[depfuntype.scala]: https://github.com/lampepfl/dotty/blob/main/tests/pos/depfuntype.scala +[depfuntype.scala]: https://github.com/scala/scala3/blob/main/tests/pos/depfuntype.scala ```scala trait C { type M; val m: M } @@ -70,7 +70,7 @@ type IDF = (x: C) ?=> x.M In the following example the depend type `f.Eff` refers to the effect type `CanThrow`: -[eff-dependent.scala]: https://github.com/lampepfl/dotty/blob/main/tests/run/eff-dependent.scala +[eff-dependent.scala]: https://github.com/scala/scala3/blob/main/tests/run/eff-dependent.scala ```scala trait Effect diff --git a/docs/_docs/reference/new-types/intersection-types-spec.md b/docs/_docs/reference/new-types/intersection-types-spec.md index 4e26626c0b36..723720fdef89 100644 --- a/docs/_docs/reference/new-types/intersection-types-spec.md +++ b/docs/_docs/reference/new-types/intersection-types-spec.md @@ -97,7 +97,7 @@ glb(A, _) = A // use first In the above, `|T|` means the erased type of `T`, `JArray` refers to the type of Java Array. -See also: [`TypeErasure#erasedGlb`](https://github.com/lampepfl/dotty/blob/main/compiler/src/dotty/tools/dotc/core/TypeErasure.scala#L289). +See also: [`TypeErasure#erasedGlb`](https://github.com/scala/scala3/blob/main/compiler/src/dotty/tools/dotc/core/TypeErasure.scala#L289). ## Relationship with Compound Type (`with`) diff --git a/docs/_docs/reference/new-types/polymorphic-function-types.md b/docs/_docs/reference/new-types/polymorphic-function-types.md index 1754bf844831..04f4a3483896 100644 --- a/docs/_docs/reference/new-types/polymorphic-function-types.md +++ b/docs/_docs/reference/new-types/polymorphic-function-types.md @@ -33,7 +33,7 @@ In Scala 3 this is now possible. The type of the `bar` value above is This type describes function values which take a type `A` as a parameter, then take a list of type `List[A]`, and return a list of the same type `List[A]`. -[More details](https://github.com/lampepfl/dotty/pull/4672) +[More details](https://github.com/scala/scala3/pull/4672) ## Example Usage diff --git a/docs/_docs/reference/other-new-features/open-classes.md b/docs/_docs/reference/other-new-features/open-classes.md index 10af6ead669e..ff2dbac27b3b 100644 --- a/docs/_docs/reference/other-new-features/open-classes.md +++ b/docs/_docs/reference/other-new-features/open-classes.md @@ -77,4 +77,4 @@ A class that is neither `abstract` nor `open` is similar to a `sealed` class: it ## Migration -`open` is a new modifier in Scala 3. To allow cross compilation between Scala 2.13 and Scala 3.0 without warnings, the feature warning for ad-hoc extensions is produced only under `-source future`. It will be produced by default [from Scala 3.4 on](https://github.com/lampepfl/dotty/issues/16334). +`open` is a new modifier in Scala 3. To allow cross compilation between Scala 2.13 and Scala 3.0 without warnings, the feature warning for ad-hoc extensions is produced only under `-source future`. It will be produced by default [from Scala 3.4 on](https://github.com/scala/scala3/issues/16334). 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 fd462dd610c8..c9e1033f5ea6 100644 --- a/docs/_docs/reference/other-new-features/parameter-untupling-spec.md +++ b/docs/_docs/reference/other-new-features/parameter-untupling-spec.md @@ -56,4 +56,4 @@ Obsolete conversions could be detected and fixed by [`Scalafix`](https://scalace ## Reference -For more information, see [Issue #897](https://github.com/lampepfl/dotty/issues/897). +For more information, see [Issue #897](https://github.com/scala/scala3/issues/897). diff --git a/docs/_docs/reference/other-new-features/parameter-untupling.md b/docs/_docs/reference/other-new-features/parameter-untupling.md index e1e7afcad8fe..27e3850b309c 100644 --- a/docs/_docs/reference/other-new-features/parameter-untupling.md +++ b/docs/_docs/reference/other-new-features/parameter-untupling.md @@ -75,4 +75,4 @@ cannot subvert untupling. For more information see: * [More details](./parameter-untupling-spec.md) -* [Issue #897](https://github.com/lampepfl/dotty/issues/897). +* [Issue #897](https://github.com/scala/scala3/issues/897). diff --git a/docs/_docs/reference/overview.md b/docs/_docs/reference/overview.md index b1e8281dfc16..bdb8aa74c1aa 100644 --- a/docs/_docs/reference/overview.md +++ b/docs/_docs/reference/overview.md @@ -91,7 +91,7 @@ These constructs are proposed to be dropped without a new construct replacing th - [Auto application](dropped-features/auto-apply.md), - [Weak conformance](dropped-features/weak-conformance.md), - Compound types (replaced by [Intersection types](new-types/intersection-types.md)), -- [Auto tupling](https://github.com/lampepfl/dotty/pull/4311) (implemented, but not merged). +- [Auto tupling](https://github.com/scala/scala3/pull/4311) (implemented, but not merged). The date when these constructs are dropped varies. The current status is: diff --git a/docs/_docs/release-notes-0.1.2.md b/docs/_docs/release-notes-0.1.2.md index 98f359c83a15..c6bc9846bf07 100644 --- a/docs/_docs/release-notes-0.1.2.md +++ b/docs/_docs/release-notes-0.1.2.md @@ -18,7 +18,7 @@ Dotty 0.1.2 targets Java 8. We don't have plans to add support for earlier versi # Reporting Bugs / Known Issues -Please [file](https://github.com/lampepfl/dotty/issues) any bugs you encounter. If you’re unsure whether something is a bug, +Please [file](https://github.com/scala/scala3/issues) any bugs you encounter. If you’re unsure whether something is a bug, please ask on the Dotty [gitter channel](https://github.com/lampepfl/dotty). # Dotty Doc @@ -86,27 +86,27 @@ This release ships with the following features: [9]: http://docs.scala-lang.org/sips/pending/static-members.html [10]: http://docs.scala-lang.org/sips/pending/improved-lazy-val-initialization.html [11]: http://magarciaepfl.github.io/scala/ -[12]: https://github.com/lampepfl/dotty/commit/b2215ed23311b2c99ea638f9d7fcad9737dba588 -[13]: https://github.com/lampepfl/dotty/pull/187 -[14]: https://github.com/lampepfl/dotty/pull/217 +[12]: https://github.com/scala/scala3/commit/b2215ed23311b2c99ea638f9d7fcad9737dba588 +[13]: https://github.com/scala/scala3/pull/187 +[14]: https://github.com/scala/scala3/pull/217 [15]: reference/other-new-features/trait-parameters.html -[16]: https://github.com/lampepfl/dotty/commit/89540268e6c49fb92b9ca61249e46bb59981bf5a -[17]: https://github.com/lampepfl/dotty/pull/174 -[18]: https://github.com/lampepfl/dotty/pull/488 -[19]: https://github.com/lampepfl/dotty/pull/174 -[20]: https://github.com/lampepfl/dotty/pull/411 -[21]: https://github.com/lampepfl/dotty/pull/1364 -[22]: https://github.com/lampepfl/dotty/pull/1227 -[23]: https://github.com/lampepfl/dotty/pull/117 -[24]: https://github.com/lampepfl/dotty/pull/2532 -[25]: https://github.com/lampepfl/dotty/pull/2194 -[26]: https://github.com/lampepfl/dotty/pull/213 -[27]: https://github.com/lampepfl/dotty/pull/2513 -[28]: https://github.com/lampepfl/dotty/pull/2361 -[29]: https://github.com/lampepfl/dotty/pull/1453 +[16]: https://github.com/scala/scala3/commit/89540268e6c49fb92b9ca61249e46bb59981bf5a +[17]: https://github.com/scala/scala3/pull/174 +[18]: https://github.com/scala/scala3/pull/488 +[19]: https://github.com/scala/scala3/pull/174 +[20]: https://github.com/scala/scala3/pull/411 +[21]: https://github.com/scala/scala3/pull/1364 +[22]: https://github.com/scala/scala3/pull/1227 +[23]: https://github.com/scala/scala3/pull/117 +[24]: https://github.com/scala/scala3/pull/2532 +[25]: https://github.com/scala/scala3/pull/2194 +[26]: https://github.com/scala/scala3/pull/213 +[27]: https://github.com/scala/scala3/pull/2513 +[28]: https://github.com/scala/scala3/pull/2361 +[29]: https://github.com/scala/scala3/pull/1453 [30]: reference/contextual/context-functions.html -[31]: https://github.com/lampepfl/dotty/pull/2136 -[32]: https://github.com/lampepfl/dotty/pull/1758 +[31]: https://github.com/scala/scala3/pull/2136 +[32]: https://github.com/scala/scala3/pull/1758 [33]: reference/metaprogramming/inline.html # Contributors diff --git a/docs/_spec/APPLIEDreference/dropped-features/auto-apply.md b/docs/_spec/APPLIEDreference/dropped-features/auto-apply.md index b9aedb9f046b..95366b5e8f78 100644 --- a/docs/_spec/APPLIEDreference/dropped-features/auto-apply.md +++ b/docs/_spec/APPLIEDreference/dropped-features/auto-apply.md @@ -93,4 +93,4 @@ stricter checking. ## Reference -For more information, see [Issue #2570](https://github.com/lampepfl/dotty/issues/2570) and [PR #2716](https://github.com/lampepfl/dotty/pull/2716). +For more information, see [Issue #2570](https://github.com/scala/scala3/issues/2570) and [PR #2716](https://github.com/scala/scala3/pull/2716). diff --git a/docs/_spec/APPLIEDreference/enums/enums.md b/docs/_spec/APPLIEDreference/enums/enums.md index bcab50d3a36d..d8fdbe9f1db2 100644 --- a/docs/_spec/APPLIEDreference/enums/enums.md +++ b/docs/_spec/APPLIEDreference/enums/enums.md @@ -178,5 +178,5 @@ scala> Color.Red.compareTo(Color.Green) val res15: Int = -1 ``` -For a more in-depth example of using Scala 3 enums from Java, see [this test](https://github.com/lampepfl/dotty/tree/main/tests/run/enum-java). +For a more in-depth example of using Scala 3 enums from Java, see [this test](https://github.com/scala/scala3/tree/main/tests/run/enum-java). In the test, the enums are defined in the `MainScala.scala` file and used from a Java source, `Test.java`. diff --git a/docs/_spec/APPLIEDreference/new-types/union-types.md b/docs/_spec/APPLIEDreference/new-types/union-types.md index 152505d7fc8d..f59bb6f6b851 100644 --- a/docs/_spec/APPLIEDreference/new-types/union-types.md +++ b/docs/_spec/APPLIEDreference/new-types/union-types.md @@ -59,8 +59,8 @@ be changed in the future. For example by not widening unions that have been explicitly written down by the user and not inferred, or by not widening a type argument when the corresponding type parameter is covariant. -See [PR #2330](https://github.com/lampepfl/dotty/pull/2330) and -[Issue #4867](https://github.com/lampepfl/dotty/issues/4867) for further discussions. +See [PR #2330](https://github.com/scala/scala3/pull/2330) and +[Issue #4867](https://github.com/scala/scala3/issues/4867) for further discussions. ### Example diff --git a/docs/_spec/TODOreference/changed-features/eta-expansion-spec.md b/docs/_spec/TODOreference/changed-features/eta-expansion-spec.md index a62d45df9e11..fa5c1e57a066 100644 --- a/docs/_spec/TODOreference/changed-features/eta-expansion-spec.md +++ b/docs/_spec/TODOreference/changed-features/eta-expansion-spec.md @@ -74,4 +74,4 @@ The method value syntax `m _` is deprecated. ## Reference -For more information, see [PR #2701](https://github.com/lampepfl/dotty/pull/2701). +For more information, see [PR #2701](https://github.com/scala/scala3/pull/2701). diff --git a/docs/_spec/TODOreference/changed-features/implicit-conversions-spec.md b/docs/_spec/TODOreference/changed-features/implicit-conversions-spec.md index dc19e10c8b8f..a70321b70c15 100644 --- a/docs/_spec/TODOreference/changed-features/implicit-conversions-spec.md +++ b/docs/_spec/TODOreference/changed-features/implicit-conversions-spec.md @@ -114,4 +114,4 @@ changes to implicit resolution, refer to the [Changes in Implicit Resolution](im ## Reference For more information about implicit resolution, see [Changes in Implicit Resolution](implicit-resolution.md). -Other details are available in [PR #2065](https://github.com/lampepfl/dotty/pull/2065). +Other details are available in [PR #2065](https://github.com/scala/scala3/pull/2065). diff --git a/docs/_spec/TODOreference/changed-features/structural-types-spec.md b/docs/_spec/TODOreference/changed-features/structural-types-spec.md index d456932649fb..cb48a593e831 100644 --- a/docs/_spec/TODOreference/changed-features/structural-types-spec.md +++ b/docs/_spec/TODOreference/changed-features/structural-types-spec.md @@ -16,7 +16,7 @@ RefineStat ::= ‘val’ VarDcl | ‘def’ DefDcl | ‘type’ {nl} TypeDcl ## Implementation of Structural Types The standard library defines a universal marker trait -[`scala.Selectable`](https://github.com/lampepfl/dotty/blob/main/library/src/scala/Selectable.scala): +[`scala.Selectable`](https://github.com/scala/scala3/blob/main/library/src/scala/Selectable.scala): ```scala trait Selectable extends Any @@ -150,4 +150,4 @@ conversion that can turn `v` into a `Selectable`, and the selection methods coul ## Context -For more information, see [Rethink Structural Types](https://github.com/lampepfl/dotty/issues/1886). +For more information, see [Rethink Structural Types](https://github.com/scala/scala3/issues/1886). diff --git a/docs/_spec/TODOreference/contextual/by-name-context-parameters.md b/docs/_spec/TODOreference/contextual/by-name-context-parameters.md index 3004bfb2c4c2..7a80b20592ea 100644 --- a/docs/_spec/TODOreference/contextual/by-name-context-parameters.md +++ b/docs/_spec/TODOreference/contextual/by-name-context-parameters.md @@ -61,5 +61,5 @@ No local given instance was generated because the synthesized argument is not re ## Reference -For more information, see [Issue #1998](https://github.com/lampepfl/dotty/issues/1998) +For more information, see [Issue #1998](https://github.com/scala/scala3/issues/1998) and the associated [Scala SIP](https://docs.scala-lang.org/sips/byname-implicits.html). diff --git a/docs/_spec/TODOreference/contextual/multiversal-equality.md b/docs/_spec/TODOreference/contextual/multiversal-equality.md index e9a81b95f472..fa729fda8e61 100644 --- a/docs/_spec/TODOreference/contextual/multiversal-equality.md +++ b/docs/_spec/TODOreference/contextual/multiversal-equality.md @@ -25,7 +25,7 @@ the program will still typecheck, since values of all types can be compared with But it will probably give unexpected results and fail at runtime. Multiversal equality is an opt-in way to make universal equality safer. -It uses a binary type class [`scala.CanEqual`](https://github.com/lampepfl/dotty/blob/main/library/src/scala/CanEqual.scala) +It uses a binary type class [`scala.CanEqual`](https://github.com/scala/scala3/blob/main/library/src/scala/CanEqual.scala) to indicate that values of two given types can be compared with each other. The example above would not typecheck if `S` or `T` was a class that derives `CanEqual`, e.g. @@ -70,7 +70,7 @@ given CanEqual[A, B] = CanEqual.derived given CanEqual[B, A] = CanEqual.derived ``` -The [`scala.CanEqual`](https://github.com/lampepfl/dotty/blob/main/library/src/scala/CanEqual.scala) +The [`scala.CanEqual`](https://github.com/scala/scala3/blob/main/library/src/scala/CanEqual.scala) object defines a number of `CanEqual` given instances that together define a rule book for what standard types can be compared (more details below). @@ -224,4 +224,4 @@ work under `-language:strictEquality`, since otherwise the universal `Eq[Any]` i More on multiversal equality is found in a [blog post](http://www.scala-lang.org/blog/2016/05/06/multiversal-equality.html) -and a [GitHub issue](https://github.com/lampepfl/dotty/issues/1247). +and a [GitHub issue](https://github.com/scala/scala3/issues/1247). diff --git a/docs/_spec/TODOreference/dropped-features/type-projection.md b/docs/_spec/TODOreference/dropped-features/type-projection.md index 08b5ffb34eca..2c3e82ce99b8 100644 --- a/docs/_spec/TODOreference/dropped-features/type-projection.md +++ b/docs/_spec/TODOreference/dropped-features/type-projection.md @@ -9,7 +9,7 @@ and `A` names a type member of `T`. Scala 3 disallows this if `T` is an abstract type (class types and type aliases are fine). This change was made because unrestricted type projection -is [unsound](https://github.com/lampepfl/dotty/issues/1050). +is [unsound](https://github.com/scala/scala3/issues/1050). This restriction rules out the [type-level encoding of a combinator calculus](https://michid.wordpress.com/2010/01/29/scala-type-level-encoding-of-the-ski-calculus/). diff --git a/docs/_spec/TODOreference/experimental/explicit-nulls.md b/docs/_spec/TODOreference/experimental/explicit-nulls.md index b3fa53429cfe..3be83afe967e 100644 --- a/docs/_spec/TODOreference/experimental/explicit-nulls.md +++ b/docs/_spec/TODOreference/experimental/explicit-nulls.md @@ -431,7 +431,7 @@ When dealing with local mutable variables, there are two questions: x = null ``` -See [more examples](https://github.com/lampepfl/dotty/blob/main/tests/explicit-nulls/neg/flow-varref-in-closure.scala). +See [more examples](https://github.com/scala/scala3/blob/main/tests/explicit-nulls/neg/flow-varref-in-closure.scala). Currently, we are unable to track paths with a mutable variable prefix. For example, `x.a` if `x` is mutable. diff --git a/docs/_spec/TODOreference/experimental/tupled-function.md b/docs/_spec/TODOreference/experimental/tupled-function.md index da108fc832ad..e01570e9e8a6 100644 --- a/docs/_spec/TODOreference/experimental/tupled-function.md +++ b/docs/_spec/TODOreference/experimental/tupled-function.md @@ -34,7 +34,7 @@ The compiler will synthesize an instance of `TupledFunction[F, G]` if: Examples -------- `TupledFunction` can be used to generalize the `Function1.tupled`, ... `Function22.tupled` methods to functions of any arities. -The following defines `tupled` as [extension method](../contextual/extension-methods.html) ([full example](https://github.com/lampepfl/dotty/blob/main/tests/run/tupled-function-tupled.scala)). +The following defines `tupled` as [extension method](../contextual/extension-methods.html) ([full example](https://github.com/scala/scala3/blob/main/tests/run/tupled-function-tupled.scala)). ```scala /** Creates a tupled version of this function: instead of N arguments, @@ -48,7 +48,7 @@ extension [F, Args <: Tuple, R](f: F) def tupled(using tf: TupledFunction[F, Args => R]): Args => R = tf.tupled(f) ``` -`TupledFunction` can be used to generalize the `Function.untupled` to a function of any arities ([full example](https://github.com/lampepfl/dotty/blob/main/tests/run/tupled-function-untupled.scala)) +`TupledFunction` can be used to generalize the `Function.untupled` to a function of any arities ([full example](https://github.com/scala/scala3/blob/main/tests/run/tupled-function-untupled.scala)) ```scala /** Creates an untupled version of this function: instead of a single argument of type [[scala.Tuple]] with N elements, @@ -64,7 +64,7 @@ extension [F, Args <: Tuple, R](f: Args => R) def untupled(using tf: TupledFunction[F, Args => R]): F = tf.untupled(f) ``` -`TupledFunction` can also be used to generalize the [`Tuple1.compose`](https://github.com/lampepfl/dotty/blob/main/tests/run/tupled-function-compose.scala) and [`Tuple1.andThen`](https://github.com/lampepfl/dotty/blob/main/tests/run/tupled-function-andThen.scala) methods to compose functions of larger arities and with functions that return tuples. +`TupledFunction` can also be used to generalize the [`Tuple1.compose`](https://github.com/scala/scala3/blob/main/tests/run/tupled-function-compose.scala) and [`Tuple1.andThen`](https://github.com/scala/scala3/blob/main/tests/run/tupled-function-andThen.scala) methods to compose functions of larger arities and with functions that return tuples. ```scala /** Composes two instances of TupledFunction into a new TupledFunction, with this function applied last. diff --git a/docs/_spec/TODOreference/features-classification.md b/docs/_spec/TODOreference/features-classification.md index 36cea3b9e72d..550130780b44 100644 --- a/docs/_spec/TODOreference/features-classification.md +++ b/docs/_spec/TODOreference/features-classification.md @@ -72,7 +72,7 @@ These constructs are restricted to make the language safer. - [Given Imports](contextual/given-imports.md): implicits now require a special form of import, to make the import clearly visible. - [Type Projection](dropped-features/type-projection.md): only classes can be used as prefix `C` of a type projection `C#A`. Type projection on abstract types is no longer supported since it is unsound. - [Multiversal equality](contextual/multiversal-equality.md) implements an "opt-in" scheme to rule out nonsensical comparisons with `==` and `!=`. - - [infix](https://github.com/lampepfl/dotty/pull/5975) + - [infix](https://github.com/scala/scala3/pull/5975) makes method application syntax uniform across code bases. Unrestricted implicit conversions continue to be available in Scala 3.0, but will be deprecated and removed later. Unrestricted versions of the other constructs in the list above are available only under `-source 3.0-migration`. @@ -100,7 +100,7 @@ These constructs are proposed to be dropped without a new construct replacing th - [Auto application](dropped-features/auto-apply.md), - [Weak conformance](dropped-features/weak-conformance.md), - [Compound types](new-types/intersection-types.md), - - [Auto tupling](https://github.com/lampepfl/dotty/pull/4311) (implemented, but not merged). + - [Auto tupling](https://github.com/scala/scala3/pull/4311) (implemented, but not merged). The date when these constructs are dropped varies. The current status is: @@ -148,7 +148,7 @@ These are additions to the language that make it more powerful or pleasant to us - [Enums](enums/enums.md) provide concise syntax for enumerations and [algebraic data types](enums/adts.md). - [Parameter untupling](other-new-features/parameter-untupling.md) avoids having to use `case` for tupled parameter destructuring. - [Dependent function types](new-types/dependent-function-types.md) generalize dependent methods to dependent function values and types. - - [Polymorphic function types](https://github.com/lampepfl/dotty/pull/4672) generalize polymorphic methods to dependent function values and types. _Current status_: There is a proposal, and a prototype implementation, but the implementation has not been finalized or merged yet. + - [Polymorphic function types](https://github.com/scala/scala3/pull/4672) generalize polymorphic methods to dependent function values and types. _Current status_: There is a proposal, and a prototype implementation, but the implementation has not been finalized or merged yet. - [Kind polymorphism](other-new-features/kind-polymorphism.md) allows the definition of operators working equally on types and type constructors. **Status: mixed** diff --git a/docs/_spec/TODOreference/metaprogramming/compiletime-ops.md b/docs/_spec/TODOreference/metaprogramming/compiletime-ops.md index a43c941ae943..782cd72886d5 100644 --- a/docs/_spec/TODOreference/metaprogramming/compiletime-ops.md +++ b/docs/_spec/TODOreference/metaprogramming/compiletime-ops.md @@ -290,5 +290,5 @@ val notMissing : NotMissing = summonInlineCheck(3) ## Reference -For more information about compile-time operations, see [PR #4768](https://github.com/lampepfl/dotty/pull/4768), -which explains how `summonFrom`'s predecessor (implicit matches) can be used for typelevel programming and code specialization and [PR #7201](https://github.com/lampepfl/dotty/pull/7201) which explains the new `summonFrom` syntax. +For more information about compile-time operations, see [PR #4768](https://github.com/scala/scala3/pull/4768), +which explains how `summonFrom`'s predecessor (implicit matches) can be used for typelevel programming and code specialization and [PR #7201](https://github.com/scala/scala3/pull/7201) which explains the new `summonFrom` syntax. diff --git a/docs/_spec/TODOreference/new-types/dependent-function-types-spec.md b/docs/_spec/TODOreference/new-types/dependent-function-types-spec.md index f3237ddf7b9a..b27346a687d6 100644 --- a/docs/_spec/TODOreference/new-types/dependent-function-types-spec.md +++ b/docs/_spec/TODOreference/new-types/dependent-function-types-spec.md @@ -4,7 +4,7 @@ title: "Dependent Function Types - More Details" 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). +Initial implementation in [PR #3464](https://github.com/scala/scala3/pull/3464). ## Syntax @@ -46,7 +46,7 @@ same way that other functions do, see The example below defines a trait `C` and the two dependent function types `DF` and `IDF` and prints the results of the respective function applications: -[depfuntype.scala]: https://github.com/lampepfl/dotty/blob/main/tests/pos/depfuntype.scala +[depfuntype.scala]: https://github.com/scala/scala3/blob/main/tests/pos/depfuntype.scala ```scala trait C { type M; val m: M } @@ -70,7 +70,7 @@ type IDF = (x: C) ?=> x.M In the following example the depend type `f.Eff` refers to the effect type `CanThrow`: -[eff-dependent.scala]: https://github.com/lampepfl/dotty/blob/main/tests/run/eff-dependent.scala +[eff-dependent.scala]: https://github.com/scala/scala3/blob/main/tests/run/eff-dependent.scala ```scala trait Effect diff --git a/docs/_spec/TODOreference/new-types/polymorphic-function-types.md b/docs/_spec/TODOreference/new-types/polymorphic-function-types.md index 1754bf844831..04f4a3483896 100644 --- a/docs/_spec/TODOreference/new-types/polymorphic-function-types.md +++ b/docs/_spec/TODOreference/new-types/polymorphic-function-types.md @@ -33,7 +33,7 @@ In Scala 3 this is now possible. The type of the `bar` value above is This type describes function values which take a type `A` as a parameter, then take a list of type `List[A]`, and return a list of the same type `List[A]`. -[More details](https://github.com/lampepfl/dotty/pull/4672) +[More details](https://github.com/scala/scala3/pull/4672) ## Example Usage diff --git a/docs/_spec/TODOreference/other-new-features/parameter-untupling-spec.md b/docs/_spec/TODOreference/other-new-features/parameter-untupling-spec.md index e5165550fc0d..6133012463a1 100644 --- a/docs/_spec/TODOreference/other-new-features/parameter-untupling-spec.md +++ b/docs/_spec/TODOreference/other-new-features/parameter-untupling-spec.md @@ -86,4 +86,4 @@ Obsolete conversions could be detected and fixed by [`Scalafix`](https://scalace ## Reference -For more information, see [Issue #897](https://github.com/lampepfl/dotty/issues/897). +For more information, see [Issue #897](https://github.com/scala/scala3/issues/897). diff --git a/docs/_spec/TODOreference/other-new-features/parameter-untupling.md b/docs/_spec/TODOreference/other-new-features/parameter-untupling.md index fcc1fa11d519..09806fc169eb 100644 --- a/docs/_spec/TODOreference/other-new-features/parameter-untupling.md +++ b/docs/_spec/TODOreference/other-new-features/parameter-untupling.md @@ -74,4 +74,4 @@ cannot subvert untupling. For more information see: * [More details](./parameter-untupling-spec.md) -* [Issue #897](https://github.com/lampepfl/dotty/issues/897). +* [Issue #897](https://github.com/scala/scala3/issues/897). diff --git a/docs/_spec/TODOreference/overview.md b/docs/_spec/TODOreference/overview.md index b1e8281dfc16..bdb8aa74c1aa 100644 --- a/docs/_spec/TODOreference/overview.md +++ b/docs/_spec/TODOreference/overview.md @@ -91,7 +91,7 @@ These constructs are proposed to be dropped without a new construct replacing th - [Auto application](dropped-features/auto-apply.md), - [Weak conformance](dropped-features/weak-conformance.md), - Compound types (replaced by [Intersection types](new-types/intersection-types.md)), -- [Auto tupling](https://github.com/lampepfl/dotty/pull/4311) (implemented, but not merged). +- [Auto tupling](https://github.com/scala/scala3/pull/4311) (implemented, but not merged). The date when these constructs are dropped varies. The current status is: diff --git a/docs/_spec/_layouts/default.yml b/docs/_spec/_layouts/default.yml index 5d597cb5ea96..0f7fb24d7ce2 100644 --- a/docs/_spec/_layouts/default.yml +++ b/docs/_spec/_layouts/default.yml @@ -27,7 +27,7 @@
diff --git a/library/src/scala/runtime/stdLibPatches/language.scala b/library/src/scala/runtime/stdLibPatches/language.scala index d74bb1376912..70d5f2d41907 100644 --- a/library/src/scala/runtime/stdLibPatches/language.scala +++ b/library/src/scala/runtime/stdLibPatches/language.scala @@ -13,7 +13,7 @@ object language: * code should not rely on them. * * Programmers are encouraged to try out experimental features and - * [[https://github.com/lampepfl/dotty/issues report any bugs or API inconsistencies]] + * [[https://github.com/scala/scala3/issues report any bugs or API inconsistencies]] * they encounter so they can be improved in future releases. * * @group experimental diff --git a/presentation-compiler/src/main/dotty/tools/pc/HoverProvider.scala b/presentation-compiler/src/main/dotty/tools/pc/HoverProvider.scala index a36ce83e6aa0..6f39b4871a06 100644 --- a/presentation-compiler/src/main/dotty/tools/pc/HoverProvider.scala +++ b/presentation-compiler/src/main/dotty/tools/pc/HoverProvider.scala @@ -109,7 +109,7 @@ object HoverProvider: val exprTpw = tpe.widenTermRefExpr.metalsDealias val hoverString = tpw match - // https://github.com/lampepfl/dotty/issues/8891 + // https://github.com/scala/scala3/issues/8891 case tpw: ImportType => printer.hoverSymbol(symbol, symbol.paramRef) case _ => diff --git a/presentation-compiler/src/main/dotty/tools/pc/MetalsInteractive.scala b/presentation-compiler/src/main/dotty/tools/pc/MetalsInteractive.scala index 2c2897e401a1..381e0eaec6a5 100644 --- a/presentation-compiler/src/main/dotty/tools/pc/MetalsInteractive.scala +++ b/presentation-compiler/src/main/dotty/tools/pc/MetalsInteractive.scala @@ -220,7 +220,7 @@ object MetalsInteractive: then List((head.symbol, head.typeOpt)) /* Type tree for List(1) has an Int type variable, which has span * but doesn't exist in code. - * https://github.com/lampepfl/dotty/issues/15937 + * https://github.com/scala/scala3/issues/15937 */ else if head.isInstanceOf[TypeTree] then enclosingSymbolsWithExpressionType(tail, pos, indexed) diff --git a/presentation-compiler/src/main/dotty/tools/pc/PcCollector.scala b/presentation-compiler/src/main/dotty/tools/pc/PcCollector.scala index 310edd60d87e..60def237badb 100644 --- a/presentation-compiler/src/main/dotty/tools/pc/PcCollector.scala +++ b/presentation-compiler/src/main/dotty/tools/pc/PcCollector.scala @@ -57,13 +57,13 @@ abstract class PcCollector[T]( .pathTo(driver.openedTrees(uri), pos)(using driver.currentCtx) .dropWhile(t => // NamedArg anyway doesn't have symbol t.symbol == NoSymbol && !t.isInstanceOf[NamedArg] || - // same issue https://github.com/lampepfl/dotty/issues/15937 as below + // same issue https://github.com/scala/scala3/issues/15937 as below t.isInstanceOf[TypeTree] ) val path = rawPath match // For type it will sometimes go into the wrong tree since TypeTree also contains the same span - // https://github.com/lampepfl/dotty/issues/15937 + // https://github.com/scala/scala3/issues/15937 case TypeApply(sel: Select, _) :: tail if sel.span.contains(pos.span) => Interactive.pathTo(sel, pos.span) ::: rawPath case _ => rawPath @@ -583,7 +583,7 @@ abstract class PcCollector[T]( t } - // NOTE: Connected to https://github.com/lampepfl/dotty/issues/16771 + // NOTE: Connected to https://github.com/scala/scala3/issues/16771 // `sel.nameSpan` is calculated incorrectly in (1 + 2).toString // See test DocumentHighlightSuite.select-parentheses private def selectNameSpan(sel: Select): Span = diff --git a/presentation-compiler/src/main/dotty/tools/pc/SemanticdbSymbols.scala b/presentation-compiler/src/main/dotty/tools/pc/SemanticdbSymbols.scala index da8add9df327..d298a88fc655 100644 --- a/presentation-compiler/src/main/dotty/tools/pc/SemanticdbSymbols.scala +++ b/presentation-compiler/src/main/dotty/tools/pc/SemanticdbSymbols.scala @@ -118,8 +118,8 @@ object SemanticdbSymbols: b.toString /** - * Taken from https://github.com/lampepfl/dotty/blob/2db43dae1480825227eb30d291b0dd0f0494e0f6/compiler/src/dotty/tools/dotc/semanticdb/ExtractSemanticDB.scala#L293 - * In future might be replaced by usage of compiler implementation after merging https://github.com/lampepfl/dotty/pull/12885 + * Taken from https://github.com/scala/scala3/blob/2db43dae1480825227eb30d291b0dd0f0494e0f6/compiler/src/dotty/tools/dotc/semanticdb/ExtractSemanticDB.scala#L293 + * In future might be replaced by usage of compiler implementation after merging https://github.com/scala/scala3/pull/12885 */ private def addSymName(b: StringBuilder, sym: Symbol)(using Context): Unit = diff --git a/presentation-compiler/src/main/dotty/tools/pc/completions/CompletionProvider.scala b/presentation-compiler/src/main/dotty/tools/pc/completions/CompletionProvider.scala index a583e31a9e0c..2beb4460db56 100644 --- a/presentation-compiler/src/main/dotty/tools/pc/completions/CompletionProvider.scala +++ b/presentation-compiler/src/main/dotty/tools/pc/completions/CompletionProvider.scala @@ -155,7 +155,7 @@ class CompletionProvider( // For overloaded signatures we get multiple symbols, so we need // to recalculate the description - // related issue https://github.com/lampepfl/dotty/issues/11941 + // related issue https://github.com/scala/scala3/issues/11941 lazy val kind: CompletionItemKind = completion.completionItemKind val description = completion.description(printer) val label = completion.labelWithDescription(printer) diff --git a/presentation-compiler/test/dotty/tools/pc/tests/completion/CompletionSuite.scala b/presentation-compiler/test/dotty/tools/pc/tests/completion/CompletionSuite.scala index addd86fc32ab..eadadd484089 100644 --- a/presentation-compiler/test/dotty/tools/pc/tests/completion/CompletionSuite.scala +++ b/presentation-compiler/test/dotty/tools/pc/tests/completion/CompletionSuite.scala @@ -888,7 +888,7 @@ class CompletionSuite extends BaseCompletionSuite: topLines = Some(2) ) - // issues with scala 3 https://github.com/lampepfl/dotty/pull/13515 + // issues with scala 3 https://github.com/scala/scala3/pull/13515 @Test def ordering4 = check( s"""|class Main { diff --git a/presentation-compiler/test/dotty/tools/pc/tests/hover/HoverTermSuite.scala b/presentation-compiler/test/dotty/tools/pc/tests/hover/HoverTermSuite.scala index bd044b55528a..82fd0c657e67 100644 --- a/presentation-compiler/test/dotty/tools/pc/tests/hover/HoverTermSuite.scala +++ b/presentation-compiler/test/dotty/tools/pc/tests/hover/HoverTermSuite.scala @@ -112,7 +112,7 @@ class HoverTermSuite extends BaseHoverSuite: | } |} |""".stripMargin, - // https://github.com/lampepfl/dotty/issues/8835 + // https://github.com/scala/scala3/issues/8835 """|object num: a.Xtension |""".stripMargin.hover ) diff --git a/presentation-compiler/test/dotty/tools/pc/tests/hover/HoverTypeSuite.scala b/presentation-compiler/test/dotty/tools/pc/tests/hover/HoverTypeSuite.scala index 269dc25069a5..c6e2590f8f29 100644 --- a/presentation-compiler/test/dotty/tools/pc/tests/hover/HoverTypeSuite.scala +++ b/presentation-compiler/test/dotty/tools/pc/tests/hover/HoverTypeSuite.scala @@ -41,7 +41,7 @@ class HoverTypeSuite extends BaseHoverSuite: ) // We should produce a shorter type but: - // https://github.com/lampepfl/dotty/issues/11683 + // https://github.com/scala/scala3/issues/11683 @Test def `enums` = check( """| @@ -125,7 +125,7 @@ class HoverTypeSuite extends BaseHoverSuite: * As user can actually supply params to them by hand when * invoking the extension method, we always show them next to the * method itself. - * https://github.com/lampepfl/dotty/issues/13123 + * https://github.com/scala/scala3/issues/13123 */ @Test def `extension-methods-complex` = check( diff --git a/presentation-compiler/test/dotty/tools/pc/tests/signaturehelp/SignatureHelpSuite.scala b/presentation-compiler/test/dotty/tools/pc/tests/signaturehelp/SignatureHelpSuite.scala index ac63ef92aef5..9e223cb094e3 100644 --- a/presentation-compiler/test/dotty/tools/pc/tests/signaturehelp/SignatureHelpSuite.scala +++ b/presentation-compiler/test/dotty/tools/pc/tests/signaturehelp/SignatureHelpSuite.scala @@ -191,7 +191,7 @@ class SignatureHelpSuite extends BaseSignatureHelpSuite: |""".stripMargin ) - // https://github.com/lampepfl/dotty/issues/15244 + // https://github.com/scala/scala3/issues/15244 @Test def `vararg` = check( """ diff --git a/project/scripts/bootstrappedOnlyCmdTests b/project/scripts/bootstrappedOnlyCmdTests index 8a0f5cf78f2f..4e18e3a1d4a4 100755 --- a/project/scripts/bootstrappedOnlyCmdTests +++ b/project/scripts/bootstrappedOnlyCmdTests @@ -113,7 +113,7 @@ scala_version=${versionProps[2]} echo "testing -sourcepath with incremental compile: inlining changed inline def into a def" # Here we will test that a changed inline method symbol loaded from the sourcepath (-sourcepath compiler option) # will have its `defTree` correctly set when its method body is required for inlining. -# So far I have not found a way to replicate issue https://github.com/lampepfl/dotty/issues/13994 +# So far I have not found a way to replicate issue https://github.com/scala/scala3/issues/13994 # with sbt scripted tests, if a way is found, move this test there. cwd=$(pwd) sbt_test_command="++${scala_version}!;clean;prepareSources;compile;copyChanges;compile" @@ -126,7 +126,7 @@ echo "testing -sourcepath with incremental compile: hashing reference to changed # Here we will test that a changed inline method symbol loaded from the sourcepath (-sourcepath compiler option) # will have its `defTree` correctly set when its method body is hashed by extractAPI, when referenced from another # inline method. -# So far I have not found a way to replicate https://github.com/lampepfl/dotty/pull/12931#discussion_r753212124 +# So far I have not found a way to replicate https://github.com/scala/scala3/pull/12931#discussion_r753212124 # with sbt scripted tests, if a way is found, move this test there. cwd=$(pwd) sbt_test_dir="$cwd/tests/cmdTest-sbt-tests/sourcepath-with-inline-api-hash" diff --git a/sbt-bridge/src/dotty/tools/xsbt/CompilerBridgeDriver.java b/sbt-bridge/src/dotty/tools/xsbt/CompilerBridgeDriver.java index 2d54d4e83404..20256d9e17cc 100644 --- a/sbt-bridge/src/dotty/tools/xsbt/CompilerBridgeDriver.java +++ b/sbt-bridge/src/dotty/tools/xsbt/CompilerBridgeDriver.java @@ -79,7 +79,7 @@ private static void reportMissingFile(DelegatingReporter reporter, SourceFile so underline + "\n" + " Falling back to placeholder for the given source file (of class " + sourceFile.getClass().getName() + ")\n" + " This is likely a bug in incremental compilation for the Scala 3 compiler.\n" + - " Please report it to the Scala 3 maintainers at https://github.com/lampepfl/dotty/issues."; + " Please report it to the Scala 3 maintainers at https://github.com/scala/scala3/issues."; reporter.reportBasicWarning(message); } diff --git a/sbt-bridge/src/xsbt/CachedCompilerImpl.java b/sbt-bridge/src/xsbt/CachedCompilerImpl.java index 8b7779f9c9cb..c9d4c50485ed 100644 --- a/sbt-bridge/src/xsbt/CachedCompilerImpl.java +++ b/sbt-bridge/src/xsbt/CachedCompilerImpl.java @@ -18,7 +18,7 @@ import dotty.tools.dotc.sbt.interfaces.IncrementalCallback; // deprecation warnings are suppressed because scala3-sbt-bridge must stay compatible with Zinc 1.3 -// see https://github.com/lampepfl/dotty/issues/10816 +// see https://github.com/scala/scala3/issues/10816 @SuppressWarnings("deprecation") public class CachedCompilerImpl implements CachedCompiler { private final String[] args; diff --git a/sbt-test/sbt-bridge/zinc-13-compat/test b/sbt-test/sbt-bridge/zinc-13-compat/test index f7b3295e155c..aecadb2f539d 100644 --- a/sbt-test/sbt-bridge/zinc-13-compat/test +++ b/sbt-test/sbt-bridge/zinc-13-compat/test @@ -1,3 +1,3 @@ # this little app test that scala3-sbt-bridge is compatible with Zinc 1.3 -# this is necessary to maintain the compatibility with Bloop (see https://github.com/lampepfl/dotty/issues/10816) +# this is necessary to maintain the compatibility with Bloop (see https://github.com/scala/scala3/issues/10816) > run diff --git a/sbt-test/sbt-dotty/scaladoc/src/main/scala/MultiversalEquality.scala b/sbt-test/sbt-dotty/scaladoc/src/main/scala/MultiversalEquality.scala index a4089e75de19..b8ebaf5565df 100644 --- a/sbt-test/sbt-dotty/scaladoc/src/main/scala/MultiversalEquality.scala +++ b/sbt-test/sbt-dotty/scaladoc/src/main/scala/MultiversalEquality.scala @@ -4,7 +4,7 @@ import scala.language.strictEquality /** * Multiversal Equality: https://dotty.epfl.ch/docs/reference/contextual/multiversal-equality.html - * scala.Eq definition: https://github.com/lampepfl/dotty/blob/master/library/src/scala/CanEqual.scala + * scala.Eq definition: https://github.com/scala/scala3/blob/master/library/src/scala/CanEqual.scala */ object MultiversalEquality { diff --git a/sbt-test/sbt-dotty/tasty-inspector-cache/inspector/src/main/scala/main.scala b/sbt-test/sbt-dotty/tasty-inspector-cache/inspector/src/main/scala/main.scala index 8335a016578f..b17747aa3ccf 100644 --- a/sbt-test/sbt-dotty/tasty-inspector-cache/inspector/src/main/scala/main.scala +++ b/sbt-test/sbt-dotty/tasty-inspector-cache/inspector/src/main/scala/main.scala @@ -2,7 +2,7 @@ import scala.quoted.Quotes import scala.quoted.quotes import scala.tasty.inspector as ins -// Test for https://github.com/lampepfl/dotty/issues/13919 +// Test for https://github.com/scala/scala3/issues/13919 class MyInspector extends ins.Inspector: def inspect(using Quotes)(tastys: List[ins.Tasty[quotes.type]]): Unit = import quotes.reflect._ diff --git a/sbt-test/source-dependencies/malformed-class-name-with-dollar/test b/sbt-test/source-dependencies/malformed-class-name-with-dollar/test index cf2dc1898f3e..bc71a440925e 100644 --- a/sbt-test/source-dependencies/malformed-class-name-with-dollar/test +++ b/sbt-test/source-dependencies/malformed-class-name-with-dollar/test @@ -1,5 +1,5 @@ > compile $ copy-file changes/A.scala A.scala -# It seems that https://github.com/lampepfl/dotty/pull/10784 break incremental compilation here +# It seems that https://github.com/scala/scala3/pull/10784 break incremental compilation here > clean > compile diff --git a/scaladoc-testcases/src/tests/nonScala3Parent.scala b/scaladoc-testcases/src/tests/nonScala3Parent.scala index 91183d25b583..c5a29b2d6132 100644 --- a/scaladoc-testcases/src/tests/nonScala3Parent.scala +++ b/scaladoc-testcases/src/tests/nonScala3Parent.scala @@ -4,7 +4,7 @@ package nonScala3Parent import javax.swing.JPanel import javax.swing.JFrame -// https://github.com/lampepfl/dotty/issues/15927 +// https://github.com/scala/scala3/issues/15927 trait Foo1 extends Numeric[Any] trait Foo2 extends JPanel diff --git a/scaladoc/src/dotty/tools/scaladoc/tasty/TypesSupport.scala b/scaladoc/src/dotty/tools/scaladoc/tasty/TypesSupport.scala index 35cf1cb6eec3..373a26dd0297 100644 --- a/scaladoc/src/dotty/tools/scaladoc/tasty/TypesSupport.scala +++ b/scaladoc/src/dotty/tools/scaladoc/tasty/TypesSupport.scala @@ -298,7 +298,7 @@ trait TypesSupport: } case tpe => - val msg = s"Encountered unsupported type. Report this problem to https://github.com/lampepfl/dotty/.\n" + + val msg = s"Encountered unsupported type. Report this problem to https://github.com/scala/scala3/.\n" + s"${tpe.show(using Printer.TypeReprStructure)}" throw MatchError(msg) diff --git a/scaladoc/test/dotty/tools/scaladoc/ScaladocTest.scala b/scaladoc/test/dotty/tools/scaladoc/ScaladocTest.scala index 540364ec10bf..0c8211865928 100644 --- a/scaladoc/test/dotty/tools/scaladoc/ScaladocTest.scala +++ b/scaladoc/test/dotty/tools/scaladoc/ScaladocTest.scala @@ -27,7 +27,7 @@ abstract class ScaladocTest(val name: String): tastyFiles = tastyFiles(name), output = getTempDir().getRoot, projectVersion = Some("1.0"), - sourceLinks = List("github://lampepfl/dotty/master") + sourceLinks = List("github://scala/scala3/master") ) @Test diff --git a/tests/explicit-nulls/pos/nn2.scala b/tests/explicit-nulls/pos/nn2.scala index a39618b97f22..6c2c67396899 100644 --- a/tests/explicit-nulls/pos/nn2.scala +++ b/tests/explicit-nulls/pos/nn2.scala @@ -1,5 +1,5 @@ // Test that is fixed when explicit nulls are enabled. -// https://github.com/lampepfl/dotty/issues/6247 +// https://github.com/scala/scala3/issues/6247 class Foo { val x1: String|Null = null diff --git a/tests/init/pos/i9795.scala b/tests/init/pos/i9795.scala index 33c13b2eb592..0968dfeb2589 100644 --- a/tests/init/pos/i9795.scala +++ b/tests/init/pos/i9795.scala @@ -2,6 +2,6 @@ class A: // Safe initialization check only allows capturing `this` either through primary constructor or synthetic `apply` // `Some` case class comes from Scala 2 stdlib, which is not visible, hence the warning // For reference: - // https://github.com/lampepfl/dotty/pull/12711 - // https://github.com/lampepfl/dotty/pull/14283 + // https://github.com/scala/scala3/pull/12711 + // https://github.com/scala/scala3/pull/14283 val some = Some(this) diff --git a/tests/neg/i11118.scala b/tests/neg/i11118.scala index 23d9b2b604b6..a94bfce47640 100644 --- a/tests/neg/i11118.scala +++ b/tests/neg/i11118.scala @@ -1,2 +1,2 @@ -// https://github.com/lampepfl/dotty/issues/11118 +// https://github.com/scala/scala3/issues/11118 val (a,b) = (1,2,3) // error // warning diff --git a/tests/neg/i4060.scala b/tests/neg/i4060.scala index ba641d633d3c..bd16ed867966 100644 --- a/tests/neg/i4060.scala +++ b/tests/neg/i4060.scala @@ -1,6 +1,6 @@ //> using options -language:experimental.erasedDefinitions -// See https://github.com/lampepfl/dotty/issues/4060#issuecomment-445808377 +// See https://github.com/scala/scala3/issues/4060#issuecomment-445808377 object App { trait A { type L >: Any} diff --git a/tests/pos-macros/i9361.scala b/tests/pos-macros/i9361.scala index 18efd203d885..abd711bbfcaa 100644 --- a/tests/pos-macros/i9361.scala +++ b/tests/pos-macros/i9361.scala @@ -1,4 +1,4 @@ -// https://github.com/lampepfl/dotty/issues/9361 +// https://github.com/scala/scala3/issues/9361 import scala.quoted._ diff --git a/tests/pos-with-compiler-cc/backend/jvm/BCodeHelpers.scala b/tests/pos-with-compiler-cc/backend/jvm/BCodeHelpers.scala index 2454bca9d653..5ad6a99f6055 100644 --- a/tests/pos-with-compiler-cc/backend/jvm/BCodeHelpers.scala +++ b/tests/pos-with-compiler-cc/backend/jvm/BCodeHelpers.scala @@ -833,7 +833,7 @@ trait BCodeHelpers extends BCodeIdiomatic with BytecodeWriters { case tp => report.warning( s"an unexpected type representation reached the compiler backend while compiling ${ctx.compilationUnit}: $tp. " + - "If possible, please file a bug on https://github.com/lampepfl/dotty/issues") + "If possible, please file a bug on https://github.com/scala/scala3/issues") tp match { case tp: ThisType if tp.cls == defn.ArrayClass => ObjectRef.asInstanceOf[ct.bTypes.ClassBType] // was introduced in 9b17332f11 to fix SI-999, but this code is not reached in its test, or any other test @@ -874,7 +874,7 @@ trait BCodeHelpers extends BCodeIdiomatic with BytecodeWriters { report.error( em"""|compiler bug: created invalid generic signature for $sym in ${sym.denot.owner.showFullName} |signature: $sig - |if this is reproducible, please report bug at https://github.com/lampepfl/dotty/issues + |if this is reproducible, please report bug at https://github.com/scala/scala3/issues """, sym.sourcePos) throw ex } diff --git a/tests/pos-with-compiler-cc/backend/jvm/BCodeSkelBuilder.scala b/tests/pos-with-compiler-cc/backend/jvm/BCodeSkelBuilder.scala index 1d8a9c579cb9..125ee26b0528 100644 --- a/tests/pos-with-compiler-cc/backend/jvm/BCodeSkelBuilder.scala +++ b/tests/pos-with-compiler-cc/backend/jvm/BCodeSkelBuilder.scala @@ -131,7 +131,7 @@ trait BCodeSkelBuilder extends BCodeHelpers { // Should we do this transformation earlier, say in Constructors? Or would that just cause // pain for scala-{js, native}? // - // @sjrd (https://github.com/lampepfl/dotty/pull/9181#discussion_r457458205): + // @sjrd (https://github.com/scala/scala3/pull/9181#discussion_r457458205): // moving that before the back-end would make things significantly more complicated for // Scala.js and Native. Both have a first-class concept of ModuleClass, and encode the // singleton pattern of MODULE$ in a completely different way. In the Scala.js IR, there @@ -142,7 +142,7 @@ trait BCodeSkelBuilder extends BCodeHelpers { // TODO: remove `!f.name.is(LazyBitMapName)` once we change lazy val encoding - // https://github.com/lampepfl/dotty/issues/7140 + // https://github.com/scala/scala3/issues/7140 // // Lazy val encoding assumes bitmap fields are non-static // diff --git a/tests/pos-with-compiler-cc/backend/jvm/DottyBackendInterface.scala b/tests/pos-with-compiler-cc/backend/jvm/DottyBackendInterface.scala index a70d671f9c63..6ce434015b8c 100644 --- a/tests/pos-with-compiler-cc/backend/jvm/DottyBackendInterface.scala +++ b/tests/pos-with-compiler-cc/backend/jvm/DottyBackendInterface.scala @@ -126,7 +126,7 @@ object DottyBackendInterface { * See also `genPlainClass` in `BCodeSkelBuilder.scala`. * * TODO: remove the special handing of `LazyBitMapName` once we swtich to - * the new lazy val encoding: https://github.com/lampepfl/dotty/issues/7140 + * the new lazy val encoding: https://github.com/scala/scala3/issues/7140 */ def isStaticModuleField(using Context): Boolean = sym.owner.isStaticModuleClass && sym.isField && !sym.name.is(LazyBitMapName) diff --git a/tests/pos/erasure-array.scala b/tests/pos/erasure-array.scala index 63240e9801f0..83dc2a423306 100644 --- a/tests/pos/erasure-array.scala +++ b/tests/pos/erasure-array.scala @@ -1,4 +1,4 @@ -// https://github.com/lampepfl/dotty/issues/1065 +// https://github.com/scala/scala3/issues/1065 package hello object world { diff --git a/tests/pos/i10242.scala b/tests/pos/i10242.scala index 10883633971e..b4a9700e1634 100644 --- a/tests/pos/i10242.scala +++ b/tests/pos/i10242.scala @@ -1,6 +1,6 @@ //> using options -source:3.3 -// https://github.com/lampepfl/dotty/issues/10242 +// https://github.com/scala/scala3/issues/10242 type Foo[A, B <: A] = A type Bar[A] = A match { diff --git a/tests/pos/i11681.scala b/tests/pos/i11681.scala index 587285911610..3374cbf9a4af 100644 --- a/tests/pos/i11681.scala +++ b/tests/pos/i11681.scala @@ -1,4 +1,4 @@ -// https://github.com/lampepfl/dotty/issues/11681 +// https://github.com/scala/scala3/issues/11681 import scala.collection.Factory diff --git a/tests/pos/i12663.scala b/tests/pos/i12663.scala index befbc65316cb..dc446acb6bdf 100644 --- a/tests/pos/i12663.scala +++ b/tests/pos/i12663.scala @@ -1,4 +1,4 @@ -// https://github.com/lampepfl/dotty/issues/12663 +// https://github.com/scala/scala3/issues/12663 final class HookComponentBuilder[Ctx, CtxFn[_]] { def asd[A](f: Ctx => A): A = ??? diff --git a/tests/pos/i12679.scala b/tests/pos/i12679.scala index fed62c72dd42..3fb14a8a91ed 100644 --- a/tests/pos/i12679.scala +++ b/tests/pos/i12679.scala @@ -1,4 +1,4 @@ -// https://github.com/lampepfl/dotty/issues/12679 +// https://github.com/scala/scala3/issues/12679 object Example: def foo[F[_]](qux: String, quux: String = ""): F[Unit] = ??? diff --git a/tests/pos/i14096.scala b/tests/pos/i14096.scala index 59365231b121..49f80332483a 100644 --- a/tests/pos/i14096.scala +++ b/tests/pos/i14096.scala @@ -1,4 +1,4 @@ -// https://github.com/lampepfl/dotty/issues/14096 +// https://github.com/scala/scala3/issues/14096 object Test: object Forte: def test[T](i: Int, config: String = ""): Int = 1 diff --git a/tests/pos/i14271.scala b/tests/pos/i14271.scala index 8f46940afd09..d29cf306617a 100644 --- a/tests/pos/i14271.scala +++ b/tests/pos/i14271.scala @@ -1,4 +1,4 @@ -// https://github.com/lampepfl/dotty/issues/14271 +// https://github.com/scala/scala3/issues/14271 class Bound[T] class MyClass[T <: Bound[T]] diff --git a/tests/pos/i14278.scala b/tests/pos/i14278.scala index ebc9376fbad5..09feb75a0c6f 100644 --- a/tests/pos/i14278.scala +++ b/tests/pos/i14278.scala @@ -1,4 +1,4 @@ -// https://github.com/lampepfl/dotty/issues/14278 +// https://github.com/scala/scala3/issues/14278 class Foo extension (foo: Foo) diff --git a/tests/pos/i14642.scala b/tests/pos/i14642.scala index b69da7d8d6d7..f380c404bd03 100644 --- a/tests/pos/i14642.scala +++ b/tests/pos/i14642.scala @@ -1,4 +1,4 @@ -// https://github.com/lampepfl/dotty/issues/14642 +// https://github.com/scala/scala3/issues/14642 case object A case class B() case class C() diff --git a/tests/pos/i14830.scala b/tests/pos/i14830.scala index 592a47c1a53c..6664bd44ea4a 100644 --- a/tests/pos/i14830.scala +++ b/tests/pos/i14830.scala @@ -1,5 +1,5 @@ -// https://github.com/lampepfl/dotty/issues/14830 +// https://github.com/scala/scala3/issues/14830 val a: Comparable[String] = "Fred" val b: { def length: Int } = "Fred" val c: Comparable[String] & { def length: Int } = "Fred" diff --git a/tests/pos/i15546.scala b/tests/pos/i15546.scala index 19c7f15b24f1..86303e283baa 100644 --- a/tests/pos/i15546.scala +++ b/tests/pos/i15546.scala @@ -1,4 +1,4 @@ -// https://github.com/lampepfl/dotty/issues/15546 +// https://github.com/scala/scala3/issues/15546 trait Foo[F[_]] diff --git a/tests/pos/i5700.scala b/tests/pos/i5700.scala index 69892dea16f4..89e8ca025c64 100644 --- a/tests/pos/i5700.scala +++ b/tests/pos/i5700.scala @@ -1,4 +1,4 @@ -// https://github.com/lampepfl/dotty/issues/5700 +// https://github.com/scala/scala3/issues/5700 object noRecursionLimit: type M = { type T[+A]; type Ev >: T[Any] <: T[Nothing] } val M: M = ().asInstanceOf[M] diff --git a/tests/pos/i7414.scala b/tests/pos/i7414.scala index fd85ed2a2265..2c65b6cce466 100644 --- a/tests/pos/i7414.scala +++ b/tests/pos/i7414.scala @@ -1,4 +1,4 @@ -// https://github.com/lampepfl/dotty/issues/7414 +// https://github.com/scala/scala3/issues/7414 object DepTest { trait Trait { diff --git a/tests/pos/i7445a.scala b/tests/pos/i7445a.scala index 2b54166de3f0..c23a5ebd12b9 100644 --- a/tests/pos/i7445a.scala +++ b/tests/pos/i7445a.scala @@ -1,4 +1,4 @@ -// https://github.com/lampepfl/dotty/issues/7445 +// https://github.com/scala/scala3/issues/7445 object Main { type O1[A] = { diff --git a/tests/pos/i7445b.scala b/tests/pos/i7445b.scala index 1d49479ef0a5..0f6859fdb5c3 100644 --- a/tests/pos/i7445b.scala +++ b/tests/pos/i7445b.scala @@ -1,4 +1,4 @@ -// https://github.com/lampepfl/dotty/issues/7445 +// https://github.com/scala/scala3/issues/7445 type O1[A] = { type OutInner[Ts] <: Tuple = Ts match { diff --git a/tests/pos/i7653.scala b/tests/pos/i7653.scala index 8511b6eef69b..61c75634d10e 100644 --- a/tests/pos/i7653.scala +++ b/tests/pos/i7653.scala @@ -1,4 +1,4 @@ -// https://github.com/lampepfl/dotty/issues/7653 +// https://github.com/scala/scala3/issues/7653 object options2 { type Option[T] = { diff --git a/tests/pos/i7790.scala b/tests/pos/i7790.scala index 0a0e2d2ce347..d2dfc5c892a4 100644 --- a/tests/pos/i7790.scala +++ b/tests/pos/i7790.scala @@ -1,4 +1,4 @@ -// https://github.com/lampepfl/dotty/issues/7790 +// https://github.com/scala/scala3/issues/7790 trait Foo: given Int = 10 def map(f: Int ?=> Int) = f diff --git a/tests/pos/i7807.scala b/tests/pos/i7807.scala index df8a41ddcf8d..118ad77c58c4 100644 --- a/tests/pos/i7807.scala +++ b/tests/pos/i7807.scala @@ -11,6 +11,6 @@ object Test: val m: n.type match { case 0 => 1 case 1 => 0 } = flip(n) - // The following do not work, see discussion in https://github.com/lampepfl/dotty/pull/7835/files/6e60814e69be5c8d60265d4ce4bc1758863c23d8#r361741296: + // The following do not work, see discussion in https://github.com/scala/scala3/pull/7835/files/6e60814e69be5c8d60265d4ce4bc1758863c23d8#r361741296: // flip(m) // flip(flip(n)) diff --git a/tests/pos/i8300.scala b/tests/pos/i8300.scala index f106b24dbd1c..f4634f7cd520 100644 --- a/tests/pos/i8300.scala +++ b/tests/pos/i8300.scala @@ -1,4 +1,4 @@ -// https://github.com/lampepfl/dotty/issues/8300 +// https://github.com/scala/scala3/issues/8300 type Bar[X] = X match { case List[a] => List[Tuple1[a]] diff --git a/tests/pos/kind-projector.scala b/tests/pos/kind-projector.scala index ff787d0111e2..4d6ec8c932a9 100644 --- a/tests/pos/kind-projector.scala +++ b/tests/pos/kind-projector.scala @@ -53,7 +53,7 @@ class BackticksAreFine6 extends FooPlus[BazPlus[Int => `-*`, `-*`, Int]] class BackticksAreFine7 extends Foo[λ[`-x` => BazPlus[x => `-*`, Int, x]]] class BackticksAreFine8 extends Foo[λ[`x` => BazPlus[x => `*`, Int, x]]] -// https://github.com/lampepfl/dotty/issues/13141 +// https://github.com/scala/scala3/issues/13141 // i13141 object A { class X { type Blah = Int } diff --git a/tests/run-macros/f-interpolator-tests.scala b/tests/run-macros/f-interpolator-tests.scala index 8c59ae19a187..e10301ad3115 100755 --- a/tests/run-macros/f-interpolator-tests.scala +++ b/tests/run-macros/f-interpolator-tests.scala @@ -2,7 +2,7 @@ * * The tests are sorted by argument category as the arguments are on https://docs.oracle.com/javase/6/docs/api/java/util/Formatter.html#detail * - * Some tests come from https://github.com/lampepfl/dotty/pull/3894/files + * Some tests come from https://github.com/scala/scala3/pull/3894/files */ object Test { def main(args: Array[String]) = { diff --git a/tests/run/i11583.scala b/tests/run/i11583.scala index 87701ac95310..fd4d63faa084 100644 --- a/tests/run/i11583.scala +++ b/tests/run/i11583.scala @@ -5,7 +5,7 @@ class Context: class Env: type Extra -// TODO: enable after https://github.com/lampepfl/dotty/issues/11700 is fixed +// TODO: enable after https://github.com/scala/scala3/issues/11700 is fixed // extension [Ctx <: Context](using ctx: Ctx)(tpe: ctx.Type)(using env: Env) // /** essentially: `extension (s: String) def &&:(b: Boolean)(i: Int)` // * but exercises the RefinedPrinter and safety of reordering parameters diff --git a/tests/run/i11706.scala b/tests/run/i11706.scala index 276ee408d266..f87f5697c35d 100644 --- a/tests/run/i11706.scala +++ b/tests/run/i11706.scala @@ -1,4 +1,4 @@ -// https://github.com/lampepfl/dotty/issues/11706 +// https://github.com/scala/scala3/issues/11706 import scala.compiletime.erasedValue object Obj: diff --git a/tests/run/i12032.scala b/tests/run/i12032.scala index 52358332e2c8..867a485e8222 100644 --- a/tests/run/i12032.scala +++ b/tests/run/i12032.scala @@ -1,4 +1,4 @@ -// https://github.com/lampepfl/dotty/issues/12032 +// https://github.com/scala/scala3/issues/12032 class Foo(val strings: Seq[String]) extends FooLowPriority trait FooLowPriority { self: Foo => diff --git a/tests/run/i13216.scala b/tests/run/i13216.scala index 174d0f200f31..59943672eac1 100644 --- a/tests/run/i13216.scala +++ b/tests/run/i13216.scala @@ -1,4 +1,4 @@ -// https://github.com/lampepfl/dotty/issues/13216 +// https://github.com/scala/scala3/issues/13216 import scala.annotation.targetName class C(s: String) extends AnyVal { diff --git a/tests/run/i13334.scala b/tests/run/i13334.scala index 2ee0987c13cc..4443114443e0 100644 --- a/tests/run/i13334.scala +++ b/tests/run/i13334.scala @@ -1,4 +1,4 @@ -// https://github.com/lampepfl/dotty/issues/13334 +// https://github.com/scala/scala3/issues/13334 trait DFC given DFC = new DFC {} diff --git a/tests/run/i13691b.scala b/tests/run/i13691b.scala index 1da726827467..eef09c38d431 100644 --- a/tests/run/i13691b.scala +++ b/tests/run/i13691b.scala @@ -1,4 +1,4 @@ -// https://github.com/lampepfl/dotty/issues/13691 +// https://github.com/scala/scala3/issues/13691 import language.experimental.saferExceptions trait Decoder[+T]: diff --git a/tests/run/i14582.scala b/tests/run/i14582.scala index bce33aa170b2..1f4d26dccf8d 100644 --- a/tests/run/i14582.scala +++ b/tests/run/i14582.scala @@ -1,4 +1,4 @@ -// https://github.com/lampepfl/dotty/issues/14582 +// https://github.com/scala/scala3/issues/14582 @main def Test() = val map = Map( "a" -> 1, diff --git a/tests/run/i15913.scala b/tests/run/i15913.scala index f3e98a3bfd6a..f3853e2f8cfe 100644 --- a/tests/run/i15913.scala +++ b/tests/run/i15913.scala @@ -1,4 +1,4 @@ -// https://github.com/lampepfl/dotty/issues/15913 +// https://github.com/lampepfl/scala/scala3/15913 class injector[F] diff --git a/tests/run/i4192/TestCases.scala b/tests/run/i4192/TestCases.scala index 33b4e458ebe7..7935b57d7fc2 100644 --- a/tests/run/i4192/TestCases.scala +++ b/tests/run/i4192/TestCases.scala @@ -62,7 +62,7 @@ class A { topLevel => new AA object AB { - val nestedOnce = this // self alias cannot be used uniformly here: https://github.com/lampepfl/dotty/issues/11648 + val nestedOnce = this // self alias cannot be used uniformly here: https://github.com/scala/scala3/issues/11648 checkMember(this, topLevel) diff --git a/tests/run/i4496b.scala b/tests/run/i4496b.scala index a6ed5b105e59..54459d15a8af 100644 --- a/tests/run/i4496b.scala +++ b/tests/run/i4496b.scala @@ -102,7 +102,7 @@ object Test { assert(consume(v) == 10) assert(consumeInl(v) == 10) assert(v.a == 10) - // Pending, per https://github.com/lampepfl/dotty/issues/4528. + // Pending, per https://github.com/scala/scala3/issues/4528. // v.a = 11 // assert(consume(v) == 11) // assert(consumeInl(v) == 11) diff --git a/tests/semanticdb/expect/Advanced.expect.scala b/tests/semanticdb/expect/Advanced.expect.scala index d36fcd611eef..0078bde9a078 100644 --- a/tests/semanticdb/expect/Advanced.expect.scala +++ b/tests/semanticdb/expect/Advanced.expect.scala @@ -43,7 +43,7 @@ object Test/*<-advanced::Test.*/ { } } - // see: https://github.com/lampepfl/dotty/pull/14608#discussion_r835642563 + // see: https://github.com/scala/scala3/pull/14608#discussion_r835642563 lazy val foo/*<-advanced::Test.foo.*/: (reflect.Selectable/*->scala::reflect::Selectable#*/ { type A/*<-local16*/ = Int/*->scala::Int#*/ }) &/*->scala::`&`#*/ (reflect.Selectable/*->scala::reflect::Selectable#*/ { type A/*<-local17*/ = Int/*->scala::Int#*/; val a/*<-local18*/: A/*->local17*/ }) = ???/*->scala::Predef.`???`().*/ def bar/*<-advanced::Test.bar().*/: foo/*->advanced::Test.foo.*/.A/*->local17*/ = foo/*->advanced::Test.foo.*/.a/*->scala::reflect::Selectable#selectDynamic().*/ } diff --git a/tests/semanticdb/expect/Advanced.scala b/tests/semanticdb/expect/Advanced.scala index 8e0d2f3a1692..dffd122aa798 100644 --- a/tests/semanticdb/expect/Advanced.scala +++ b/tests/semanticdb/expect/Advanced.scala @@ -43,7 +43,7 @@ object Test { } } - // see: https://github.com/lampepfl/dotty/pull/14608#discussion_r835642563 + // see: https://github.com/scala/scala3/pull/14608#discussion_r835642563 lazy val foo: (reflect.Selectable { type A = Int }) & (reflect.Selectable { type A = Int; val a: A }) = ??? def bar: foo.A = foo.a }