]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
gccrs: Recognize warn and deny as built in attributes
authorOwen Avery <powerboat9.gamer@gmail.com>
Sat, 18 Apr 2026 19:19:09 +0000 (15:19 -0400)
committerArthur Cohen <arthur.cohen@embecosm.com>
Mon, 1 Jun 2026 13:24:50 +0000 (15:24 +0200)
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

index 39339f27c93069d861e9b999d2b08b213772fce9..ad57f5695553232b2e52611c5dfd1638f7c93d93 100644 (file)
@@ -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},