Revert "Revert "Prevent noncopyable metatypes from being converted to Any""

This reverts commit 1a3b42cd63.
This commit is contained in:
Kavon Farvardin
2023-05-04 11:38:00 -07:00
parent bd1cc4c64f
commit 103bd043cd
6 changed files with 41 additions and 15 deletions

View File

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