[AST] Prevent use of @extensible without ExtensibleAttribute feature

(cherry picked from commit 0ad7d8b590)
This commit is contained in:
Pavel Yaskevich
2025-04-24 12:09:53 -07:00
parent a0ab1dc40d
commit 58988a09da
6 changed files with 26 additions and 7 deletions

View File

@@ -880,6 +880,7 @@ SIMPLE_DECL_ATTR(extensible, Extensible,
OnEnum,
ABIStableToAdd | ABIStableToRemove | APIBreakingToAdd | APIStableToRemove | ForbiddenInABIAttr,
169)
DECL_ATTR_FEATURE_REQUIREMENT(Extensible, ExtensibleAttribute)
SIMPLE_DECL_ATTR(concurrent, Concurrent,
OnFunc | OnConstructor | OnSubscript | OnVar,