Update dependency swiftlang/swift to v6.2.3#100
Open
renovate[bot] wants to merge 1 commit intomasterfrom
Open
Conversation
3a2d428 to
17ba93a
Compare
17ba93a to
0caf09e
Compare
e68743f to
2dcf599
Compare
2dcf599 to
2e4cc3f
Compare
2e4cc3f to
1acd36e
Compare
f9de79e to
1c3cf03
Compare
1c3cf03 to
b2e2663
Compare
d8ee51f to
7c5f5a8
Compare
7c5f5a8 to
ae38a5e
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
6.1→6.2.35.8→6.2.3Release Notes
swiftlang/swift (swiftlang/swift)
v6.2.3: Swift 6.2.3 ReleaseCompare Source
v6.2.2: Swift 6.2.2 ReleaseCompare Source
v6.2.1: Swift 6.2.1 ReleaseCompare Source
v6.2Compare Source
[SE-0472][]:
Introduced new
Task.immediateandtaskGroup.addImmediateTaskAPIs, which allow a task to run "immediately" in thecalling context if its isolation is compatible with the enclosing one. This can be used to create tasks which execute
without additional scheduling overhead, and allow for finer-grained control over where a task begins running.
The canonical example for using this new API is using an unstructured immediate task like this:
[SE-0471][]:
Actor and global actor annotated types may now declare a synchronous
isolated deinit, which allows such deinitializerto access actor isolated state while deinitializing the actor. This enables actor deinitializers to safely access
and shut down or close resources during an actors deinitialization, without explicitly resorting to unstructured
concurrency tasks.
[SE-0469][]:
Swift concurrency tasks (both unstructured and structured, via the TaskGroup
addTaskAPIs) may now be givenhuman-readable names, which can be used to support debugging and identifying tasks.
[SE-0462][]:
Task priority escalation may now be explicitly caused to a
Task, as well as reacted to using the new task priority escalation handlers:[SE-0461][]:
Nonisolated asynchronous functions may now execute on the calling actor, when the upcoming feature
NonisolatedNonsendingByDefaultis enabled, or when explicitly opted-into using the
nonisolated(nonsending)keywords. This allows for fine grained controlover where nonisolated asynchronous functions execute, and allows for the default behavior of their execution to be changed
from always executing on the global concurrent pool, to the calling actor, which can yield noticeable performance improvements
thanks to less executor hopping when nonisolated and isolated code is invoked in sequence.
This also allows for safely using asynchronous functions on non-sendable types from actors, like so:
The Swift compiler no longer diagnoses references to declarations that are
potentially unavailable because the platform version might not be new enough
when those references occur inside of contexts that are also unavailable to
that platform. This addresses a long-standing nuisance for multi-platform
code. However, there is also a chance that existing source code may become
ambiguous as a result:
Code that is now ambiguous as a result should likely be restructured since
disambiguation based on platform introduction alone has never been a reliable
strategy, given that the code would eventually become ambiguous anyways when
the deployment target is raised.
[SE-0470][]:
A protocol conformance can be isolated to a specific global actor, meaning that the conformance can only be used by code running on that actor. Isolated conformances are expressed by specifying the global actor on the conformance itself:
Swift will produce diagnostics if the conformance is directly accessed in code that isn't guaranteed to execute in the same global actor. For example:
To address such issues, only use an isolated conformance from code that executes on the same global actor.
[SE-0419][]:
Introduced the new
Runtimemodule, which contains a public API that cangenerate backtraces, presently supported on macOS and Linux. Capturing a
backtrace is as simple as
[SE-0458][]:
Introduced an opt-in mode for strict checking of memory safety, which can be
enabled with the compiler flag
-strict-memory-safety. In this mode,the Swift compiler will produce warnings for uses of memory-unsafe constructs
and APIs. For example,
These warnings are in their own diagnostic group (
StrictMemorySafety) and canbe suppressed by ackwnowledging the memory-unsafe behavior, for
example with an
unsafeexpression:v6.1.3: Swift 6.1.3 ReleaseCompare Source
v6.1.2: Swift 6.1.2 ReleaseCompare Source
v6.1.1Compare Source
Class methods and initializers that satisfy protocol requirements now properly
invoke subclass overrides when called in generic contexts. For example:
(
1882821)Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about these updates again.
This PR was generated by Mend Renovate. View the repository job log.