]> git.ipfire.org Git - thirdparty/gcc.git/commit
gccrs: Recognize rustc_allow_const_fn_unstable
authorOwen Avery <powerboat9.gamer@gmail.com>
Thu, 3 Jul 2025 01:39:10 +0000 (21:39 -0400)
committerArthur Cohen <arthur.cohen@embecosm.com>
Thu, 30 Oct 2025 19:59:05 +0000 (20:59 +0100)
commitd22a2d15f6d51e58d98e759ccabc478762be987f
tree0b337c5cb9d7eb4b7e2bfdd37465fe19e53029ba
parentf96905887701cce16f80e701f3944e1476ae53ef
gccrs: Recognize rustc_allow_const_fn_unstable

This doesn't actually handle the attribute, although it does allow us to
recognize it as valid.

gcc/rust/ChangeLog:

* util/rust-attribute-values.h
(Attributes::RUSTC_ALLOW_CONST_FN_UNSTABLE): New static
constexpr member variable.
* util/rust-attributes.cc (__definitions): Add entry for
RUSTC_ALLOW_CONST_FN_UNSTABLE.

Signed-off-by: Owen Avery <powerboat9.gamer@gmail.com>
gcc/rust/util/rust-attribute-values.h
gcc/rust/util/rust-attributes.cc