diff options
author | Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com> | 2023-06-02 18:26:58 +0200 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2023-06-08 14:32:35 +0200 |
commit | b21aa448a4595208415e269aa1080846064029c8 (patch) | |
tree | 77f71f27547ad743d34504809d0d12f3abf01a31 /gcc/rust/resolve | |
parent | 9829370cfbd9657ff7963e8a5d4cf0f63178fda8 (diff) | |
download | gcc-b21aa448a4595208415e269aa1080846064029c8.zip gcc-b21aa448a4595208415e269aa1080846064029c8.tar.gz gcc-b21aa448a4595208415e269aa1080846064029c8.tar.bz2 |
expand: Add in order trait expansion
Add in order trait expansion using derive macros. Remove expansion of
outer attributes.
gcc/rust/ChangeLog:
* expand/rust-expand-visitor.cc (get_traits_to_derive): Change
the function to get traits in a given attribute instead of an
attribute vector.
(ExpandVisitor::expand_struct_fields): Remove call in visitor.
(ExpandVisitor::expand_function_params): Likewise.
(ExpandVisitor::expand_closure_params): Likewise.
(ExpandVisitor::visit): Likewise.
(ExpandVisitor::expand_outer_attribute): Remove function.
(ExpandVisitor::visit_outer_attrs): Remove function.
* expand/rust-expand-visitor.h: Remove function prototypes.
(ExpandVisitor::visit_outer_attrs): Remove function.
Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Diffstat (limited to 'gcc/rust/resolve')
0 files changed, 0 insertions, 0 deletions