From: Owen Avery <[email protected]>
gcc/rust/ChangeLog:
* ast/rust-ast-collector.cc
(TokenCollector::visit (TypePathSegmentGeneric)): Remove
duplicate push of segment identifier.
Signed-off-by: Owen Avery <[email protected]>
---
This change was merged into the gccrs repository and is posted here for
upstream visibility and potential drive-by review, as requested by GCC
release managers.
Each commit email contains a link to its details on github from where you can
find the Pull-Request and associated discussions.
Commit on github:
https://github.com/Rust-GCC/gccrs/commit/1298319d8827ebdbc459587e2ef2e1142c4dd48b
The commit has NOT been mentioned in any issue.
The commit has been mentioned in the following pull-request(s):
- https://github.com/Rust-GCC/gccrs/pull/4682
gcc/rust/ast/rust-ast-collector.cc | 8 --------
1 file changed, 8 deletions(-)
diff --git a/gcc/rust/ast/rust-ast-collector.cc
b/gcc/rust/ast/rust-ast-collector.cc
index f0d8957ef..b478a8d48 100644
--- a/gcc/rust/ast/rust-ast-collector.cc
+++ b/gcc/rust/ast/rust-ast-collector.cc
@@ -642,14 +642,6 @@ TokenCollector::visit (TypePathSegmentGeneric &segment)
// `<` `>`
// | `<` ( GenericArg `,` )* GenericArg `,`? `>`
describe_node (std::string ("TypePathSegmentGeneric"), [this, &segment] () {
- auto ident_segment
- = segment.is_lang_item ()
- ? PathIdentSegment ("LANG_ITEM", segment.get_locus ())
- : segment.get_ident_segment ();
- auto id = ident_segment.as_string ();
- push (Rust::Token::make_identifier (ident_segment.get_locus (),
- std::move (id)));
-
auto locus = segment.is_lang_item ()
? segment.get_locus ()
: segment.get_ident_segment ().get_locus ();
base-commit: a7e108ec48c1b52393bc6e71b9f13ef0824663d2
--
2.54.0