Skip to content

Commit abc8aa6

Browse files
authored
Merge pull request swiftlang#41780 from ktoso/wip-just-flag-dist
[Distributed] Enable no-longer-experimental distributed by default
2 parents 94de12b + c6cb3cc commit abc8aa6

File tree

72 files changed

+135
-176
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

72 files changed

+135
-176
lines changed

CHANGELOG.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,36 @@ _**Note:** This is in reverse chronological order, so newer entries are added to
55

66
## Swift 5.7
77

8+
* [SE-0336][]:
9+
10+
It is now possible to declare `distributed actor` and `distributed func`s inside of them.
11+
12+
Distributed actors provide stronger isolation guarantees than "local" actors, and enable additional checks to be made on return types and parameters of distributed methods, e.g. checking if they conform to `Codable`. Distributed methods can be called on "remote" references of distributed actors, turning those invocations into remote procedure calls, by means of pluggable and user extensible distributed actor system implementations.
13+
14+
Swift does not provide any specific distributed actor system by itself, however, packages in the ecosystem fulfil the role of providing those implementations.
15+
16+
```swift
17+
distributed actor Greeter {
18+
var greetingsSent = 0
19+
20+
distributed func greet(name: String) -> String {
21+
greetingsSent += 1
22+
return "Hello, \(name)!"
23+
}
24+
}
25+
26+
func talkTo(greeter: Greeter) async throws {
27+
// isolation of distributed actors is stronger, it is impossible to refer to
28+
// any stored properties of distributed actors from outside of them:
29+
greeter.greetingsSent // distributed actor-isolated property 'name' can not be accessed from a non-isolated context
30+
31+
// remote calls are implicitly throwing and async,
32+
// to account for the potential networking involved:
33+
let greeting = try await greeter.greet(name: "Alice")
34+
print(greeting) // Hello, Alice!
35+
}
36+
```
37+
838
* The compiler now emits a warning when a non-final class conforms to a protocol that imposes a same-type requirement between `Self` and an associated type. This is because such a requirement makes the conformance unsound for subclasses.
939

1040
For example, Swift 5.6 would allow the following code, which at runtime would construct an instanec of `C` and not `SubC` as expected:
@@ -9034,6 +9064,7 @@ Swift 1.0
90349064
[SE-0337]: <https://github.com/apple/swift-evolution/blob/main/proposals/0337-support-incremental-migration-to-concurrency-checking.md>
90359065
[SE-0335]: <https://github.com/apple/swift-evolution/blob/main/proposals/0335-existential-any.md>
90369066
[SE-0341]: <https://github.com/apple/swift-evolution/blob/main/proposals/0341-opaque-parameters.md>
9067+
[SE-0336]: <https://github.com/apple/swift-evolution/blob/main/proposals/0336-distributed-actor-isolation.md>
90379068

90389069
[SR-75]: <https://bugs.swift.org/browse/SR-75>
90399070
[SR-106]: <https://bugs.swift.org/browse/SR-106>

include/swift/AST/DiagnosticsParse.def

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1887,11 +1887,6 @@ ERROR(attr_requires_concurrency, none,
18871887
"concurrency is enabled",
18881888
(StringRef, bool))
18891889

1890-
ERROR(attr_requires_distributed, none,
1891-
"'%0' %select{attribute|modifier}1 is only valid when experimental "
1892-
"distributed support is enabled",
1893-
(StringRef, bool))
1894-
18951890
//------------------------------------------------------------------------------
18961891
// MARK: syntax parsing diagnostics
18971892
//------------------------------------------------------------------------------

include/swift/Basic/LangOptions.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ namespace swift {
344344
bool EnableInferPublicSendable = false;
345345

346346
/// Enable experimental 'distributed' actors and functions.
347-
bool EnableExperimentalDistributed = false;
347+
bool EnableExperimentalDistributed = true;
348348

349349
/// Enable experimental 'move only' features.
350350
bool EnableExperimentalMoveOnly = false;

include/swift/IDE/CompletionLookup.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -541,7 +541,6 @@ class CompletionLookup final : public swift::VisibleDeclConsumer {
541541

542542
static bool canUseAttributeOnDecl(DeclAttrKind DAK, bool IsInSil,
543543
bool IsConcurrencyEnabled,
544-
bool IsDistributedEnabled,
545544
Optional<DeclKind> DK);
546545

547546
void getAttributeDeclCompletions(bool IsInSil, Optional<DeclKind> DK);

include/swift/Parse/Parser.h

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -748,14 +748,6 @@ class Parser {
748748
Context.LangOpts.ParseForSyntaxTreeOnly;
749749
}
750750

751-
/// Returns true to indicate that experimental 'distributed actor' syntax
752-
/// should be parsed if the parser is only a syntax tree or if the user has
753-
/// passed the `-enable-experimental-distributed' flag to the frontend.
754-
bool shouldParseExperimentalDistributed() const {
755-
return Context.LangOpts.EnableExperimentalDistributed ||
756-
Context.LangOpts.ParseForSyntaxTreeOnly;
757-
}
758-
759751
public:
760752
InFlightDiagnostic diagnose(SourceLoc Loc, Diagnostic Diag) {
761753
if (Diags.isDiagnosticPointsToFirstBadToken(Diag.getID()) &&

lib/AST/ASTContext.cpp

Lines changed: 15 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3028,23 +3028,21 @@ AnyFunctionType::Param swift::computeSelfParam(AbstractFunctionDecl *AFD,
30283028
// FIXME(distributed): pending swift-evolution, allow `self =` in class
30293029
// inits in general.
30303030
// See also: https://github.com/apple/swift/pull/19151 general impl
3031-
if (Ctx.LangOpts.EnableExperimentalDistributed) {
3032-
auto ext = dyn_cast<ExtensionDecl>(AFD->getDeclContext());
3033-
auto distProto =
3034-
Ctx.getProtocol(KnownProtocolKind::DistributedActor);
3035-
if (distProto && ext && ext->getExtendedNominal() &&
3036-
ext->getExtendedNominal()->getInterfaceType()
3037-
->isEqual(distProto->getInterfaceType())) {
3038-
auto name = CD->getName();
3039-
auto params = name.getArgumentNames();
3040-
if (params.size() == 1 && params[0] == Ctx.Id_from) {
3041-
// FIXME(distributed): this is a workaround to allow init(from:) to
3042-
// be implemented in AST by allowing the self to be mutable in the
3043-
// decoding initializer. This should become a general Swift
3044-
// feature, allowing this in all classes:
3045-
// https://forums.swift.org/t/allow-self-x-in-class-convenience-initializers/15924
3046-
selfAccess = SelfAccessKind::Mutating;
3047-
}
3031+
auto ext = dyn_cast<ExtensionDecl>(AFD->getDeclContext());
3032+
auto distProto =
3033+
Ctx.getProtocol(KnownProtocolKind::DistributedActor);
3034+
if (distProto && ext && ext->getExtendedNominal() &&
3035+
ext->getExtendedNominal()->getInterfaceType()
3036+
->isEqual(distProto->getInterfaceType())) {
3037+
auto name = CD->getName();
3038+
auto params = name.getArgumentNames();
3039+
if (params.size() == 1 && params[0] == Ctx.Id_from) {
3040+
// FIXME(distributed): this is a workaround to allow init(from:) to
3041+
// be implemented in AST by allowing the self to be mutable in the
3042+
// decoding initializer. This should become a general Swift
3043+
// feature, allowing this in all classes:
3044+
// https://forums.swift.org/t/allow-self-x-in-class-convenience-initializers/15924
3045+
selfAccess = SelfAccessKind::Mutating;
30483046
}
30493047
}
30503048
} else {

lib/IDE/CodeCompletion.cpp

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -656,8 +656,7 @@ static void addKeyword(CodeCompletionResultSink &Sink, StringRef Name,
656656
}
657657

658658
static void addDeclKeywords(CodeCompletionResultSink &Sink, DeclContext *DC,
659-
bool IsConcurrencyEnabled,
660-
bool IsDistributedEnabled) {
659+
bool IsConcurrencyEnabled) {
661660
auto isTypeDeclIntroducer = [](CodeCompletionKeywordKind Kind,
662661
Optional<DeclAttrKind> DAK) -> bool {
663662
switch (Kind) {
@@ -778,11 +777,6 @@ static void addDeclKeywords(CodeCompletionResultSink &Sink, DeclContext *DC,
778777
DeclAttribute::isConcurrencyOnly(*DAK))
779778
return;
780779

781-
// Remove keywords only available when distributed is enabled.
782-
if (DAK.hasValue() && !IsDistributedEnabled &&
783-
DeclAttribute::isDistributedOnly(*DAK))
784-
return;
785-
786780
addKeyword(Sink, Name, Kind, /*TypeAnnotation=*/"", getFlair(Kind, DAK));
787781
};
788782

@@ -943,8 +937,7 @@ void CodeCompletionCallbacksImpl::addKeywords(CodeCompletionResultSink &Sink,
943937
}
944938
case CompletionKind::StmtOrExpr:
945939
addDeclKeywords(Sink, CurDeclContext,
946-
Context.LangOpts.EnableExperimentalConcurrency,
947-
Context.LangOpts.EnableExperimentalDistributed);
940+
Context.LangOpts.EnableExperimentalConcurrency);
948941
addStmtKeywords(Sink, CurDeclContext, MaybeFuncBody);
949942
LLVM_FALLTHROUGH;
950943
case CompletionKind::ReturnStmtExpr:
@@ -1013,8 +1006,7 @@ void CodeCompletionCallbacksImpl::addKeywords(CodeCompletionResultSink &Sink,
10131006
}) != ParsedKeywords.end();
10141007
if (!HasDeclIntroducer) {
10151008
addDeclKeywords(Sink, CurDeclContext,
1016-
Context.LangOpts.EnableExperimentalConcurrency,
1017-
Context.LangOpts.EnableExperimentalDistributed);
1009+
Context.LangOpts.EnableExperimentalConcurrency);
10181010
addLetVarKeywords(Sink);
10191011
}
10201012
break;
@@ -1758,8 +1750,7 @@ void CodeCompletionCallbacksImpl::doneParsing() {
17581750
if (CurDeclContext->isTypeContext()) {
17591751
// Override completion (CompletionKind::NominalMemberBeginning).
17601752
addDeclKeywords(Sink, CurDeclContext,
1761-
Context.LangOpts.EnableExperimentalConcurrency,
1762-
Context.LangOpts.EnableExperimentalDistributed);
1753+
Context.LangOpts.EnableExperimentalConcurrency);
17631754
addLetVarKeywords(Sink);
17641755
SmallVector<StringRef, 0> ParsedKeywords;
17651756
CompletionOverrideLookup OverrideLookup(Sink, Context, CurDeclContext,
@@ -1768,8 +1759,7 @@ void CodeCompletionCallbacksImpl::doneParsing() {
17681759
} else {
17691760
// Global completion (CompletionKind::PostfixExprBeginning).
17701761
addDeclKeywords(Sink, CurDeclContext,
1771-
Context.LangOpts.EnableExperimentalConcurrency,
1772-
Context.LangOpts.EnableExperimentalDistributed);
1762+
Context.LangOpts.EnableExperimentalConcurrency);
17731763
addStmtKeywords(Sink, CurDeclContext, MaybeFuncBody);
17741764
addSuperKeyword(Sink, CurDeclContext);
17751765
addLetVarKeywords(Sink);

lib/IDE/CompletionLookup.cpp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2852,7 +2852,6 @@ void CompletionLookup::getGenericRequirementCompletions(
28522852

28532853
bool CompletionLookup::canUseAttributeOnDecl(DeclAttrKind DAK, bool IsInSil,
28542854
bool IsConcurrencyEnabled,
2855-
bool IsDistributedEnabled,
28562855
Optional<DeclKind> DK) {
28572856
if (DeclAttribute::isUserInaccessible(DAK))
28582857
return false;
@@ -2864,8 +2863,6 @@ bool CompletionLookup::canUseAttributeOnDecl(DeclAttrKind DAK, bool IsInSil,
28642863
return false;
28652864
if (!IsConcurrencyEnabled && DeclAttribute::isConcurrencyOnly(DAK))
28662865
return false;
2867-
if (!IsDistributedEnabled && DeclAttribute::isDistributedOnly(DAK))
2868-
return false;
28692866
if (!DK.hasValue())
28702867
return true;
28712868
return DeclAttribute::canAttributeAppearOnDeclKind(DAK, DK.getValue());
@@ -2885,11 +2882,10 @@ void CompletionLookup::getAttributeDeclCompletions(bool IsInSil,
28852882
}
28862883
}
28872884
bool IsConcurrencyEnabled = Ctx.LangOpts.EnableExperimentalConcurrency;
2888-
bool IsDistributedEnabled = Ctx.LangOpts.EnableExperimentalDistributed;
28892885
std::string Description = TargetName.str() + " Attribute";
28902886
#define DECL_ATTR(KEYWORD, NAME, ...) \
28912887
if (canUseAttributeOnDecl(DAK_##NAME, IsInSil, IsConcurrencyEnabled, \
2892-
IsDistributedEnabled, DK)) \
2888+
DK)) \
28932889
addDeclAttrKeyword(#KEYWORD, Description);
28942890
#include "swift/AST/Attr.def"
28952891
}

lib/Parse/ParseDecl.cpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1987,14 +1987,6 @@ bool Parser::parseNewDeclAttribute(DeclAttributes &Attributes, SourceLoc AtLoc,
19871987
DiscardAttribute = true;
19881988
}
19891989

1990-
// If this attribute is only permitted when distributed is enabled, reject it.
1991-
if (DeclAttribute::isDistributedOnly(DK) &&
1992-
!shouldParseExperimentalDistributed()) {
1993-
diagnose(Loc, diag::attr_requires_distributed, AttrName,
1994-
DeclAttribute::isDeclModifier(DK));
1995-
DiscardAttribute = true;
1996-
}
1997-
19981990
if (Context.LangOpts.Target.isOSBinFormatCOFF()) {
19991991
if (DK == DAK_WeakLinked) {
20001992
diagnose(Loc, diag::attr_unsupported_on_target, AttrName,

stdlib/public/Distributed/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ add_swift_target_library(swift_Distributed ${SWIFT_STDLIB_LIBRARY_BUILD_TYPES} I
3535
SWIFT_COMPILE_FLAGS
3636
${SWIFT_STANDARD_LIBRARY_SWIFT_FLAGS}
3737
-parse-stdlib
38-
-Xfrontend -enable-experimental-distributed
3938
LINK_FLAGS "${SWIFT_RUNTIME_SWIFT_LINK_FLAGS}"
4039

4140
SWIFT_MODULE_DEPENDS _Concurrency

test/Distributed/Runtime/distributed_actor_decode.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(-Xfrontend -enable-experimental-distributed -Xfrontend -disable-availability-checking -parse-as-library) | %FileCheck %s
1+
// RUN: %target-run-simple-swift( -Xfrontend -disable-availability-checking -parse-as-library) | %FileCheck %s
22

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

test/Distributed/Runtime/distributed_actor_deinit.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(-Xfrontend -enable-experimental-distributed -Xfrontend -disable-availability-checking -parse-as-library) | %FileCheck %s
1+
// RUN: %target-run-simple-swift( -Xfrontend -disable-availability-checking -parse-as-library) | %FileCheck %s
22

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

test/Distributed/Runtime/distributed_actor_func_calls_remoteCall_echo.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/FakeDistributedActorSystems.swiftmodule -module-name FakeDistributedActorSystems -disable-availability-checking %S/../Inputs/FakeDistributedActorSystems.swift
3-
// RUN: %target-build-swift -module-name main -Xfrontend -enable-experimental-distributed -Xfrontend -disable-availability-checking -j2 -parse-as-library -I %t %s %S/../Inputs/FakeDistributedActorSystems.swift -o %t/a.out
3+
// RUN: %target-build-swift -module-name main -Xfrontend -disable-availability-checking -j2 -parse-as-library -I %t %s %S/../Inputs/FakeDistributedActorSystems.swift -o %t/a.out
44
// RUN: %target-run %t/a.out | %FileCheck %s --color
55

66
// REQUIRES: executable_test

test/Distributed/Runtime/distributed_actor_func_calls_remoteCall_empty.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/FakeDistributedActorSystems.swiftmodule -module-name FakeDistributedActorSystems -disable-availability-checking %S/../Inputs/FakeDistributedActorSystems.swift
3-
// RUN: %target-build-swift -module-name main -Xfrontend -enable-experimental-distributed -Xfrontend -disable-availability-checking -j2 -parse-as-library -I %t %s %S/../Inputs/FakeDistributedActorSystems.swift -o %t/a.out
3+
// RUN: %target-build-swift -module-name main -Xfrontend -disable-availability-checking -j2 -parse-as-library -I %t %s %S/../Inputs/FakeDistributedActorSystems.swift -o %t/a.out
44
// RUN: %target-run %t/a.out | %FileCheck %s --color
55

66
// REQUIRES: executable_test

test/Distributed/Runtime/distributed_actor_func_calls_remoteCall_genericFunc.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/FakeDistributedActorSystems.swiftmodule -module-name FakeDistributedActorSystems -disable-availability-checking %S/../Inputs/FakeDistributedActorSystems.swift
3-
// RUN: %target-build-swift -module-name main -Xfrontend -enable-experimental-distributed -Xfrontend -disable-availability-checking -j2 -parse-as-library -I %t %s %S/../Inputs/FakeDistributedActorSystems.swift -o %t/a.out
3+
// RUN: %target-build-swift -module-name main -Xfrontend -disable-availability-checking -j2 -parse-as-library -I %t %s %S/../Inputs/FakeDistributedActorSystems.swift -o %t/a.out
44
// RUN: %target-run %t/a.out | %FileCheck %s --color
55

66
// REQUIRES: executable_test

test/Distributed/Runtime/distributed_actor_func_calls_remoteCall_hello.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/FakeDistributedActorSystems.swiftmodule -module-name FakeDistributedActorSystems -disable-availability-checking %S/../Inputs/FakeDistributedActorSystems.swift
3-
// RUN: %target-build-swift -module-name main -Xfrontend -enable-experimental-distributed -Xfrontend -disable-availability-checking -j2 -parse-as-library -I %t %s %S/../Inputs/FakeDistributedActorSystems.swift -o %t/a.out
3+
// RUN: %target-build-swift -module-name main -Xfrontend -disable-availability-checking -j2 -parse-as-library -I %t %s %S/../Inputs/FakeDistributedActorSystems.swift -o %t/a.out
44
// RUN: %target-run %t/a.out | %FileCheck %s --color
55

66
// REQUIRES: executable_test

test/Distributed/Runtime/distributed_actor_func_calls_remoteCall_take.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/FakeDistributedActorSystems.swiftmodule -module-name FakeDistributedActorSystems -disable-availability-checking %S/../Inputs/FakeDistributedActorSystems.swift
3-
// RUN: %target-build-swift -module-name main -Xfrontend -enable-experimental-distributed -Xfrontend -disable-availability-checking -j2 -parse-as-library -I %t %s %S/../Inputs/FakeDistributedActorSystems.swift -o %t/a.out
3+
// RUN: %target-build-swift -module-name main -Xfrontend -disable-availability-checking -j2 -parse-as-library -I %t %s %S/../Inputs/FakeDistributedActorSystems.swift -o %t/a.out
44
// RUN: %target-run %t/a.out | %FileCheck %s --color
55

66
// REQUIRES: executable_test

test/Distributed/Runtime/distributed_actor_func_calls_remoteCall_takeThrowReturn.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/FakeDistributedActorSystems.swiftmodule -module-name FakeDistributedActorSystems -disable-availability-checking %S/../Inputs/FakeDistributedActorSystems.swift
3-
// RUN: %target-build-swift -module-name main -Xfrontend -enable-experimental-distributed -Xfrontend -disable-availability-checking -j2 -parse-as-library -I %t %s %S/../Inputs/FakeDistributedActorSystems.swift -o %t/a.out
3+
// RUN: %target-build-swift -module-name main -Xfrontend -disable-availability-checking -j2 -parse-as-library -I %t %s %S/../Inputs/FakeDistributedActorSystems.swift -o %t/a.out
44
// RUN: %target-run %t/a.out | %FileCheck %s --color
55

66
// REQUIRES: executable_test

test/Distributed/Runtime/distributed_actor_func_calls_remoteCall_take_two.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/FakeDistributedActorSystems.swiftmodule -module-name FakeDistributedActorSystems -disable-availability-checking %S/../Inputs/FakeDistributedActorSystems.swift
3-
// RUN: %target-build-swift -module-name main -Xfrontend -enable-experimental-distributed -Xfrontend -disable-availability-checking -j2 -parse-as-library -I %t %s %S/../Inputs/FakeDistributedActorSystems.swift -o %t/a.out
3+
// RUN: %target-build-swift -module-name main -Xfrontend -disable-availability-checking -j2 -parse-as-library -I %t %s %S/../Inputs/FakeDistributedActorSystems.swift -o %t/a.out
44
// RUN: %target-run %t/a.out | %FileCheck %s --color
55

66
// REQUIRES: executable_test

test/Distributed/Runtime/distributed_actor_func_calls_remoteCall_throw.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/FakeDistributedActorSystems.swiftmodule -module-name FakeDistributedActorSystems -disable-availability-checking %S/../Inputs/FakeDistributedActorSystems.swift
3-
// RUN: %target-build-swift -module-name main -Xfrontend -enable-experimental-distributed -Xfrontend -disable-availability-checking -j2 -parse-as-library -I %t %s %S/../Inputs/FakeDistributedActorSystems.swift -o %t/a.out
3+
// RUN: %target-build-swift -module-name main -Xfrontend -disable-availability-checking -j2 -parse-as-library -I %t %s %S/../Inputs/FakeDistributedActorSystems.swift -o %t/a.out
44
// RUN: %target-run %t/a.out | %FileCheck %s --color
55

66
// REQUIRES: executable_test

test/Distributed/Runtime/distributed_actor_init_local.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(-Xfrontend -enable-experimental-distributed -Xfrontend -disable-availability-checking -parse-as-library) | %FileCheck %s
1+
// RUN: %target-run-simple-swift( -Xfrontend -disable-availability-checking -parse-as-library) | %FileCheck %s
22

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

test/Distributed/Runtime/distributed_actor_isRemote.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/FakeDistributedActorSystems.swiftmodule -module-name FakeDistributedActorSystems -disable-availability-checking %S/../Inputs/FakeDistributedActorSystems.swift
3-
// RUN: %target-build-swift -module-name main -Xfrontend -enable-experimental-distributed -Xfrontend -disable-availability-checking -j2 -parse-as-library -I %t %s %S/../Inputs/FakeDistributedActorSystems.swift -o %t/a.out
3+
// RUN: %target-build-swift -module-name main -Xfrontend -disable-availability-checking -j2 -parse-as-library -I %t %s %S/../Inputs/FakeDistributedActorSystems.swift -o %t/a.out
44
// RUN: %target-run %t/a.out | %FileCheck %s --color
55

66
// REQUIRES: executable_test

0 commit comments

Comments
 (0)