aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/rust/ast/rust-ast-tokenstream.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/rust/ast/rust-ast-tokenstream.cc b/gcc/rust/ast/rust-ast-tokenstream.cc
index 4a7107f..450767d 100644
--- a/gcc/rust/ast/rust-ast-tokenstream.cc
+++ b/gcc/rust/ast/rust-ast-tokenstream.cc
@@ -1255,6 +1255,7 @@ TokenStream::visit (BlockExpr &expr)
tokens.push_back (Rust::Token::make (LEFT_CURLY, expr.get_locus ()));
newline ();
increment_indentation ();
+ visit_items_as_lines (expr.get_inner_attrs ());
visit_items_as_lines (expr.get_statements (),
{Rust::Token::make (SEMICOLON, Location ())});