FRIDAY, OCTOBER 23, 2026
gccrs
gccrs: Remove map and add extern crate to glob containers
Refactors Rust-GCC's name resolution for glob containers.
This commit refactors Rust-GCC’s name resolution logic for glob containers. It removes an unnecessary map and modifies the handling of extern crates within glob containers. This change ensures that extern crates are correctly inserted into the glob container list, allowing for proper resolution of their inner segments and improving the overall name resolution process.
In Details
In gccrs, an unnecessary map has been removed from resolve/rust-forever-stack.hxx. Additionally, resolve/rust-toplevel-name-resolver-2.0.cc now correctly adds extern crate declarations to the glob container list within TopLevel::visit. This ensures that imports within glob containers are properly resolved.