From: Owen Avery <[email protected]>

gcc/rust/ChangeLog:

        * util/rust-attributes.cc (__definitions): Add entries for warn
        and deny attributes.

Signed-off-by: Owen Avery <[email protected]>
---
 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

Reply via email to