Landing: 41305b6fa0b9

Project / Subsystem

gcc / gccrs

Date

2026-06-10

Author

Owen Avery

Commit

41305b6fa0b9bc4066c31c0c8e9563d043dd6b1f

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
gccrs
patch_id
—
commit_hash
41305b6fa0b9bc4066c31c0c8e9563d043dd6b1f
source_type
github
headline
gccrs: Correctly collect tokens for TypePathSegmentGeneric
tldr
Fixes a bug in gccrs where TypePathSegmentGeneric tokens were duplicated during collection.
author
Owen Avery
outcome
committed
performance_win
false
breaking_change
false
series_id
—
series_parts
[]
tags
  • • gccrs
  • • bugfix
  • • AST
discussion_id_link
—
bugzilla_pr
—
date
2026-06-10T00:00:00.000Z

This commit corrects an issue in gccrs where the TokenCollector would inadvertently duplicate the segment identifier when visiting a TypePathSegmentGeneric. By removing the redundant push operation, the token collection process is now accurate, ensuring proper Abstract Syntax Tree (AST) construction for generic type paths.