https://gcc.gnu.org/g:252371f178c26bd284bd4b6162d739ec08cd64fa

commit r17-1075-g252371f178c26bd284bd4b6162d739ec08cd64fa
Author: Owen Avery <[email protected]>
Date:   Sat Apr 18 15:19:09 2026 -0400

    gccrs: Recognize warn and deny as built in attributes
    
    gcc/rust/ChangeLog:
    
            * util/rust-attributes.cc (__definitions): Add entries for warn
            and deny attributes.
    
    Signed-off-by: Owen Avery <[email protected]>

Diff:
---
 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 39339f27c930..ad57f5695553 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},

Reply via email to