Landing: e494d53547e8
Project / Subsystem
gcc / gccrs
Date
2026-09-07
Author
Philip Herron
Commit
e494d53547e81b3761c1cf2f8ed215be787fa25b
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- gccrs
- patch_id
- —
- commit_hash
- e494d53547e81b3761c1cf2f8ed215be787fa25b
- source_type
- github
- headline
- Fixes return type leaking into other function contexts
- tldr
- GCC Rust prevents return type information from incorrectly bleeding into unrelated function contexts during type checking.
- author
- Philip Herron
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • rust
- • type-checking
- • compiler internals
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-09-07T00:00:00.000Z
This commit corrects an issue in GCC Rust where expected return type information could leak into unrelated function contexts. This typically happened when return expressions were in a const position and needed to resolve within nested blocks. The change ensures that return type hints are properly managed and popped from the context after use, preventing type unification errors in complex expressions.