]> git.ipfire.org Git - thirdparty/gcc.git/commit
gccrs: proc macros: Add crate type attribute check
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Tue, 18 Jul 2023 11:26:46 +0000 (13:26 +0200)
committerArthur Cohen <arthur.cohen@embecosm.com>
Tue, 16 Jan 2024 17:55:57 +0000 (18:55 +0100)
commit6bed91c311e0fbfc72ad4de605335900fc98a5e6
tree04dca5581adcbf5bdfd16aa09f7adc3334f4b17c
parent43208b6cbabe9189a48de64e4a42087af14cd671
gccrs: proc macros: Add crate type attribute check

A procedural macroa attribute can only be used on proc macro crates.

gcc/rust/ChangeLog:

* util/rust-attributes.cc (AttributeChecker::visit): Add
attribute check on functions.

Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
gcc/rust/util/rust-attributes.cc