Landing: 7c0801466908
Project / Subsystem
gcc / gccrs
Date
2026-07-29
Author
Owen Avery
Commit
7c0801466908df2fd6f7aa6b60488c8902c8c982
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- gccrs
- patch_id
- —
- commit_hash
- 7c0801466908df2fd6f7aa6b60488c8902c8c982
- source_type
- github
- headline
- gccrs: Generalize prelude import handling
- tldr
- gccrs: Replaces ad-hoc prelude imports with a generalized glob import.
- author
- Owen Avery
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • gccrs
- • name resolution
- • prelude
- • compiler internals
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-07-29T00:00:00.000Z
This commit refactors gccrs’ handling of prelude imports by replacing specific, ad-hoc import logic with a generalized glob import in every module and crate. This change simplifies the name resolution process and ensures consistent handling of the prelude across the compiler. A new virtual member function maybe_prelude_import is introduced to facilitate this generalization.