From: Pierre-Emmanuel Patry Date: Wed, 28 Jun 2023 12:23:56 +0000 (+0200) Subject: gccrs: collector: Add generic to inherent impl block X-Git-Tag: basepoints/gcc-15~2387 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=be6fd5da6842eebeb077461ad6ca25d414684be6;p=thirdparty%2Fgcc.git 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 --- diff --git a/gcc/rust/ast/rust-ast-collector.cc b/gcc/rust/ast/rust-ast-collector.cc index aad948e02d8e..f85d194d5c27 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 ());