Landing: e7418168def7

Project / Subsystem

gcc / gccrs

Date

2026-06-26

Author

Pierre-Emmanuel Patry

Commit

e7418168def7bd18e6cc044641eb7f2bff459076

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
gccrs
patch_id
—
commit_hash
e7418168def7bd18e6cc044641eb7f2bff459076
source_type
github
headline
Merge binding map when merging name resolution contexts.
tldr
Fixes issues with recognizing return types in functions after merging name resolution contexts for extern crates.
author
Pierre-Emmanuel Patry
outcome
committed
performance_win
false
breaking_change
false
series_id
—
series_parts
[]
tags
  • • gccrs
  • • rust
  • • name resolution
discussion_id_link
—
bugzilla_pr
—
date
2026-06-26T00:00:00.000Z

This commit addresses an issue in gccrs where merging name resolution contexts for extern crates did not correctly merge usage bindings. Previously, only name declarations were merged, leading to problems such as return types within functions not being recognized. By ensuring usage bindings are also merged, the compiler can now correctly resolve these types.