mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-24 06:22:41 +00:00
An upcoming PR will update expression evaluation to support evaluating insts in the ID space of an imported file. This PR makes two independent changes to prepare for that, grouped together to minimize merge conflicts: - Resolve rewrite constraints after constant-evaluating them, so that resolution only has to deal with insts in the ID space of the local file. - Generalize `GetImplWitnessAccessWithoutSubstitution` to take a `SemIR::File` instead of a `Check::Context`, so that it can be used with instructions in the imported file's ID space.