From: Pierre-Emmanuel Patry Date: Wed, 28 Jun 2023 13:19:51 +0000 (+0200) Subject: gccrs: collector: Output outer attributes on blockexpr X-Git-Tag: basepoints/gcc-15~2382 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=032b5f90f2d49a751a99c453be496c0233604390;p=thirdparty%2Fgcc.git gccrs: collector: Output outer attributes on blockexpr Outer attributes on block expr did not output properly. gcc/rust/ChangeLog: * ast/rust-ast-collector.cc (TokenCollector::visit): Add outer attributes to collector output. 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 c06605a8c716..92411ab101a3 100644 --- a/gcc/rust/ast/rust-ast-collector.cc +++ b/gcc/rust/ast/rust-ast-collector.cc @@ -1259,6 +1259,7 @@ TokenCollector::visit (ClosureExprInner &expr) void TokenCollector::visit (BlockExpr &expr) { + visit_items_as_lines (expr.get_outer_attrs ()); push (Rust::Token::make (LEFT_CURLY, expr.get_locus ())); newline (); increment_indentation ();