mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-09-30 17:24:59 +01:00
An imported generic has bindings which are of type ImportRefLoaded, and if they come from another package, they have no entity name attached to them. Since a binding name is always a constant-time value, we can get the constant value instruction for the imported instruction to get a canonical non-imported instruction. And that one will have a local `NameId`. --------- Co-authored-by: josh11b <15258583+josh11b@users.noreply.github.com>