diff options
author | Arthur Cohen <arthur.cohen@embecosm.com> | 2025-01-03 15:45:57 +0000 |
---|---|---|
committer | CohenArthur <arthur.cohen@embecosm.com> | 2025-01-16 14:00:31 +0000 |
commit | e530ccb311082eb2cde113f0873a62ce4aa82a5c (patch) | |
tree | d70102c9a6a153ce679193b41278a889606b48ed /gcc/rust/util/rust-attributes.cc | |
parent | 035990c57b58a1dc95ac2a36a17a15d1ae7255a2 (diff) | |
download | gcc-e530ccb311082eb2cde113f0873a62ce4aa82a5c.zip gcc-e530ccb311082eb2cde113f0873a62ce4aa82a5c.tar.gz gcc-e530ccb311082eb2cde113f0873a62ce4aa82a5c.tar.bz2 |
attributes: Add #[derive] as a built-in attribute
gcc/rust/ChangeLog:
* util/rust-attribute-values.h: Declare new attribute value.
* util/rust-attributes.cc: Use it.
Diffstat (limited to 'gcc/rust/util/rust-attributes.cc')
-rw-r--r-- | gcc/rust/util/rust-attributes.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/rust/util/rust-attributes.cc b/gcc/rust/util/rust-attributes.cc index 45ebf8c..079e177 100644 --- a/gcc/rust/util/rust-attributes.cc +++ b/gcc/rust/util/rust-attributes.cc @@ -46,6 +46,7 @@ static const BuiltinAttrDefinition __definitions[] {Attrs::COLD, CODE_GENERATION}, {Attrs::CFG, EXPANSION}, {Attrs::CFG_ATTR, EXPANSION}, + {Attrs::DERIVE_ATTR, EXPANSION}, {Attrs::DEPRECATED, STATIC_ANALYSIS}, {Attrs::ALLOW, STATIC_ANALYSIS}, {Attrs::ALLOW_INTERNAL_UNSTABLE, STATIC_ANALYSIS}, |