aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>2023-06-28 15:19:51 +0200
committerCohenArthur <arthur.cohen@embecosm.com>2023-07-07 13:46:54 +0000
commit8b28b320d344768a5dc6287a7f66ac2112d4f2a7 (patch)
treeb753de73f39003624b1b1ec6537478db3fb3709d /gcc
parent257d6ce56f82f6216c5312a9cd82ae1323d49e34 (diff)
downloadgcc-8b28b320d344768a5dc6287a7f66ac2112d4f2a7.zip
gcc-8b28b320d344768a5dc6287a7f66ac2112d4f2a7.tar.gz
gcc-8b28b320d344768a5dc6287a7f66ac2112d4f2a7.tar.bz2
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 <pierre-emmanuel.patry@embecosm.com>
Diffstat (limited to 'gcc')
-rw-r--r--gcc/rust/ast/rust-ast-collector.cc1
1 files changed, 1 insertions, 0 deletions
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 ();