@@ -2014,9 +2014,7 @@ static bool canDeriveCodable(NominalTypeDecl *NTD,
20142014 // Structs, classes and enums can explicitly derive Encodable and Decodable
20152015 // conformance (explicitly meaning we can synthesize an implementation if
20162016 // a type conforms manually).
2017- if (!isa<StructDecl>(NTD) && !isa<ClassDecl>(NTD) &&
2018- !(NTD->getASTContext ().LangOpts .EnableExperimentalEnumCodableDerivation
2019- && isa<EnumDecl>(NTD))) {
2017+ if (!isa<StructDecl>(NTD) && !isa<ClassDecl>(NTD) && !isa<EnumDecl>(NTD)) {
20202018 return false ;
20212019 }
20222020
@@ -2039,8 +2037,7 @@ bool DerivedConformance::canDeriveEncodable(NominalTypeDecl *NTD) {
20392037ValueDecl *DerivedConformance::deriveEncodable (ValueDecl *requirement) {
20402038 // We can only synthesize Encodable for structs and classes.
20412039 if (!isa<StructDecl>(Nominal) && !isa<ClassDecl>(Nominal) &&
2042- !(Context.LangOpts .EnableExperimentalEnumCodableDerivation
2043- && isa<EnumDecl>(Nominal)))
2040+ !isa<EnumDecl>(Nominal))
20442041 return nullptr ;
20452042
20462043 if (requirement->getBaseName () != Context.Id_encode ) {
@@ -2070,8 +2067,7 @@ ValueDecl *DerivedConformance::deriveEncodable(ValueDecl *requirement) {
20702067ValueDecl *DerivedConformance::deriveDecodable (ValueDecl *requirement) {
20712068 // We can only synthesize Encodable for structs and classes.
20722069 if (!isa<StructDecl>(Nominal) && !isa<ClassDecl>(Nominal) &&
2073- !(Context.LangOpts .EnableExperimentalEnumCodableDerivation
2074- && isa<EnumDecl>(Nominal)))
2070+ !isa<EnumDecl>(Nominal))
20752071 return nullptr ;
20762072
20772073 if (requirement->getBaseName () != DeclBaseName::createConstructor ()) {
0 commit comments