Skip to content

Commit 328629e

Browse files
committed
[concurrency] Add feature NonIsolatedAsyncInheritsIsolationFromContext.
rdar://125193256
1 parent b2a4f7e commit 328629e

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

include/swift/Basic/Features.def

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -430,14 +430,18 @@ EXPERIMENTAL_FEATURE(CoroutineAccessorsUnwindOnCallerError, false)
430430
/// modify/read coroutines use the callee-allocated ABI
431431
EXPERIMENTAL_FEATURE(CoroutineAccessorsAllocateInCallee, false)
432432

433-
// When a parameter has unspecified isolation, infer it as main actor isolated.
433+
/// When a parameter has unspecified isolation, infer it as main actor isolated.
434434
EXPERIMENTAL_FEATURE(GenerateForceToMainActorThunks, false)
435435

436436
EXPERIMENTAL_FEATURE(AddressableParameters, true)
437437

438438
/// Allow the @abi attribute.
439439
SUPPRESSIBLE_EXPERIMENTAL_FEATURE(ABIAttribute, true)
440440

441+
/// Functions with nonisolated isolation inherit their isolation from the
442+
/// calling context.
443+
EXPERIMENTAL_FEATURE(NonIsolatedAsyncInheritsIsolationFromContext, false)
444+
441445
#undef EXPERIMENTAL_FEATURE_EXCLUDED_FROM_MODULE_INTERFACE
442446
#undef EXPERIMENTAL_FEATURE
443447
#undef UPCOMING_FEATURE

lib/AST/FeatureSet.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ UNINTERESTING_FEATURE(Volatile)
120120
UNINTERESTING_FEATURE(SuppressedAssociatedTypes)
121121
UNINTERESTING_FEATURE(StructLetDestructuring)
122122
UNINTERESTING_FEATURE(MacrosOnImports)
123+
UNINTERESTING_FEATURE(NonIsolatedAsyncInheritsIsolationFromContext)
123124

124125
static bool usesFeatureNonescapableTypes(Decl *decl) {
125126
auto containsNonEscapable =

0 commit comments

Comments
 (0)