Skip to content

Commit 399c14d

Browse files
committed
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 <powerboat9.gamer@gmail.com>
1 parent 2bf1850 commit 399c14d

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

gcc/rust/util/rust-attributes.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ static const BuiltinAttrDefinition __definitions[]
3535
{Attrs::DERIVE_ATTR, EXPANSION},
3636
{Attrs::DEPRECATED, STATIC_ANALYSIS},
3737
{Attrs::ALLOW, STATIC_ANALYSIS},
38+
{Attrs::WARN, STATIC_ANALYSIS},
39+
{Attrs::DENY, STATIC_ANALYSIS},
3840
{Attrs::ALLOW_INTERNAL_UNSTABLE, STATIC_ANALYSIS},
3941
{Attrs::DOC, HIR_LOWERING},
4042
{Attrs::MUST_USE, STATIC_ANALYSIS},

0 commit comments

Comments
 (0)