swift_jenkins
0c6b7f77dc
Merge remote-tracking branch 'origin/main' into next
2021-12-13 10:40:29 -08:00
Alex Martini
e6cbf54832
Merge pull request #40454 from amartini51/doc_fixes_main
...
Cherry pick documentation fixes to 'main'
2021-12-13 10:31:41 -08:00
swift_jenkins
1f508bcda5
Merge remote-tracking branch 'origin/main' into next
2021-12-10 16:20:51 -08:00
Matt Zanchelli
9186d99747
Make assertionFailure(_:file:line:)’s documentation more consistent with sibling functions
2021-12-09 17:25:52 -08:00
swift_jenkins
e69908e929
Merge remote-tracking branch 'origin/main' into next
2021-12-07 06:01:08 -08:00
Andrew Trick
a1e717223f
Merge pull request #39218 from atrick/revoke-pointer-sendable
...
Unsafe*Pointer types should not be Sendable.
2021-12-07 05:50:06 -08:00
swift_jenkins
dbf6ccb338
Merge remote-tracking branch 'origin/main' into next
2021-12-07 02:00:58 -08:00
Alejandro Alonso
8a5f728daf
Merge pull request #40340 from Azoy/drop-icu
...
[stdlib] Drop ICU
2021-12-07 01:44:38 -08:00
Andrew Trick
47cc279960
Unsafe*Pointer types should not be Sendable.
...
To send them across actors, they need to be wrapped in an '@unchecked
Sendable' type. Typically such a wrapper type would be be responsible
for ensuring its uniqueness or immutability.
Inferring Sendability for arbitrary types that contain Unsafe*Pointers
would introduce race conditions without warning or any explicit
acknoledgement from the programmer that the pointer is in fact unique.
2021-12-06 15:52:50 -08:00
swift_jenkins
ab9ce743cb
Merge remote-tracking branch 'origin/main' into next
2021-12-03 05:41:24 -08:00
David Smith
fc3e718771
Initial support for compile-time generation of vprintf format strings, behind the SWIFT_STDLIB_STATIC_PRINT flag
2021-12-02 16:58:36 -08:00
swift_jenkins
38fe5d045c
Merge remote-tracking branch 'origin/main' into next
2021-12-01 17:41:30 -08:00
Andrew Trick
d62fbb81ea
Merge pull request #40296 from atrick/assert-align
...
Add Builtin.assumeAlignment with support for misaligned loads
2021-12-01 17:34:01 -08:00
swift_jenkins
18f95e3c13
Merge remote-tracking branch 'origin/main' into next
2021-11-30 16:20:28 -08:00
swift-ci
691b62f84f
Merge pull request #40314 from Catfish-Man/count-von-count
2021-11-30 16:09:31 -08:00
Alejandro Alonso
21ee3a5e0f
Drop ICU
...
update freestanding deps
2021-11-30 13:53:08 -08:00
swift_jenkins
a7e1718cec
Merge remote-tracking branch 'origin/main' into next
2021-11-30 13:00:43 -08:00
Alejandro Alonso
ac6c08f157
[stdlib] Make the rest of the scalar properties native ( #40233 )
...
* Factor out the scalar bit array index mechanism
* Implement native numeric scalar properties
* Implement native scalar name aliases
* Implement native scalar mappings
* Implement native scalar names
* Implement native scalar age
* Implement native scalar general category
* Address Michael's and others comments
fix special mappings
fix bug
2021-11-30 12:40:32 -08:00
Andrew Trick
385a85ccc1
Add assumeAlignment to UnsafeRawPointer.load()
...
To preserve current behavior.
I expect this builtin to be removed in the default case after
proposing the change in Swift Evolution.
2021-11-30 12:23:46 -08:00
David Smith
3d8c29eaea
Early out for unequal NFC counts in String ==
2021-11-29 19:49:00 -08:00
Arnold Schwaighofer
2df553cc02
arm64e: Update for LLVM ptr_auth intrinsics differences
...
ptr_auth intrinsics are not polymorphic rather expect an int64 type.
rdar://85583820
2021-11-29 10:15:40 -08:00
Erik Eckstein
97424b76f4
stdlib: Don't check for overflows when adding 1 to Array.count
...
That addition can not possibly overflow. If Array.count would be Int max, the allocation of the array buffer would have failed way before.
2021-11-29 09:41:05 +01:00
Erik Eckstein
61db072617
cmake: fix libswift build dependencies
...
Unfortunately using the convenient "bootstrapping0-all", etc. custom targets does not work.
For some reason it does not cause a dependent file (like libswift's SIL.o) being rebuilt when a depenency (like swift-frontend from the previous bootstrapping stage) changes.
Instead we have to list al library- and executable-targets explicitly.
2021-11-23 18:33:43 +01:00
swift-ci
5f3b7bbd22
Merge pull request #40253 from apple/substring-base-doc-fix
2021-11-19 03:55:36 -08:00
Doug Gregor
6d5d23aa18
Add a feature flag for Builtin.stackAlloc and friends
...
... and use it in inlinable code so older compilers don't break on
newer standard libraries, fixing rdar://85574956.
2021-11-18 21:00:05 -08:00
Richard Wei
e7e9e06de6
[Doc] Fix unescaped reference in 'Substring.base' summary.
...
There is an unescaped reference to type `Substring`. I think a plain lowercased reference would read better. Alternatively we could escape it with backquotes.
2021-11-18 16:49:44 -08:00
Alejandro Alonso
3b402f0179
[stdlib] Implement native Unicode.Scalar binary properties ( #39597 )
...
* Generate Unicode data for Scalar Binary Properties
* Use native scalar binary property lookup
* Add _BinaryProperties to Scalar Properties
narrow access control
* Upgrade the notice to a warning in UnicodeScalarProperties
2021-11-15 15:20:46 -08:00
Karoy Lorentey
78ef55081d
Merge pull request #40138 from glessard/sort-workaround-bug-id
2021-11-12 21:41:38 -08:00
swift-ci
2a0c8a186a
Merge pull request #40157 from DougGregor/unchecked-sendable-stdlib
2021-11-12 09:54:47 -08:00
Doug Gregor
353daabf8d
Replace UnsafeSendable with @unchecked Sendable in the standard library.
2021-11-12 07:56:10 -08:00
Guillaume Lessard
183042e7ab
Merge pull request #40132 from glessard/ump-deinitialize-todo
...
[docs] clarify todo about deinitializing a single element
2021-11-11 14:32:20 -07:00
Guillaume Lessard
4c1d46bc09
[gardening] add public SR bug number to rdar link
2021-11-11 09:56:14 -07:00
Guillaume Lessard
5ef8c544e9
[docs] clarify todo about deinitializing a single element
2021-11-11 09:41:41 -07:00
Erik Eckstein
802a2e0a8b
cmake: fix a libswift bootstrapping problem with -enable-array-cow-checks
...
The checks must not be enabled in the first 2 bootstrapping stages.
2021-11-09 11:51:45 +01:00
Guillaume Lessard
bbd6759cbd
Merge pull request #40056 from HassanElDesouky/stdlib-internalPrecondition
...
[stdlib] Replace `precondition` with the internal `_precondition`
2021-11-08 17:25:08 -07:00
Guillaume Lessard
4f7f9f5e61
Merge pull request #40042 from HassanElDesouky/stdlib-internalInvariant
...
[stdlib] Replace `assert` with the internal `_internalInvariant`
2021-11-08 10:47:36 -07:00
Guillaume Lessard
e87a3e30ca
[stdlib] replace precondition with guard-else-_assertionFailure
2021-11-06 20:12:04 +02:00
Robert Widmann
ad0a5bf12b
Merge pull request #39979 from amartini51/managed_buffer_59618453
2021-11-06 08:52:18 -07:00
swift-ci
d954e46524
Merge pull request #40027 from glessard/wCSIA-clarification
2021-11-05 20:26:43 -07:00
eeckstein
ee95f3f7ed
Merge pull request #40068 from eeckstein/fix-libswift-bootstrapping
...
libswift: fixes and improvements for the bootstrapping build
2021-11-05 22:49:47 +01:00
Karoy Lorentey
6d33683c15
Merge pull request #40012 from lorentey/set-on-fire2
...
[stdlib] Optimize high-level Set operations
2021-11-05 13:48:40 -07:00
Erik Eckstein
e30688da82
libswift: fix dependencies in the bootstrapping build mode
...
swiftDarwin and swiftOnoneSupport didn't depend on building the Swift core library.
This was a subtle bug, because the compiler just picked up the module from the SDK instead of the (still building) Swift module.
It only resulted in compiler errors if the SDK swiftinterface was too new to be parsable by the compiler.
2021-11-05 18:33:21 +01:00
Erik Eckstein
09552abc44
libswift: improve the bootstrapping-with-hostlibs build mode
...
Don't build the swiftCore module files in the bootstrapping phases. Instead use the module files in the SDK.
This reduces the build time overhead from 3min -> 30seconds.
2021-11-05 18:32:25 +01:00
Hassan
1d4f220ed4
[stdlib] Replace precondition with the internal _precondition
2021-11-04 23:51:10 +02:00
Karoy Lorentey
d54e56bf1d
Merge pull request #40006 from lorentey/deninenineninenine-codable-additions
2021-11-03 22:05:42 -07:00
Hassan
bca4f2a6be
[stdlib] Replace assert with the internal _internalInvariant
2021-11-03 23:06:26 +02:00
Guillaume Lessard
0d1d49da4f
[gardening] fix copy-pasta
2021-11-03 04:50:04 -06:00
Guillaume Lessard
bbe8fbc15a
[stdlib] improve documentation of withContiguous[Mutable]StorageIfAvailable
...
- clarify the requirement that the entire collection must be accessible
- clarify the requirement surrounding subsequences / slices
- add parameter descriptions
- specify that buffer cannot be replaced
2021-11-03 03:43:19 -06:00
Karoy Lorentey
af06df90b6
[stdlib] Optimize Set.subtracting even more
2021-11-02 20:16:35 -07:00
Karoy Lorentey
f82b2996ab
[stdlib] Delete bogus assert
2021-11-02 19:30:43 -07:00