[AST/Sema] SE-0487: Remove @preEnumExtensibility attribute

This commit is contained in:
Pavel Yaskevich
2025-07-04 11:06:44 -07:00
parent 43eec8fede
commit 0444d297b6
7 changed files with 2 additions and 21 deletions

View File

@@ -888,11 +888,7 @@ SIMPLE_DECL_ATTR(concurrent, Concurrent,
ABIBreakingToAdd | ABIBreakingToRemove | APIBreakingToAdd | APIBreakingToRemove | UnconstrainedInABIAttr,
170)
SIMPLE_DECL_ATTR(preEnumExtensibility, PreEnumExtensibility,
OnEnum,
ABIStableToAdd | ABIStableToRemove | APIStableToAdd | APIBreakingToRemove | UnconstrainedInABIAttr,
171)
DECL_ATTR_FEATURE_REQUIREMENT(PreEnumExtensibility, NonexhaustiveAttribute)
// Unused '171': Used to be `@preEnumExtensibility`
DECL_ATTR(specialized, Specialized,
OnConstructor | OnFunc | OnAccessor,

View File

@@ -8811,9 +8811,6 @@ ERROR(nonexhaustive_attr_on_internal_type,none,
"%select{private|fileprivate|internal|%error|%error|%error}1",
(DeclName, AccessLevel))
ERROR(pre_enum_extensibility_without_nonexhaustive,none,
"%0 can only be used together with '@nonexhaustive' attribute", (DeclAttribute))
//===----------------------------------------------------------------------===//
// MARK: `using` declaration
//===----------------------------------------------------------------------===//