diff options
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/rust/ast/rust-ast-tokenstream.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/rust/ast/rust-ast-tokenstream.cc b/gcc/rust/ast/rust-ast-tokenstream.cc index 4260953..2fc7c2b 100644 --- a/gcc/rust/ast/rust-ast-tokenstream.cc +++ b/gcc/rust/ast/rust-ast-tokenstream.cc @@ -2310,7 +2310,10 @@ TokenStream::visit (MacroMatcher &matcher) tokens.push_back (Rust::Token::make (delimiters.first, Location ())); - visit_items_joined_by_separator (matcher.get_matches (), {}); + for (auto &item : matcher.get_matches ()) + { + visit (item); + } tokens.push_back (Rust::Token::make (delimiters.second, Location ())); } |