From 032b5f90f2d49a751a99c453be496c0233604390 Mon Sep 17 00:00:00 2001 From: Pierre-Emmanuel Patry Date: Wed, 28 Jun 2023 15:19:51 +0200 Subject: 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 --- gcc/rust/ast/rust-ast-collector.cc | 1 + 1 file changed, 1 insertion(+) (limited to 'gcc') diff --git a/gcc/rust/ast/rust-ast-collector.cc b/gcc/rust/ast/rust-ast-collector.cc index c06605a..92411ab 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 (); -- cgit v1.1