diff --git a/lib/Sema/TypeCheckConcurrency.cpp b/lib/Sema/TypeCheckConcurrency.cpp index f8a8a261a0305..1bb64e8635ce6 100644 --- a/lib/Sema/TypeCheckConcurrency.cpp +++ b/lib/Sema/TypeCheckConcurrency.cpp @@ -1248,7 +1248,6 @@ void swift::tryDiagnoseExecutorConformance(ASTContext &C, if (funcDecl->getName() != enqueueDeclName) continue; - // look for the first parameter being a Job or UnownedJob if (funcDecl->getParameters()->size() != 1) continue; diff --git a/test/Concurrency/Runtime/custom_executors.swift b/test/Concurrency/Runtime/custom_executors.swift index 09e83c8fbc046..334f42267eb04 100644 --- a/test/Concurrency/Runtime/custom_executors.swift +++ b/test/Concurrency/Runtime/custom_executors.swift @@ -1,4 +1,4 @@ -// RUN: %target-run-simple-swift( -Xfrontend -enable-experimental-move-only -Xfrontend -disable-availability-checking %import-libdispatch -parse-as-library) | %FileCheck %s --dump-input=always +// RUN: %target-run-simple-swift( -Xfrontend -disable-availability-checking %import-libdispatch -parse-as-library) | %FileCheck %s --dump-input=always // REQUIRES: concurrency // REQUIRES: executable_test diff --git a/test/Concurrency/Runtime/custom_executors_default.swift b/test/Concurrency/Runtime/custom_executors_default.swift index 9f572132fa5e8..b493f2da09440 100644 --- a/test/Concurrency/Runtime/custom_executors_default.swift +++ b/test/Concurrency/Runtime/custom_executors_default.swift @@ -1,7 +1,9 @@ -// RUN: %target-run-simple-swift( -Xfrontend -enable-experimental-move-only -Xfrontend -disable-availability-checking %import-libdispatch -parse-as-library) | %FileCheck %s +// RUN: %target-run-simple-swift( -Xfrontend -disable-availability-checking %import-libdispatch -parse-as-library) | %FileCheck %s // REQUIRES: concurrency // REQUIRES: executable_test + +// rdar://106849189 move-only types should be supported in freestanding mode // UNSUPPORTED: freestanding // UNSUPPORTED: back_deployment_runtime diff --git a/test/Concurrency/Runtime/custom_executors_moveOnly_job.swift b/test/Concurrency/Runtime/custom_executors_moveOnly_job.swift index 0a722876f5264..fcd9a34aecb98 100644 --- a/test/Concurrency/Runtime/custom_executors_moveOnly_job.swift +++ b/test/Concurrency/Runtime/custom_executors_moveOnly_job.swift @@ -1,7 +1,9 @@ -// RUN: %target-run-simple-swift( -Xfrontend -enable-experimental-move-only -Xfrontend -disable-availability-checking %import-libdispatch -parse-as-library) | %FileCheck %s +// RUN: %target-run-simple-swift( -Xfrontend -disable-availability-checking %import-libdispatch -parse-as-library) | %FileCheck %s // REQUIRES: concurrency // REQUIRES: executable_test + +// rdar://106849189 move-only types should be supported in freestanding mode // UNSUPPORTED: freestanding // UNSUPPORTED: back_deployment_runtime diff --git a/test/Concurrency/Runtime/custom_executors_priority.swift b/test/Concurrency/Runtime/custom_executors_priority.swift index a393374742b78..f5b19344d020b 100644 --- a/test/Concurrency/Runtime/custom_executors_priority.swift +++ b/test/Concurrency/Runtime/custom_executors_priority.swift @@ -1,7 +1,9 @@ -// RUN: %target-run-simple-swift( -Xfrontend -enable-experimental-move-only -Xfrontend -disable-availability-checking %import-libdispatch -parse-as-library) | %FileCheck %s --dump-input=always +// RUN: %target-run-simple-swift( -Xfrontend -disable-availability-checking %import-libdispatch -parse-as-library) | %FileCheck %s --dump-input=always // REQUIRES: concurrency // REQUIRES: executable_test + +// rdar://106849189 move-only types should be supported in freestanding mode // UNSUPPORTED: freestanding // UNSUPPORTED: back_deployment_runtime diff --git a/test/Concurrency/Runtime/custom_executors_protocol.swift b/test/Concurrency/Runtime/custom_executors_protocol.swift index 81b49fc2e3165..ef3ea5df9b14e 100644 --- a/test/Concurrency/Runtime/custom_executors_protocol.swift +++ b/test/Concurrency/Runtime/custom_executors_protocol.swift @@ -3,6 +3,8 @@ // REQUIRES: concurrency // REQUIRES: executable_test // REQUIRES: libdispatch + +// rdar://106849189 move-only types should be supported in freestanding mode // UNSUPPORTED: freestanding // UNSUPPORTED: back_deployment_runtime diff --git a/test/Concurrency/Runtime/exclusivity_custom_executors.swift b/test/Concurrency/Runtime/exclusivity_custom_executors.swift index af06d273eb71d..c4cc8c8c3288d 100644 --- a/test/Concurrency/Runtime/exclusivity_custom_executors.swift +++ b/test/Concurrency/Runtime/exclusivity_custom_executors.swift @@ -2,6 +2,8 @@ // REQUIRES: concurrency // REQUIRES: executable_test + +// rdar://106849189 move-only types should be supported in freestanding mode // UNSUPPORTED: freestanding // rdar://76038845 diff --git a/test/Concurrency/custom_executor_enqueue_impls.swift b/test/Concurrency/custom_executor_enqueue_impls.swift index 985a7168a61de..badb73814fdf8 100644 --- a/test/Concurrency/custom_executor_enqueue_impls.swift +++ b/test/Concurrency/custom_executor_enqueue_impls.swift @@ -1,6 +1,9 @@ // RUN: %target-typecheck-verify-swift -enable-experimental-move-only -disable-availability-checking // REQUIRES: concurrency +// rdar://106849189 move-only types should be supported in freestanding mode +// UNSUPPORTED: freestanding + // Such type may be encountered since Swift 5.5 (5.1 backdeployed) if someone implemented the // not documented, but public Executor types back then already. // diff --git a/test/IRGen/async/builtin_executor.sil b/test/IRGen/async/builtin_executor.sil index 72d0e4f5daf74..8cc81e8414c99 100644 --- a/test/IRGen/async/builtin_executor.sil +++ b/test/IRGen/async/builtin_executor.sil @@ -1,6 +1,8 @@ // RUN: %target-swift-frontend -primary-file %s -module-name=test -disable-llvm-optzns -disable-swift-specific-llvm-optzns -emit-ir -sil-verify-all | %IRGenFileCheck %s // REQUIRES: concurrency +// rdar://106849189 move-only types should be supported in freestanding mode +// UNSUPPORTED: freestanding sil_stage canonical