close
The Wayback Machine - https://web.archive.org/web/20220315123212/https://github.com/apple/swift/commit/13cc8b3157a9554ce05579aba5ff92b5464ec4f9
Skip to content
Permalink
Browse files
[Distributed] Enable no-longer-experimental distributed by default
  • Loading branch information
ktoso committed Mar 11, 2022
1 parent ee7b941 commit 13cc8b3157a9554ce05579aba5ff92b5464ec4f9
Showing with 84 additions and 176 deletions.
  1. +0 −5 include/swift/AST/DiagnosticsParse.def
  2. +1 −1 include/swift/Basic/LangOptions.h
  3. +0 −1 include/swift/IDE/CompletionLookup.h
  4. +0 −8 include/swift/Parse/Parser.h
  5. +15 −17 lib/AST/ASTContext.cpp
  6. +5 −15 lib/IDE/CodeCompletion.cpp
  7. +1 −5 lib/IDE/CompletionLookup.cpp
  8. +0 −8 lib/Parse/ParseDecl.cpp
  9. +0 −1 stdlib/public/Distributed/CMakeLists.txt
  10. +1 −1 test/Distributed/Runtime/distributed_actor_decode.swift
  11. +1 −1 test/Distributed/Runtime/distributed_actor_deinit.swift
  12. +1 −1 test/Distributed/Runtime/distributed_actor_func_calls_remoteCall_echo.swift
  13. +1 −1 test/Distributed/Runtime/distributed_actor_func_calls_remoteCall_empty.swift
  14. +1 −1 test/Distributed/Runtime/distributed_actor_func_calls_remoteCall_genericFunc.swift
  15. +1 −1 test/Distributed/Runtime/distributed_actor_func_calls_remoteCall_hello.swift
  16. +1 −1 test/Distributed/Runtime/distributed_actor_func_calls_remoteCall_take.swift
  17. +1 −1 test/Distributed/Runtime/distributed_actor_func_calls_remoteCall_takeThrowReturn.swift
  18. +1 −1 test/Distributed/Runtime/distributed_actor_func_calls_remoteCall_take_two.swift
  19. +1 −1 test/Distributed/Runtime/distributed_actor_func_calls_remoteCall_throw.swift
  20. +1 −1 test/Distributed/Runtime/distributed_actor_init_local.swift
  21. +1 −1 test/Distributed/Runtime/distributed_actor_isRemote.swift
  22. +1 −1 test/Distributed/Runtime/distributed_actor_local.swift
  23. +1 −1 test/Distributed/Runtime/distributed_actor_remoteCall.swift
  24. +2 −2 test/Distributed/Runtime/distributed_actor_remoteCall_roundtrip.swift
  25. +1 −1 test/Distributed/Runtime/distributed_actor_remote_fieldsDontCrashDeinit.swift
  26. +1 −1 test/Distributed/Runtime/distributed_actor_remote_functions.swift
  27. +1 −1 test/Distributed/Runtime/distributed_actor_remote_retains_system.swift
  28. +2 −2 test/Distributed/Runtime/distributed_actor_self_calls.swift
  29. +1 −1 test/Distributed/Runtime/distributed_actor_whenLocal.swift
  30. +1 −1 test/Distributed/Runtime/distributed_func_metadata.swift
  31. +1 −1 test/Distributed/SIL/distributed_actor_default_deinit_sil.swift
  32. +1 −1 test/Distributed/SIL/distributed_actor_default_init_sil_1.swift
  33. +1 −1 test/Distributed/SIL/distributed_actor_default_init_sil_2.swift
  34. +1 −1 test/Distributed/SIL/distributed_actor_default_init_sil_3.swift
  35. +1 −1 test/Distributed/SIL/distributed_actor_default_init_sil_4.swift
  36. +1 −1 test/Distributed/SIL/distributed_actor_default_init_sil_5.swift
  37. +1 −1 test/Distributed/actor_protocols.swift
  38. +1 −1 test/Distributed/distributed_actor_accessor_section_coff.swift
  39. +1 −1 test/Distributed/distributed_actor_accessor_section_elf.swift
  40. +1 −1 test/Distributed/distributed_actor_accessor_section_macho.swift
  41. +1 −1 test/Distributed/distributed_actor_accessor_thunks_32bit.swift
  42. +1 −1 test/Distributed/distributed_actor_accessor_thunks_64bit.swift
  43. +1 −1 test/Distributed/distributed_actor_async_let.swift
  44. +1 −1 test/Distributed/distributed_actor_basic.swift
  45. +1 −1 test/Distributed/distributed_actor_cannot_be_downcast_to_actor.swift
  46. +1 −1 test/Distributed/distributed_actor_concurrency_warnings.swift
  47. +1 −1 test/Distributed/distributed_actor_func_implicitly_async_throws.swift
  48. +1 −1 test/Distributed/distributed_actor_generic.swift
  49. +1 −1 test/Distributed/distributed_actor_inference.swift
  50. +1 −1 test/Distributed/distributed_actor_initialization.swift
  51. +0 −41 test/Distributed/distributed_actor_is_experimental.swift
  52. +1 −1 test/Distributed/distributed_actor_is_experimental_enabled_missing_import.swift
  53. +0 −10 test/Distributed/distributed_actor_is_experimental_with_import.swift
  54. +1 −1 test/Distributed/distributed_actor_isolation.swift
  55. +1 −1 test/Distributed/distributed_actor_isolation_and_tasks.swift
  56. +1 −1 test/Distributed/distributed_actor_nonisolated.swift
  57. +1 −1 test/Distributed/distributed_actor_protocol_isolation.swift
  58. +1 −1 test/Distributed/distributed_actor_resolve.swift
  59. +1 −1 test/Distributed/distributed_actor_system_missing_adhoc_requirement_impls.swift
  60. +1 −1 test/Distributed/distributed_actor_var_implicitly_async_throws.swift
  61. +1 −1 test/Distributed/distributed_missing_import.swift
  62. +1 −1 test/Distributed/distributed_protocol_isolation.swift
  63. +1 −1 test/Distributed/distributed_protocols_distributed_func_serialization_requirements.swift
  64. +1 −1 test/IRGen/distributed_actor.swift
  65. +1 −1 test/SILGen/distributed_thunk.swift
  66. +3 −3 test/Serialization/distributed.swift
  67. +1 −1 test/TBD/distributed.swift
  68. +1 −1 test/decl/protocol/special/DistributedActor.swift
  69. +1 −1 tools/sil-opt/SILOpt.cpp
  70. +0 −2 utils/swift-api-dump.py
@@ -1887,11 +1887,6 @@ ERROR(attr_requires_concurrency, none,
"concurrency is enabled",
(StringRef, bool))

ERROR(attr_requires_distributed, none,
"'%0' %select{attribute|modifier}1 is only valid when experimental "
"distributed support is enabled",
(StringRef, bool))

//------------------------------------------------------------------------------
// MARK: syntax parsing diagnostics
//------------------------------------------------------------------------------
@@ -344,7 +344,7 @@ namespace swift {
bool EnableInferPublicSendable = false;

/// Enable experimental 'distributed' actors and functions.
bool EnableExperimentalDistributed = false;
bool EnableExperimentalDistributed = true;

/// Enable experimental 'move only' features.
bool EnableExperimentalMoveOnly = false;
@@ -541,7 +541,6 @@ class CompletionLookup final : public swift::VisibleDeclConsumer {

static bool canUseAttributeOnDecl(DeclAttrKind DAK, bool IsInSil,
bool IsConcurrencyEnabled,
bool IsDistributedEnabled,
Optional<DeclKind> DK);

void getAttributeDeclCompletions(bool IsInSil, Optional<DeclKind> DK);
@@ -748,14 +748,6 @@ class Parser {
Context.LangOpts.ParseForSyntaxTreeOnly;
}

/// Returns true to indicate that experimental 'distributed actor' syntax
/// should be parsed if the parser is only a syntax tree or if the user has
/// passed the `-enable-experimental-distributed' flag to the frontend.
bool shouldParseExperimentalDistributed() const {
return Context.LangOpts.EnableExperimentalDistributed ||
Context.LangOpts.ParseForSyntaxTreeOnly;
}

public:
InFlightDiagnostic diagnose(SourceLoc Loc, Diagnostic Diag) {
if (Diags.isDiagnosticPointsToFirstBadToken(Diag.getID()) &&
@@ -3028,23 +3028,21 @@ AnyFunctionType::Param swift::computeSelfParam(AbstractFunctionDecl *AFD,
// FIXME(distributed): pending swift-evolution, allow `self =` in class
// inits in general.
// See also: https://github.com/apple/swift/pull/19151 general impl
if (Ctx.LangOpts.EnableExperimentalDistributed) {
auto ext = dyn_cast<ExtensionDecl>(AFD->getDeclContext());
auto distProto =
Ctx.getProtocol(KnownProtocolKind::DistributedActor);
if (distProto && ext && ext->getExtendedNominal() &&
ext->getExtendedNominal()->getInterfaceType()
->isEqual(distProto->getInterfaceType())) {
auto name = CD->getName();
auto params = name.getArgumentNames();
if (params.size() == 1 && params[0] == Ctx.Id_from) {
// FIXME(distributed): this is a workaround to allow init(from:) to
// be implemented in AST by allowing the self to be mutable in the
// decoding initializer. This should become a general Swift
// feature, allowing this in all classes:
// https://forums.swift.org/t/allow-self-x-in-class-convenience-initializers/15924
selfAccess = SelfAccessKind::Mutating;
}
auto ext = dyn_cast<ExtensionDecl>(AFD->getDeclContext());
auto distProto =
Ctx.getProtocol(KnownProtocolKind::DistributedActor);
if (distProto && ext && ext->getExtendedNominal() &&
ext->getExtendedNominal()->getInterfaceType()
->isEqual(distProto->getInterfaceType())) {
auto name = CD->getName();
auto params = name.getArgumentNames();
if (params.size() == 1 && params[0] == Ctx.Id_from) {
// FIXME(distributed): this is a workaround to allow init(from:) to
// be implemented in AST by allowing the self to be mutable in the
// decoding initializer. This should become a general Swift
// feature, allowing this in all classes:
// https://forums.swift.org/t/allow-self-x-in-class-convenience-initializers/15924
selfAccess = SelfAccessKind::Mutating;
}
}
} else {
@@ -656,8 +656,7 @@ static void addKeyword(CodeCompletionResultSink &Sink, StringRef Name,
}

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

// Remove keywords only available when distributed is enabled.
if (DAK.hasValue() && !IsDistributedEnabled &&
DeclAttribute::isDistributedOnly(*DAK))
return;

addKeyword(Sink, Name, Kind, /*TypeAnnotation=*/"", getFlair(Kind, DAK));
};

@@ -943,8 +937,7 @@ void CodeCompletionCallbacksImpl::addKeywords(CodeCompletionResultSink &Sink,
}
case CompletionKind::StmtOrExpr:
addDeclKeywords(Sink, CurDeclContext,
Context.LangOpts.EnableExperimentalConcurrency,
Context.LangOpts.EnableExperimentalDistributed);
Context.LangOpts.EnableExperimentalConcurrency);
addStmtKeywords(Sink, CurDeclContext, MaybeFuncBody);
LLVM_FALLTHROUGH;
case CompletionKind::ReturnStmtExpr:
@@ -1013,8 +1006,7 @@ void CodeCompletionCallbacksImpl::addKeywords(CodeCompletionResultSink &Sink,
}) != ParsedKeywords.end();
if (!HasDeclIntroducer) {
addDeclKeywords(Sink, CurDeclContext,
Context.LangOpts.EnableExperimentalConcurrency,
Context.LangOpts.EnableExperimentalDistributed);
Context.LangOpts.EnableExperimentalConcurrency);
addLetVarKeywords(Sink);
}
break;
@@ -1758,8 +1750,7 @@ void CodeCompletionCallbacksImpl::doneParsing() {
if (CurDeclContext->isTypeContext()) {
// Override completion (CompletionKind::NominalMemberBeginning).
addDeclKeywords(Sink, CurDeclContext,
Context.LangOpts.EnableExperimentalConcurrency,
Context.LangOpts.EnableExperimentalDistributed);
Context.LangOpts.EnableExperimentalConcurrency);
addLetVarKeywords(Sink);
SmallVector<StringRef, 0> ParsedKeywords;
CompletionOverrideLookup OverrideLookup(Sink, Context, CurDeclContext,
@@ -1768,8 +1759,7 @@ void CodeCompletionCallbacksImpl::doneParsing() {
} else {
// Global completion (CompletionKind::PostfixExprBeginning).
addDeclKeywords(Sink, CurDeclContext,
Context.LangOpts.EnableExperimentalConcurrency,
Context.LangOpts.EnableExperimentalDistributed);
Context.LangOpts.EnableExperimentalConcurrency);
addStmtKeywords(Sink, CurDeclContext, MaybeFuncBody);
addSuperKeyword(Sink, CurDeclContext);
addLetVarKeywords(Sink);
@@ -2852,7 +2852,6 @@ void CompletionLookup::getGenericRequirementCompletions(

bool CompletionLookup::canUseAttributeOnDecl(DeclAttrKind DAK, bool IsInSil,
bool IsConcurrencyEnabled,
bool IsDistributedEnabled,
Optional<DeclKind> DK) {
if (DeclAttribute::isUserInaccessible(DAK))
return false;
@@ -2864,8 +2863,6 @@ bool CompletionLookup::canUseAttributeOnDecl(DeclAttrKind DAK, bool IsInSil,
return false;
if (!IsConcurrencyEnabled && DeclAttribute::isConcurrencyOnly(DAK))
return false;
if (!IsDistributedEnabled && DeclAttribute::isDistributedOnly(DAK))
return false;
if (!DK.hasValue())
return true;
return DeclAttribute::canAttributeAppearOnDeclKind(DAK, DK.getValue());
@@ -2885,11 +2882,10 @@ void CompletionLookup::getAttributeDeclCompletions(bool IsInSil,
}
}
bool IsConcurrencyEnabled = Ctx.LangOpts.EnableExperimentalConcurrency;
bool IsDistributedEnabled = Ctx.LangOpts.EnableExperimentalDistributed;
std::string Description = TargetName.str() + " Attribute";
#define DECL_ATTR(KEYWORD, NAME, ...) \
if (canUseAttributeOnDecl(DAK_##NAME, IsInSil, IsConcurrencyEnabled, \
IsDistributedEnabled, DK)) \
DK)) \
addDeclAttrKeyword(#KEYWORD, Description);
#include "swift/AST/Attr.def"
}
@@ -1987,14 +1987,6 @@ bool Parser::parseNewDeclAttribute(DeclAttributes &Attributes, SourceLoc AtLoc,
DiscardAttribute = true;
}

// If this attribute is only permitted when distributed is enabled, reject it.
if (DeclAttribute::isDistributedOnly(DK) &&
!shouldParseExperimentalDistributed()) {
diagnose(Loc, diag::attr_requires_distributed, AttrName,
DeclAttribute::isDeclModifier(DK));
DiscardAttribute = true;
}

if (Context.LangOpts.Target.isOSBinFormatCOFF()) {
if (DK == DAK_WeakLinked) {
diagnose(Loc, diag::attr_unsupported_on_target, AttrName,
@@ -35,7 +35,6 @@ add_swift_target_library(swift_Distributed ${SWIFT_STDLIB_LIBRARY_BUILD_TYPES} I
SWIFT_COMPILE_FLAGS
${SWIFT_STANDARD_LIBRARY_SWIFT_FLAGS}
-parse-stdlib
-Xfrontend -enable-experimental-distributed
LINK_FLAGS "${SWIFT_RUNTIME_SWIFT_LINK_FLAGS}"

SWIFT_MODULE_DEPENDS _Concurrency
@@ -1,4 +1,4 @@
// RUN: %target-run-simple-swift(-Xfrontend -enable-experimental-distributed -Xfrontend -disable-availability-checking -parse-as-library) | %FileCheck %s
// RUN: %target-run-simple-swift( -Xfrontend -disable-availability-checking -parse-as-library) | %FileCheck %s
// REQUIRES: executable_test
// REQUIRES: concurrency
@@ -1,4 +1,4 @@
// RUN: %target-run-simple-swift(-Xfrontend -enable-experimental-distributed -Xfrontend -disable-availability-checking -parse-as-library) | %FileCheck %s
// RUN: %target-run-simple-swift( -Xfrontend -disable-availability-checking -parse-as-library) | %FileCheck %s
// REQUIRES: executable_test
// REQUIRES: concurrency
@@ -1,6 +1,6 @@
// RUN: %empty-directory(%t)
// RUN: %target-swift-frontend-emit-module -emit-module-path %t/FakeDistributedActorSystems.swiftmodule -module-name FakeDistributedActorSystems -disable-availability-checking %S/../Inputs/FakeDistributedActorSystems.swift
// 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
// 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
// RUN: %target-run %t/a.out | %FileCheck %s --color
// REQUIRES: executable_test
@@ -1,6 +1,6 @@
// RUN: %empty-directory(%t)
// RUN: %target-swift-frontend-emit-module -emit-module-path %t/FakeDistributedActorSystems.swiftmodule -module-name FakeDistributedActorSystems -disable-availability-checking %S/../Inputs/FakeDistributedActorSystems.swift
// 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
// 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
// RUN: %target-run %t/a.out | %FileCheck %s --color
// REQUIRES: executable_test
@@ -1,6 +1,6 @@
// RUN: %empty-directory(%t)
// RUN: %target-swift-frontend-emit-module -emit-module-path %t/FakeDistributedActorSystems.swiftmodule -module-name FakeDistributedActorSystems -disable-availability-checking %S/../Inputs/FakeDistributedActorSystems.swift
// 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
// 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
// RUN: %target-run %t/a.out | %FileCheck %s --color
// REQUIRES: executable_test
@@ -1,6 +1,6 @@
// RUN: %empty-directory(%t)
// RUN: %target-swift-frontend-emit-module -emit-module-path %t/FakeDistributedActorSystems.swiftmodule -module-name FakeDistributedActorSystems -disable-availability-checking %S/../Inputs/FakeDistributedActorSystems.swift
// 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
// 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
// RUN: %target-run %t/a.out | %FileCheck %s --color
// REQUIRES: executable_test
@@ -1,6 +1,6 @@
// RUN: %empty-directory(%t)
// RUN: %target-swift-frontend-emit-module -emit-module-path %t/FakeDistributedActorSystems.swiftmodule -module-name FakeDistributedActorSystems -disable-availability-checking %S/../Inputs/FakeDistributedActorSystems.swift
// 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
// 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
// RUN: %target-run %t/a.out | %FileCheck %s --color
// REQUIRES: executable_test
@@ -1,6 +1,6 @@
// RUN: %empty-directory(%t)
// RUN: %target-swift-frontend-emit-module -emit-module-path %t/FakeDistributedActorSystems.swiftmodule -module-name FakeDistributedActorSystems -disable-availability-checking %S/../Inputs/FakeDistributedActorSystems.swift
// 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
// 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
// RUN: %target-run %t/a.out | %FileCheck %s --color
// REQUIRES: executable_test
@@ -1,6 +1,6 @@
// RUN: %empty-directory(%t)
// RUN: %target-swift-frontend-emit-module -emit-module-path %t/FakeDistributedActorSystems.swiftmodule -module-name FakeDistributedActorSystems -disable-availability-checking %S/../Inputs/FakeDistributedActorSystems.swift
// 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
// 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
// RUN: %target-run %t/a.out | %FileCheck %s --color
// REQUIRES: executable_test
@@ -1,6 +1,6 @@
// RUN: %empty-directory(%t)
// RUN: %target-swift-frontend-emit-module -emit-module-path %t/FakeDistributedActorSystems.swiftmodule -module-name FakeDistributedActorSystems -disable-availability-checking %S/../Inputs/FakeDistributedActorSystems.swift
// 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
// 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
// RUN: %target-run %t/a.out | %FileCheck %s --color
// REQUIRES: executable_test
@@ -1,4 +1,4 @@
// RUN: %target-run-simple-swift(-Xfrontend -enable-experimental-distributed -Xfrontend -disable-availability-checking -parse-as-library) | %FileCheck %s
// RUN: %target-run-simple-swift( -Xfrontend -disable-availability-checking -parse-as-library) | %FileCheck %s
// REQUIRES: executable_test
// REQUIRES: concurrency
@@ -1,6 +1,6 @@
// RUN: %empty-directory(%t)
// RUN: %target-swift-frontend-emit-module -emit-module-path %t/FakeDistributedActorSystems.swiftmodule -module-name FakeDistributedActorSystems -disable-availability-checking %S/../Inputs/FakeDistributedActorSystems.swift
// 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
// 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
// RUN: %target-run %t/a.out | %FileCheck %s --color
// REQUIRES: executable_test
@@ -1,6 +1,6 @@
// RUN: %empty-directory(%t)
// RUN: %target-swift-frontend-emit-module -emit-module-path %t/FakeDistributedActorSystems.swiftmodule -module-name FakeDistributedActorSystems -disable-availability-checking %S/../Inputs/FakeDistributedActorSystems.swift
// 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
// 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
// RUN: %target-run %t/a.out | %FileCheck %s --color
// REQUIRES: executable_test
@@ -1,6 +1,6 @@
// RUN: %empty-directory(%t)
// RUN: %target-swift-frontend-emit-module -emit-module-path %t/FakeCodableForDistributedTests.swiftmodule -module-name FakeCodableForDistributedTests -disable-availability-checking %S/../Inputs/FakeCodableForDistributedTests.swift
// RUN: %target-build-swift -module-name main -Xfrontend -enable-experimental-distributed -Xfrontend -disable-availability-checking -j2 -parse-as-library -I %t %s %S/../Inputs/FakeCodableForDistributedTests.swift -o %t/a.out
// RUN: %target-build-swift -module-name main -Xfrontend -disable-availability-checking -j2 -parse-as-library -I %t %s %S/../Inputs/FakeCodableForDistributedTests.swift -o %t/a.out
// RUN: %target-run %t/a.out | %FileCheck %s --color
// REQUIRES: executable_test
@@ -1,9 +1,9 @@
// RUN: %empty-directory(%t)
// RUN: %target-swift-frontend-emit-module -emit-module-path %t/FakeDistributedActorSystems.swiftmodule -module-name FakeDistributedActorSystems -disable-availability-checking %S/../Inputs/FakeDistributedActorSystems.swift
// 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
// 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
// RUN: %target-run %t/a.out | %FileCheck %s --enable-var-scope --color
// X: %target-run-simple-swift( -Xfrontend -module-name=main -Xfrontend -disable-availability-checking -Xfrontend -enable-experimental-distributed -parse-as-library -Xfrontend -I -Xfrontend %t ) | %FileCheck %s
// X: %target-run-simple-swift( -Xfrontend -module-name=main -Xfrontend -disable-availability-checking -parse-as-library -Xfrontend -I -Xfrontend %t ) | %FileCheck %s
// REQUIRES: executable_test
// REQUIRES: concurrency

0 comments on commit 13cc8b3

Please sign in to comment.