diff options
author | Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com> | 2023-07-28 17:55:55 +0200 |
---|---|---|
committer | P-E-P <32375388+P-E-P@users.noreply.github.com> | 2023-09-05 14:05:36 +0000 |
commit | 133d96c3756c4b4d13533d28845baedbd633f8f0 (patch) | |
tree | ebd1c4edc0c30f2256bcaf54d1308483cbce4319 /gcc/rust/hir/rust-hir-dump.cc | |
parent | 6eaf1b2878262c0c129752cc2d25c6b576577dad (diff) | |
download | gcc-133d96c3756c4b4d13533d28845baedbd633f8f0.zip gcc-133d96c3756c4b4d13533d28845baedbd633f8f0.tar.gz gcc-133d96c3756c4b4d13533d28845baedbd633f8f0.tar.bz2 |
Set traits getter as member function
This function will be used outside of the expand visitor, making it
easily accessible is therefore mandatory.
gcc/rust/ChangeLog:
* ast/rust-ast.cc (Attribute::get_traits_to_derive): Add
function as member function.
* ast/rust-ast.h: Add prototype.
* expand/rust-expand-visitor.cc (get_traits_to_derive): Remove
function.
(ExpandVisitor::expand_inner_stmts): Update function call.
Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Diffstat (limited to 'gcc/rust/hir/rust-hir-dump.cc')
0 files changed, 0 insertions, 0 deletions