diff options
author | Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com> | 2023-04-03 11:03:37 +0200 |
---|---|---|
committer | CohenArthur <arthur.cohen@embecosm.com> | 2023-04-05 08:20:48 +0000 |
commit | 865f3b05ad3085e7fe1545fdffb9b5fca3db6412 (patch) | |
tree | 691dc76406ee0a51b7d962abe05c84bb9c1b558c /gcc/rust/backend/rust-compile-block.h | |
parent | a7302b77e3915c55ac043401696c84fcdbb96336 (diff) | |
download | gcc-865f3b05ad3085e7fe1545fdffb9b5fca3db6412.zip gcc-865f3b05ad3085e7fe1545fdffb9b5fca3db6412.tar.gz gcc-865f3b05ad3085e7fe1545fdffb9b5fca3db6412.tar.bz2 |
expand: Add builtin attribute identification
Add a function to identify builtin attributes and skip those on proc
macro expansion phase.
gcc/rust/ChangeLog:
* expand/rust-expand-visitor.cc (ExpandVisitor::visit_outer_attrs):
Change condition order.
(ExpandVisitor::visit_inner_using_attrs): Likewise.
(ExpandVisitor::visit_attrs_with_derive): Likewise.
(ExpandVisitor::is_builtin): Add builtin identification
function.
* expand/rust-expand-visitor.h: Add function prototype.
* util/rust-attributes.cc: Add missing rustc_builtin_macro
attribute.
Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Diffstat (limited to 'gcc/rust/backend/rust-compile-block.h')
0 files changed, 0 insertions, 0 deletions