From be6fd5da6842eebeb077461ad6ca25d414684be6 Mon Sep 17 00:00:00 2001 From: Pierre-Emmanuel Patry Date: Wed, 28 Jun 2023 14:23:56 +0200 Subject: 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 --- gcc/rust/ast/rust-ast-collector.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gcc') 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 ()); -- cgit v1.1