Commit Graph

21492 Commits

Author SHA1 Message Date
Konrad `ktoso` Malawski
0c65fe8f42 Remove TaskGroup backDeployed annotation typo that included * (#74756)
Fix typo on a single task group backDeployed annotation.
2024-06-26 18:17:43 -07:00
Guillaume Lessard
8897ba3bf5 Merge pull request #74710 from glessard/rdar128709914-again
[stdlib] remove more deprecations added by SE-0426
2024-06-26 16:08:11 -07:00
Saleem Abdulrasool
22817ccf1a Platform: add sys_xattr module for Android
This module was left out from the modulariation pass. The declarations
here are required for building swift-foundation for Android.
2024-06-26 12:33:36 -07:00
Alejandro Alonso
3285f56dad Ignore argc 2024-06-26 10:54:57 -07:00
Konrad `ktoso` Malawski
8bc53736e4 Merge pull request #73568 from ktoso/wip-fix-last-_unsafeInheritExecutor-usage
[Concurrency] Remove last usages of @_unsafeInheritExecutor
2024-06-26 22:01:28 +09:00
Guillaume Lessard
a707b6849c [stdlib] remove more deprecations added by SE-0426 2024-06-25 14:43:19 -07:00
Kuba (Brecka) Mracek
9caf750e7f Merge pull request #74536 from kubamracek/embedded-windows1
[embedded] Start building embedded stdlib on Windows
2024-06-24 12:22:24 -07:00
Kuba (Brecka) Mracek
fb0a1b96ae Merge pull request #73870 from kubamracek/embedded-libraries-cmake
[embedded] Add a embedded-libraries CMake target to simplify the test dependencies
2024-06-24 08:39:50 -07:00
Konrad `ktoso` Malawski
0160fc367a [Concurrency] adopt #isolation in last remaining APIs 2024-06-24 11:44:44 +09:00
Konrad `ktoso` Malawski
58c5a76836 [Concurrency] TaskGroup.with... APIs using #isolation
move tests to existing actor_withCancellationHandler.swift file
2024-06-24 11:44:44 +09:00
Konrad `ktoso` Malawski
2546f63cb5 [Concurrency] Fix _unsafeInheritExecutor usage in withTaskCancellationHandler 2024-06-24 11:44:43 +09:00
Kuba Mracek
6eeef12849 [embedded] Add a embedded-libraries CMake target to simplify the test dependencies 2024-06-23 13:08:01 -07:00
Kuba (Brecka) Mracek
7d8a62a9a0 Merge pull request #74642 from kubamracek/embedded-fix-warnings
[embedded] Fix 3 compilation warnings in embedded stdlib
2024-06-22 06:54:13 -07:00
Kuba Mracek
187f772d09 [embedded] Start building embedded stdlib on Windows 2024-06-21 21:32:52 -07:00
Kuba Mracek
1d9cebeb22 [embedded] Fix 3 compilation warnings in embedded stdlib 2024-06-21 21:28:33 -07:00
Michael Gottesman
112071e57d [sending] Remove transferring.
Out of an abundance of caution, we:

1. Left in parsing support for transferring but internally made it rely on the
internals of sending.

2. Added a warning to tell people that transferring was going to
be removed very soon.

Now that we have given people some time, remove support for parsing
transferring.

rdar://130253724
2024-06-21 16:03:21 -07:00
Mishal Shah
c9e3e79d9c Merge pull request #74590 from edymtt/edymtt/move-embedded-unicode-to-dedicated-cmakelists-txt
[embedded] use dedicated CMakeLists.txt to build unicode data tables
2024-06-21 15:43:56 -07:00
Michael Gottesman
d28eef2d62 [sending] Convert the TaskGroup APIs 2024-06-21 06:11:17 -07:00
Michael Gottesman
b541e0299e [concurrency] Deprecate some source compatibility APIs in swift 5 and obsolete in swift 6.
These APIs remained to preserve source compatibility during bringup. We do not
want them used in swift 6 mode... so deprecate in swift 5 and obsolete in swift
6.
2024-06-21 02:24:03 -07:00
Michael Gottesman
4697546e09 [sending] Mark Task.init,detached, and friends as sending methods instead of __owned @Sendable so we can capture non-isolated values. 2024-06-21 02:24:03 -07:00
Konrad `ktoso` Malawski
8ea87e40af [Distributed] Adjust whenLocal impl to avoid potential ABI issues 2024-06-21 11:36:18 +09:00
Alejandro Alonso
dd8a21e69f Merge pull request #74523 from Azoy/int128-attributes
[stdlib] Apply @_transparent consistently for (U)Int128
2024-06-20 18:28:34 -07:00
Konrad `ktoso` Malawski
e85b461726 Merge pull request #74568 from ktoso/wip-remove-old-clang-workaround
[Concurrency] Remove OPTNONE workaround for old clang version
2024-06-21 08:55:36 +09:00
Eric Miotto
66df28f108 [embedded] use dedicated CMakeLists.txt to build unicode data tables
This will avoid CMake configuration errors in `llvm_process_sources`
 in configurations that build only the the standard library for embedded.

Addresses rdar://130229502
2024-06-20 14:04:28 -07:00
Karoy Lorentey
470a04cca3 Merge pull request #73807 from lorentey/stdlib-noncopyable-additions
[stdlib] API additions for basic noncopyable primitives
2024-06-20 13:32:23 -07:00
Konrad `ktoso` Malawski
a43abe6a90 [Concurrency] Remove OPTNONE workaround for old clang version
This reverts c07aa9c425 which was done to
avoid a crash in optimnized caused by this PR:
https://github.com/apple/swift/pull/41088

Since this was almost 2 years ago, we probably don't have this issue
anymore as far as I can see other resolved issues, so try to remove the
workaround.

Resolves rdar://88711954
2024-06-20 20:03:33 +09:00
Holly Borla
4bec599931 Merge pull request #74543 from hborla/promote-isolated-any
[Features] Promote `IsolatedAny` and its alias to a language feature.
2024-06-19 10:32:30 -07:00
Holly Borla
966269d31a [Features] Promote IsolatedAny and its alias to a language feature.
The proposal is accepted and implemented for Swift 6.0.
2024-06-18 22:09:16 -07:00
Michael Gottesman
05124286c3 Merge pull request #74149 from gottesmm/pr-2808d3e61fa0b5b0dea4b8e7650b69cede701624
[concurrency] Mark the global _emptyDequeStorage as nonisolated(unsafe).
2024-06-18 16:42:38 -07:00
Alejandro Alonso
87a8edb368 Microoptimize _low and _high and remove else branch
Update UInt128.swift
2024-06-18 16:08:41 -07:00
Alejandro Alonso
f8f7d0c6d3 Make _low and _high public 2024-06-18 15:03:30 -07:00
Alejandro Alonso
839c49bec3 Microoptimize _lowWord and fix else branch 2024-06-18 15:03:13 -07:00
Kuba (Brecka) Mracek
9e7501601c Merge pull request #74489 from kubamracek/embedded-less-stdlibs
[embedded] Don't build *all* the embedded stdlibs by default
2024-06-18 13:50:25 -07:00
Alejandro Alonso
68952e8281 It is remainder, not remainer 2024-06-18 13:46:57 -07:00
Alejandro Alonso
95ce270a77 Get rid of remaining uses of precondition 2024-06-18 12:45:16 -07:00
Alejandro Alonso
b059766481 Apply @_transparent consistently for (U)Int128 2024-06-18 10:47:48 -07:00
Alejandro Alonso
13bf2ec540 Merge pull request #74507 from Azoy/128-words-are-ice-cold
[stdlib] Mark UInt128.Words as frozen
2024-06-18 08:24:26 -07:00
Kuba (Brecka) Mracek
be841a566a Merge pull request #74493 from kubamracek/cmake-flag-for-volatile
Add a build-script + CMake flag to enable/disable building the _Volatile module
2024-06-18 07:57:05 -07:00
Karoy Lorentey
cd7e4c3db5 Merge pull request #74486 from lorentey/more-9999s
[stdlib] _Builtin_float: More availability adjustments
2024-06-17 22:22:49 -07:00
Alejandro Alonso
95195c60af Mark UInt128.Words as frozen 2024-06-17 17:40:30 -07:00
Karoy Lorentey
9d947e4de0 [stdlib] Add missing overload of extracting for UnboundedRange
I keep forgetting that `some RangeExpression<Element>` does not cover the `UnboundedRange` form.
2024-06-17 15:03:12 -07:00
Slava Pestov
8582828e7a Merge pull request #74445 from slavapestov/fix-failure-type-witness
Concurrency: Fix default type witness for AsyncSequence.Failure
2024-06-17 17:09:06 -04:00
Kuba Mracek
37ed08dc7b Add a build-script + CMake flag to enable/disable building the _Volatile module 2024-06-17 13:18:55 -07:00
Kuba (Brecka) Mracek
03b0f0cc57 Merge pull request #74442 from kubamracek/embedded-string-to-pointer
[embedded] Implement missing _convertConstStringToUTF8PointerArgument to support string to pointer conversion
2024-06-17 10:45:39 -07:00
Kuba Mracek
dc2edb6e9b [embedded] Don't build *all* the embedded stdlibs by default 2024-06-17 10:32:56 -07:00
Karoy Lorentey
5bd05df632 [stdlib] _Builtin_float: More availability adjustments
- Fix one placeholder availability I missed in the previous patch
- Add `visionOS 1.0` availability to work around over-pedantic `@_originallyDefinedIn` diagnostic that started appearing in toolchain builds.
2024-06-17 10:03:28 -07:00
Konrad `ktoso` Malawski
8a2e755b9a GlobalActor documentation typos fixup (#74467)
Co-authored-by: Holly Borla <hborla@apple.com>
2024-06-16 22:28:54 -07:00
Slava Pestov
61d00cacd6 Concurrency: Fix default type witness for AsyncSequence.Failure
Setting this to Self.AsyncIterator.Failure doesn't work because
we replace it with its reduced type Self.Failure, and then if
you run a binary compiled against an older version of the stdlib
that does not declare the Failure associated type, we hit
infinite recursion while instantiating the witness table and
trying to populate the default type witness.

Instead, let's set the default to `any Error`. Associated type
inference is already smart enough to infer the type witness from
the AsyncIterator's Failure type; we don't need to rely on the
default mechanism for that.

Fixes rdar://129605725.
2024-06-14 22:43:49 -04:00
Tim Kientzle
05c74e0d90 Revert "Merge pull request #74394 from tbkka/tbkka-remotemirror-no-more-mpe-metadata-partial"
This reverts commit a1708ef8b1, reversing
changes made to b5930625be.
2024-06-14 15:32:39 -07:00
Kuba Mracek
92a39fce2f [embedded] Implement missing _convertConstStringToUTF8PointerArgument to support string to pointer conversion 2024-06-14 15:32:25 -07:00