mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[AST/Sema] SE-0487: Remove @preEnumExtensibility attribute
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
Reference in New Issue
Block a user