swift-ci
38df85afd6
Merge remote-tracking branch 'origin/main' into rebranch
2024-05-15 08:16:25 -07:00
Kavon Farvardin
5ae2f6bd25
CxxInterop: use Unsafe*Pointer for move-only
2024-05-14 17:44:22 -07:00
Joe Groff
10f9289ef8
Enable 'BorrowingSwitch' feature.
2024-05-14 07:31:59 -07:00
swift-ci
0a35a97bbf
Merge remote-tracking branch 'origin/main' into rebranch
2024-05-13 22:34:13 -07:00
Michael Gottesman
de85b79423
[concurrency] Make GlobalActorIsolatedTypesUsability an upcoming swift 6 feature.
...
rdar://118244451
2024-05-13 18:40:58 -07:00
swift-ci
85e6e794ca
Merge remote-tracking branch 'origin/main' into rebranch
2024-05-13 13:15:29 -07:00
Steven Wu
431f097e7c
[Caching] Mark -typecheck action as caching supported
...
This is a regression causing lots of cached diagnostics tests not
functioning since the cached diagnostics processors are not initialized
for those tests which are supposed to test diagnostics caching.
The regression is caused by the fix that the typecheck module interface
job need to run a typecheck job in the sub-invocation. Now the typecheck
module interface job is correctly setup to avoid diagnostics about
unsupported file system error.
2024-05-13 09:36:12 -07:00
Mykola Pokhylets
9ba09ff63d
Process incoming queue when obtaining drainer lock
2024-05-10 11:05:22 +02:00
Mykola Pokhylets
40c38f9803
Using multiple insertion points to ensure all jobs are always inserted in O(1)
...
Fully separated unprocessed jobs and processed jobs
Reverse jobs after updating status to minimise contention
2024-05-10 11:05:22 +02:00
Mykola Pokhylets
21a70e10c7
Fixed quadratic performance of ListMerger when each executed job creates 2+ new jobs of the same priority
...
See https://forums.swift.org/t/quadratic-performance-of-the-listmerger-in-specific-use-case/69393
2024-05-10 11:05:22 +02:00
swift-ci
e748732b00
Merge remote-tracking branch 'origin/main' into rebranch
2024-05-09 07:14:34 -07:00
Nate Chandler
2671652085
[BitwiseCopyable] Avoid a condfail.
...
The standard library defines
```
protocol BitwiseCopyable {}
typealias _BitwiseCopyable = BitwiseCopyable
```
For current compilers, `BitwiseCopyable` is a "known protocol".
For older compilers, it is not; instead `_BitwiseCopyable` is. So
print the following into the swiftinterface for those older compilers:
```
protocol _BitwiseCopyable {}
typealias BitwiseCopyable = _BitwiseCopyable
```
rdar://127755503
2024-05-08 16:53:14 -07:00
swift-ci
ac90898851
Merge remote-tracking branch 'origin/main' into rebranch
2024-05-08 16:34:07 -07:00
Kavon Farvardin
0420310623
NCGenerics: it's no longer "experimental"
...
resolves rdar://127701059
2024-05-08 10:49:12 -07:00
swift-ci
d0709e4c11
Merge remote-tracking branch 'origin/main' into rebranch
2024-05-07 09:14:00 -07:00
Holly Borla
e7db0ec8f8
Merge pull request #73472 from hborla/exhaustive-switch-error
...
[Sema] Non-exhaustive switch statements are always an error in Swift 6.
2024-05-07 09:03:40 -07:00
Holly Borla
a7920ce50b
[Features] Replace -enable-nonfrozen-enum-exhaustivity-diagnostics with an
...
upcoming feature.
The bespoke flag still works as a way to enable the `NonfrozenEnumExhaustivity`
upcoming feature. `NonfrozenEnumExhaustivity` is enabled by default in the
Swift 6 language mode as errors, and enabled by default in the Swift 5 language
mode as warnings.
2024-05-06 20:56:20 -07:00
swift-ci
34168db45e
Merge remote-tracking branch 'origin/main' into rebranch
2024-05-06 12:14:08 -07:00
Nate Chandler
c10d39e35f
[AST] Remove Builtin.copy.
...
A vestigial remnant of it was left behind after
06921cfe84 in order to avoid a reverse
condfail when building old swiftinterfaces that define
```swift
func _copy<T>(_ value: T) -> T {
#if $BuiltinCopy
Builtin.copy(value)
#else
value
#endif
}
```
If the language feature is removed, though, such interfaces should again
be buildable because the branch where the language feature isn't defined
should be expanded.
rdar://127516085
2024-05-04 11:35:17 -07:00
swift-ci
692ca26160
Merge remote-tracking branch 'origin/main' into rebranch
2024-05-04 10:34:18 -07:00
nate-chandler
bcd08c0c9a
Merge pull request #73235 from nate-chandler/bitwise-copyable/enable
...
[BitwiseCopyable] Promote to feature.
2024-05-04 10:16:40 -07:00
swift-ci
61ac921c6b
Merge remote-tracking branch 'origin/main' into rebranch
2024-05-01 22:14:30 -07:00
Alejandro Alonso
19e722eea4
Manually implement popcount when not available
2024-05-01 14:48:43 -07:00
swift-ci
7af405827e
Merge remote-tracking branch 'origin/main' into rebranch
2024-05-01 08:16:56 -07:00
Alejandro Alonso
d380bf9ae3
Merge pull request #73277 from Azoy/fix-conditional-invertible
...
[IRGen] Fix misalignment of conditional invertible requirement counts
2024-05-01 08:10:46 -07:00
swift-ci
480a3378d9
Merge remote-tracking branch 'origin/main' into rebranch
2024-04-30 20:54:40 -07:00
Becca Royal-Gordon
981233ad37
Merge pull request #73128 from beccadax/objcimpl-resilient
...
Handle resilient stored properties in objcImpl
2024-04-30 20:50:33 -07:00
swift-ci
87ee938fc1
Merge remote-tracking branch 'origin/main' into rebranch
2024-04-30 19:34:29 -07:00
Michael Gottesman
dc25857805
[transferring] Make transferring suppressible and validate that we do suppress transferring in swift interface files.
...
Importantly I added tests that validated this behavior.
rdar://126780823
2024-04-30 16:40:40 -07:00
Becca Royal-Gordon
f94ed6d606
Hide objcImpl resilience support behind feature
...
Resilence support will require changes to the Objective-C runtime to expand support for metadata initialization functions. Add a separate experimental feature flag to help with staging that support in, and modify diagnostics to not suggest increasing the minimum deployment target for now.
2024-04-30 12:03:46 -07:00
Alejandro Alonso
852ef0bc01
Define a popcount util
...
add include
Define a popcount util
Update MathUtils.h
2024-04-30 09:16:37 -07:00
Ben Barham
bc78809a2e
Revert "[SIL] Require TransformIterator support random access"
...
This reverts commit 095028562e .
2024-04-28 18:17:54 -07:00
Nate Chandler
6e975da805
[BitwiseCopyable] Promote ConformanceSuppression.
...
The ability to suppress conformance to BitwiseCopyable was part of the
accepted SE-428.
2024-04-24 15:52:20 -07:00
Nate Chandler
ed5c7ef7ae
[BitwiseCopyable] Promote to feature.
...
SE-0426 was accepted.
2024-04-24 15:52:20 -07:00
swift-ci
30b8b42f1f
Merge remote-tracking branch 'origin/main' into rebranch
2024-04-22 13:36:08 -07:00
Mike Ash
65da1ed662
Merge pull request #73137 from mikeash/unreachable-improvements
...
[Runtime] Make swift_unreachable more debuggable by trapping immediately.
2024-04-22 16:22:34 -04:00
swift-ci
45d8b8836d
Merge remote-tracking branch 'origin/main' into rebranch
2024-04-22 07:14:47 -07:00
nate-chandler
1faeb50fff
Merge pull request #73121 from nate-chandler/rdar126715654
...
[NoncopyablePartialConsumption] Promote to feature.
2024-04-22 07:01:10 -07:00
swift-ci
23c9defda4
Merge remote-tracking branch 'origin/main' into rebranch
2024-04-21 19:54:19 -07:00
Holly Borla
a08c24044e
Merge pull request #73168 from hborla/isolated-backing-property-wrapper
...
[Concurrency] Don't error on isolated property wrapper initializers inside `MainActor`-isolated structs.
2024-04-21 19:44:31 -07:00
Holly Borla
a6d9c15fb3
[Concurrency] Don't error on isolated property wrapper initializers inside
...
MainActor-isolated structs.
2024-04-21 10:01:31 -07:00
swift-ci
56d6d477de
Merge remote-tracking branch 'origin/main' into rebranch
2024-04-19 15:38:57 -07:00
Alexis Laferrière
bed91dc740
Merge pull request #73141 from xymus/no-internal-imports-by-default
...
Sema: Remove internal imports by default from Swift 6
2024-04-19 15:26:25 -07:00
Nate Chandler
de8f1c0b69
[NoncopyablePartialConsumption] Promote to feature
2024-04-19 12:37:34 -07:00
Alexis Laferrière
a890d8fded
Sema: Remove internal imports by default from Swift 6
...
The language steering group has decided to revert their previous
decision and remove this feature from Swift 6.
rdar://126318567
2024-04-19 12:19:29 -07:00
swift-ci
58422d4326
Merge remote-tracking branch 'origin/main' into rebranch
2024-04-18 17:49:48 -07:00
Dave Lee
e57f70bd4d
[Debugging] Add DebugDescriptionMacro experimental feature ( #73107 )
...
This removes the leading underscore from the macro.
2024-04-18 17:25:44 -07:00
swift-ci
23f838f80a
Merge remote-tracking branch 'origin/main' into rebranch
2024-04-18 07:17:58 -07:00
nate-chandler
b00b5aad4f
Merge pull request #72646 from nate-chandler/bitwise-copyable/20240327/1
...
[BitwiseCopyable] Allow suppression via ~.
2024-04-18 07:05:10 -07:00
swift-ci
55d6817591
Merge remote-tracking branch 'origin/main' into rebranch
2024-04-17 14:59:37 -07:00