Skip to content

Commit 48fba26

Browse files
Merge pull request #70725 from sophiapoirier/global-concurrency-future-feature
[Concurrency] promote GlobalConcurrency from experimental to future feature
2 parents b1a8ad8 + 073f541 commit 48fba26

File tree

4 files changed

+4
-5
lines changed

4 files changed

+4
-5
lines changed

include/swift/Basic/Features.def

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ UPCOMING_FEATURE(DeprecateApplicationMain, 383, 6)
120120
UPCOMING_FEATURE(ImportObjcForwardDeclarations, 384, 6)
121121
UPCOMING_FEATURE(DisableOutwardActorInference, 401, 6)
122122
UPCOMING_FEATURE(InternalImportsByDefault, 409, 6)
123+
UPCOMING_FEATURE(GlobalConcurrency, 412, 6)
123124
UPCOMING_FEATURE(FullTypedThrows, 413, 6)
124125

125126
UPCOMING_FEATURE(ExistentialAny, 335, 7)
@@ -217,9 +218,6 @@ EXPERIMENTAL_FEATURE(StrictConcurrency, true)
217218
/// Region Based Isolation testing using the TransferNonSendable pass
218219
EXPERIMENTAL_FEATURE(RegionBasedIsolation, false)
219220

220-
/// Within strict concurrency, narrow global variable isolation requirements.
221-
EXPERIMENTAL_FEATURE(GlobalConcurrency, false)
222-
223221
/// Allow default values to require isolation at the call-site.
224222
EXPERIMENTAL_FEATURE(IsolatedDefaultValues, false)
225223

lib/Frontend/CompilerInvocation.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -880,6 +880,7 @@ static bool ParseLangArgs(LangOptions &Opts, ArgList &Args,
880880
if (Opts.hasFeature(Feature::CompleteConcurrency)) {
881881
Opts.StrictConcurrencyLevel = StrictConcurrency::Complete;
882882
Opts.enableFeature(Feature::DisableOutwardActorInference);
883+
Opts.enableFeature(Feature::GlobalConcurrency);
883884
}
884885

885886
// Map historical flags over to experimental features. We do this for all

test/Concurrency/global_variables.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// RUN: %empty-directory(%t)
22
// RUN: %target-swift-frontend -emit-module -emit-module-path %t/GlobalVariables.swiftmodule -module-name GlobalVariables -parse-as-library -strict-concurrency=minimal -swift-version 5 %S/Inputs/GlobalVariables.swift
3-
// RUN: %target-swift-frontend -disable-availability-checking -parse-as-library -enable-experimental-feature StrictConcurrency=complete -enable-experimental-feature GlobalConcurrency -swift-version 6 -I %t %s %s -emit-sil -o /dev/null -verify %s
3+
// RUN: %target-swift-frontend -disable-availability-checking -parse-as-library -swift-version 6 -I %t %s %s -emit-sil -o /dev/null -verify %s
44

55
// REQUIRES: concurrency
66
// REQUIRES: asserts

test/expr/closure/closures_swift6.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ class C_56501 {
8181
}
8282
}
8383

84-
public class TestImplicitSelfForWeakSelfCapture {
84+
public final class TestImplicitSelfForWeakSelfCapture: Sendable {
8585
static let staticOptional: TestImplicitSelfForWeakSelfCapture? = .init()
8686
func method() { }
8787

0 commit comments

Comments
 (0)