Guillaume Lessard
8459d0616d
[stdlib] make swiftinterfaces compatible with older toolchains
2024-03-15 16:50:12 -07:00
David Smith
dc405525f9
Optimize checking for all-ASCII bytes ( #72312 )
2024-03-14 16:13:34 -07:00
Kuba (Brecka) Mracek
d5e5723294
Merge pull request #72293 from kubamracek/embedded-synchronization
...
[embedded] Start building Synchronization in embedded Swift mode
2024-03-13 18:46:28 -07:00
Allan Shortlidge
20a8399488
stdlib: Guard @inlinable use of withMemoryRebound() with #if $TypedThrows.
...
Older compilers can no longer see the definition of `withMemoryRebound()` now
that it has adopted typed throws (https://github.com/apple/swift/pull/72036 ).
Resolves rdar://124540428
2024-03-13 11:38:24 -07:00
Kuba Mracek
48b8228acd
[embedded] Start building Synchronization in embedded Swift mode
2024-03-13 10:07:37 -07:00
Alejandro Alonso
56bb298d14
Merge pull request #72258 from Azoy/commandline-fixes
...
[stdlib] Deprecate CommandLine.arguments setter
2024-03-12 16:45:26 -07:00
Guillaume Lessard
d4abcde64a
Merge pull request #72233 from glessard/toplevel-withUUMP-typed-throws
...
[stdlib] convert `_withUnprotectedUnsafeMutablePointer()` to typed throws
2024-03-12 14:39:46 -07:00
Alejandro Alonso
552edd2ccb
Merge pull request #72101 from Azoy/sendable-all-the-things
...
[stdlib] Sendablize all the things
2024-03-12 13:37:15 -07:00
Alejandro Alonso
9d318220b9
Deprecate CommandLine.arguments setter
2024-03-12 09:54:53 -07:00
Alejandro Alonso
17401c627b
Remove explicit unavailable sendable from keypath
2024-03-12 09:20:40 -07:00
Doug Gregor
5bdd4e5772
Improve @_implements for associated type witnesses
...
Allow `@_implements` to be expressed in an extension of the protocol in
which the associated type is defined. Use this to uncomment an
intended use of `@_implements` in `Sequence` that could be used to
replace a longstanding hack for associated type inference.
Since this change means that the standard library module interface
won't be accepted by older compilers, introduce a suppressible feature
ssociatedTypeImplements` that covers the use of `@_implements` on type
declarations. This will hide the `@_implements` attribute from older
compilers.
2024-03-11 14:28:20 -07:00
Guillaume Lessard
0ccfa42957
[stdlib] convert _withUnprotectedUnsafeMutablePointer() to typed throws
2024-03-11 11:34:01 -07:00
Guillaume Lessard
78273b2390
Merge pull request #72089 from glessard/toplevel-withUMP-typed-throws
...
[stdlib] convert `withUnsafeMutablePointer()` to typed throws
2024-03-08 13:52:23 -08:00
Guillaume Lessard
805dd70cfe
Merge pull request #72074 from glessard/toplevel-withbytes-typed-throws
...
[stdlib] convert `withUnsafeBytes()` to typed throws
2024-03-08 08:55:08 -08:00
Oscar Byström Ericsson
af0c9fae8e
FlattenSequence/distance(from:to:) untrapping Int.min (v6).
...
1. Put the first region inside the if-else (same branch condition).
2. Use the forward distance in the highest region (as done in the middle).
2024-03-07 13:19:45 +01:00
Meghana Gupta
806921c0c8
Allow ~Escapable types to be _BitwiseCopyable
2024-03-06 21:57:03 -08:00
Guillaume Lessard
578a058797
Merge pull request #72052 from glessard/toplevel-withpointer-typed-throws
...
[stdlib] convert `withUnsafePointer()` to typed throws
2024-03-06 15:01:45 -08:00
Nate Chandler
73231b185b
[BitwiseCopyable] Don't apply to FixedWidthInteger.
...
Per LWG feedback.
This reverts commit c8119e3c01 .
2024-03-06 08:12:54 -08:00
Alejandro Alonso
f9f640b141
Sendablize the standard library
...
oops dont add this flag
no more nonisolated
2024-03-05 15:02:09 -08:00
nate-chandler
ddacabf863
Merge pull request #72083 from nate-chandler/bitwise-copyable/20240304/1
...
[BitwiseCopyable] Suppress a few conformances.
2024-03-05 13:04:28 -08:00
Guillaume Lessard
82ae264b69
[stdlib] convert withUnsafeMutablePointer() to typed throws
2024-03-05 02:48:41 -08:00
Guillaume Lessard
d3cd4985d1
[stdlib] convert withUnsafePointer() to typed throws
2024-03-05 02:31:23 -08:00
Guillaume Lessard
207ae32107
[stdlib] add _withUnprotectedUnsafeMutableBytes()
2024-03-05 02:25:52 -08:00
Guillaume Lessard
528dd0967f
[stdlib] convert withUnsafeMutableBytes() to typed throws
2024-03-05 02:12:04 -08:00
Guillaume Lessard
68088bc4e1
[stdlib] convert inout-taking withUnsafeBytes() to typed throws
2024-03-05 02:10:38 -08:00
Guillaume Lessard
f2dcb2f058
[stdlib] convert withUnsafeBytes() to typed throws
2024-03-05 02:10:38 -08:00
Guillaume Lessard
8c0db3fe7e
Merge pull request #72075 from Catfish-Man/this-pointer-is-raw
...
Make UnsafeRawBufferPointer.loadUnaligned inlinable to match other pointer load methods
2024-03-04 23:57:21 -08:00
David Smith
753a9408c2
ASCII fast paths for grapheme stride ( #72064 )
2024-03-04 22:03:58 -08:00
Nate Chandler
621d4c19b2
[stdlib] Suppress Unicode : _BitwiseCopyable.
...
Mark it always unavailable per LWG feedback.
2024-03-04 16:25:53 -08:00
Nate Chandler
4472178eca
[stdlib] Suppress CommandLine : _BitwiseCopyable.
...
Mark it always unavailable per LWG feedback.
2024-03-04 16:17:06 -08:00
Nate Chandler
fefab495cb
[stdlib] Suppress MemoryLayout : _BitwiseCopyable.
...
Mark it always unavailable per LWG feedback.
2024-03-04 16:04:12 -08:00
David Smith
df8485fe87
Make UnsafeRawBufferPointer.loadUnaligned inlinable to match other pointer load methods
2024-03-04 16:00:15 -08:00
Guillaume Lessard
7cbe2cf4ae
Merge pull request #72036 from glessard/rawpointer-withmemoryrebound-typed-throws
...
[stdlib] convert `U[M]R[B]P.withMemoryRebound()` to typed throws
2024-03-02 13:00:59 -08:00
Guillaume Lessard
6befe66181
[stdlib] convert U[M]R[B]P.withMemoryRebound() to typed throws
2024-03-01 19:07:46 -08:00
Oscar Byström Ericsson
7703ae4a3b
FlattenSequence/distance(from:to:) untrapping Int.min (v5).
...
1. FlattenSequence/distance(from:to:) cleanup.
2. FlattenDistanceFromToTests cleanup.
3. FlattenDistanceFromToTests availability checks.
2024-03-01 11:11:54 +01:00
Holly Borla
ad864615bf
Merge pull request #71967 from hborla/sendable-documentation
...
[NFC][Concurrency] Improve the summary documentation for `Sendable`.
2024-02-29 22:38:14 -08:00
Holly Borla
ae8c8a3479
[NFC][Concurrency] Improve the summary documentation for Sendable.
2024-02-29 18:46:55 -08:00
Lucy Satheesan
f4920875a6
[stdlib] performance optimizations in Array.replaceSubrange ( #66160 )
2024-02-29 18:01:42 -08:00
Karoy Lorentey
16240a1342
[stdlib] Do not introduce any new ABI symbols for _get*RetainCount
2024-02-27 13:18:28 -08:00
Oscar Byström Ericsson
e8db705e43
FlattenSequence/distance(from:to:) untrapping Int.min (v2).
...
A better, albeit a bit more verbose, method.
2024-02-27 11:51:08 +01:00
Oscar Byström Ericsson
401f8d13fe
FlattenSequence/distance(from:to:) untrapping Int.min
...
This patch makes it so FlattenSequence/distance(from:to:) can return Int.min without trapping.
2024-02-27 07:14:46 +01:00
Guillaume Lessard
12010d63b5
Merge pull request #71871 from amomchilov/grammar-fix-seq-strart-with
...
Fix grammar in `starts(with:)` docs
2024-02-26 12:23:54 -08:00
Guillaume Lessard
321e40e701
Merge pull request #71648 from oscbyspro/better-joined-distance-from-to
...
FlattenSequence/distance(from:to:) enhancements.
2024-02-26 04:21:34 -08:00
Alexander Momchilov
123fd36efb
"a equivalence" → "an equivalence"
2024-02-24 19:32:50 -05:00
Dave Lee
557628cd08
[Debugging] Use SWIFT_NATIVE_SWIFT_TOOLS_PATH if defined ( #71814 )
...
Fixes cross-host builds. See https://github.com/apple/swift/pull/71425/files#r1498582734
2024-02-23 14:19:17 -08:00
Dave Lee
41add6df9f
[Debugging] Disable use of DebugDescriptionMacro when bootstrapping is off ( #71820 )
2024-02-22 16:21:24 -08:00
Allan Shortlidge
2a03207e54
Merge pull request #71802 from tshortli/typed-throws-in-inlinable-code
...
stdlib: Avoid condfails resulting from typed throws adoption
2024-02-22 14:03:26 -08:00
Mishal Shah
cb96ec2893
Merge remote-tracking branch 'origin/main' into bump-swift-version-to-6
2024-02-22 09:44:44 -08:00
Allan Shortlidge
25c0ed6008
stdlib: Avoid condfails resulting from typed throws adoption.
...
The standard library's swiftinterface must temporarily remain buildable when
`$TypedThrows` evaluates to false since there are still supported Swift 5.11
compilers that did not have the feature enabled by default. Declarations using
typed throws in their signatures are guarded in printed swiftinterface files
with `#if $TypedThrows` and therefore `@inlinable` code that uses those
declarations must also be conditionalized on `$TypedThrows`.
2024-02-21 20:38:39 -08:00
Guillaume Lessard
e90df7ef47
Merge pull request #71199 from glessard/utf8-license-header
...
[gardening] add a missing license header
2024-02-21 16:05:15 -08:00