Skip to content

Commit da5d244

Browse files
committed
Merge branch 'main' into implement/Xlint/shadow_warnings
2 parents 2edd869 + b6e0e9e commit da5d244

File tree

1,680 files changed

+61578
-11746
lines changed

Some content is hidden

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

1,680 files changed

+61578
-11746
lines changed

.github/workflows/ci.yaml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ jobs:
134134

135135
- name: Cmd Tests
136136
run: |
137-
./project/scripts/sbt ";dist/pack; scala3-bootstrapped/compile; scala3-bootstrapped/test ;sbt-test/scripted scala2-compat/* ;stdlib-bootstrapped/test:run ;stdlib-bootstrapped-tasty-tests/test; scala3-compiler-bootstrapped/scala3CompilerCoursierTest:test"
137+
./project/scripts/sbt ";dist/pack; scala3-bootstrapped/compile; scala3-bootstrapped/test ;sbt-test/scripted scala2-compat/* ;stdlib-bootstrapped-tasty-tests/run ;stdlib-bootstrapped-tasty-tests/test; scala3-compiler-bootstrapped/scala3CompilerCoursierTest:test"
138138
./project/scripts/cmdTests
139139
./project/scripts/bootstrappedOnlyCmdTests
140140
@@ -255,6 +255,11 @@ jobs:
255255
run: |
256256
./project/scripts/sbt ";scala3-interfaces/mimaReportBinaryIssues ;scala3-library-bootstrapped/mimaReportBinaryIssues ;scala3-library-bootstrappedJS/mimaReportBinaryIssues; tasty-core-bootstrapped/mimaReportBinaryIssues; stdlib-bootstrapped/mimaReportBinaryIssues"
257257
258+
- name: TASTy MiMa
259+
run: |
260+
# This script cleans the compiler and recompiles it from scratch (keep as last run)
261+
./project/scripts/stdlib-bootstrapped-tasty-mima.sh
262+
258263
community_build_a:
259264
runs-on: [self-hosted, Linux]
260265
container:
@@ -488,7 +493,7 @@ jobs:
488493

489494
- name: Test
490495
run: |
491-
./project/scripts/sbt ";dist/pack ;scala3-bootstrapped/compile ;scala3-bootstrapped/test ;sbt-test/scripted scala2-compat/* ;stdlib-bootstrapped/test:run ;stdlib-bootstrapped-tasty-tests/test"
496+
./project/scripts/sbt ";dist/pack ;scala3-bootstrapped/compile ;scala3-bootstrapped/test ;sbt-test/scripted scala2-compat/* ;stdlib-bootstrapped-tasty-tests/run ;stdlib-bootstrapped-tasty-tests/test"
492497
./project/scripts/cmdTests
493498
./project/scripts/bootstrappedOnlyCmdTests
494499

.github/workflows/spec.yml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
name: Specification
2+
3+
on:
4+
push:
5+
tags:
6+
- '*'
7+
branches-ignore:
8+
- 'gh-readonly-queue/**'
9+
pull_request:
10+
merge_group:
11+
workflow_dispatch:
12+
13+
env:
14+
DOTTY_CI_RUN: true
15+
16+
jobs:
17+
specification:
18+
runs-on: ubuntu-latest
19+
defaults:
20+
run:
21+
working-directory: ./docs/_spec
22+
23+
steps:
24+
- uses: actions/checkout@v3
25+
26+
# Keep in sync with ./docs/_spec/Dockerfile
27+
- uses: ruby/setup-ruby@v1
28+
with:
29+
ruby-version: '2.7'
30+
- name: Install required gems
31+
run: |
32+
gem update --system
33+
gem install sass-embedded -v 1.58.0
34+
gem install bundler:1.17.2 jekyll
35+
bundle install
36+
npm install bower
37+
38+
- name: Build the specification
39+
run: |
40+
bundle exec jekyll build
41+
42+
# Deploy
43+
- name: Deployment
44+
env:
45+
USER_FOR_TEST: ${{ secrets.SPEC_DEPLOY_USER }}
46+
if: ${{ env.USER_FOR_TEST != '' }}
47+
uses: burnett01/rsync-deployments@6.0.0
48+
with:
49+
switches: -rzv
50+
path: docs/_spec/_site/
51+
remote_path: ${{ secrets.SPEC_DEPLOY_PATH }}
52+
remote_host: ${{ secrets.SPEC_DEPLOY_HOST }}
53+
remote_user: ${{ secrets.SPEC_DEPLOY_USER }}
54+
remote_key: ${{ secrets.SPEC_DEPLOY_KEY }}
55+
remote_key_pass: ${{ secrets.SPEC_DEPLOY_PASS }}

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,3 +99,6 @@ docs/_spec/.jekyll-metadata
9999
# scaladoc related
100100
scaladoc/output/
101101

102+
#coverage
103+
coverage/
104+

.gitmodules

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,6 @@
2828
[submodule "community-build/community-projects/scala-xml"]
2929
path = community-build/community-projects/scala-xml
3030
url = https://github.com/dotty-staging/scala-xml
31-
[submodule "community-build/community-projects/shapeless"]
32-
path = community-build/community-projects/shapeless
33-
url = https://github.com/dotty-staging/shapeless
34-
branch = shapeless-3-staging
3531
[submodule "community-build/community-projects/xml-interpolator"]
3632
path = community-build/community-projects/xml-interpolator
3733
url = https://github.com/dotty-staging/xml-interpolator.git
@@ -222,3 +218,6 @@
222218
[submodule "community-build/community-projects/parboiled2"]
223219
path = community-build/community-projects/parboiled2
224220
url = https://github.com/dotty-staging/parboiled2.git
221+
[submodule "community-build/community-projects/shapeless-3"]
222+
path = community-build/community-projects/shapeless-3
223+
url = https://github.com/dotty-staging/shapeless-3.git

NOTICE.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,15 +89,19 @@ major authors were omitted by oversight.
8989
details.
9090

9191
* dotty.tools.dotc.coverage: Coverage instrumentation utilities have been
92-
adapted from the scoverage plugin for scala 2 [5], which is under the
92+
adapted from the scoverage plugin for scala 2 [4], which is under the
9393
Apache 2.0 license.
9494

95+
* dooty.tools.pc: Presentation compiler implementation adapted from
96+
scalameta/metals [5] mtags module, which is under the Apache 2.0 license.
97+
9598
* The Dotty codebase contains parts which are derived from
96-
the ScalaPB protobuf library [4], which is under the Apache 2.0 license.
99+
the ScalaPB protobuf library [6], which is under the Apache 2.0 license.
97100

98101

99102
[1] https://github.com/scala/scala
100103
[2] https://github.com/adriaanm/scala/tree/sbt-api-consolidate/src/compiler/scala/tools/sbt
101104
[3] https://github.com/sbt/sbt/tree/0.13/compile/interface/src/main/scala/xsbt
102-
[4] https://github.com/lampepfl/dotty/pull/5783/files
103-
[5] https://github.com/scoverage/scalac-scoverage-plugin
105+
[4] https://github.com/scoverage/scalac-scoverage-plugin
106+
[5] https://github.com/scalameta/metals
107+
[6] https://github.com/lampepfl/dotty/pull/5783/files

bench-run/src/main/scala/dotty/tools/benchmarks/Main.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ object Bench {
6868
println()
6969
println("Usage:")
7070
println()
71-
println("dotty-bench-run/jmh:run [<warmup>] [<iterations>] [<forks>] <regexp> [<input>|--] [<output>]")
71+
println("scala3-bench-run/jmh:run [<warmup>] [<iterations>] [<forks>] <regexp> [<input>|--] [<output>]")
7272
println()
7373
println("warmup: warmup iterations. defaults to 20.")
7474
println("iterations: benchmark iterations. defaults to 20.")

bench/scripts/collection-vector.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
#!/usr/bin/env bash
2-
sbt "dotty-bench-bootstrapped/jmh:run 40 40 3 bench/tests/Vector.scala"
2+
sbt "scala3-bench-bootstrapped/jmh:run 40 40 3 bench/tests/Vector.scala"

bench/scripts/compiler-cold.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
#!/usr/bin/env bash
2-
find compiler/src/ -type f \( -name "*.scala" -or -name "*.java" \) -exec echo "dotty-bench-bootstrapped/jmh:run 0 1 10" {} + | sbt
2+
find compiler/src/ -type f \( -name "*.scala" -or -name "*.java" \) -exec echo "scala3-bench-bootstrapped/jmh:run 0 1 10" {} + | sbt

bench/scripts/compiler.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
#!/usr/bin/env bash
2-
find compiler/src/ -type f \( -name "*.scala" -or -name "*.java" \) -exec echo "dotty-bench-bootstrapped/jmh:run 5 10" {} + | sbt
2+
find compiler/src/ -type f \( -name "*.scala" -or -name "*.java" \) -exec echo "scala3-bench-bootstrapped/jmh:run 5 10" {} + | sbt

bench/scripts/library-cold.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
#!/usr/bin/env bash
2-
find library/src/ -type f \( -name "*.scala" -or -name "*.java" \) -exec echo "dotty-bench-bootstrapped/jmh:run 0 1 10" {} + | sbt
2+
find library/src/ -type f \( -name "*.scala" -or -name "*.java" \) -exec echo "scala3-bench-bootstrapped/jmh:run 0 1 10" {} + | sbt

0 commit comments

Comments
 (0)