[COMMITTED 04/19] gccrs: Recognize warn and deny as built in attributes
arthur.cohen@embecosm.com
arthur.cohen@embecosm.com
Mon Jun 1 13:40:42 GMT 2026
From: Owen Avery <powerboat9.gamer@gmail.com>
gcc/rust/ChangeLog:
* util/rust-attributes.cc (__definitions): Add entries for warn
and deny attributes.
Signed-off-by: Owen Avery <powerboat9.gamer@gmail.com>
---
gcc/rust/util/rust-attributes.cc | 2 ++
1 file changed, 2 insertions(+)
diff --git a/gcc/rust/util/rust-attributes.cc b/gcc/rust/util/rust-attributes.cc
index 39339f27c93..ad57f569555 100644
--- a/gcc/rust/util/rust-attributes.cc
+++ b/gcc/rust/util/rust-attributes.cc
@@ -35,6 +35,8 @@ static const BuiltinAttrDefinition __definitions[]
{Attrs::DERIVE_ATTR, EXPANSION},
{Attrs::DEPRECATED, STATIC_ANALYSIS},
{Attrs::ALLOW, STATIC_ANALYSIS},
+ {Attrs::WARN, STATIC_ANALYSIS},
+ {Attrs::DENY, STATIC_ANALYSIS},
{Attrs::ALLOW_INTERNAL_UNSTABLE, STATIC_ANALYSIS},
{Attrs::DOC, HIR_LOWERING},
{Attrs::MUST_USE, STATIC_ANALYSIS},
--
2.50.1
More information about the Gcc-rust
mailing list