aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/expand/rust-macro-builtins.cc
diff options
context:
space:
mode:
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>2023-07-13 12:48:18 +0200
committerP-E-P <32375388+P-E-P@users.noreply.github.com>2023-07-21 09:06:09 +0000
commit66975b3e729804ea4fa486fb6d4e16f4d2d899c6 (patch)
treed2f11555e0a690125dd141e36d12e0e716597bcb /gcc/rust/expand/rust-macro-builtins.cc
parentd597883ade47e6a612de311fe05c369dde45a221 (diff)
downloadgcc-66975b3e729804ea4fa486fb6d4e16f4d2d899c6.zip
gcc-66975b3e729804ea4fa486fb6d4e16f4d2d899c6.tar.gz
gcc-66975b3e729804ea4fa486fb6d4e16f4d2d899c6.tar.bz2
resolve: Remove ProcMacroInvocable interface
Since all identifiers in attributes are converted to SimplePath, this common interface is no longer required. gcc/rust/ChangeLog: * ast/rust-ast.h (class Identifier): Remove interface inheritance. (class SimplePath): Likewise. * expand/rust-expand-visitor.cc (get_traits_to_derive): Change return type. (derive_item): Update according to get_traits_to_derive return type. (expand_item_attribute): Likewise. (ExpandVisitor::expand_inner_stmts): Likewise. * expand/rust-macro-expand.h (struct MacroExpander): Likewise. * util/rust-hir-map.cc (Mappings::insert_derive_proc_macro_invocation): Change input type to SimplePath. (Mappings::lookup_derive_proc_macro_invocation): Likewise. (Mappings::insert_attribute_proc_macro_invocation): Likewise. (Mappings::lookup_attribute_proc_macro_invocation): Likewise. * util/rust-hir-map.h: Likewise with function prototypes. * util/rust-proc-macro-invocation.h: Removed. Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Diffstat (limited to 'gcc/rust/expand/rust-macro-builtins.cc')
0 files changed, 0 insertions, 0 deletions