From: Pierre-Emmanuel Patry Date: Wed, 28 Jun 2023 13:37:15 +0000 (+0200) Subject: gccrs: collector: Output extern function attributes X-Git-Tag: basepoints/gcc-15~2379 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ce1ca503d2baf64633f807c70dcfc1d10e264578;p=thirdparty%2Fgcc.git gccrs: collector: Output extern function attributes Outer attributes on external functions did not output correctly. gcc/rust/ChangeLog: * ast/rust-ast-collector.cc (TokenCollector::visit): Output outer attributes on external functions. 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 6e2494e74c67..88a25f0b41fa 100644 --- a/gcc/rust/ast/rust-ast-collector.cc +++ b/gcc/rust/ast/rust-ast-collector.cc @@ -2194,6 +2194,7 @@ TokenCollector::visit (ExternalStaticItem &item) void TokenCollector::visit (ExternalFunctionItem &function) { + visit_items_as_lines (function.get_outer_attrs ()); visit (function.get_visibility ()); auto id = function.get_identifier ().as_string ();