]> git.ipfire.org Git - thirdparty/gcc.git/commit
gccrs: Recognize rustc_args_required_const attribute
authorOwen Avery <powerboat9.gamer@gmail.com>
Sat, 12 Jul 2025 02:47:01 +0000 (22:47 -0400)
committerArthur Cohen <arthur.cohen@embecosm.com>
Tue, 5 Aug 2025 14:37:03 +0000 (16:37 +0200)
commit95c619976ff94dff1b84a5cff7e65a640d667996
tree41c5639f6d8471cd5842a7958f5a488f05e1b24c
parentd2140c7d5c1055e8d371a857b7a2d647cffb5674
gccrs: Recognize rustc_args_required_const attribute

This doesn't handle rustc_args_required_const, but it does allow us to
recognize it as a valid attribute.

gcc/rust/ChangeLog:

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

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