diff options
author | Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com> | 2023-07-26 12:16:12 +0200 |
---|---|---|
committer | P-E-P <32375388+P-E-P@users.noreply.github.com> | 2023-07-27 14:20:52 +0000 |
commit | 67b2057b7aa82f71dd1310123ec0cd1388b21a2f (patch) | |
tree | ddfe8c2a6976fdbbcbc1c471029b9c142b42e6a9 /gcc/rust/resolve/rust-ast-resolve-expr.cc | |
parent | d62a388625d03c208082944e5cfff52ffa772eac (diff) | |
download | gcc-67b2057b7aa82f71dd1310123ec0cd1388b21a2f.zip gcc-67b2057b7aa82f71dd1310123ec0cd1388b21a2f.tar.gz gcc-67b2057b7aa82f71dd1310123ec0cd1388b21a2f.tar.bz2 |
Check proc_macro attributes on non root functions
Check proc_macro, proc_macro_attribute and proc_macro_derive attributes
on non root functions, emit an error when one is found.
gcc/rust/ChangeLog:
* util/rust-attributes.cc (check_proc_macro_non_root): Add
function to emit this specific error.
(AttributeChecker::visit): Modify visitor to propagate to some
containers that were not handled correctly.
Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Diffstat (limited to 'gcc/rust/resolve/rust-ast-resolve-expr.cc')
0 files changed, 0 insertions, 0 deletions