Landing: 7702d38b476a

Project / Subsystem

gcc / gccrs

Date

2026-09-04

Author

Philip Herron

Commit

7702d38b476a21c3f5603a48334bacb65e30db3f

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
gccrs
patch_id
—
commit_hash
7702d38b476a21c3f5603a48334bacb65e30db3f
source_type
github
headline
gccrs: Use DefId indexes for trait and impl resolution.
tldr
Replaces AST node IDs with DefIds for indexing, improving trait and impl resolution.
author
Philip Herron
outcome
committed
performance_win
false
breaking_change
false
series_id
—
series_parts
[]
tags
  • • gccrs
  • • rustc
  • • compiler internals
discussion_id_link
—
bugzilla_pr
—
date
2026-09-04T00:00:00.000Z

This commit refactors gccrs to use DefId (Definition IDs) instead of AST (Abstract Syntax Tree) node IDs for indexing, which is crucial for resolving trait implementations and other associated items. By introducing a new indexing pass after HIR lowering, the compiler can map AST nodes to DefIds, enabling more robust and efficient resolution in components like the method resolver and path probe expressions.