mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-09-24 22:02:23 +01:00
Include the library name in the fingerprint of an entity declared `private` at namespace scope. Include the entity's fingerprint in the mangling of a library-private entity. This fixes miscompiles if two libraries in the same package declare `private` entites with the same name. We can't fix this with internal linkage because library-private entities can be reachable through generics defined in the API file of the library. Assisted-by: Gemini via Antigravity