Skip to content

Commit 6d0f594

Browse files
committed
Merge remote-tracking branch 'upstream/master' into topic/http4s
2 parents 6e3233e + 59a3d9c commit 6d0f594

File tree

624 files changed

+7642
-3603
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

624 files changed

+7642
-3603
lines changed

.github/ISSUE_TEMPLATE/bug.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name: "\U0001F41B Bug report"
33
about: Report a bug about the Dotty Compiler
44
title: ''
5-
labels: itype:bug
5+
labels: itype:bug, stat:needs triage
66
assignees: ''
77

88
---

.github/ISSUE_TEMPLATE/crash.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name: "\U0001F4A5 Crash report"
33
about: Report a Dotty compiler crash
44
title: ''
5-
labels: itype:bug, itype:crash
5+
labels: itype:bug, itype:crash, stat:needs triage
66
assignees: ''
77

88
---

.github/ISSUE_TEMPLATE/other-issue.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
---
2-
name: "Other issue"
2+
name: Other issue
33
about: Report an issue about the Dotty Compiler (not bug or crash)
44
title: ''
5-
labels:
5+
labels: stat:needs triage
66
assignees: ''
7+
78
---
89

910
## Compiler version
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
name: Syntax highlighting
3-
about: ''
3+
about: Please create a syntax highlighting issue in a respective repo
44
title: ''
55
labels: ''
66
assignees: ''
@@ -10,4 +10,4 @@ assignees: ''
1010
Please create a syntax highlighting issue here
1111
* VS Code / GitHub: https://github.com/scala/vscode-scala-syntax/issues
1212
* IntelliJ: https://youtrack.jetbrains.com/issues/SCL?q=tag:%20%7BScala%203%7D%20tag:%20%7BSyntax%20Highlighting%7D
13-
* highlight.js: https://github.com/highlightjs/highlight.js/issues
13+
* highlight.js: https://github.com/highlightjs/highlight.js/issues

.github/workflows/ci.yaml

Lines changed: 50 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ jobs:
6666

6767
- name: Test
6868
run: |
69-
./project/scripts/sbt ";compile ;test"
69+
./project/scripts/sbt ";dist/pack; compile ;test"
7070
./project/scripts/cmdTests
7171
7272
test:
@@ -111,7 +111,7 @@ jobs:
111111

112112
- name: Cmd Tests
113113
run: |
114-
./project/scripts/sbt ";scala3-bootstrapped/compile; scala3-bootstrapped/test;sjsSandbox/run;sjsSandbox/test;sjsJUnitTests/test;sjsCompilerTests/test ;sbt-test/scripted scala2-compat/* ;configureIDE ;stdlib-bootstrapped/test:run ;stdlib-bootstrapped-tasty-tests/test; scala3-compiler-bootstrapped/scala3CompilerCoursierTest:test"
114+
./project/scripts/sbt ";dist/pack; scala3-bootstrapped/compile; scala3-bootstrapped/test;sjsSandbox/run;sjsSandbox/test;sjsJUnitTests/test;sjsCompilerTests/test ;sbt-test/scripted scala2-compat/* ;configureIDE ;stdlib-bootstrapped/test:run ;stdlib-bootstrapped-tasty-tests/test; scala3-compiler-bootstrapped/scala3CompilerCoursierTest:test"
115115
./project/scripts/bootstrapCmdTests
116116
117117
- name: MiMa
@@ -181,7 +181,7 @@ jobs:
181181
uses: actions/checkout@v2
182182

183183
- name: Test
184-
run: sbt ";scala3-bootstrapped/compile ;scala3-bootstrapped/test"
184+
run: sbt ";dist/pack ;scala3-bootstrapped/compile ;scala3-bootstrapped/test"
185185
shell: cmd
186186

187187
- name: Scala.js Test
@@ -317,6 +317,49 @@ jobs:
317317
git submodule update --init --recursive --jobs 7
318318
./project/scripts/sbt "community-build/testOnly dotty.communitybuild.CommunityBuildTestC"
319319
320+
community_build_forward_compat:
321+
runs-on: [self-hosted, Linux]
322+
container:
323+
image: lampepfl/dotty:2021-03-22
324+
options: --cpu-shares 4096
325+
volumes:
326+
- ${{ github.workspace }}/../../cache/sbt:/root/.sbt
327+
- ${{ github.workspace }}/../../cache/ivy:/root/.ivy2/cache
328+
- ${{ github.workspace }}/../../cache/general:/root/.cache
329+
if: "github.event_name == 'schedule' && github.repository == 'lampepfl/dotty'
330+
|| (
331+
github.event_name == 'pull_request'
332+
&& !contains(github.event.pull_request.body, '[skip ci]')
333+
&& !contains(github.event.pull_request.body, '[skip community_build]')
334+
&& contains(github.event.pull_request.body, '[test_forward_compat]')
335+
)
336+
|| (
337+
github.event_name == 'workflow_dispatch'
338+
&& github.repository == 'lampepfl/dotty'
339+
)"
340+
341+
steps:
342+
- name: Reset existing repo
343+
run: git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/lampepfl/dotty" && git reset --hard FETCH_HEAD || true
344+
345+
- name: Checkout cleanup script
346+
uses: actions/checkout@v2
347+
348+
- name: Cleanup
349+
run: .github/workflows/cleanup.sh
350+
351+
- name: Git Checkout
352+
uses: actions/checkout@v2
353+
354+
- name: Add SBT proxy repositories
355+
run: cp -vf .github/workflows/repositories /root/.sbt/ ; true
356+
357+
- name: Test
358+
run: |
359+
git submodule sync
360+
git submodule update --init --recursive --jobs 7
361+
./project/scripts/sbt "community-build/testOnly dotty.communitybuild.CommunityBuildTestForwardCompat"
362+
320363
test_sbt:
321364
runs-on: [self-hosted, Linux]
322365
container:
@@ -403,7 +446,7 @@ jobs:
403446

404447
- name: Test
405448
run: |
406-
./project/scripts/sbt ";scala3-bootstrapped/compile ;scala3-bootstrapped/test;sjsSandbox/run;sjsSandbox/test;sjsJUnitTests/test;sjsCompilerTests/test ;sbt-test/scripted scala2-compat/* ;configureIDE ;stdlib-bootstrapped/test:run ;stdlib-bootstrapped-tasty-tests/test"
449+
./project/scripts/sbt ";dist/pack ;scala3-bootstrapped/compile ;scala3-bootstrapped/test;sjsSandbox/run;sjsSandbox/test;sjsJUnitTests/test;sjsCompilerTests/test ;sbt-test/scripted scala2-compat/* ;configureIDE ;stdlib-bootstrapped/test:run ;stdlib-bootstrapped-tasty-tests/test"
407450
./project/scripts/bootstrapCmdTests
408451
409452
publish_nightly:
@@ -415,7 +458,7 @@ jobs:
415458
- ${{ github.workspace }}/../../cache/sbt:/root/.sbt
416459
- ${{ github.workspace }}/../../cache/ivy:/root/.ivy2/cache
417460
- ${{ github.workspace }}/../../cache/general:/root/.cache
418-
needs: [test_non_bootstrapped, test, community_build_a, community_build_b, community_build_c, test_sbt, test_java8]
461+
needs: [test_non_bootstrapped, test, community_build_a, community_build_b, community_build_c, community_build_forward_compat, test_sbt, test_java8]
419462
if: "(github.event_name == 'schedule' || github.event_name == 'workflow_dispatch') && github.repository == 'lampepfl/dotty'"
420463
env:
421464
NIGHTLYBUILD: yes
@@ -473,7 +516,8 @@ jobs:
473516
DOTTY_WEBSITE_BOT_TOKEN: ${{ secrets.BOT_TOKEN }} # If you need to change this:
474517
# Generate one at https://github.com/settings/tokens
475518
# Make sure you have the write permissions to the repo: https://github.com/lampepfl/dotty-website
476-
DOCS_SCALALANG_BOT_TOKEN: ${{ secrets.DOCS_SCALALANG_BOT_TOKEN }} # If you need to change this:
519+
# Currently unused token, no need to deploy anything to docs.scala-lang
520+
# DOCS_SCALALANG_BOT_TOKEN: ${{ secrets.DOCS_SCALALANG_BOT_TOKEN }} # If you need to change this:
477521
# Generate one at https://github.com/settings/tokens
478522
# Make sure you have the write permissions to the repo: https://github.com/scala/docs.scala-lang
479523

.gitignore

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,9 @@ tests/partest-generated/
5858
tests/locks/
5959
/test-classes/
6060

61+
# Benchmarks
62+
bench/tests-generated
63+
6164
# Ignore output files but keep the directory
6265
out/
6366
build/
@@ -103,9 +106,6 @@ cs
103106
# Coursier test product
104107
compiler/test-coursier/run/*.jar
105108

106-
# Docs
107-
docs-for-dotty-page/*
108-
109-
# docs.scala-lang deplyment temp dir
110-
docsScalaLang/
111-
docs/_site/
109+
# docs related
110+
contributors.js
111+
content-contributors.css

.gitmodules

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,3 +222,34 @@
222222
[submodule "community-build/community-projects/http4s"]
223223
path = community-build/community-projects/http4s
224224
url = https://github.com/http4s/http4s.git
225+
[submodule "community-build/community-projects/munit-forward-compat"]
226+
path = community-build/community-projects/munit-forward-compat
227+
url = https://github.com/dotty-staging/munit.git
228+
[submodule "community-build/community-projects/discipline-forward-compat"]
229+
path = community-build/community-projects/discipline-forward-compat
230+
url = https://github.com/dotty-staging/discipline.git
231+
[submodule "community-build/community-projects/discipline-munit-forward-compat"]
232+
path = community-build/community-projects/discipline-munit-forward-compat
233+
url = https://github.com/dotty-staging/discipline-munit.git
234+
[submodule "community-build/community-projects/discipline-specs2-forward-compat"]
235+
path = community-build/community-projects/discipline-specs2-forward-compat
236+
url = https://github.com/dotty-staging/discipline-specs2.git
237+
[submodule "community-build/community-projects/simulacrum-scalafix-forward-compat"]
238+
path = community-build/community-projects/simulacrum-scalafix-forward-compat
239+
url = https://github.com/dotty-staging/simulacrum-scalafix.git
240+
[submodule "community-build/community-projects/cats-forward-compat"]
241+
path = community-build/community-projects/cats-forward-compat
242+
url = https://github.com/dotty-staging/cats.git
243+
[submodule "community-build/community-projects/cats-mtl-forward-compat"]
244+
path = community-build/community-projects/cats-mtl-forward-compat
245+
url = https://github.com/dotty-staging/cats-mtl.git
246+
[submodule "community-build/community-projects/coop-forward-compat"]
247+
path = community-build/community-projects/coop-forward-compat
248+
url = https://github.com/dotty-staging/coop.git
249+
[submodule "community-build/community-projects/cats-effect-3-forward-compat"]
250+
path = community-build/community-projects/cats-effect-3-forward-compat
251+
url = https://github.com/dotty-staging/cats-effect.git
252+
branch = series/3.x
253+
[submodule "community-build/community-projects/scalacheck-forward-compat"]
254+
path = community-build/community-projects/scalacheck-forward-compat
255+
url = https://github.com/dotty-staging/scalacheck

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ These guidelines are meant to be a living document that should be changed and ad
66

77
This is the process for committing code to the Scala project. There are of course exceptions to these rules, for example minor changes to comments and documentation, fixing a broken build etc.
88

9-
1. Make sure you have signed the [Scala CLA](http://typesafe.com/contribute/cla/scala), if not, sign it.
9+
1. Make sure you have signed the [Scala CLA](https://www.lightbend.com/contribute/cla/scala), if not, sign it.
1010
2. Before starting to work on a feature or a fix, it's good practice to ensure that:
1111
1. There is a ticket for your work in the project's [issue tracker](https://github.com/lampepfl/dotty/issues);
1212
2. The ticket has been discussed and prioritized by the team.

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Dotty
22
=====
33
[![Dotty CI](https://github.com/lampepfl/dotty/workflows/Dotty/badge.svg?branch=master)](https://github.com/lampepfl/dotty/actions?query=branch%3Amaster)
4-
[![Join the chat at https://gitter.im/scala/scala](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/scala/scala?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
4+
[![Join the chat at https://discord.com/invite/scala](https://img.shields.io/discord/632150470000902164)](https://img.shields.io/discord/632150470000902164)
55

66
* [Homepage](https://dotty.epfl.ch)
77
* [Documentation](https://dotty.epfl.ch/docs)
@@ -18,7 +18,7 @@ Building a Local Distribution
1818
Code of Conduct
1919
===============
2020
Dotty uses the [Scala Code of Conduct](https://www.scala-lang.org/conduct.html)
21-
for all communication and discussion. This includes both GitHub, Gitter chat and
21+
for all communication and discussion. This includes both GitHub, Discord and
2222
other more direct lines of communication such as email.
2323

2424
How to Contribute

bench/profiles/ci.yml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,55 +1,55 @@
11
scripts:
22

33
re2s:
4-
- measure -wi 1 -i 1 -f 1 -- $(find $PROG_HOME/tests/re2s/src -name *.scala)
4+
- measure 1 1 1 $(find $PROG_HOME/tests/re2s/src -name *.scala)
55

66
implicit-cache:
7-
- measure -wi 1 -i 1 -f 1 -- $PROG_HOME/dotty/tests/bench/implicit_cache.scala
7+
- measure 1 1 1 $PROG_HOME/dotty/tests/bench/implicit_cache.scala
88

99
implicit-cache-from-tasty:
1010
- source $PROG_HOME/dotty/bench/scripts/implicit-cache-from-tasty
1111

1212
implicit-scope-loop:
13-
- measure -wi 1 -i 1 -f 1 -- $PROG_HOME/dotty/tests/bench/implicit-scope-loop.scala
13+
- measure 1 1 1 $PROG_HOME/dotty/tests/bench/implicit-scope-loop.scala
1414

1515
i1535:
16-
- measure -wi 1 -i 1 -f 1 -- $PROG_HOME/dotty/tests/bench/i1535.scala
16+
- measure 1 1 1 $PROG_HOME/dotty/tests/bench/i1535.scala
1717

1818
i1687:
19-
- measure -wi 1 -i 1 -f 1 -- $PROG_HOME/dotty/tests/bench/i1687.scala
19+
- measure 1 1 1 $PROG_HOME/dotty/tests/bench/i1687.scala
2020

2121
empty-class:
22-
- measure -wi 1 -i 1 -f 1 -- $PROG_HOME/dotty/tests/bench/empty-class.scala
22+
- measure 1 1 1 $PROG_HOME/dotty/tests/bench/empty-class.scala
2323

2424
empty-object:
25-
- measure -wi 1 -i 1 -f 1 -- $PROG_HOME/dotty/tests/bench/empty-object.scala
25+
- measure 1 1 1 $PROG_HOME/dotty/tests/bench/empty-object.scala
2626

2727
empty-file:
28-
- measure -wi 1 -i 1 -f 1 -- $PROG_HOME/dotty/tests/bench/empty-file.scala
28+
- measure 1 1 1 $PROG_HOME/dotty/tests/bench/empty-file.scala
2929

3030
patmatexhaust:
31-
- measure -wi 1 -i 1 -f 1 -- $PROG_HOME/dotty/tests/bench/patmatexhaust.scala
31+
- measure 1 1 1 $PROG_HOME/dotty/tests/bench/patmatexhaust.scala
3232

3333
exhaustivity-I:
34-
- measure -wi 1 -i 1 -f 1 -- $PROG_HOME/dotty/tests/bench/exhaustivity-I.scala
34+
- measure 1 1 1 $PROG_HOME/dotty/tests/bench/exhaustivity-I.scala
3535

3636
exhaustivity-S:
37-
- measure -wi 1 -i 1 -f 1 -- $PROG_HOME/dotty/tests/bench/exhaustivity-S.scala
37+
- measure 1 1 1 $PROG_HOME/dotty/tests/bench/exhaustivity-S.scala
3838

3939
exhaustivity-T:
40-
- measure -wi 1 -i 1 -f 1 -- $PROG_HOME/dotty/tests/bench/exhaustivity-T.scala
40+
- measure 1 1 1 $PROG_HOME/dotty/tests/bench/exhaustivity-T.scala
4141

4242
exhaustivity-V:
43-
- measure -wi 1 -i 1 -f 1 -- $PROG_HOME/dotty/tests/bench/exhaustivity-V.scala
43+
- measure 1 1 1 $PROG_HOME/dotty/tests/bench/exhaustivity-V.scala
4444

4545
implicitNums:
46-
- measure -wi 1 -i 1 -f 1 -- $PROG_HOME/dotty/tests/bench/implicitNums.scala
46+
- measure 1 1 1 $PROG_HOME/dotty/tests/bench/implicitNums.scala
4747

4848
implicitNums-from-tasty:
4949
- source $PROG_HOME/dotty/bench/scripts/implicitNums-from-tasty
5050

5151
inductive-implicits:
52-
- measure -wi 1 -i 1 -f 1 -- $PROG_HOME/dotty/tests/bench/inductive-implicits.scala
52+
- measure 1 1 1 $PROG_HOME/dotty/tests/bench/inductive-implicits.scala
5353

5454
scalap:
5555
- source $PROG_HOME/dotty/bench/scripts/scalap

bench/profiles/compiletime.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
charts:
2+
3+
- name: "Compile-time sums of constant integer types (generated)"
4+
url: https://github.com/lampepfl/dotty/blob/master/bench/src/main/scala/generateBenchmarks.scala
5+
lines:
6+
- key: compiletime-sum-constants
7+
label: bootstrapped
8+
9+
- name: "Compile-time sums of term reference types (generated)"
10+
url: https://github.com/lampepfl/dotty/blob/master/bench/src/main/scala/generateBenchmarks.scala
11+
lines:
12+
- key: compiletime-sum-termrefs
13+
label: bootstrapped
14+
15+
- name: "Sums of term references, result type inferred (generated)"
16+
url: https://github.com/lampepfl/dotty/blob/master/bench/src/main/scala/generateBenchmarks.scala
17+
lines:
18+
- key: compiletime-sum-termrefs-terms
19+
label: bootstrapped
20+
21+
- name: "Compile-time sums of type applications (generated)"
22+
url: https://github.com/lampepfl/dotty/blob/master/bench/src/main/scala/generateBenchmarks.scala
23+
lines:
24+
- key: compiletime-sum-applications
25+
label: bootstrapped
26+
27+
- name: "Compile-time additions inside multiplications (generated)"
28+
url: https://github.com/lampepfl/dotty/blob/master/bench/src/main/scala/generateBenchmarks.scala
29+
lines:
30+
- key: compiletime-distribute
31+
label: bootstrapped
32+
33+
scripts:
34+
35+
compiletime-sum-constants:
36+
- measure 6 6 7 1 $PROG_HOME/dotty/bench/tests-generated/compiletime-ops/sum-constants.scala
37+
38+
compiletime-sum-termrefs:
39+
- measure 6 6 7 1 $PROG_HOME/dotty/bench/tests-generated/compiletime-ops/sum-termrefs.scala
40+
41+
compiletime-sum-termrefs-terms:
42+
- measure 6 6 7 1 $PROG_HOME/dotty/bench/tests-generated/compiletime-ops/sum-termrefs-terms.scala
43+
44+
compiletime-sum-applications:
45+
- measure 6 6 7 1 $PROG_HOME/dotty/bench/tests-generated/compiletime-ops/sum-applications.scala
46+
47+
compiletime-distribute:
48+
- measure 6 6 7 1 $PROG_HOME/dotty/bench/tests-generated/compiletime-ops/distribute.scala
49+
50+
config:
51+
pr_base_url: "https://github.com/lampepfl/dotty/pull/"

bench/profiles/default.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ includes:
77
- empty.yml
88
- quotes.yml
99
- tuples.yml
10+
- compiletime.yml
1011

1112

1213
config:

bench/profiles/empty.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@ charts:
2121
scripts:
2222

2323
empty-class:
24-
- measure -- $PROG_HOME/dotty/tests/bench/empty-class.scala
24+
- measure $PROG_HOME/dotty/tests/bench/empty-class.scala
2525

2626
empty-object:
27-
- measure -- $PROG_HOME/dotty/tests/bench/empty-object.scala
27+
- measure $PROG_HOME/dotty/tests/bench/empty-object.scala
2828

2929
empty-file:
30-
- measure -- $PROG_HOME/dotty/tests/bench/empty-file.scala
30+
- measure $PROG_HOME/dotty/tests/bench/empty-file.scala
3131

3232
config:
3333
pr_base_url: "https://github.com/lampepfl/dotty/pull/"

0 commit comments

Comments
 (0)