Skip to content

Commit 0fd55d7

Browse files
authored
Merge pull request #81413 from xedin/rename-notes-file-for-noinisolated-nonsending-feature
[Diagnostics] Rename the note file to match the `NonisolatedNonsendin…
2 parents 10ca7f6 + 0bcbde4 commit 0fd55d7

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

test/Concurrency/nonisolated_inherits_isolation.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
// REQUIRES: concurrency
66
// REQUIRES: swift_feature_NonisolatedNonsendingByDefault
77

8-
// This test checks and validates that when AsyncCallerExecution is enabled, we emit the
8+
// This test checks and validates that when NonisolatedNonsendingByDefault is enabled, we emit the
99
// appropriate diagnostics. It also runs with the mode off so we can validate
1010
// and compare locally against the normal errors.
1111

Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# `AsyncCallerExecution`
1+
# `NonisolatedNonsendingByDefault`
22

33
This feature changes the behavior of nonisolated async
44
functions to run on the actor to which the caller is isolated (if any) by
@@ -9,7 +9,7 @@ This feature was proposed in [SE-0461](https://github.com/swiftlang/swift-evolut
99

1010
* The `@concurrent` attribute specifies that a function must always
1111
switch off of an actor to run.
12-
This is the default behavior without `AsyncCallerExecution`.
12+
This is the default behavior without `NonisolatedNonsendingByDefault`.
1313
* The `nonisolated(nonsending)` modifier specifies that a function must always
1414
run on the caller's actor.
15-
This is the default behavior with `AsyncCallerExecution`.
15+
This is the default behavior with `NonisolatedNonsendingByDefault`.

userdocs/diagnostics/sending-risks-data-race.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,4 +49,4 @@ func onMainActor(person: Person) async {
4949

5050
This eliminates the risk of data-races because `printNameConcurrently` continues to run on the main actor, so all access to `person` is serialized.
5151

52-
You can also enable the `AsyncCallerExecution` upcoming feature to make `nonisolated(nonsending)` the default for async functions on non-`Sendable` types.
52+
You can also enable the `NonisolatedNonsendingByDefault` upcoming feature to make `nonisolated(nonsending)` the default for async functions on non-`Sendable` types.

0 commit comments

Comments
 (0)