aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/util/rust-attributes.cc
diff options
context:
space:
mode:
authorOwen Avery <powerboat9.gamer@gmail.com>2024-03-26 19:28:53 -0400
committerCohenArthur <arthur.cohen@embecosm.com>2024-03-27 10:57:40 +0000
commitfd621e11334faecd220b8d1e3e8e2fc18d55d0e7 (patch)
treef15d417073b8f0cd1f4039188d4d115713932c1e /gcc/rust/util/rust-attributes.cc
parent581c43091873b0df860f154c53fdefba393095e9 (diff)
downloadgcc-fd621e11334faecd220b8d1e3e8e2fc18d55d0e7.zip
gcc-fd621e11334faecd220b8d1e3e8e2fc18d55d0e7.tar.gz
gcc-fd621e11334faecd220b8d1e3e8e2fc18d55d0e7.tar.bz2
Recognize unstable as a builtin attribute
gcc/rust/ChangeLog: * util/rust-attribute-values.h (Attributes::UNSTABLE): New. * util/rust-attributes.cc (__definitions): Add Attributes::UNSTABLE. gcc/testsuite/ChangeLog: * rust/compile/unstable-fn.rs: New test. Signed-off-by: Owen Avery <powerboat9.gamer@gmail.com>
Diffstat (limited to 'gcc/rust/util/rust-attributes.cc')
-rw-r--r--gcc/rust/util/rust-attributes.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/rust/util/rust-attributes.cc b/gcc/rust/util/rust-attributes.cc
index e10918b..84d1781 100644
--- a/gcc/rust/util/rust-attributes.cc
+++ b/gcc/rust/util/rust-attributes.cc
@@ -60,7 +60,8 @@ static const BuiltinAttrDefinition __definitions[]
// #![feature(rustc_attrs)]
{Attrs::RUSTC_DEPRECATED, STATIC_ANALYSIS},
{Attrs::RUSTC_INHERIT_OVERFLOW_CHECKS, CODE_GENERATION},
- {Attrs::STABLE, STATIC_ANALYSIS}};
+ {Attrs::STABLE, STATIC_ANALYSIS},
+ {Attrs::UNSTABLE, STATIC_ANALYSIS}};
BuiltinAttributeMappings *
BuiltinAttributeMappings::get ()