THURSDAY, JULY 16, 2026
gccrs
Fix glob imports in use declarations and remove dead code
Resolves issues with multiple glob imports in Rust use declarations and cleans up unused compiler code.
This commit fixes a bug where glob imports appearing after other imports in a Rust use declaration were not handled correctly. It also removes some dead code found in the flatten function within the compiler’s Rust front-end. A new test case is added to verify the fix for glob imports.
In Details
The rust-early-name-resolver-2.0.cc now correctly processes use declarations containing multiple glob imports, ensuring proper resolution when they follow other import items. Unused members in ImportMappings and a redundant break in flatten were removed.