Landing: 5dc8451b867d
Project / Subsystem
gcc / gccrs
Date
2026-08-11
Author
Utkarsh Bahuguna
Commit
5dc8451b867d996d1685cb96f3d1ea7c57c4bcbd
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- gccrs
- patch_id
- —
- commit_hash
- 5dc8451b867d996d1685cb96f3d1ea7c57c4bcbd
- source_type
- github
- headline
- gccrs: Error on duplicate extern crate names
- tldr
- GCC Rust compiler now correctly errors on duplicate `extern crate` declarations.
- author
- Utkarsh Bahuguna
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • gccrs
- • rust
- • compiler error
- • namespace
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-08-11T00:00:00.000Z
The GCC Rust compiler now correctly identifies and reports errors for duplicate extern crate declarations. Previously, such duplicates compiled silently. This fix involves inserting the declared crate name into the type namespace and using specific error codes (E0259, E0260) to distinguish between different kinds of duplicate extern crate conflicts.