Skip to content

Commit 7205e44

Browse files
Merge remote-tracking branch 'origin/main' into #75341-fix-swift-build-support-typo
2 parents 454add7 + 5770d59 commit 7205e44

File tree

5,705 files changed

+298731
-148126
lines changed

Some content is hidden

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

5,705 files changed

+298731
-148126
lines changed

.editorconfig

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# editorconfig.org
2+
3+
root = true
4+
5+
[*]
6+
indent_style = space
7+
indent_size = 2
8+
trim_trailing_whitespace = true
9+
insert_final_newline = true

.flake8

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ filename =
4444
exclude =
4545
.git,
4646
__pycache__,
47+
.build,
4748

4849
ignore =
4950
# The black tool treats slices consistently, the E203 warning is not PEP8

.github/CODEOWNERS

Lines changed: 27 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@
3131
# TODO: /LICENSE.txt
3232
# TODO: /README.md
3333

34+
# Runtimes
35+
/Runtimes/**/CMakeLists.txt @etcwilde @compnerd @edymtt @justice-adams-apple
36+
/Runtimes/**/*.cmake @etcwilde @compnerd @edymtt @justice-adams-apple
37+
/Runtimes/Core/cmake/caches/Vendors/Apple/ @etcwilde @shahmishal @edymtt @justice-adams-apple
38+
3439
# SwiftCompilerSources
3540
/SwiftCompilerSources @eeckstein
3641

@@ -55,7 +60,7 @@
5560
/docs/Windows* @compnerd
5661

5762
# include
58-
/include/swift-c/DependencyScan/ @artemcm
63+
/include/swift-c/DependencyScan/ @artemcm @cachemeifyoucan
5964
/include/swift/*Demangl*/ @rjmccall
6065
/include/swift/AST/ @hborla @slavapestov @xedin
6166
/include/swift/AST/*Availability* @tshortli
@@ -66,12 +71,21 @@
6671
/include/swift/AST/*Protocol* @hborla @slavapestov
6772
/include/swift/AST/*Requirement* @hborla @slavapestov
6873
/include/swift/AST/*Substitution* @slavapestov
74+
/include/swift/AST/DiagnosticGroup* @DougGregor
75+
/include/swift/AST/DiagnosticsClangImporter.def @zoecarver @hyp @egorzhdan @beccadax @ian-twilightcoder @Xazax-hun
76+
/include/swift/AST/DiagnosticsDriver.def @artemcm
77+
/include/swift/AST/DiagnosticsFrontend.def @artemcm @tshortli
78+
/include/swift/AST/DiagnosticsIDE.def @ahoppen @bnbarham @hamishknight @rintaro
79+
/include/swift/AST/DiagnosticsIRGen.def @rjmccall
80+
/include/swift/AST/DiagnosticsModuleDiffer.def @nkcsgexi
6981
/include/swift/AST/DiagnosticsParse.def @ahoppen @bnbarham @CodaFi @DougGregor @hamishknight @rintaro
82+
/include/swift/AST/DiagnosticsRefactoring.def @ahoppen @bnbarham @hamishknight @rintaro
83+
/include/swift/AST/DiagnosticsSIL.def @jckarter
7084
/include/swift/AST/Evaluator* @CodaFi @slavapestov
7185
/include/swift/Basic/ @DougGregor
7286
/include/swift/Basic/Features.def @DougGregor @hborla
73-
/include/swift/ClangImporter @zoecarver @hyp @egorzhdan @beccadax @ian-twilightcoder
74-
/include/swift/DependencyScan @artemcm
87+
/include/swift/ClangImporter @zoecarver @hyp @egorzhdan @beccadax @ian-twilightcoder @Xazax-hun
88+
/include/swift/DependencyScan @artemcm @cachemeifyoucan
7589
/include/swift/Driver*/ @artemcm
7690
/include/swift/Frontend*/ @artemcm @tshortli
7791
/include/swift/IDE/ @ahoppen @bnbarham @hamishknight @rintaro
@@ -81,7 +95,7 @@
8195
/include/swift/Migrator/ @nkcsgexi
8296
/include/swift/Option/*Options* @tshortli
8397
/include/swift/Parse/ @ahoppen @bnbarham @CodaFi @DougGregor @hamishknight @rintaro
84-
/include/swift/PrintAsClang @zoecarver @hyp @egorzhdan
98+
/include/swift/PrintAsClang @zoecarver @hyp @egorzhdan @Xazax-hun
8599
/include/swift/Refactoring @ahoppen @bnbarham @hamishknight @rintaro
86100
/include/swift/Runtime/ @rjmccall
87101
/include/swift/SIL/ @jckarter
@@ -116,9 +130,9 @@
116130
/lib/ASTGen/ @ahoppen @bnbarham @CodaFi @hamishknight @rintaro
117131
/lib/Basic/ @DougGregor
118132
/lib/Basic/Windows @compnerd
119-
/lib/ClangImporter @zoecarver @hyp @egorzhdan @beccadax @ian-twilightcoder
133+
/lib/ClangImporter @zoecarver @hyp @egorzhdan @beccadax @ian-twilightcoder @Xazax-hun
120134
/lib/ClangImporter/DWARFImporter* @adrian-prantl
121-
/lib/DependencyScan @artemcm
135+
/lib/DependencyScan @artemcm @cachemeifyoucan
122136
/lib/Driver*/ @artemcm
123137
/lib/DriverTool/autolink_extract_main.cpp @MaxDesiatov @etcwilde
124138
/lib/DriverTool/sil* @jckarter
@@ -135,7 +149,7 @@
135149
/lib/Markup/ @nkcsgexi
136150
/lib/Migrator/ @nkcsgexi
137151
/lib/Parse/ @ahoppen @bnbarham @CodaFi @DougGregor @hamishknight @rintaro
138-
/lib/PrintAsClang @zoecarver @hyp @egorzhdan
152+
/lib/PrintAsClang @zoecarver @hyp @egorzhdan @Xazax-hun
139153
/lib/Refactoring/ @ahoppen @bnbarham @hamishknight @rintaro
140154
/lib/SIL/ @jckarter
141155
/lib/SIL/**/*DebugInfo* @adrian-prantl
@@ -158,6 +172,7 @@
158172
/lib/Sema/Constraint* @hborla @xedin
159173
/lib/Sema/DerivedConformance* @slavapestov
160174
/lib/Sema/DerivedConformanceDistributed* @ktoso @slavapestov
175+
/lib/Sema/OpenedExistentials* @AnthonyLatsis @slavapestov
161176
/lib/Sema/TypeCheckDistributed* @hborla @ktoso @xedin
162177
/lib/Sema/TypeCheckProtocol* @AnthonyLatsis @hborla @slavapestov
163178
/lib/Sema/TypeCheckType* @AnthonyLatsis @hborla @slavapestov @xedin
@@ -177,7 +192,7 @@
177192
/stdlib/public/*Demangl*/ @rjmccall
178193
/stdlib/public/Backtracing/ @al45tair
179194
/stdlib/public/Concurrency/ @ktoso
180-
/stdlib/public/Cxx/ @zoecarver @hyp @egorzhdan
195+
/stdlib/public/Cxx/ @zoecarver @hyp @egorzhdan @Xazax-hun
181196
/stdlib/public/Distributed/ @ktoso
182197
/stdlib/public/Observation/ @phausler
183198
/stdlib/public/SwiftRemoteMirror/ @slavapestov
@@ -202,7 +217,7 @@
202217
/test/IDE/ @ahoppen @bnbarham @hamishknight @rintaro
203218
/test/IRGen/ @rjmccall
204219
/test/Index/ @ahoppen @bnbarham @hamishknight @rintaro
205-
/test/Interop/ @zoecarver @hyp @egorzhdan
220+
/test/Interop/ @zoecarver @hyp @egorzhdan @Xazax-hun
206221
/test/Migrator/ @nkcsgexi
207222
/test/Parse/ @ahoppen @bnbarham @CodaFi @DougGregor @hamishknight @rintaro
208223
/test/Profiler @ahoppen @bnbarham @hamishknight @rintaro
@@ -247,7 +262,7 @@
247262
/unittests/*Demangl*/ @rjmccall
248263
/unittests/AST/ @hborla @slavapestov @xedin
249264
/unittests/AST/*Evaluator* @CodaFi @slavapestov
250-
/unittests/DependencyScan/ @artemcm
265+
/unittests/DependencyScan/ @artemcm @cachemeifyoucan
251266
/unittests/FrontendTool/ @artemcm @tshortli
252267
/unittests/Parse/ @ahoppen @bnbarham @CodaFi @DougGregor @hamishknight @rintaro
253268
/unittests/Reflection/ @slavapestov
@@ -261,13 +276,15 @@
261276

262277
# utils
263278
/utils/*windows* @compnerd
279+
/utils/generate-xcode @hamishknight
264280
/utils/gyb_sourcekit_support/ @ahoppen @bnbarham @hamishknight @rintaro
265281
/utils/sourcekit_fuzzer/ @ahoppen @bnbarham @hamishknight @rintaro
266282
/utils/swift_build_support/products/earlyswiftsyntax.py @ahoppen @bnbarham @hamishknight @rintaro
267283
/utils/swift_build_support/products/skstresstester.py @ahoppen @bnbarham @hamishknight @rintaro
268284
/utils/swift_build_support/products/sourcekitlsp.py @ahoppen @bnbarham @hamishknight @rintaro
269285
/utils/swift_build_support/products/swiftformat.py @ahoppen @allevato @bnbarham @hamishknight @rintaro
270286
/utils/swift_build_support/products/swiftsyntax.py @ahoppen @bnbarham @hamishknight @rintaro
287+
/utils/swift-xcodegen/ @hamishknight
271288
/utils/update-checkout* @shahmishal
272289
/utils/update_checkout/ @shahmishal
273290
/utils/vim/ @compnerd

.gitignore

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ docs/_build
5252

5353
# SwiftPM
5454
.build
55+
.index-build
5556
.swiftpm
5657

5758
#==============================================================================#
@@ -78,3 +79,20 @@ SortedCFDatabase.def
7879
htmlcov
7980
.coverage
8081
/benchmark/scripts/Benchmark_Driverc
82+
83+
#==============================================================================#
84+
# Ignore copied Swift Stdlib files while migrating stdlib
85+
#==============================================================================#
86+
Runtimes/**/*.swift
87+
Runtimes/**/*.h
88+
Runtimes/**/*.cpp
89+
Runtimes/**/*.c
90+
Runtimes/**/*.m
91+
Runtimes/**/*.mm
92+
Runtimes/**/*.def
93+
Runtimes/**/*.gyb
94+
Runtimes/**/*.apinotes
95+
Runtimes/**/*.yaml
96+
Runtimes/**/*.inc
97+
Runtimes/**/*.json
98+
Runtimes/**/*.modulemap

CHANGELOG.md

Lines changed: 61 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,67 @@
33
> [!NOTE]
44
> This is in reverse chronological order, so newer entries are added to the top.
55
6-
## Swift (next)
6+
## Swift 6.1
7+
8+
* Projected value initializers are now correctly injected into calls when
9+
an argument exactly matches a parameter with an external property wrapper.
10+
11+
For example:
12+
13+
```swift
14+
struct Binding {
15+
...
16+
init(projectedValue: Self) { ... }
17+
}
18+
19+
func checkValue(@Binding value: Int) {}
20+
21+
func use(v: Binding<Int>) {
22+
checkValue($value: v)
23+
// Transformed into: `checkValue(value: Binding(projectedValue: v))`
24+
}
25+
```
26+
27+
Previous versions of the Swift compiler incorrectly omitted projected value
28+
initializer injection in the call to `checkValue` because the argument type
29+
matched the parameter type exactly.
30+
31+
* [SE-0444][]:
32+
When the upcoming feature `MemberImportVisibility` is enabled, Swift will
33+
require that a module be directly imported in a source file when resolving
34+
member declarations from that module:
35+
36+
```swift
37+
let recipe = "2 slices of bread, 1.5 tbs peanut butter".parse()
38+
// error: instance method 'parse()' is inaccessible due to missing import of
39+
// defining module 'RecipeKit'
40+
// note: add import of module 'RecipeKit'
41+
```
42+
43+
This new behavior prevents ambiguities from arising when a transitively
44+
imported module declares a member that conflicts with a member of a directly
45+
imported module.
46+
47+
* Syntactic SourceKit queries no longer attempt to provide information
48+
within the inactive `#if` regions. For example, given:
49+
50+
```swift
51+
#if DEBUG
52+
extension MyType: CustomDebugStringConvertible {
53+
var debugDescription: String { ... }
54+
}
55+
#endif
56+
```
57+
58+
If `DEBUG` is not set, SourceKit results will not involve the
59+
inactive code. Clients should use either SourceKit-LSP or
60+
swift-syntax for syntactic queries that are independent of the
61+
specific build configuration.
762

863
* [SE-0442][]:
964
TaskGroups can now be created without explicitly specifying their child task's result types:
1065

11-
Previously the child task type would have to be specified explicitly when creating the task group:
66+
Previously the child task type would have to be specified explicitly when creating the task group:
1267

1368
```swift
1469
await withTaskGroup(of: Int.self) { group in
@@ -18,7 +73,7 @@ Previously the child task type would have to be specified explicitly when creati
1873
}
1974
```
2075

21-
Now the type is inferred based on the first use of the task group within the task group's body:
76+
Now the type is inferred based on the first use of the task group within the task group's body:
2277

2378
```swift
2479
await withTaskGroup { group in
@@ -31,6 +86,8 @@ Now the type is inferred based on the first use of the task group within the tas
3186

3287
## Swift 6.0
3388

89+
### 2024-09-17 (Xcode 16.0)
90+
3491
* Swift 6 comes with a new language mode that prevents the risk of data races
3592
at compile time. This guarantee is accomplished through _data isolation_; the
3693
compiler will validate that data passed over a boundary between concurrently
@@ -10613,6 +10670,7 @@ using the `.dynamicType` member to retrieve the type of an expression should mig
1061310670
[SE-0428]: https://github.com/apple/swift-evolution/blob/main/proposals/0428-resolve-distributed-actor-protocols.md
1061410671
[SE-0431]: https://github.com/apple/swift-evolution/blob/main/proposals/0431-isolated-any-functions.md
1061510672
[SE-0442]: https://github.com/swiftlang/swift-evolution/blob/main/proposals/0442-allow-taskgroup-childtaskresult-type-to-be-inferred.md
10673+
[SE-0444]: https://github.com/swiftlang/swift-evolution/blob/main/proposals/0444-member-import-visibility.md
1061610674
[#64927]: <https://github.com/apple/swift/issues/64927>
1061710675
[#42697]: <https://github.com/apple/swift/issues/42697>
1061810676
[#42728]: <https://github.com/apple/swift/issues/42728>

0 commit comments

Comments
 (0)