]> git.ipfire.org Git - thirdparty/gcc.git/commit
gccrs: resolve: Remove ProcMacroInvocable interface
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Thu, 13 Jul 2023 10:48:18 +0000 (12:48 +0200)
committerArthur Cohen <arthur.cohen@embecosm.com>
Tue, 16 Jan 2024 17:55:59 +0000 (18:55 +0100)
commit865efbdc2f195b7a9c9cfcb1d3c248c315eafeea
treec454591f59aced826bf6460926c268da00bef0ac
parent987a411d409fac53041033979e12c404a8995e93
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>
gcc/rust/ast/rust-ast.h
gcc/rust/expand/rust-expand-visitor.cc
gcc/rust/expand/rust-macro-expand.h
gcc/rust/util/rust-hir-map.cc
gcc/rust/util/rust-hir-map.h
gcc/rust/util/rust-proc-macro-invocation.h [deleted file]