mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-09-24 22:02:23 +01:00
Instead of silently producing an `ErrorInst::InstId` when looking up a private qualified name in the current package, bypass the access check. We don't need it -- private names from other libraries are filtered out by the import logic. Also fix `DiagnoseInvalidQualifiedNameAccess` to actually always produce a diagnostic, instead of silently ignoring access control failures in non-class types. This is a no-op after the fix to the access logic, since we only allow access control at class and namespace scope currently, but should avoid this issue from recurring when that changes. Assisted-by: Gemini via Antigravity