Skip to content

Commit ee5bab9

Browse files
authored
Merge pull request #15201 from lampepfl/language-reference-backport
Backport changes from stable documentation branch
2 parents 4c00b5d + 4c43b12 commit ee5bab9

File tree

7 files changed

+213
-173
lines changed

7 files changed

+213
-173
lines changed

docs/_docs/internals/syntax-3.1.md

+163-163
Large diffs are not rendered by default.

docs/_docs/reference/experimental/explicit-nulls.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ val c = new C()
8686
```
8787

8888
The unsoundness above can be caught by the compiler with the option `-Ysafe-init`.
89-
More details can be found in [safe initialization](./safe-initialization.md).
89+
More details can be found in [safe initialization](../other-new-features/safe-initialization.md).
9090

9191
## Equality
9292

docs/_docs/reference/other-new-features/indentation-experimental.md renamed to docs/_docs/reference/experimental/fewer-braces.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
layout: doc-page
33
title: "Fewer Braces"
4-
movedTo: https://docs.scala-lang.org/scala3/reference/other-new-features/indentation-experimental.html
4+
movedTo: https://docs.scala-lang.org/scala3/reference/experimental/fewer-braces.html
55
---
66

77
By and large, the possible indentation regions coincide with those regions where braces `{...}` are also legal, no matter whether the braces enclose an expression or a set of definitions. There is one exception, though: Arguments to function can be enclosed in braces but they cannot be simply indented instead. Making indentation always significant for function arguments would be too restrictive and fragile.

docs/_docs/release-notes-0.1.2.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -77,19 +77,19 @@ This release ships with the following features:
7777

7878
[1]: https://docs.google.com/document/d/1h3KUMxsSSjyze05VecJGQ5H2yh7fNADtIf3chD3_wr0/edit
7979
[2]: https://infoscience.epfl.ch/record/222780?ln=en
80-
[3]: ../reference/new-types/intersection-types.html
81-
[4]: ../reference/new-types/union-types.html
82-
[5]: ../reference/enums/adts.html
83-
[6]: ../reference/enums/desugarEnums.html
84-
[7]: ../reference/contextual/by-name-context-parameters.html
80+
[3]: reference/new-types/intersection-types.html
81+
[4]: reference/new-types/union-types.html
82+
[5]: reference/enums/adts.html
83+
[6]: reference/enums/desugarEnums.html
84+
[7]: reference/contextual/by-name-context-parameters.html
8585
[8]: https://infoscience.epfl.ch/record/228518
8686
[9]: http://docs.scala-lang.org/sips/pending/static-members.html
8787
[10]: http://docs.scala-lang.org/sips/pending/improved-lazy-val-initialization.html
8888
[11]: http://magarciaepfl.github.io/scala/
8989
[12]: https://github.com/lampepfl/dotty/commit/b2215ed23311b2c99ea638f9d7fcad9737dba588
9090
[13]: https://github.com/lampepfl/dotty/pull/187
9191
[14]: https://github.com/lampepfl/dotty/pull/217
92-
[15]: ../reference/other-new-features/trait-parameters.html
92+
[15]: reference/other-new-features/trait-parameters.html
9393
[16]: https://github.com/lampepfl/dotty/commit/89540268e6c49fb92b9ca61249e46bb59981bf5a
9494
[17]: https://github.com/lampepfl/dotty/pull/174
9595
[18]: https://github.com/lampepfl/dotty/pull/488
@@ -104,10 +104,10 @@ This release ships with the following features:
104104
[27]: https://github.com/lampepfl/dotty/pull/2513
105105
[28]: https://github.com/lampepfl/dotty/pull/2361
106106
[29]: https://github.com/lampepfl/dotty/pull/1453
107-
[30]: ../reference/contextual/context-functions.html
107+
[30]: reference/contextual/context-functions.html
108108
[31]: https://github.com/lampepfl/dotty/pull/2136
109109
[32]: https://github.com/lampepfl/dotty/pull/1758
110-
[33]: ../reference/metaprogramming/inline.html
110+
[33]: reference/metaprogramming/inline.html
111111

112112
# Contributors
113113
The Dotty team and contributors have closed 750 issues and have merged a total of 1258 pull requests.

docs/sidebar.yml

+18
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,17 @@ subsection:
99
subsection:
1010
- page: reference/new-types/intersection-types.md
1111
- page: reference/new-types/intersection-types-spec.md
12+
hidden: true
1213
- page: reference/new-types/union-types.md
1314
- page: reference/new-types/union-types-spec.md
15+
hidden: true
1416
- page: reference/new-types/type-lambdas.md
1517
- page: reference/new-types/type-lambdas-spec.md
18+
hidden: true
1619
- page: reference/new-types/match-types.md
1720
- page: reference/new-types/dependent-function-types.md
1821
- page: reference/new-types/dependent-function-types-spec.md
22+
hidden: true
1923
- page: reference/new-types/polymorphic-function-types.md
2024
- title: Enums
2125
index: reference/enums/enums-index.md
@@ -39,6 +43,7 @@ subsection:
3943
- page: reference/contextual/multiversal-equality.md
4044
- page: reference/contextual/context-functions.md
4145
- page: reference/contextual/context-functions-spec.md
46+
hidden: true
4247
- page: reference/contextual/conversions.md
4348
- page: reference/contextual/by-name-context-parameters.md
4449
- page: reference/contextual/relationship-implicits.md
@@ -49,9 +54,11 @@ subsection:
4954
- page: reference/metaprogramming/compiletime-ops.md
5055
- page: reference/metaprogramming/macros.md
5156
- page: reference/metaprogramming/macros-spec.md
57+
hidden: true
5258
- page: reference/metaprogramming/staging.md
5359
- page: reference/metaprogramming/reflection.md
5460
- page: reference/metaprogramming/tasty-inspect.md
61+
- page: reference/metaprogramming/simple-smp.md
5562
- title: Other New Features
5663
index: reference/other-new-features/other-new-features.md
5764
subsection:
@@ -64,6 +71,7 @@ subsection:
6471
- page: reference/other-new-features/open-classes.md
6572
- page: reference/other-new-features/parameter-untupling.md
6673
- page: reference/other-new-features/parameter-untupling-spec.md
74+
hidden: true
6775
- page: reference/other-new-features/kind-polymorphism.md
6876
- page: reference/other-new-features/matchable.md
6977
- page: reference/other-new-features/threadUnsafe-annotation.md
@@ -80,6 +88,7 @@ subsection:
8088
- page: reference/changed-features/numeric-literals.md
8189
- page: reference/changed-features/structural-types.md
8290
- page: reference/changed-features/structural-types-spec.md
91+
hidden: true
8392
- page: reference/changed-features/operators.md
8493
- page: reference/changed-features/wildcards.md
8594
- page: reference/changed-features/imports.md
@@ -88,16 +97,19 @@ subsection:
8897
- page: reference/changed-features/implicit-resolution.md
8998
- page: reference/changed-features/implicit-conversions.md
9099
- page: reference/changed-features/implicit-conversions-spec.md
100+
hidden: true
91101
- page: reference/changed-features/overload-resolution.md
92102
- page: reference/changed-features/match-syntax.md
93103
- page: reference/changed-features/vararg-splices.md
94104
- page: reference/changed-features/pattern-bindings.md
95105
- page: reference/changed-features/pattern-matching.md
96106
- page: reference/changed-features/eta-expansion.md
97107
- page: reference/changed-features/eta-expansion-spec.md
108+
hidden: true
98109
- page: reference/changed-features/compiler-plugins.md
99110
- page: reference/changed-features/lazy-vals-init.md
100111
- page: reference/changed-features/main-functions.md
112+
- page: reference/changed-features/interpolation-escapes.md
101113
- title: Dropped Features
102114
index: reference/dropped-features/dropped-features.md
103115
subsection:
@@ -111,24 +123,29 @@ subsection:
111123
- page: reference/dropped-features/early-initializers.md
112124
- page: reference/dropped-features/class-shadowing.md
113125
- page: reference/dropped-features/class-shadowing-spec.md
126+
hidden: true
114127
- page: reference/dropped-features/limit22.md
115128
- page: reference/dropped-features/xml.md
116129
- page: reference/dropped-features/symlits.md
117130
- page: reference/dropped-features/auto-apply.md
118131
- page: reference/dropped-features/weak-conformance.md
119132
- page: reference/dropped-features/weak-conformance-spec.md
133+
hidden: true
120134
- page: reference/dropped-features/nonlocal-returns.md
121135
- page: reference/dropped-features/this-qualifier.md
122136
- page: reference/dropped-features/wildcard-init.md
123137
- title: Experimental Features
124138
directory: experimental
125139
index: reference/experimental/overview.md
126140
subsection:
141+
- page: reference/experimental/fewer-braces.md
127142
- page: reference/experimental/canthrow.md
128143
- page: reference/experimental/erased-defs.md
129144
- page: reference/experimental/erased-defs-spec.md
145+
hidden: true
130146
- page: reference/experimental/named-typeargs.md
131147
- page: reference/experimental/named-typeargs-spec.md
148+
hidden: true
132149
- page: reference/experimental/numeric-literals.md
133150
- page: reference/experimental/explicit-nulls.md
134151
- page: reference/experimental/main-annotation.md
@@ -172,6 +189,7 @@ subsection:
172189
- page: internals/dotc-scalac.md
173190
- page: internals/higher-kinded-v2.md
174191
- page: internals/overall-structure.md
192+
- page: internals/explicit-nulls.md
175193
- page: internals/periods.md
176194
- page: internals/syntax.md
177195
- page: internals/type-system.md

project/resources/referenceReplacements/sidebar.yml

+18
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,17 @@ subsection:
55
subsection:
66
- page: reference/new-types/intersection-types.md
77
- page: reference/new-types/intersection-types-spec.md
8+
hidden: true
89
- page: reference/new-types/union-types.md
910
- page: reference/new-types/union-types-spec.md
11+
hidden: true
1012
- page: reference/new-types/type-lambdas.md
1113
- page: reference/new-types/type-lambdas-spec.md
14+
hidden: true
1215
- page: reference/new-types/match-types.md
1316
- page: reference/new-types/dependent-function-types.md
1417
- page: reference/new-types/dependent-function-types-spec.md
18+
hidden: true
1519
- page: reference/new-types/polymorphic-function-types.md
1620
- title: Enums
1721
index: reference/enums/enums-index.md
@@ -35,6 +39,7 @@ subsection:
3539
- page: reference/contextual/multiversal-equality.md
3640
- page: reference/contextual/context-functions.md
3741
- page: reference/contextual/context-functions-spec.md
42+
hidden: true
3843
- page: reference/contextual/conversions.md
3944
- page: reference/contextual/by-name-context-parameters.md
4045
- page: reference/contextual/relationship-implicits.md
@@ -45,9 +50,11 @@ subsection:
4550
- page: reference/metaprogramming/compiletime-ops.md
4651
- page: reference/metaprogramming/macros.md
4752
- page: reference/metaprogramming/macros-spec.md
53+
hidden: true
4854
- page: reference/metaprogramming/staging.md
4955
- page: reference/metaprogramming/reflection.md
5056
- page: reference/metaprogramming/tasty-inspect.md
57+
- page: reference/metaprogramming/simple-smp.md
5158
- title: Other New Features
5259
index: reference/other-new-features/other-new-features.md
5360
subsection:
@@ -60,6 +67,7 @@ subsection:
6067
- page: reference/other-new-features/open-classes.md
6168
- page: reference/other-new-features/parameter-untupling.md
6269
- page: reference/other-new-features/parameter-untupling-spec.md
70+
hidden: true
6371
- page: reference/other-new-features/kind-polymorphism.md
6472
- page: reference/other-new-features/matchable.md
6573
- page: reference/other-new-features/threadUnsafe-annotation.md
@@ -76,6 +84,7 @@ subsection:
7684
- page: reference/changed-features/numeric-literals.md
7785
- page: reference/changed-features/structural-types.md
7886
- page: reference/changed-features/structural-types-spec.md
87+
hidden: true
7988
- page: reference/changed-features/operators.md
8089
- page: reference/changed-features/wildcards.md
8190
- page: reference/changed-features/imports.md
@@ -84,16 +93,19 @@ subsection:
8493
- page: reference/changed-features/implicit-resolution.md
8594
- page: reference/changed-features/implicit-conversions.md
8695
- page: reference/changed-features/implicit-conversions-spec.md
96+
hidden: true
8797
- page: reference/changed-features/overload-resolution.md
8898
- page: reference/changed-features/match-syntax.md
8999
- page: reference/changed-features/vararg-splices.md
90100
- page: reference/changed-features/pattern-bindings.md
91101
- page: reference/changed-features/pattern-matching.md
92102
- page: reference/changed-features/eta-expansion.md
93103
- page: reference/changed-features/eta-expansion-spec.md
104+
hidden: true
94105
- page: reference/changed-features/compiler-plugins.md
95106
- page: reference/changed-features/lazy-vals-init.md
96107
- page: reference/changed-features/main-functions.md
108+
- page: reference/changed-features/interpolation-escapes.md
97109
- title: Dropped Features
98110
index: reference/dropped-features/dropped-features.md
99111
subsection:
@@ -107,28 +119,34 @@ subsection:
107119
- page: reference/dropped-features/early-initializers.md
108120
- page: reference/dropped-features/class-shadowing.md
109121
- page: reference/dropped-features/class-shadowing-spec.md
122+
hidden: true
110123
- page: reference/dropped-features/limit22.md
111124
- page: reference/dropped-features/xml.md
112125
- page: reference/dropped-features/symlits.md
113126
- page: reference/dropped-features/auto-apply.md
114127
- page: reference/dropped-features/weak-conformance.md
115128
- page: reference/dropped-features/weak-conformance-spec.md
129+
hidden: true
116130
- page: reference/dropped-features/nonlocal-returns.md
117131
- page: reference/dropped-features/this-qualifier.md
118132
- page: reference/dropped-features/wildcard-init.md
119133
- title: Experimental Features
120134
directory: experimental
121135
index: reference/experimental/overview.md
122136
subsection:
137+
- page: reference/experimental/fewer-braces.md
123138
- page: reference/experimental/canthrow.md
124139
- page: reference/experimental/erased-defs.md
125140
- page: reference/experimental/erased-defs-spec.md
141+
hidden: true
126142
- page: reference/experimental/named-typeargs.md
127143
- page: reference/experimental/named-typeargs-spec.md
144+
hidden: true
128145
- page: reference/experimental/numeric-literals.md
129146
- page: reference/experimental/explicit-nulls.md
130147
- page: reference/experimental/main-annotation.md
131148
- page: reference/experimental/cc.md
149+
- page: reference/experimental/tupled-function.md
132150
- page: reference/syntax.md
133151
- title: Language Versions
134152
index: reference/language-versions/language-versions.md

project/scripts/expected-links/reference-expected-links.txt

+4
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
./changed-features/implicit-resolution.html
88
./changed-features/imports.html
99
./changed-features/index.html
10+
./changed-features/interpolation-escapes.html
1011
./changed-features/lazy-vals-init.html
1112
./changed-features/main-functions.html
1213
./changed-features/match-syntax.html
@@ -70,12 +71,14 @@
7071
./experimental/erased-defs-spec.html
7172
./experimental/erased-defs.html
7273
./experimental/explicit-nulls.html
74+
./experimental/fewer-braces.html
7375
./experimental/index.html
7476
./experimental/main-annotation.html
7577
./experimental/named-typeargs-spec.html
7678
./experimental/named-typeargs.html
7779
./experimental/numeric-literals.html
7880
./experimental/overview.html
81+
./experimental/tupled-function.html
7982
./features-classification.html
8083
./index.html
8184
./language-versions/binary-compatibility.html
@@ -88,6 +91,7 @@
8891
./metaprogramming/macros-spec.html
8992
./metaprogramming/macros.html
9093
./metaprogramming/reflection.html
94+
./metaprogramming/simple-smp.html
9195
./metaprogramming/staging.html
9296
./metaprogramming/tasty-inspect.html
9397
./new-types/dependent-function-types-spec.html

0 commit comments

Comments
 (0)