From 90ce6ea184f1b94e1bd1c88d4f99a9e055de3d97 Mon Sep 17 00:00:00 2001 From: Owen Avery Date: Tue, 26 Mar 2024 19:28:53 -0400 Subject: gccrs: 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 --- gcc/rust/util/rust-attribute-values.h | 1 + 1 file changed, 1 insertion(+) (limited to 'gcc/rust/util/rust-attribute-values.h') diff --git a/gcc/rust/util/rust-attribute-values.h b/gcc/rust/util/rust-attribute-values.h index 04aef99..a8551c0 100644 --- a/gcc/rust/util/rust-attribute-values.h +++ b/gcc/rust/util/rust-attribute-values.h @@ -52,6 +52,7 @@ public: static constexpr auto &RUSTC_INHERIT_OVERFLOW_CHECKS = "rustc_inherit_overflow_checks"; static constexpr auto &STABLE = "stable"; + static constexpr auto &UNSTABLE = "unstable"; }; } // namespace Values } // namespace Rust -- cgit v1.1