public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc/devel/rust/master] ast: Visit crate inner attributes for tokenstreams
@ 2023-04-06 21:36 Thomas Schwinge
0 siblings, 0 replies; only message in thread
From: Thomas Schwinge @ 2023-04-06 21:36 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:1d501ab1429c70aae1f9706e23a4acfc14d67d36
commit 1d501ab1429c70aae1f9706e23a4acfc14d67d36
Author: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Date: Tue Apr 4 16:56:00 2023 +0200
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.
Diff:
---
gcc/rust/ast/rust-ast-tokenstream.cc | 1 +
1 file changed, 1 insertion(+)
diff --git a/gcc/rust/ast/rust-ast-tokenstream.cc b/gcc/rust/ast/rust-ast-tokenstream.cc
index a380fec8696..42609535bce 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);
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-04-06 21:36 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-06 21:36 [gcc/devel/rust/master] ast: Visit crate inner attributes for tokenstreams Thomas Schwinge
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).