diff options
author | Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com> | 2023-07-13 12:48:18 +0200 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2024-01-16 18:55:59 +0100 |
commit | 865efbdc2f195b7a9c9cfcb1d3c248c315eafeea (patch) | |
tree | c454591f59aced826bf6460926c268da00bef0ac /gcc/rust/parse/rust-parse-impl.h | |
parent | 987a411d409fac53041033979e12c404a8995e93 (diff) | |
download | gcc-865efbdc2f195b7a9c9cfcb1d3c248c315eafeea.zip gcc-865efbdc2f195b7a9c9cfcb1d3c248c315eafeea.tar.gz gcc-865efbdc2f195b7a9c9cfcb1d3c248c315eafeea.tar.bz2 |
gccrs: 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/parse/rust-parse-impl.h')
0 files changed, 0 insertions, 0 deletions