diff options
author | Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com> | 2023-04-04 12:50:25 +0200 |
---|---|---|
committer | CohenArthur <arthur.cohen@embecosm.com> | 2023-04-05 08:09:09 +0000 |
commit | 1a7f62cd03ca00badfc5cdb5b65e4b6231a921ba (patch) | |
tree | 1cd0738717fbcfee8fbdae279dc0f1a9878a618d /gcc | |
parent | 68ee667852b38a907ded42d36465c5ab9a32e8db (diff) | |
download | gcc-1a7f62cd03ca00badfc5cdb5b65e4b6231a921ba.zip gcc-1a7f62cd03ca00badfc5cdb5b65e4b6231a921ba.tar.gz gcc-1a7f62cd03ca00badfc5cdb5b65e4b6231a921ba.tar.bz2 |
ast: Output inner attributes in tokenstreams
Inner attributes were not correctly visited.
gcc/rust/ChangeLog:
* ast/rust-ast-tokenstream.cc (TokenStream::visit): Add call to
inner attribute visitor.
Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/rust/ast/rust-ast-tokenstream.cc | 1 |
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 ())}); |