]> git.ipfire.org Git - thirdparty/gcc.git/commit
Recognize unstable as a builtin attribute
authorOwen Avery <powerboat9.gamer@gmail.com>
Tue, 26 Mar 2024 23:28:53 +0000 (19:28 -0400)
committerCohenArthur <arthur.cohen@embecosm.com>
Wed, 27 Mar 2024 10:57:40 +0000 (10:57 +0000)
commitfd621e11334faecd220b8d1e3e8e2fc18d55d0e7
treef15d417073b8f0cd1f4039188d4d115713932c1e
parent581c43091873b0df860f154c53fdefba393095e9
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>
gcc/rust/util/rust-attribute-values.h
gcc/rust/util/rust-attributes.cc
gcc/testsuite/rust/compile/unstable-fn.rs [new file with mode: 0644]