Skip to content

Commit a3d35d5

Browse files
committed
[Frontend] Mark AsyncCallerExecution as an upcoming feature in Swift 7
1 parent c72e57e commit a3d35d5

10 files changed

+12
-15
lines changed

include/swift/Basic/Features.def

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,7 @@ ADOPTABLE_UPCOMING_FEATURE(ExistentialAny, 335, 7)
280280
UPCOMING_FEATURE(InternalImportsByDefault, 409, 7)
281281
UPCOMING_FEATURE(MemberImportVisibility, 444, 7)
282282
UPCOMING_FEATURE(InferIsolatedConformances, 470, 7)
283+
ADOPTABLE_UPCOMING_FEATURE(AsyncCallerExecution, 461, 7)
283284

284285
// Optional language features / modes
285286

@@ -489,10 +490,6 @@ SUPPRESSIBLE_EXPERIMENTAL_FEATURE(AddressableTypes, true)
489490
/// Allow the @abi attribute.
490491
SUPPRESSIBLE_EXPERIMENTAL_FEATURE(ABIAttribute, true)
491492

492-
/// Functions with nonisolated isolation inherit their isolation from the
493-
/// calling context.
494-
ADOPTABLE_EXPERIMENTAL_FEATURE(AsyncCallerExecution, false)
495-
496493
/// Allow custom availability domains to be defined and referenced.
497494
EXPERIMENTAL_FEATURE(CustomAvailability, true)
498495

test/Concurrency/Runtime/nonisolated_inherits_isolation.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-run-simple-swift( -swift-version 6 -g %import-libdispatch -import-objc-header %S/Inputs/RunOnMainActor.h -enable-experimental-feature AsyncCallerExecution )
1+
// RUN: %target-run-simple-swift( -swift-version 6 -g %import-libdispatch -import-objc-header %S/Inputs/RunOnMainActor.h -enable-upcoming-feature AsyncCallerExecution )
22

33
// REQUIRES: executable_test
44
// REQUIRES: concurrency

test/Concurrency/attr_execution/adoption_mode.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// RUN: %target-typecheck-verify-swift -target %target-swift-5.1-abi-triple -swift-version 5 -enable-experimental-feature AsyncCallerExecution:adoption
2-
// RUN: %target-typecheck-verify-swift -target %target-swift-5.1-abi-triple -swift-version 6 -enable-experimental-feature AsyncCallerExecution:adoption
1+
// RUN: %target-typecheck-verify-swift -target %target-swift-5.1-abi-triple -swift-version 5 -enable-upcoming-feature AsyncCallerExecution:adoption
2+
// RUN: %target-typecheck-verify-swift -target %target-swift-5.1-abi-triple -swift-version 6 -enable-upcoming-feature AsyncCallerExecution:adoption
33

44
// REQUIRES: swift_feature_AsyncCallerExecution
55

test/Concurrency/attr_execution/attr_execution.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-swift-emit-silgen -enable-experimental-feature AsyncCallerExecution %s | %FileCheck %s
1+
// RUN: %target-swift-emit-silgen -enable-upcoming-feature AsyncCallerExecution %s | %FileCheck %s
22

33
// REQUIRES: swift_feature_AsyncCallerExecution
44

test/Concurrency/nonisolated_inherits_isolation.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// RUN: %target-swift-frontend %s -swift-version 6 -verify -verify-additional-prefix disabled- -c
2-
// RUN: %target-swift-frontend %s -swift-version 6 -verify -enable-experimental-feature AsyncCallerExecution -verify-additional-prefix enable- -c -verify-additional-prefix enabled-
2+
// RUN: %target-swift-frontend %s -swift-version 6 -verify -enable-upcoming-feature AsyncCallerExecution -verify-additional-prefix enable- -c -verify-additional-prefix enabled-
33

44
// REQUIRES: asserts
55
// REQUIRES: concurrency

test/Concurrency/nonisolated_inherits_isolation_sema.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-typecheck-verify-swift -swift-version 6 -enable-experimental-feature AsyncCallerExecution -parse-as-library
1+
// RUN: %target-typecheck-verify-swift -swift-version 6 -enable-upcoming-feature AsyncCallerExecution -parse-as-library
22

33
// REQUIRES: asserts
44
// REQUIRES: concurrency

test/Frontend/print-supported-features.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@
55
// CHECK: { "name": "{{.*}}"{{, "migratable": true}}, "enabled_in": {{[0-9]+}} }
66
// CHECK: ],
77
// CHECK-NEXT: "experimental": [
8-
// CHECK: { "name": "{{.*}}"{{, "migratable": true}} }
8+
// CHECK: { "name": "{{.*}}" }
99
// CHECK: ]
1010
// CHECK: }

test/SILGen/execution_attr.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// RUN: %target-swift-emit-silgen %s | %FileCheck -check-prefix CHECK -check-prefix DISABLED %s
2-
// RUN: %target-swift-emit-silgen %s -enable-experimental-feature AsyncCallerExecution | %FileCheck -check-prefix CHECK -check-prefix ENABLED %s
2+
// RUN: %target-swift-emit-silgen %s -enable-upcoming-feature AsyncCallerExecution | %FileCheck -check-prefix CHECK -check-prefix ENABLED %s
33

44
// REQUIRES: concurrency
55
// REQUIRES: swift_feature_AsyncCallerExecution

test/SILGen/nonisolated_inherits_isolation.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-swift-emit-silgen -swift-version 6 -enable-experimental-feature AsyncCallerExecution %s | %FileCheck %s
1+
// RUN: %target-swift-emit-silgen -swift-version 6 -enable-upcoming-feature AsyncCallerExecution %s | %FileCheck %s
22

33
// REQUIRES: concurrency
44
// REQUIRES: asserts

test/Serialization/caller_isolation_inherit.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
// RUN: %empty-directory(%t)
2-
// RUN: %target-swift-frontend -enable-experimental-feature AsyncCallerExecution -emit-module-path %t/WithFeature.swiftmodule -module-name WithFeature %S/Inputs/caller_inheriting_isolation.swift -swift-version 6
2+
// RUN: %target-swift-frontend -enable-upcoming-feature AsyncCallerExecution -emit-module-path %t/WithFeature.swiftmodule -module-name WithFeature %S/Inputs/caller_inheriting_isolation.swift -swift-version 6
33
// RUN: %target-swift-frontend -emit-module-path %t/WithoutFeature.swiftmodule -module-name WithoutFeature %S/Inputs/caller_inheriting_isolation.swift -swift-version 6
44

55
// RUN: %target-swift-frontend -module-name main -I %t %s -emit-sil -o - | %FileCheck %s
66

7-
// RUN: %target-swift-frontend -enable-experimental-feature AsyncCallerExecution -module-name main -I %t %s -emit-sil -verify -swift-version 6
7+
// RUN: %target-swift-frontend -enable-upcoming-feature AsyncCallerExecution -module-name main -I %t %s -emit-sil -verify -swift-version 6
88

99
// REQUIRES: asserts
1010
// REQUIRES: swift_feature_AsyncCallerExecution

0 commit comments

Comments
 (0)