Skip to content

Commit 8deaaad

Browse files
[chore] Sync language-reference-stable with release 3.7.1 (#23307)
1 parent 688b7ac commit 8deaaad

File tree

485 files changed

+11028
-4368
lines changed

Some content is hidden

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

485 files changed

+11028
-4368
lines changed

.git-blame-ignore-revs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
46a26945a172429740ebdd1fc83517130670080b

.github/workflows/ci.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -692,7 +692,7 @@ jobs:
692692
- name: Publish Nightly
693693
if: "steps.not_yet_published.outcome == 'success'"
694694
run: |
695-
./project/scripts/sbtPublish ";project scala3-bootstrapped ;publishSigned ;sonatypeBundleRelease"
695+
./project/scripts/sbtPublish ";project scala3-bootstrapped ;publishSigned ;sonaRelease"
696696
697697
nightly_documentation:
698698
runs-on: [self-hosted, Linux]
@@ -862,7 +862,7 @@ jobs:
862862
scala3-${{ env.RELEASE_TAG }}.msi
863863
864864
- name: Publish Release
865-
run: ./project/scripts/sbtPublish ";project scala3-bootstrapped ;publishSigned ;sonatypeBundleUpload"
865+
run: ./project/scripts/sbtPublish ";project scala3-bootstrapped ;publishSigned ;sonaUpload"
866866

867867

868868
open_issue_on_failure:

.github/workflows/lts-backport.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ on:
77

88
jobs:
99
add-to-backporting-project:
10-
if: "!contains(github.event.push.head_commit.message, '[Next only]')"
10+
if: "!contains(github.event.push.head_commit.message, '[Next only]') &&
11+
github.repository == 'scala/scala3'"
1112
runs-on: ubuntu-latest
1213

1314
steps:

.github/workflows/publish-sdkman.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ on:
2424
CONSUMER-KEY:
2525
required: true
2626
CONSUMER-TOKEN:
27-
required: true
27+
required: true
2828

2929
env:
3030
RELEASE-URL: 'https://github.com/scala/scala3/releases/download/${{ inputs.version }}'
@@ -46,15 +46,15 @@ jobs:
4646
- platform: WINDOWS_64
4747
archive : 'scala3-${{ inputs.version }}-x86_64-pc-win32.zip'
4848
steps:
49-
- uses: sdkman/sdkman-release-action@a60691d56279724b4c9ff0399c0ae21d641ab75e
49+
- uses: sdkman/sdkman-release-action@2800d4359ae097a99afea7e0370f0c6e726182a4
5050
with:
5151
CONSUMER-KEY : ${{ secrets.CONSUMER-KEY }}
5252
CONSUMER-TOKEN : ${{ secrets.CONSUMER-TOKEN }}
5353
CANDIDATE : scala
5454
VERSION : ${{ inputs.version }}
5555
URL : '${{ env.RELEASE-URL }}/${{ matrix.archive }}'
5656
PLATFORM : ${{ matrix.platform }}
57-
57+
5858
default:
5959
runs-on: ubuntu-latest
6060
needs: publish

.jvmopts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
-Xss1m
2-
-Xms512m
3-
-Xmx4096m
2+
-Xms1024m
3+
-Xmx8192m
44
-XX:MaxInlineLevel=35
55
-XX:ReservedCodeCacheSize=512m

changelogs/3.7.1-RC1.md

Lines changed: 157 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,157 @@
1+
# Highlights of the release
2+
3+
- Support for JDK 25 [#23004](https://github.com/scala/scala3/pull/23004)
4+
- Warn if interpolator uses toString [#20578](https://github.com/scala/scala3/pull/20578)
5+
- Warn if match in block is not used for PartialFunction [#23002](https://github.com/scala/scala3/pull/23002)
6+
7+
# Other changes and fixes
8+
9+
## Annotations
10+
11+
- Approximate annotated types in `wildApprox` [#22893](https://github.com/scala/scala3/pull/22893)
12+
- Keep unused annot on params [#23037](https://github.com/scala/scala3/pull/23037)
13+
14+
## Erasure
15+
16+
- Disallow context function types as value-class parameters [#23015](https://github.com/scala/scala3/pull/23015)
17+
18+
## Experimental: Capture Checking
19+
20+
- Two fixes to handling of abstract types with cap bounds [#22838](https://github.com/scala/scala3/pull/22838)
21+
- Drop idempotent type maps [#22910](https://github.com/scala/scala3/pull/22910)
22+
- Fix setup of class constructors [#22980](https://github.com/scala/scala3/pull/22980)
23+
24+
## Named Tuples
25+
26+
- Call dealias after stripping type variables for tupleElementTypesUpTo [#23005](https://github.com/scala/scala3/pull/23005)
27+
- Avoid loosing denotations of named types during `integrate` [#22839](https://github.com/scala/scala3/pull/22839)
28+
29+
## Experimental: Unroll
30+
31+
- Fix #22833: allow unroll annotation in methods of final class [#22926](https://github.com/scala/scala3/pull/22926)
32+
33+
## Experimental: Referencable Package Objects
34+
35+
- Add experimental.packageObjectValues language setting [#23001](https://github.com/scala/scala3/pull/23001)
36+
37+
## Exports
38+
39+
- Respect export alias for default arg forwarder [#21109](https://github.com/scala/scala3/pull/21109)
40+
41+
## Extension Methods
42+
43+
- Extension check checks for no parens not empty parens [#22825](https://github.com/scala/scala3/pull/22825)
44+
45+
## GADTs
46+
47+
- Fix: Prevent GADT reasoning in pattern alternatives [#22853](https://github.com/scala/scala3/pull/22853)
48+
49+
## Linting
50+
51+
- Dealias when looking into imports [#22889](https://github.com/scala/scala3/pull/22889)
52+
- Process Export for unused check [#22984](https://github.com/scala/scala3/pull/22984)
53+
- Drill into QuotePattern bindings symbol info [#22987](https://github.com/scala/scala3/pull/22987)
54+
- No warn implicit param of overriding method [#22901](https://github.com/scala/scala3/pull/22901)
55+
- No warn for evidence params of marker traits such as NotGiven [#22985](https://github.com/scala/scala3/pull/22985)
56+
57+
## Initialization
58+
59+
- Check for tasty error in template trees. [#22867](https://github.com/scala/scala3/pull/22867)
60+
61+
## Metaprogramming: Compile-time
62+
63+
- Fix issue with certain synthetics missing in compiletime.typechecks [#22978](https://github.com/scala/scala3/pull/22978)
64+
65+
## Pattern Matching
66+
67+
- Fix existing GADT constraints with introduced pattern-bound symbols [#22928](https://github.com/scala/scala3/pull/22928)
68+
69+
## Pickling
70+
71+
- Fix fromProduct synthesized code for parameter-dependent case classes [#22961](https://github.com/scala/scala3/pull/22961)
72+
73+
## Presentation Compiler
74+
75+
- Completions for requests just before string [#22894](https://github.com/scala/scala3/pull/22894)
76+
- Fix: go to def should lead to all: apply, object and class [#22771](https://github.com/scala/scala3/pull/22771)
77+
- Ignore ending `$` when looking at end marker names [#22798](https://github.com/scala/scala3/pull/22798)
78+
- Feature: Skip auto importing symbols we know are wrong in current context [#22813](https://github.com/scala/scala3/pull/22813)
79+
- Show the Autofill completion case as what would be auto-filled [#22819](https://github.com/scala/scala3/pull/22819)
80+
- Bugfix: Fix issues with annotations not detected [#22878](https://github.com/scala/scala3/pull/22878)
81+
- Improvement: Rework IndexedContext to reuse the previously calculated scopes [#22898](https://github.com/scala/scala3/pull/22898)
82+
- Pc: Properly adjust indentation when inlining blocks [#22915](https://github.com/scala/scala3/pull/22915)
83+
- Improvement: Support using directives in worksheets [#22957](https://github.com/scala/scala3/pull/22957)
84+
- Fix: show hover for synthetics if explicitly used [#22973](https://github.com/scala/scala3/pull/22973)
85+
- Pc: fix: inline value when def indentation equals 2 [#22990](https://github.com/scala/scala3/pull/22990)
86+
87+
## Rewrites
88+
89+
- Fix insertion of `using` in applications with trailing lambda syntax [#22937](https://github.com/scala/scala3/pull/22937)
90+
- Test chars safely when highlighting [#22918](https://github.com/scala/scala3/pull/22918)
91+
92+
## Reporting
93+
94+
- Print infix operations in infix form [#22854](https://github.com/scala/scala3/pull/22854)
95+
96+
## Scaladoc
97+
98+
- Chore: add support for 'abstract override' modifier [#22802](https://github.com/scala/scala3/pull/22802)
99+
- Scaladoc: fix generation of unique header ids [#22779](https://github.com/scala/scala3/pull/22779)
100+
101+
## Typer
102+
103+
- Disallow context bounds in type lambdas [#22659](https://github.com/scala/scala3/pull/22659)
104+
- Refuse trailing type parameters in extractors [#22699](https://github.com/scala/scala3/pull/22699)
105+
- Fix #22724: Revert the PolyType case in #21744 [#22820](https://github.com/scala/scala3/pull/22820)
106+
- Fix isGenericArrayElement for higher-kinded types [#22938](https://github.com/scala/scala3/pull/22938)
107+
- Tighten condition to preserve denotation in IntegrateMap [#23060](https://github.com/scala/scala3/pull/23060)
108+
109+
## Transform
110+
111+
- Mix in the `productPrefix` hash statically in case class `hashCode` [#22865](https://github.com/scala/scala3/pull/22865)
112+
113+
## Value Classes
114+
115+
- Fix #21918: Disallow value classes extending type aliases of AnyVal [#23021](https://github.com/scala/scala3/pull/23021)
116+
117+
118+
# Contributors
119+
120+
Thank you to all the contributors who made this release possible 🎉
121+
122+
According to `git shortlog -sn --no-merges 3.7.0..3.7.1-RC1` these are:
123+
124+
```
125+
135 Martin Odersky
126+
27 Som Snytt
127+
13 Matt Bovel
128+
10 Wojciech Mazur
129+
9 Hamza Remmal
130+
5 Quentin Bernet
131+
5 Tomasz Godzik
132+
4 aherlihy
133+
3 HarrisL2
134+
3 Jan Chyb
135+
3 Natsu Kagami
136+
3 Ondrej Lhotak
137+
3 Sébastien Doeraene
138+
2 Piotr Chabelski
139+
2 Yichen Xu
140+
2 Yoonjae Jeon
141+
2 kasiaMarek
142+
1 Aleksey Troitskiy
143+
1 Daisy Li
144+
1 Dale Wijnand
145+
1 Jan-Pieter van den Heuvel
146+
1 Jędrzej Rochala
147+
1 Kacper Korban
148+
1 Katarzyna Marek
149+
1 Lukas Rytz
150+
1 Mikołaj Fornal
151+
1 Nikita Glushchenko
152+
1 Oliver Bračevac
153+
1 Ondřej Lhoták
154+
1 dependabot[bot]
155+
1 noti0na1
156+
1 philippus
157+
```

changelogs/3.7.1-RC2.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Backported chnages
2+
3+
- Backport "chore: filter allowed source versions by import and by settings" to 3.7.1 (#23231)
4+
- Backport "Bump Scala CLI to v1.8.0 (was v1.7.1)" to 3.7.1 (#23230)
5+
- Backport "Mention extension in unused param warning" to 3.7.1 (#23229)
6+
- Backport "Revert recent changes to opaque type proxy generation" to 3.7.1 (#23228)
7+
- Backport "Remove premature caching of lookups for unused lint" to 3.7.1 (#23227)
8+
9+
# Reverted changes
10+
11+
- Revert "Make overload pruning based on result types less aggressive (#21744)" in 3.7.1-RC2 (#23239)
12+
13+
# Contributors
14+
15+
Thank you to all the contributors who made this release possible 🎉
16+
17+
According to `git shortlog -sn --no-merges 3.7.1-RC1..3.7.1-RC2` these are:
18+
19+
```
20+
4 Hamza Remmal
21+
4 Som Snytt
22+
3 Jan Chyb
23+
3 Wojciech Mazur
24+
1 Piotr Chabelski
25+
```

0 commit comments

Comments
 (0)