diff options
author | Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com> | 2023-06-28 12:43:49 +0200 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2024-01-16 18:49:33 +0100 |
commit | 005e4febac01b9e92465e17bc4847e7ef955f0dc (patch) | |
tree | 87d0f33212177cc5dabae8dc222bbe30e6304288 /gcc | |
parent | 33db2ab974139b01a00bcda11eeb2c9d322e6b55 (diff) | |
download | gcc-005e4febac01b9e92465e17bc4847e7ef955f0dc.zip gcc-005e4febac01b9e92465e17bc4847e7ef955f0dc.tar.gz gcc-005e4febac01b9e92465e17bc4847e7ef955f0dc.tar.bz2 |
gccrs: collector: Fix doubled generics
Generics were output two times and binding args were missing in
TypePathSegmentGeneric collection.
gcc/rust/ChangeLog:
* ast/rust-ast-collector.cc (TokenCollector::visit): Fix binding
args.
Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/rust/ast/rust-ast-collector.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/rust/ast/rust-ast-collector.cc b/gcc/rust/ast/rust-ast-collector.cc index 99d8973..eb34ceb 100644 --- a/gcc/rust/ast/rust-ast-collector.cc +++ b/gcc/rust/ast/rust-ast-collector.cc @@ -631,7 +631,7 @@ TokenCollector::visit (TypePathSegmentGeneric &segment) visit_items_joined_by_separator (generic_args, COMMA); if (!generic_args.empty () && !binding_args.empty ()) push (Rust::Token::make (COMMA, Location ())); - visit_items_joined_by_separator (generic_args, COMMA); + visit_items_joined_by_separator (binding_args, COMMA); } push (Rust::Token::make (RIGHT_ANGLE, Location ())); |