diff options
author | Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com> | 2023-06-28 14:23:56 +0200 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2024-01-16 18:49:33 +0100 |
commit | be6fd5da6842eebeb077461ad6ca25d414684be6 (patch) | |
tree | 9f724765aae383c6b73c05dc2eb0838e5c6ef7e6 | |
parent | 3b58924a75ce0b6f4d2f9d6f481d21e9fb595313 (diff) | |
download | gcc-be6fd5da6842eebeb077461ad6ca25d414684be6.zip gcc-be6fd5da6842eebeb077461ad6ca25d414684be6.tar.gz gcc-be6fd5da6842eebeb077461ad6ca25d414684be6.tar.bz2 |
gccrs: collector: Add generic to inherent impl block
Generic in inherent impl block were did not output at all.
gcc/rust/ChangeLog:
* ast/rust-ast-collector.cc (TokenCollector::visit): Output
generic in inherent impl.
Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
-rw-r--r-- | gcc/rust/ast/rust-ast-collector.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/rust/ast/rust-ast-collector.cc b/gcc/rust/ast/rust-ast-collector.cc index aad948e..f85d194 100644 --- a/gcc/rust/ast/rust-ast-collector.cc +++ b/gcc/rust/ast/rust-ast-collector.cc @@ -2134,7 +2134,7 @@ TokenCollector::visit (InherentImpl &impl) { visit_items_as_lines (impl.get_outer_attrs ()); push (Rust::Token::make (IMPL, impl.get_locus ())); - // FIXME: Handle generics + visit (impl.get_generic_params ()); visit (impl.get_type ()); |