Skip to content

Commit 886e44c

Browse files
committed
Define "Actors2" feature to cope with short-term backward compatibility
(cherry picked from commit 59b6563)
1 parent b8c5c12 commit 886e44c

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

include/swift/Basic/Features.def

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ LANGUAGE_FEATURE(AsyncAwait, 296, "async/await", true)
3939
LANGUAGE_FEATURE(EffectfulProp, 310, "Effectful properties", true)
4040
LANGUAGE_FEATURE(MarkerProtocol, 0, "@_marker protocol", true)
4141
LANGUAGE_FEATURE(Actors, 0, "actors", true)
42+
LANGUAGE_FEATURE(Actors2, 0, "actors #2 (TEMPORARY)", true)
4243
LANGUAGE_FEATURE(ConcurrentFunctions, 0, "@concurrent functions", true)
4344
LANGUAGE_FEATURE(RethrowsProtocol, 0, "@rethrows protocol", true)
4445
LANGUAGE_FEATURE(GlobalActors, 0, "Global actors", langOpts.EnableExperimentalConcurrency)

lib/AST/ASTPrinter.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2607,6 +2607,10 @@ static bool usesFeatureConcurrentFunctions(Decl *decl) {
26072607
return false;
26082608
}
26092609

2610+
static bool usesFeatureActors2(Decl *decl) {
2611+
return false;
2612+
}
2613+
26102614
static bool usesFeatureSendable(Decl *decl) {
26112615
if (auto func = dyn_cast<AbstractFunctionDecl>(decl)) {
26122616
if (func->isSendable())

0 commit comments

Comments
 (0)