aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/resolve/rust-ast-resolve-expr.cc
diff options
context:
space:
mode:
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>2023-07-26 12:16:12 +0200
committerP-E-P <32375388+P-E-P@users.noreply.github.com>2023-07-27 14:20:52 +0000
commit67b2057b7aa82f71dd1310123ec0cd1388b21a2f (patch)
treeddfe8c2a6976fdbbcbc1c471029b9c142b42e6a9 /gcc/rust/resolve/rust-ast-resolve-expr.cc
parentd62a388625d03c208082944e5cfff52ffa772eac (diff)
downloadgcc-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