diff options
author | Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com> | 2023-06-28 12:43:49 +0200 |
---|---|---|
committer | CohenArthur <arthur.cohen@embecosm.com> | 2023-07-07 13:46:54 +0000 |
commit | 1d184037a3c1dbe89ae6fd0815c5a4303028dc50 (patch) | |
tree | 5865dd55aca4028c8a32b9a1bdccbe22b7f08574 | |
parent | 90160c17bb25cec1c1676b4ea818a9561b0e8e6d (diff) | |
download | gcc-1d184037a3c1dbe89ae6fd0815c5a4303028dc50.zip gcc-1d184037a3c1dbe89ae6fd0815c5a4303028dc50.tar.gz gcc-1d184037a3c1dbe89ae6fd0815c5a4303028dc50.tar.bz2 |
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>
-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 ())); |