diff options
author | Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com> | 2023-04-04 16:56:00 +0200 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2024-01-16 18:28:44 +0100 |
commit | 5802178519f68f75838ac1e26fe898682ce70f54 (patch) | |
tree | 8ab2b71531f9058b26156b76d76133575abbcc9b /gcc | |
parent | 08ac705b21542b064ebd95b71405281d14192fd2 (diff) | |
download | gcc-5802178519f68f75838ac1e26fe898682ce70f54.zip gcc-5802178519f68f75838ac1e26fe898682ce70f54.tar.gz gcc-5802178519f68f75838ac1e26fe898682ce70f54.tar.bz2 |
gccrs: ast: Visit crate inner attributes for tokenstreams
Crate level inner attributes were not visited.
gcc/rust/ChangeLog:
* ast/rust-ast-tokenstream.cc (TokenStream::visit): Visit inner
attributes.
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 a380fec..4260953 100644 --- a/gcc/rust/ast/rust-ast-tokenstream.cc +++ b/gcc/rust/ast/rust-ast-tokenstream.cc @@ -32,6 +32,7 @@ TokenStream::collect_tokens () const void TokenStream::visit (AST::Crate &crate) { + visit_items_as_lines (crate.inner_attrs); visit_items_as_lines (crate.items); } |