mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[Distributed] Only synthesize Codable for DA where the ID is Codable (#72081)
This commit is contained in:
committed by
GitHub
parent
8bfe9d0395
commit
b7ff16baf7
@@ -26,6 +26,7 @@
|
||||
#include "swift/AST/Module.h"
|
||||
#include "swift/AST/ASTContext.h"
|
||||
#include "swift/AST/Builtins.h"
|
||||
#include "swift/AST/DistributedDecl.h"
|
||||
#include "swift/AST/DiagnosticsSema.h"
|
||||
#include "swift/AST/ExistentialLayout.h"
|
||||
#include "swift/AST/GenericEnvironment.h"
|
||||
@@ -622,7 +623,8 @@ LookupConformanceInModuleRequest::evaluate(
|
||||
}
|
||||
} else if (protocol->isSpecificProtocol(KnownProtocolKind::Encodable) ||
|
||||
protocol->isSpecificProtocol(KnownProtocolKind::Decodable)) {
|
||||
if (nominal->isDistributedActor()) {
|
||||
// if (nominal->isDistributedActor()) {
|
||||
if (canSynthesizeDistributedActorCodableConformance(nominal)) {
|
||||
auto protoKind =
|
||||
protocol->isSpecificProtocol(KnownProtocolKind::Encodable)
|
||||
? KnownProtocolKind::Encodable
|
||||
|
||||
Reference in New Issue
Block a user