[Concurrency] Adopt stable keyword consuming instead of __owned

add test for warnings emitted when missing consuming attribute

use -emit-sil in mock SDK tests for better coverage
This commit is contained in:
Konrad `ktoso` Malawski
2023-05-01 20:37:38 +09:00
parent 6877778fad
commit da6f08a24e
15 changed files with 111 additions and 17 deletions

View File

@@ -24,7 +24,7 @@ internal final class DistributedRemoteActorReferenceExecutor: SerialExecutor {
internal init() {}
@inlinable
public func enqueue(_ job: __owned ExecutorJob) {
public func enqueue(_ job: consuming ExecutorJob) {
let jobDescription = job.description
fatalError("Attempted to enqueue ExecutorJob (\(jobDescription)) on executor of remote distributed actor reference!")
}