From: Pierre-Emmanuel Patry Date: Thu, 22 Jun 2023 14:41:40 +0000 (+0200) Subject: gccrs: collector: Fix missing semicolon output X-Git-Tag: basepoints/gcc-15~2433 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b6a783c4815703ff231cf1708ec1931d47ad4202;p=thirdparty%2Fgcc.git gccrs: collector: Fix missing semicolon output A final semicolon was missing after every items in an extern block. gcc/rust/ChangeLog: * ast/rust-ast-collector.cc (TokenCollector::visit): Add semicolon in extern blocks. 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 d851066373e2..843ea7328127 100644 --- a/gcc/rust/ast/rust-ast-collector.cc +++ b/gcc/rust/ast/rust-ast-collector.cc @@ -2225,7 +2225,8 @@ TokenCollector::visit (ExternBlock &block) Rust::Token::make_string (Location (), std::move (abi))); } - visit_items_as_block (block.get_extern_items ()); + visit_items_as_block (block.get_extern_items (), + {Rust::Token::make (SEMICOLON, Location ())}); } static std::pair